")),ds(i,!1),await as(this)(t._wrapper,e),ds(i,!e),delete t._wrapper,Re(i),e){const s=E(this.$props.toggle,t);D.read(()=>{Di(s)||Ni(s,{offset:this.offset})})}}else ds(i,!e)})}}};function ds(t,e){t&&(t.hidden=e)}var gs={mixins:[t,ls],args:"animation",props:{close:String},data:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:{opacity:0,...ls.data.hideProps}},events:[{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.close()}}],methods:{async close(){await this.toggleElement(this.$el),this.$destroy(!0)}}},us={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},connected(){this.inView="inview"===this.autoplay,this.inView&&!Bt(this.$el,"preload")&&(this.$el.preload="none"),this.automute&&Mi(this.$el),this.registerObserver(ui(this.$el,()=>this.$emit(),{},!1))},update:{read(){return!!Bi(this.$el)&&{visible:p(this.$el)&&"hidden"!==k(this.$el,"visibility"),inView:this.inView&&Di(this.$el)}},write(t){var{visible:t,inView:e}=t;!t||this.inView&&!e?$i(this.$el):(!0===this.autoplay||this.inView&&e)&&Li(this.$el)}}},ps={connected(){var t;this.registerObserver(wi((null==(t=this.$options.resizeTargets)?void 0:t.call(this))||this.$el,()=>this.$emit("resize")))}},ws={mixins:[ps,us],props:{width:Number,height:Number},data:{automute:!0},events:{"load loadedmetadata"(){this.$emit("resize")}},resizeTargets(){return[this.$el,w(this.$el)]},update:{read(){const{ratio:t,cover:e}=bt,{$el:i,width:s,height:n}=this;let o={width:s,height:n};if(!o.width||!o.height){const e={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};o=o.width?t(e,"width",o.width):n?t(e,"height",o.height):e}var{offsetHeight:r,offsetWidth:h}=function(t){for(;t=w(t);)if("static"!==k(t,"position"))return t}(i)||w(i),h=e(o,{width:h+(h%2?1:0),height:r+(r%2?1:0)});return!(!h.width||!h.height)&&h},write(t){var{height:t,width:e}=t;k(this.$el,{height:t,width:e})},events:["resize"]}};var fs={props:{container:Boolean},data:{container:!0},computed:{container(t){t=t.container;return!0===t&&this.$container||t&&E(t)}}},vs={props:{pos:String,offset:null,flip:Boolean},data:{pos:"bottom-"+(P?"right":"left"),flip:!0,offset:!1,viewportPadding:10},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),this.axis=L(["top","bottom"],this.pos[0])?"y":"x"},methods:{positionAt(t,e,i){var[s,n]=this.pos;let o=this["offset"];if(!ht(o)){const t=E(o);o=t?T(t)["x"===this.axis?"left":"top"]-T(e)["x"===this.axis?"right":"bottom"]:0}o=A(o)+A(de("position-offset",t)),o=[L(["left","top"],s)?-o:+o,0];const r={element:[Ie(s),n],target:[s,n]};if("y"===this.axis){for(const t in r)r[t]=r[t].reverse();o=o.reverse()}Ri(t,e,{attach:r,offset:o,boundary:i,viewportPadding:this.viewportPadding,flip:this.flip})}}};let s;var ms={mixins:[fs,hs,vs,ls],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,display:String,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:!0,boundaryAlign:!1,delayShow:0,delayHide:800,display:null,clsDrop:!1,animation:["uk-animation-fade"],cls:"uk-open",container:!1},created(){this.tracker=new gi},beforeConnect(){this.clsDrop=this.$props.clsDrop||"uk-"+this.$options.name},connected(){b(this.$el,this.clsDrop),this.toggle&&!this.target&&(this.target=this.$create("toggle",Zt(this.toggle,this.$el),{target:this.$el,mode:this.mode}).$el,u(this.target,"aria-haspopup",!0),this.lazyload(this.target))},disconnected(){this.isActive()&&(s=null)},events:[{name:"click",delegate(){return"."+this.clsDrop+"-close"},handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:()=>'a[href^="#"]',handler(t){var{defaultPrevented:t,current:{hash:e}}=t;t||!e||f(e,this.$el)||this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(null==e?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(null==e?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),l(this.$el,":focus,:hover")||this.hide()}},{name:ni+" focusin",filter(){return L(this.mode,"hover")},handler(t){oe(t)||this.clearTimers()}},{name:oi+" focusout",filter(){return L(this.mode,"hover")},handler(t){!oe(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){(s=this).tracker.init();for(const t of[m(document,ei,t=>{let s=t["target"];return!f(s,this.$el)&&y(document,si+" "+ri+" scroll",t=>{var{defaultPrevented:t,type:e,target:i}=t;t||e!==si||s!==i||this.target&&f(s,this.target)||this.hide(!1)},!0)}),m(document,"keydown",t=>{27===t.keyCode&&this.hide(!1)}),..."static"===this.display?[]:(()=>{const e=()=>this.$emit();return[m(window,"resize",e),m(document,"scroll",e,!0),(()=>{const t=wi(Zi(this.$el),e);return()=>t.disconnect()})()]})()])y(this.$el,"hide",t,{self:!0})}},{name:"beforehide",self:!0,handler(){this.clearTimers()}},{name:"hide",handler(t){t=t.target;this.$el===t?(s=this.isActive()?null:s,this.tracker.cancel()):s=null===s&&f(t,this.$el)&&this.isToggled()?this:s}}],update:{write(){this.isToggled()&&!M(this.$el,this.clsEnter)&&this.position()}},methods:{show(e,i){if(void 0===e&&(e=this.target),void 0===i&&(i=!0),this.isToggled()&&e&&this.target&&e!==this.target&&this.hide(!1),this.target=e,this.clearTimers(),!this.isActive()){if(s){if(i&&s.isDelaying)return void(this.showTimer=setTimeout(()=>l(e,":hover")&&this.show(),10));let t;for(;s&&t!==s&&!f(this.$el,s.$el);)(t=s).hide(!1)}this.container&&w(this.$el)!==this.container&&z(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),i&&this.delayShow||0)}},hide(t){void 0===t&&(t=!0);var e=()=>this.toggleElement(this.$el,!1,!1);this.clearTimers(),this.isDelaying=function(t){const e=[];return Xe(t,t=>"static"!==k(t,"position")&&e.push(t)),e}(this.$el).some(t=>this.tracker.movesTo(t)),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(e,this.delayHide):e()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive(){return s===this},position(){$(this.$el,this.clsDrop+"-stack"),B(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);const t=Zt(this.boundary,this.$el),[e]=Zi(this.$el),i=ji(e),s=t?T(t):i;k(this.$el,"maxWidth","");var n=i.width-(this.boundaryAlign?0:2*this.viewportPadding);if("justify"===this.pos[1]){const t="y"===this.axis?"width":"height",e=T(this.target),i=this.boundaryAlign?s:e;k(this.$el,t,i[t])}else this.$el.offsetWidth>n&&b(this.$el,this.clsDrop+"-stack");k(this.$el,"maxWidth",n),this.positionAt(this.$el,t&&this.boundaryAlign?t:this.target,t)}}};var xs={mixins:[t],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:(t,e)=>E(At,e),state(){return this.input.nextElementSibling},target(t,e){t=t.target;return t&&(!0===t&&w(this.input)===e&&this.input.nextElementSibling||E(t,e))}},update(){const{target:e,input:i}=this;if(e){let t;var s=zt(e)?"value":"textContent",n=e[s],o=null!=(o=i.files)&&o[0]?i.files[0].name:l(i,"select")&&(t=r("option",i).filter(t=>t.selected)[0])?t.textContent:i.value;n!==o&&(e[s]=o)}},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el(){return Ot(this.$el,"form")},handler(){this.$emit()}}]},ys={mixins:[ps],props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},resizeTargets(){return[this.$el,...G(this.$el.children)]},connected(){this.registerObserver(vi(this.$el,()=>this.$reset(),{childList:!0}))},update:{read(){var t=Cs(this.$el.children);return{rows:t,columns:function(e){const i=[];for(const t of e){const e=ks(t,"left","right");for(let t=0;t
=t[n]-1&&i[s]!==t[s]){o.push([r]);break}if(i[n]-1>t[s]||i[s]===t[s]){h.push(r);break}if(0===e){o.unshift([r]);break}}}return o}function bs(t,e){let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:o}=t;return(e=void 0===e?!1:e)&&([i,s]=$e(t)),{top:i,left:s,bottom:i+n,right:s+o}}var Ls={connected(){var t,e;t=this._uid,e=()=>this.$emit("scroll"),Ms=Ms||m(window,"scroll",()=>$s.forEach(t=>t()),{passive:!0,capture:!0}),$s.set(t,e)},disconnected(){var t;t=this._uid,$s.delete(t),Ms&&!$s.size&&(Ms(),Ms=null)}};const $s=new Map;let Ms;var Bs={extends:ys,mixins:[t,Ls],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"uk-grid-margin",clsStack:"uk-grid-stack",masonry:!1,parallax:0},connected(){this.masonry&&b(this.$el,"uk-flex-top uk-flex-wrap-top")},update:[{write(t){t=t.columns;B(this.$el,this.clsStack,t.length<2)},events:["resize"]},{read(t){let{columns:e,rows:i}=t;if(!e.length||!this.masonry&&!this.parallax||Ss(this.$el))return t.translates=!1;let s=!1;const n=v(this.$el),o=e.map(t=>t.reduce((t,e)=>t+e.offsetHeight,0)),r=function(t,e){var[i]=t.filter(t=>M(t,e));return g(i?k(i,"marginTop"):k(t[0],"paddingLeft"))}(n,this.margin)*(i.length-1),h=Math.max(...o)+r;this.masonry&&(e=e.map(t=>ft(t,"offsetTop")),s=function(t,e){const n=t.map(t=>Math.max(...t.map(t=>t.offsetHeight)));return e.map(i=>{let s=0;return i.map((t,e)=>s+=e?n[e-1]-i[e-1].offsetHeight:0)})}(i,e));let l=Math.abs(this.parallax);return{padding:l=l&&o.reduce((t,e,i)=>Math.max(t,e+r+(i%2?l:l/8)-h),0),columns:e,translates:s,height:s?h:""}},write(t){var{height:t,padding:e}=t;k(this.$el,"paddingBottom",e||""),!1!==t&&k(this.$el,"height",t)},events:["resize"]},{read(){return(!this.parallax||!Ss(this.$el))&&{scrolled:!!this.parallax&&Hi(this.$el)*Math.abs(this.parallax)}},write(t){let{columns:e,scrolled:s,translates:n}=t;!1===s&&!n||e.forEach((t,i)=>t.forEach((t,e)=>k(t,"transform",s||n?"translateY("+((n&&-n[i][e])+(s?i%2?s:s/8:0))+"px)":"")))},events:["scroll","resize"]}]};function Ss(t){return v(t).some(t=>"absolute"===k(t,"position"))}var Is={mixins:[ps],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements:{get(t,e){t=t.target;return r(t,e)},watch(){this.$reset()}}},resizeTargets(){return[this.$el,...this.elements]},update:{read(){return{rows:(this.row?Cs(this.elements):[this.elements]).map(Ts)}},write(i){var t=i["rows"];for(const{heights:i,elements:e}of t)e.forEach((t,e)=>k(t,"minHeight",i[e]))},events:["resize"]}};function Ts(t){if(t.length<2)return{heights:[""],elements:t};k(t,"minHeight","");let i=t.map(_s);const s=Math.max(...i);return{heights:t.map((t,e)=>i[e].toFixed(2)===s.toFixed(2)?"":s),elements:t}}function _s(t){let e=!1;p(t)||(e=t.style.display,k(t,"display","block","important"));var i=I(t).height-Se(t,"height","content-box");return!1!==e&&k(t,"display",e),i}var As={mixins:[t,ps],props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},resizeTargets(){return[this.$el,document.documentElement]},update:{read(t){t=t.minHeight;if(!p(this.$el))return!1;let e="";var i=Se(this.$el,"height","content-box");if(this.expand)e=Math.max(_(window)-(I(document.documentElement).height-I(this.$el).height)-i,0);else{if(e="calc(100vh",this.offsetTop){const t=T(this.$el)["top"];e+=0{var e;if(this._connected)return e=function(t,e){if(_t(e)||Pe(e,"canvas")){e.hidden=!0;const i=e.nextElementSibling;return Hs(t,i)?i:Ze(e,t)}const i=e.lastElementChild;return Hs(t,i)?i:z(e,t)}(t,this.$el),this.svgEl&&e!==this.svgEl&&Fe(this.svgEl),this.applyAttributes(e,t),this.svgEl=e},x),this.strokeAnimation&&this.svg.then(i=>{this._connected&&(Os(i),this.registerObserver(ui(i,(t,e)=>{Os(i),e.disconnect()})))})},disconnected(){this.svg.then(t=>{this._connected||(_t(this.$el)&&(this.$el.hidden=!1),Fe(t),this.svgEl=null)}),this.svg=null},methods:{async getSvg(){return Pe(this.$el,"img")&&!this.$el.complete&&"lazy"===this.$el.loading?new Promise(t=>y(this.$el,"load",()=>t(this.getSvg()))):(t=await Es(this.src),(null==(e=t=E((t=(e=this.icon)&&L(t,""}return Ds[t][e]}(t,e)||t:t).substr(t.indexOf("