uikit
Version:
UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
1 lines • 154 kB
JavaScript
/*! UIkit 3.25.13 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(Ce,Pe){typeof exports=="object"&&typeof module<"u"?module.exports=Pe():typeof define=="function"&&define.amd?define("uikit",Pe):(Ce=typeof globalThis<"u"?globalThis:Ce||self,Ce.UIkit=Pe())})(this,(function(){"use strict";const{hasOwnProperty:Ce,toString:Pe}=Object.prototype;function yt(t,e){return Ce.call(t,e)}const lr=/\B([A-Z])/g,Wt=ft(t=>t.replace(lr,"-$1").toLowerCase()),cr=/-(\w)/g,_e=ft(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(cr,(e,i)=>i.toUpperCase())),qt=ft(t=>t.charAt(0).toUpperCase()+t.slice(1));function kt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function ne(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function v(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function St(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:Q,from:oe}=Array,{assign:vt}=Object;function ut(t){return typeof t=="function"}function At(t){return t!==null&&typeof t=="object"}function Ae(t){return Pe.call(t)==="[object Object]"}function ci(t){return At(t)&&t===t.window}function Me(t){return Ri(t)===9}function hi(t){return Ri(t)>=1}function re(t){return Ri(t)===1}function Ri(t){return!ci(t)&&At(t)&&t.nodeType}function ae(t){return typeof t=="boolean"}function L(t){return typeof t=="string"}function le(t){return typeof t=="number"}function bt(t){return le(t)||L(t)&&!isNaN(t-parseFloat(t))}function ui(t){return!(Q(t)?t.length:At(t)&&Object.keys(t).length)}function J(t){return t===void 0}function Ui(t){return ae(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function It(t){const e=Number(t);return isNaN(e)?!1:e}function I(t){return parseFloat(t)||0}function R(t){return t&&T(t)[0]}function T(t){return hi(t)?[t]:Array.from(t||[]).filter(hi)}function jt(t){if(ci(t))return t;t=R(t);const e=Me(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function ce(t,e){return t===e||At(t)&&At(e)&&Object.keys(t).length===Object.keys(e).length&&he(t,(i,s)=>i===e[s])}function Vi(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function Rt(t){return t[t.length-1]}function he(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Gs(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function Ut(t,e){return t.reduce((i,s)=>i+I(ut(e)?e(s):s[e]),0)}function Ys(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function di(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function V(t,e=0,i=1){return Math.min(Math.max(It(t)||0,e),i)}function A(){}function fi(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function pi(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Gi(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function Xs(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Gi(t,i,e[i]):t;return t}function hr(t,e){t=Xs(t,e);for(const i in t)t=t[i]<e[i]?Gi(t,i,e[i]):t;return t}const Yi={ratio:Gi,contain:Xs,cover:hr};function dt(t,e,i=0,s=!1){e=T(e);const{length:n}=e;return n?(t=bt(t)?It(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?n-1:e.indexOf(R(t)),s?V(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function ft(t){const e=Object.create(null);return(i,...s)=>e[i]||(e[i]=t(i,...s))}function S(t,...e){for(const i of T(t)){const s=Vt(e).filter(n=>!$(i,n));s.length&&i.classList.add(...s)}}function _(t,...e){for(const i of T(t)){const s=Vt(e).filter(n=>$(i,n));s.length&&i.classList.remove(...s)}}function gi(t,e,i){i=Vt(i),e=Vt(e).filter(s=>!v(i,s)),_(t,e),S(t,i)}function $(t,e){return[e]=Vt(e),T(t).some(i=>i.classList.contains(e))}function F(t,e,i){const s=Vt(e);J(i)||(i=!!i);for(const n of T(t))for(const o of s)n.classList.toggle(o,i)}function Vt(t){return t?Q(t)?t.map(Vt).flat():String(t).split(" ").filter(Boolean):[]}function E(t,e,i){var s;if(At(e)){for(const n in e)E(t,n,e[n]);return}if(J(i))return(s=R(t))==null?void 0:s.getAttribute(e);for(const n of T(t))i===null?Oe(n,e):n.setAttribute(e,i)}function Et(t,e){return T(t).some(i=>i.hasAttribute(e))}function Oe(t,e){T(t).forEach(i=>i.removeAttribute(e))}function tt(t,e){for(const i of[e,`data-${e}`])if(Et(t,i))return E(t,i)}const Gt=typeof window<"u",K=Gt&&document.dir==="rtl",ue=Gt&&"ontouchstart"in window,de=Gt&&window.PointerEvent,at=de?"pointerdown":ue?"touchstart":"mousedown",fe=de?"pointermove":ue?"touchmove":"mousemove",Tt=de?"pointerup":ue?"touchend":"mouseup",Mt=de?"pointerenter":ue?"":"mouseenter",Ot=de?"pointerleave":ue?"":"mouseleave",De=de?"pointercancel":"touchcancel",ur={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Xi(t){return T(t).some(e=>ur[e.tagName.toLowerCase()])}const dr=Gt&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function W(t){return T(t).some(e=>dr.call(e))}const pe="input,select,textarea,button";function Be(t){return T(t).some(e=>P(e,pe))}const Ne=`${pe},a[href],[tabindex]`;function ze(t){return P(t,Ne)}function M(t){var e;return(e=R(t))==null?void 0:e.parentElement}function Fe(t,e){return T(t).filter(i=>P(i,e))}function P(t,e){return T(t).some(i=>i.matches(e))}function ge(t,e){const i=[];for(;t=M(t);)(!e||P(t,e))&&i.push(t);return i}function O(t,e){t=R(t);const i=t?oe(t.children):[];return e?Fe(i,e):i}function Ct(t,e){return e?T(t).indexOf(R(e)):O(M(t)).indexOf(t)}function me(t){return t=R(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function mi(t){if(me(t)){const{hash:e,ownerDocument:i}=R(t),s=decodeURIComponent(e).slice(1);return s?i.getElementById(s)||i.getElementsByName(s)[0]:i.documentElement}}function Z(t,e){return Ji(t,Js(t,e))}function He(t,e){return Le(t,Js(t,e))}function Ji(t,e){return R(Qs(t,R(e),"querySelector"))}function Le(t,e){return T(Qs(t,R(e),"querySelectorAll"))}function Js(t,e=document){return Me(e)||Ks(t).isContextSelector?e:e.ownerDocument}const fr=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,pr=/(\([^)]*\)|[^,])+/g,Ks=ft(t=>{let e=!1;if(!t||!L(t))return{};const i=[];for(let s of t.match(pr))s=s.trim().replace(fr,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),i.push(s);return{selector:i.join(","),selectors:i,isContextSelector:e}}),gr=/(\([^)]*\)|\S)*/,Zs=ft(t=>{t=t.slice(1).trim();const[e]=t.match(gr);return[e,t.slice(e.length+1)]});function Qs(t,e=document,i){var s;const n=Ks(t);if(!n.isContextSelector)return n.selector?Ki(e,i,n.selector):t;t="";const o=n.selectors.length===1;for(let r of n.selectors){let a,l=e;if(r[0]==="!"&&([a,r]=Zs(r),l=(s=e.parentElement)==null?void 0:s.closest(a),!r&&o)||l&&r[0]==="-"&&([a,r]=Zs(r),l=l.previousElementSibling,l=P(l,a)?l:null,!r&&o))return l;if(l){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${Ct(l)+1}) ${r}`,l=l.parentElement):r[0]===">"&&(r=`:scope ${r}`),Ki(l,i,r);t+=`${t?",":""}${mr(l)} ${r}`}}return Me(e)||(e=e.ownerDocument),Ki(e,i,t)}function Ki(t,e,i){try{return t[e](i)}catch{return null}}function mr(t){const e=[];for(;t.parentNode;){const i=E(t,"id");if(i){e.unshift(`#${Zi(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${Ct(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Zi(t){return L(t)?CSS.escape(t):""}function x(...t){let[e,i,s,n,o=!1]=Qi(t);n.length>1&&(n=br(n)),o!=null&&o.self&&(n=wr(n)),s&&(n=vr(s,n));for(const r of i)for(const a of e)a.addEventListener(r,n,o);return()=>ve(e,i,n,o)}function ve(...t){let[e,i,,s,n=!1]=Qi(t);for(const o of i)for(const r of e)r.removeEventListener(o,s,n)}function z(...t){const[e,i,s,n,o=!1,r]=Qi(t),a=x(e,i,s,l=>{const h=!r||r(l);h&&(a(),n(l,h))},o);return a}function m(t,e,i){return ts(t).every(s=>s.dispatchEvent(be(e,!0,!0,i)))}function be(t,e=!0,i=!1,s){return L(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Qi(t){return t[0]=ts(t[0]),L(t[1])&&(t[1]=t[1].split(" ")),ut(t[2])&&t.splice(2,0,!1),t}function vr(t,e){return i=>{const s=t[0]===">"?Le(t,i.currentTarget).reverse().find(n=>n.contains(i.target)):i.target.closest(t);s&&(i.current=s,e.call(this,i),delete i.current)}}function br(t){return e=>Q(e.detail)?t(e,...e.detail):t(e)}function wr(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function tn(t){return t&&"addEventListener"in t}function xr(t){return tn(t)?t:R(t)}function ts(t){return Q(t)?t.map(xr).filter(Boolean):L(t)?Le(t):tn(t)?[t]:T(t)}function pt(t){return t.pointerType==="touch"||!!t.touches}function wt(t){var e,i;const{clientX:s,clientY:n}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:s,y:n}}const $r={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function c(t,e,i,s){const n=T(t);for(const o of n)if(L(e)){if(e=vi(e),J(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,bt(i)&&!$r[e]&&!en(e)?`${i}px`:i||le(i)?i:"",s)}else if(Q(e)){const r={};for(const a of e)r[a]=c(o,a);return r}else if(At(e))for(const r in e)c(o,r,e[r],i);return n[0]}function xt(t,e){for(const i in e)c(t,i,"")}const vi=ft(t=>{if(en(t))return t;t=Wt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const s=`-${i}-${t}`;if(s in e)return s}});function en(t){return kt(t,"--")}const es="uk-transition",is="transitionend",ss="transitioncanceled";function yr(t,e,i=400,s="linear",n){return i=Math.round(i),Promise.all(T(t).map(o=>new Promise((r,a)=>{n||o.offsetHeight;const l=setTimeout(()=>m(o,is),i);z(o,[is,ss],({type:u})=>{clearTimeout(l),_(o,es),xt(o,h),u===ss?a():r(o)},{self:!0}),S(o,es);const h={transitionProperty:Object.keys(e).map(vi).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s};c(o,{...h,...e})})))}const D={start:yr,async stop(t){m(t,is),await Promise.resolve()},async cancel(t){m(t,ss),await Promise.resolve()},inProgress(t){return $(t,es)}},We="uk-animation",sn="animationend",bi="animationcanceled";function nn(t,e,i=200,s,n){return Promise.all(T(t).map(o=>new Promise((r,a)=>{$(o,We)&&m(o,bi);const l=[e,We,`${We}-${n?"leave":"enter"}`,s&&`uk-transform-origin-${s}`,n&&`${We}-reverse`],h=setTimeout(()=>m(o,sn),i);z(o,[sn,bi],({type:u})=>{clearTimeout(h),u===bi?a():r(o),c(o,"animationDuration",""),_(o,l)},{self:!0}),c(o,"animationDuration",`${i}ms`),S(o,l)})))}const Dt={in:nn,out(t,e,i,s){return nn(t,e,i,s,!0)},inProgress(t){return $(t,We)},cancel(t){m(t,bi)}};function kr(t){if(document.readyState!=="loading"){t();return}z(document,"DOMContentLoaded",t)}function H(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function on(t){return t=y(t),t&&(t.innerHTML=""),t}function $t(t,e){return J(e)?y(t).innerHTML:q(on(t),e)}const Sr=$i("prepend"),q=$i("append"),wi=$i("before"),xi=$i("after");function $i(t){return function(e,i){var s;const n=T(L(i)?Pt(i):i);return(s=y(e))==null||s[t](...n),rn(n)}}function et(t){T(t).forEach(e=>e.remove())}function qe(t,e){for(e=R(wi(t,e));e.firstElementChild;)e=e.firstElementChild;return q(e,t),e}function ns(t,e){return T(T(t).map(i=>i.hasChildNodes()?qe(oe(i.childNodes),e):q(i,e)))}function je(t){T(t).map(M).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const Ir=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Pt(t){const e=Ir.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),rn(i.content.childNodes)}function rn(t){return t.length>1?t:t[0]}function Bt(t,e){if(re(t))for(e(t),t=t.firstElementChild;t;)Bt(t,e),t=t.nextElementSibling}function y(t,e){return an(t)?R(Pt(t)):Ji(t,e)}function B(t,e){return an(t)?T(Pt(t)):Le(t,e)}function an(t){return L(t)&&kt(t.trim(),"<")}const Yt={width:["left","right"],height:["top","bottom"]};function g(t){const e=re(t)?R(t).getBoundingClientRect():{height:it(t),width:yi(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function C(t,e){e&&c(t,{left:0,top:0});const i=g(t);if(t){const{scrollY:s,scrollX:n}=jt(t),o={height:s,width:n};for(const r in Yt)for(const a of Yt[r])i[a]+=o[r]}if(!e)return i;for(const s of["left","top"])c(t,s,e[s]-i[s])}function os(t){let{top:e,left:i}=C(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:o}=R(t);let r=o||n;for(;r&&(r===s||r===n)&&c(r,"position")==="static";)r=r.parentNode;if(re(r)){const a=C(r);e-=a.top+I(c(r,"borderTopWidth")),i-=a.left+I(c(r,"borderLeftWidth"))}return{top:e-I(c(t,"marginTop")),left:i-I(c(t,"marginLeft"))}}function Re(t){t=R(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+I(c(t,"borderTopWidth")),e[1]+=t.offsetLeft+I(c(t,"borderLeftWidth")),c(t,"position")==="fixed"){const i=jt(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const it=ln("height"),yi=ln("width");function ln(t){const e=qt(t);return(i,s)=>{if(J(s)){if(ci(i))return i[`inner${e}`];if(Me(i)){const n=i.documentElement;return Math.max(n[`offset${e}`],n[`scroll${e}`])}return i=R(i),s=c(i,t),s=s==="auto"?i[`offset${e}`]:I(s)||0,s-we(i,t)}else return c(i,t,!s&&s!==0?"":+s+we(i,t)+"px")}}function we(t,e,i="border-box"){return c(t,"boxSizing")===i?Ut(Yt[e],s=>I(c(t,`padding-${s}`))+I(c(t,`border-${s}-width`))):0}function ki(t){for(const e in Yt)for(const i in Yt[e])if(Yt[e][i]===t)return Yt[e][1-i];return t}function X(t,e="width",i=window,s=!1){return L(t)?Ut(Tr(t),n=>{const o=Pr(n);return o?_r(o==="vh"?Ar():o==="vw"?yi(jt(i)):s?i[`offset${qt(e)}`]:g(i)[e],n):n}):I(t)}const Er=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,Tr=ft(t=>t.toString().replace(/\s/g,"").match(Er)||[]),Cr=/(?:v[hw]|%)$/,Pr=ft(t=>(t.match(Cr)||[])[0]);function _r(t,e){return t*I(e)/100}let Ue,xe;function Ar(){return Ue||(xe||(xe=y("<div>"),c(xe,{height:"100vh",position:"fixed"}),x(window,"resize",()=>Ue=null)),q(document.body,xe),Ue=xe.clientHeight,et(xe),Ue)}const Nt={read:Mr,write:Or,clear:Dr,flush:cn},Si=[],Ii=[];function Mr(t){return Si.push(t),as(),t}function Or(t){return Ii.push(t),as(),t}function Dr(t){un(Si,t),un(Ii,t)}let rs=!1;function cn(){hn(Si),hn(Ii.splice(0)),rs=!1,(Si.length||Ii.length)&&as()}function as(){rs||(rs=!0,queueMicrotask(cn))}function hn(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function un(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class dn{init(){this.positions=[];let e;this.unbind=x(document,"mousemove",i=>e=wt(i)),this.interval=setInterval(()=>{e&&(this.positions.push(e),this.positions.length>5&&this.positions.shift())},50)}cancel(){var e;(e=this.unbind)==null||e.call(this),clearInterval(this.interval)}movesTo(e){if(!this.positions||this.positions.length<2)return!1;const i=g(e),{left:s,right:n,top:o,bottom:r}=i,[a]=this.positions,l=Rt(this.positions),h=[a,l];return pi(l,i)?!1:[[{x:s,y:o},{x:n,y:r}],[{x:s,y:r},{x:n,y:o}]].some(d=>{const f=Br(h,d);return f&&pi(f,i)})}}function Br([{x:t,y:e},{x:i,y:s}],[{x:n,y:o},{x:r,y:a}]){const l=(a-o)*(i-t)-(r-n)*(s-e);if(l===0)return!1;const h=((r-n)*(e-o)-(a-o)*(t-n))/l;return h<0?!1:{x:t+h*(i-t),y:e+h*(s-e)}}function fn(t,e,i={},{intersecting:s=!0}={}){const n=new IntersectionObserver(s?(o,r)=>{o.some(a=>a.isIntersecting)&&e(o,r)}:e,i);for(const o of T(t))n.observe(o);return n}const Nr=Gt&&window.ResizeObserver;function Ve(t,e,i={box:"border-box"}){if(Nr)return pn(ResizeObserver,t,e,i);const s=[x(window,"load resize",e),x(document,"loadedmetadata load",e,!0)];return{disconnect:()=>s.map(n=>n())}}function ls(t){return{disconnect:x([window,window.visualViewport],"resize",t)}}function cs(t,e,i){return pn(MutationObserver,t,e,i)}function pn(t,e,i,s){const n=new t(i);for(const o of T(e))n.observe(o,s);return n}function hs(t){ds(t)&&fs(t,{func:"playVideo",method:"play"}),us(t)&&t.play().catch(A)}function gn(t){ds(t)&&t[Ei]&&fs(t,{func:"pauseVideo",method:"pause"}),us(t)&&t.pause()}function mn(t){ds(t)&&fs(t,{func:"mute",method:"setVolume",value:0}),us(t)&&(t.muted=!0)}function us(t){return H(t,"video")}function ds(t){return H(t,"iframe")&&(vn(t)||bn(t))}function vn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function bn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function fs(t,e){await Fr(t),wn(t,e)}function wn(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const Ei="_ukPlayer";let zr=0;function Fr(t){if(t[Ei])return t[Ei];const e=vn(t),i=bn(t),s=++zr;let n;return t[Ei]=new Promise(o=>{e&&z(t,"load",()=>{const r=()=>wn(t,{event:"listening",id:s});n=setInterval(r,100),r()}),z(window,"message",o,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===s&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===s}catch{}}),t.src=`${t.src}${v(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(n))}function Ge(t,e=0,i=0){return W(t)?fi(...Jt(t).map(s=>{const{top:n,left:o,bottom:r,right:a}=ot(s);return{top:n-e,left:o-i,bottom:r+e,right:a+i}}).concat(C(t))):!1}function xn(t,{offset:e=0}={}){const i=W(t)?Xt(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:h,scrollHeight:u,offsetHeight:d}=a,f=ot(a),b=u-f.height,{height:w,top:p}=i[l-1]?ot(i[l-1]):C(t);let k=Math.ceil(p-f.top-e+h);return e>0&&d<w+e?k+=e:e=0,k>b?(e-=k-b,k=b):k<0&&(e-=k,k=0),()=>s(a,k-h,t,b).then(r)},()=>Promise.resolve())();function s(r,a,l,h){return new Promise(u=>{const d=r.scrollTop,f=n(Math.abs(a)),b=Date.now(),w=ms(r)===r,p=C(l).top+(w?0:d);let k=0,U=15;(function st(){const gt=o(V((Date.now()-b)/f));let mt=0;i[0]===r&&d+a<h&&(mt=C(l).top+(w?0:r.scrollTop)-p-g(ps(l)).height),c(r,"scrollBehavior")!=="auto"&&c(r,"scrollBehavior","auto"),r.scrollTop=d+(a+mt)*gt,c(r,"scrollBehavior",""),gt===1&&(k===mt||!U--)?u():(k=mt,requestAnimationFrame(st))})()})}function n(r){return 40*Math.pow(r,.375)}function o(r){return .5*(1-Math.cos(Math.PI*r))}}function Ti(t,e=0,i=0){if(!W(t))return 0;const s=zt(t,!0),{scrollHeight:n,scrollTop:o}=s,{height:r}=ot(s),a=n-r,l=Re(t)[0]-Re(s)[0],h=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return h<u?V((o-h)/(u-h)):1}function Xt(t,e=!1,i=[]){const s=ms(t);let n=ge(t).reverse();n=n.slice(n.indexOf(s)+1);const o=St(n,r=>c(r,"position")==="fixed");return~o&&(n=n.slice(o)),[s].concat(n.filter(r=>c(r,"overflow").split(" ").some(a=>v(["auto","scroll",...i],a))&&(!e||r.scrollHeight>ot(r).height))).reverse()}function zt(...t){return Xt(...t)[0]}function Jt(t){return Xt(t,!1,["hidden","clip"])}function ot(t){const e=jt(t),i=ms(t),s=!hi(t)||t.contains(i);if(s&&e.visualViewport){let{height:l,width:h,scale:u,pageTop:d,pageLeft:f}=e.visualViewport;return l=Math.round(l*u),h=Math.round(h*u),{height:l,width:h,top:d,left:f,bottom:d+l,right:f+h}}let n=C(s?e:t);if(c(t,"display")==="inline")return n;const{body:o,documentElement:r}=e.document,a=s?i===r||i.clientHeight<o.clientHeight?i:o:t;for(let[l,h,u,d]of[["width","x","left","right"],["height","y","top","bottom"]]){const f=n[l]%1;n[u]+=I(c(a,`border-${u}-width`)),n[l]=n[h]=a[`client${qt(l)}`]-(f?f<.5?-f:1-f:0),n[d]=n[l]+n[u]}return n}function ps(t){const{document:e}=jt(t);t=t||e.body;const{left:i,width:s,top:n}=g(t);for(const o of n?[0,n]:[0]){let r;for(const a of e.elementsFromPoint(i+s/2,o))!a.contains(t)&&!$(a,"uk-togglable-leave")&&(gs(a,"fixed")&&$n(ge(t).reverse().find(l=>!l.contains(a)&&!gs(l,"static")))<$n(a)||gs(a,"sticky")&&(!t||M(a).contains(t)))&&(!r||g(r).height<g(a).height)&&(r=a);if(r)return r}}function $n(t){return I(c(t,"zIndex"))}function gs(t,e){return c(t,"position")===e}function ms(t){return jt(t).document.scrollingElement}const lt=[["width","x","left","right"],["height","y","top","bottom"]];function yn(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},Q(e)||(e=[e,e]),C(t,kn(t,e,i))}function kn(t,e,i){const s=Sn(t,e,i),{boundary:n,viewportOffset:o=0,placement:r}=i;let a=s;for(const[l,[h,,u,d]]of Object.entries(lt)){const f=Hr(t,e[l],o,n,l);if(Ci(s,f,l))continue;let b=0;if(r[l]==="flip"){const w=i.attach.target[l];if(w===d&&s[d]<=f[d]||w===u&&s[u]>=f[u])continue;b=Wr(t,e,i,l)[u]-s[u];const p=Lr(t,e[l],o,l);if(!Ci(vs(s,b,l),p,l)){if(Ci(s,p,l))continue;if(i.recursion)return!1;const k=qr(t,e,i);if(k&&Ci(k,p,1-l))return k;continue}}else if(r[l]==="shift"){const w=C(e[l]),{offset:p}=i;b=V(V(s[u],f[u],f[d]-s[h]),w[u]-s[h]+p[l],w[d]-p[l])-s[u]}a=vs(a,b,l)}return a}function Sn(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=C(t);for(const[r,[a,,l,h]]of Object.entries(lt)){const u=s.target[r]===s.element[r]?ot(e[r]):C(e[r]);o=vs(o,u[l]-o[l]+In(s.target[r],h,u[a])-In(s.element[r],h,o[a])+ +n[r],r)}return o}function vs(t,e,i){const[,s,n,o]=lt[i],r={...t};return r[n]=t[s]=t[n]+e,r[o]+=e,r}function In(t,e,i){return t==="center"?i/2:t===e?i:0}function Hr(t,e,i,s,n){let o=Tn(...En(t,e).map(ot));return i&&(o[lt[n][2]]+=i,o[lt[n][3]]-=i),s&&(o=Tn(o,C(Q(s)?s[n]:s))),o}function Lr(t,e,i,s){const[n,o,r,a]=lt[s],[l]=En(t,e),h=ot(l);return["auto","scroll"].includes(c(l,`overflow-${o}`))&&(h[r]-=l[`scroll${qt(r)}`],h[a]=h[r]+l[`scroll${qt(n)}`]),h[r]+=i,h[a]-=i,h}function En(t,e){return Jt(e).filter(i=>i.contains(t))}function Tn(...t){let e={};for(const i of t)for(const[,,s,n]of lt)e[s]=Math.max(e[s]||0,i[s]),e[n]=Math.min(...[e[n],i[n]].filter(le));return e}function Ci(t,e,i){const[,,s,n]=lt[i];return t[s]>=e[s]&&t[n]<=e[n]}function Wr(t,e,{offset:i,attach:s},n){return Sn(t,e,{attach:{element:Cn(s.element,n),target:Cn(s.target,n)},offset:jr(i,n)})}function qr(t,e,i){return kn(t,e,{...i,attach:{element:i.attach.element.map(Pn).reverse(),target:i.attach.target.map(Pn).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function Cn(t,e){const i=[...t],s=lt[e].indexOf(t[e]);return~s&&(i[e]=lt[e][1-s%2+2]),i}function Pn(t){for(let e=0;e<lt.length;e++){const i=lt[e].indexOf(t);if(~i)return lt[1-e][i%2+2]}}function jr(t,e){return t=[...t],t[e]*=-1,t}var Rr=Object.freeze({__proto__:null,$:y,$$:B,Animation:Dt,Dimensions:Yi,MouseTracker:dn,Transition:D,addClass:S,after:xi,append:q,apply:Bt,assign:vt,attr:E,before:wi,boxModelAdjust:we,camelize:_e,children:O,clamp:V,createEvent:be,css:c,data:tt,dimensions:g,each:he,empty:on,endsWith:ne,escape:Zi,fastdom:Nt,filter:Fe,find:Ji,findAll:Le,findIndex:St,flipPosition:ki,fragment:Pt,getCoveringElement:ps,getEventPos:wt,getIndex:dt,getTargetedElement:mi,hasAttr:Et,hasClass:$,hasOwn:yt,hasTouch:ue,height:it,html:$t,hyphenate:Wt,inBrowser:Gt,includes:v,index:Ct,intersectRect:fi,isArray:Q,isBoolean:ae,isDocument:Me,isElement:re,isEmpty:ui,isEqual:ce,isFocusable:ze,isFunction:ut,isInView:Ge,isInput:Be,isNode:hi,isNumber:le,isNumeric:bt,isObject:At,isPlainObject:Ae,isRtl:K,isSameSiteAnchor:me,isString:L,isTag:H,isTouch:pt,isUndefined:J,isVisible:W,isVoidElement:Xi,isWindow:ci,last:Rt,matches:P,memoize:ft,mute:mn,noop:A,observeIntersection:fn,observeMutation:cs,observeResize:Ve,observeViewportResize:ls,off:ve,offset:C,offsetPosition:Re,offsetViewport:ot,on:x,once:z,overflowParents:Jt,parent:M,parents:ge,pause:gn,pick:di,play:hs,pointInRect:pi,pointerCancel:De,pointerDown:at,pointerEnter:Mt,pointerLeave:Ot,pointerMove:fe,pointerUp:Tt,position:os,positionAt:yn,prepend:Sr,propName:vi,query:Z,queryAll:He,ready:kr,remove:et,removeAttr:Oe,removeClass:_,replaceClass:gi,resetProps:xt,scrollIntoView:xn,scrollParent:zt,scrollParents:Xt,scrolledOver:Ti,selFocusable:Ne,selInput:pe,sortBy:Gs,startsWith:kt,sumBy:Ut,swap:Vi,toArray:oe,toBoolean:Ui,toEventTargets:ts,toFloat:I,toNode:R,toNodes:T,toNumber:It,toPx:X,toWindow:jt,toggleClass:F,trigger:m,ucfirst:qt,uniqueBy:Ys,unwrap:je,width:yi,wrapAll:qe,wrapInner:ns}),nt={connected(){S(this.$el,this.$options.id)}};const Ur=["days","hours","minutes","seconds"];var Vr={mixins:[nt],props:{date:String,clsWrapper:String,role:String,reload:Boolean},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer",reload:!1},connected(){this.$el.role=this.role,this.date=I(Date.parse(this.$props.date)),this.started=this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el:()=>document,handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update()},stop(){this.timer&&(clearInterval(this.timer),m(this.$el,"countdownstop"),this.timer=null)},update(){const t=Gr(this.date);t.total?this.timer||(this.started=!0,this.timer=setInterval(this.update,1e3),m(this.$el,"countdownstart")):(this.stop(),this.end||(m(this.$el,"countdownend"),this.end=!0,this.reload&&this.started&&window.location.reload()));for(const e of Ur){const i=y(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let s=Math.trunc(t[e]).toString().padStart(2,"0");i.textContent!==s&&(s=s.split(""),s.length!==i.children.length&&$t(i,s.map(()=>"<span></span>").join("")),s.forEach((n,o)=>i.children[o].textContent=n))}}}};function Gr(t){const e=Math.max(0,t-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}const G={};G.events=G.watch=G.observe=G.created=G.beforeConnect=G.connected=G.beforeDisconnect=G.disconnected=G.destroy=bs,G.args=function(t,e){return e!==!1&&bs(e||t)},G.update=function(t,e){return Gs(bs(t,ut(e)?{read:e}:e),"order")},G.props=function(t,e){if(Q(e)){const i={};for(const s of e)i[s]=String;e=i}return G.methods(t,e)},G.computed=G.methods=function(t,e){return e?t?{...t,...e}:e:t},G.i18n=G.data=function(t,e,i){return i?_n(t,e,i):e?t?function(s){return _n(t,e,s)}:e:t};function _n(t,e,i){return G.computed(ut(t)?t.call(i,i):t,ut(e)?e.call(i,i):e)}function bs(t,e){return t=t&&!Q(t)?[t]:t,e?t?t.concat(e):Q(e)?e:[e]:t}function Yr(t,e){return J(e)?t:e}function Ye(t,e,i){const s={};if(ut(e)&&(e=e.options),e.extends&&(t=Ye(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=Ye(t,o,i);for(const o in t)n(o);for(const o in e)yt(t,o)||n(o);function n(o){s[o]=(G[o]||Yr)(t[o],e[o],i)}return s}function $e(t,e=[]){try{return t?kt(t,"{")?JSON.parse(t):e.length&&!v(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,o]=s.split(/:(.*)/);return n&&!J(o)&&(i[n.trim()]=o.trim()),i},{}):{}}catch{return{}}}function ws(t,e){return t===Boolean?Ui(e):t===Number?It(e):t==="list"?Jr(e):t===Object&&L(e)?$e(e):t?t(e):e}const Xr=/,(?![^(]*\))/;function Jr(t){return Q(t)?t:L(t)?t.split(Xr).map(e=>bt(e)?It(e):Ui(e.trim())):[t]}function Kr(t){t._data={},t._updates=[...t.$options.update||[]],t._disconnect.push(()=>t._updates=t._data=null)}function Zr(t,e){t._updates.unshift(e)}function Xe(t,e="update"){t._connected&&t._updates.length&&(t._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,Nt.read(()=>{t._connected&&Qr(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function Qr(t,e){for(const{read:i,write:s,events:n=[]}of t._updates){if(!e.has("update")&&!n.some(r=>e.has(r)))continue;let o;i&&(o=i.call(t,t._data,e),o&&Ae(o)&&vt(t._data,o)),s&&o!==!1&&Nt.write(()=>{t._connected&&s.call(t,t._data,e)})}}function ct(t){return Ze(Ve,t,"resize")}function Ft(t){return Ze(fn,t)}function Je(t){return Ze(cs,t)}function Pi(t={}){return Ft({handler:function(e,i){const{targets:s=this.$el,preload:n=5}=t;for(const o of T(ut(s)?s(this):s))B('[loading="lazy"]',o).slice(0,n-1).forEach(r=>Oe(r,"loading"));for(const o of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(o)},...t})}function xs(t){return Ze((e,i)=>ls(i),t,"resize")}function Ke(t){return Ze((e,i)=>({disconnect:x(ea(e),"scroll",i,{passive:!0})}),t,"scroll")}function An(t){return{observe(e,i){return{observe:A,unobserve:A,disconnect:x(e,at,i,{passive:!0})}},handler(e){if(!pt(e))return;const i=wt(e),s="tagName"in e.target?e.target:M(e.target);z(document,`${Tt} ${De} scroll`,n=>{const{x:o,y:r}=wt(n);(n.type!=="scroll"&&s&&o&&Math.abs(i.x-o)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{m(s,"swipe"),m(s,`swipe${ta(i.x,i.y,o,r)}`)})})},...t}}function Ze(t,e,i){return{observe:t,handler(){Xe(this,i)},...e}}function ta(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}function ea(t){return T(t).map(e=>{const{ownerDocument:i}=e,s=zt(e,!0);return s===i.scrollingElement?i:s})}var Mn={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},observe:[Je({options:{childList:!0}}),Je({options:{attributes:!0,attributeFilter:["style"]}}),ct({handler(t){for(const{target:e,borderBoxSize:[{inlineSize:i,blockSize:s}]}of t)if(e===this.$el&&!i&&!s)return;this.$emit("resize")},target:({$el:t})=>[t,...O(t)]})],update:{read(){return{rows:$s(O(this.$el))}},write({rows:t}){for(const e of t)for(const i of e)F(i,this.margin,t[0]!==e),F(i,this.firstColumn,e[K?e.length-1:0]===i)},events:["resize"]}};function $s(t){const e=[[]],i=t.some((s,n)=>n&&t[n-1].offsetParent!==s.offsetParent);for(const s of t){if(!W(s))continue;const n=ys(s,i);for(let o=e.length-1;o>=0;o--){const r=e[o];if(!r[0]){r.push(s);break}const a=ys(r[0],i);if(n.top>=a.bottom-1&&n.top!==a.top){e.push([s]);break}if(n.bottom-1>a.top||n.top===a.top){let l=r.length-1;for(;l>=0;l--){const h=ys(r[l],i);if(n.left>=h.left)break}r.splice(l+1,0,s);break}if(o===0){e.unshift([s]);break}}}return e}function ys(t,e=!1){let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:o}=t;return e&&([i,s]=Re(t)),{top:i,left:s,bottom:i+n,right:s+o}}function Qe(){return new Promise(t=>requestAnimationFrame(t))}function ye(t){return new Promise(e=>setTimeout(e,t))}const ks="uk-transition-leave",Ss="uk-transition-enter";function On(t,e,i,s=0){const n=Is(e,!0),o={opacity:1},r={opacity:0},a=()=>n===Is(e),l=d=>()=>a()?d():Promise.reject(),h=l(async()=>{S(e,ks),await(s?Bn(e).reduce(async(d,f,b,w)=>{if(await d,!Ge(f)||!a()){c(f,r);return}await ye(s);const p=D.start(f,r,i/2,"ease");w.length-1===b&&await p},Promise.resolve()):D.start(e,r,i/2,"ease")),_(e,ks)}),u=l(async()=>{const d=it(e);S(e,Ss),t(),c(s?O(e):e,r),it(e,d),await ye(),it(e,"");const f=it(e);c(e,"alignContent","flex-start"),it(e,d);let b=[],w=i/2;if(s){const p=Bn(e);c(O(e),r),b=p.reduce(async(k,U,st,gt)=>{if(await k,!Ge(U)||!a()){xt(U,o);return}await ye(s);const mt=D.start(U,o,i/2,"ease").then(()=>a()&&xt(U,o));gt.length-1===st&&await mt},Promise.resolve()),w+=p.length*s}if(!s||d!==f){const p={height:f,...s?{}:o};b.push(D.start(e,p,w,"ease"))}await Promise.all(b),_(e,Ss),a()&&(xt(e,{height:"",alignContent:"",...o}),delete e.dataset.transition)});return $(e,ks)?Dn(e).then(u):$(e,Ss)?Dn(e).then(h).then(u):h().then(u)}function Is(t,e){return e&&(t.dataset.transition=1+Is(t)),It(t.dataset.transition)||0}function Dn(t){return Promise.all(O(t).filter(D.inProgress).map(e=>new Promise(i=>z(e,"transitionend transitioncanceled",i))))}function Bn(t){return $s(O(t)).flat().filter(W)}async function ia(t,e,i){await Qe();let s=O(e);const n=s.map(p=>Nn(p,!0)),o={...c(e,["height","padding"]),display:"block"},r=s.filter(p=>Ge(p)),a=s.concat(e);await Promise.all(a.map(D.cancel)),c(a,"transitionProperty","none"),await t();const l=O(e).filter(p=>!v(s,p));s=s.concat(l),await Promise.resolve(),c(a,"transitionProperty","");const h=E(e,"style"),u=c(e,["height","padding"]),[d,f]=sa(e,s,n),b=s.map(p=>({style:E(p,"style")}));r.push(...s.filter(p=>Ge(p))),s.forEach((p,k)=>f[k]&&c(p,f[k])),c(e,o),m(e,"scroll"),await Qe();const w=s.map((p,k)=>{if(M(p)===e&&r.includes(p))return D.start(p,d[k],i,"ease",!l.includes(p))}).concat(D.start(e,u,i,"ease",!0));try{await Promise.all(w),s.forEach((p,k)=>{E(p,b[k]),M(p)===e&&c(p,"display",d[k].opacity===0?"none":"")}),E(e,"style",h)}catch{E(s,"style",""),xt(e,o)}}function Nn(t,e){const i=c(t,"zIndex");return W(t)?{display:"",opacity:e?c(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?Ct(t):i,...zn(t)}:!1}function sa(t,e,i){const s=e.map((o,r)=>M(o)&&r in i?i[r]?W(o)?zn(o):{opacity:0}:{opacity:W(o)?1:0}:!1),n=s.map((o,r)=>{const a=M(e[r])===t&&(i[r]||Nn(e[r]));if(!a)return!1;if(!o)delete a.opacity;else if(!("opacity"in o)){const{opacity:l}=a;l%1?o.opacity=1:delete a.opacity}return a});return[s,n]}function zn(t){const{height:e,width:i}=g(t);let{top:s,left:n}=os(t);const o=ot(t.ownerDocument);return s=V(s,o.top-e-o.height,o.bottom+o.height),n=V(n,o.left-i-o.width,o.right+o.width),{height:e,width:i,top:s,left:n,transform:"",...c(t,["marginTop","marginLeft"])}}var Fn={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return(i==="fade"?On:i==="delayed-fade"?(...n)=>On(...n,40):i?ia:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(A)}}};function _t(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}const N={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var na={mixins:[Fn],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{children:({target:t},e)=>B(`${t} > *`,e),toggles:({attrItem:t},e)=>B(`[${t}],[data-${t}]`,e)},watch:{toggles(t){this.updateState();const e=B(this.selActive,this.$el);for(const i of t){this.selActive!==!1&&F(i,this.cls,v(e,i));const s=ca(i);H(s,"a")&&(s.role="button")}},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate:({attrItem:t})=>`[${t}],[data-${t}]`,handler(t){t.type==="keydown"&&t.keyCode!==N.SPACE||t.target.closest("a,button")&&(_t(t),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=Ln(t,this.attrItem,this.getState());oa(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>$(t,this.cls)).reduce((t,e)=>Ln(e,this.attrItem,t),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},m(this.$el,"beforeFilter",[this,t]);for(const i of this.toggles)F(i,this.cls,aa(i,this.attrItem,t));await Promise.all(B(this.target,this.$el).map(i=>{const s=()=>ra(t,i,O(i));return e?this.animate(s,i):s()})),m(this.$el,"afterFilter",[this])},updateState(){Nt.write(()=>this.setState(this.getState(),!1))}}};function Hn(t,e){return $e(tt(t,e),["filter"])}function oa(t,e){return["filter","sort"].every(i=>ce(t[i],e[i]))}function ra(t,e,i){for(const o of i)c(o,"display",Object.values(t.filter).every(r=>!r||P(o,r))?"":"none");const[s,n]=t.sort;if(s){const o=la(i,s,n);ce(o,i)||q(e,o)}}function Ln(t,e,i){const{filter:s,group:n,sort:o,order:r="asc"}=Hn(t,e);return(s||J(o))&&(n?s?(delete i.filter[""],i.filter[n]=s):(delete i.filter[n],(ui(i.filter)||""in i.filter)&&(i.filter={"":s||""})):i.filter={"":s||""}),J(o)||(i.sort=[o,r]),i}function aa(t,e,{filter:i={"":""},sort:[s,n]}){const{filter:o="",group:r="",sort:a,order:l="asc"}=Hn(t,e);return J(a)?r in i&&o===i[r]||!o&&r&&!(r in i)&&!i[""]:s===a&&n===l}function la(t,e,i){return[...t].sort((s,n)=>(tt(s,e)||"").localeCompare(tt(n,e),void 0,{numeric:!0})*(i==="asc"||-1))}function ca(t){return y("a,button",t)||t}var ha={args:"dataSrc",props:{dataSrc:String,sources:String,margin:String,target:String,loading:String},data:{dataSrc:"",sources:!1,margin:"50%",target:!1,loading:"lazy"},connected(){this.loading!=="lazy"?this.load():Ts(this.$el)&&(this.$el.loading="lazy",Es(this.$el))},disconnected(){this.img&&(this.img.onload=""),delete this.img},observe:Ft({handler(t,e){this.load(),e.disconnect()},options:({margin:t})=>({rootMargin:t}),filter:({loading:t})=>t==="lazy",target:({$el:t,$props:e})=>e.target?[t,...He(e.target,t)]:t}),methods:{load(){if(this.img)return this.img;const t=Ts(this.$el)?this.$el:da(this.$el,this.dataSrc,this.sources);return Oe(t,"loading"),Es(this.$el,t.currentSrc),this.img=t}}};function Es(t,e){if(Ts(t)){const i=M(t);(H(i,"picture")?O(i):[t]).forEach(n=>Wn(n,n))}else e&&!v(t.style.backgroundImage,e)&&(c(t,"backgroundImage",`url(${Zi(e)})`),m(t,be("load",!1)))}const ua=["data-src","data-srcset","sizes"];function Wn(t,e){for(const i of ua){const s=tt(t,i);s&&E(e,i.replace(/data-/g,""),s)}}function da(t,e,i){const s=new Image;return qn(s,i),Wn(t,s),s.onload=()=>Es(t,s.currentSrc),s.src=e,s}function qn(t,e){if(e=fa(e),e.length){const i=Pt("<picture>");for(const s of e){const n=Pt("<source>");E(n,s),q(i,n)}q(i,t)}}function fa(t){if(!t)return[];if(kt(t,"["))try{t=JSON.parse(t)}catch{t=[]}else t=$e(t);return Q(t)||(t=[t]),t.filter(e=>!ui(e))}function Ts(t){return H(t,"img")}let Cs;function jn(t){const e=x(t,"touchstart",n=>{if(n.targetTouches.length!==1||P(n.target,'input[type="range"]'))return;let o=wt(n).y;const r=x(t,"touchmove",a=>{const l=wt(a).y;l!==o&&(o=l,Xt(a.target).some(h=>{if(!t.contains(h))return!1;let{scrollHeight:u,clientHeight:d}=h;return d<u})||a.preventDefault())},{passive:!1});z(t,"scroll touchend touchcancel",r,{capture:!0})},{passive:!0});if(Cs)return e;Cs=!0;const{scrollingElement:i}=document,s={overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",scrollbarGutter:yi(window)-i.clientWidth?"stable":""};return c(i,s),()=>{Cs=!1,e(),xt(i,s)}}var ti={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&y(t)}}},Kt={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(e=>kt(t[0],e))},methods:{async toggleElement(t,e,i){try{return await Promise.all(T(t).map(s=>{const n=ae(e)?e:!this.isToggled(s);if(!m(s,`before${n?"show":"hide"}`,[this]))return Promise.reject();const o=(ut(i)?i:i===!1||!this.hasAnimation?pa:this.hasTransition?ga:ma)(s,n,this),r=n?this.clsEnter:this.clsLeave;S(s,r),m(s,n?"show":"hide",[this]);const a=()=>{var l;_(s,r),m(s,n?"shown":"hidden",[this]),n&&((l=B("[autofocus]",s).find(W))==null||l.focus({preventScroll:!0}))};return o?o.then(a,()=>(_(s,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=R(t),$(t,this.clsEnter)?!0:$(t,this.clsLeave)?!1:this.cls?$(t,this.cls.split(" ")[0]):W(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=v(this.cls," ")||e!==$(t,this.cls),i&&F(t,this.cls,v(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),i&&m(t,"toggled",[e,this])}}};function pa(t,e,{_toggle:i}){return Dt.cancel(t),D.cancel(t),i(t,e)}async function ga(t,e,{animation:i,duration:s,velocity:n,transition:o,_toggle:r}){var a;const[l="reveal",h="top"]=((a=i[0])==null?void 0:a.split("-"))||[],u=[["left","right"],["top","bottom"]],d=u[v(u[0],h)?0:1],f=d[1]===h,w=["width","height"][u.indexOf(d)],p=`margin-${d[0]}`,k=`margin-${h}`;let U=g(t)[w];const st=D.inProgress(t);await D.cancel(t),e&&r(t,!0);const gt=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",p,k].map(ar=>[ar,t.style[ar]])),mt=g(t),Vs=I(c(t,p)),nr=I(c(t,k)),se=mt[w]+nr;!st&&!e&&(U+=nr);const[ji]=ns(t,"<div>");c(ji,{boxSizing:"border-box",height:mt.height,width:mt.width,...c(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",k])}),c(t,{padding:0,border:0,minWidth:0,minHeight:0,[k]:0,width:mt.width,height:mt.height,overflow:"hidden",[w]:U});const or=U/se;s=(n*se+s)*(e?1-or:or);const rr={[w]:e?se:0};f&&(c(t,p,se-U+Vs),rr[p]=e?Vs:se+Vs),!f^l==="reveal"&&(c(ji,p,-se+U),D.start(ji,{[p]:e?0:-se},s,o));try{await D.start(t,rr,s,o)}finally{c(t,gt),je(ji.firstChild),e||r(t,!1)}}function ma(t,e,i){const{animation:s,duration:n,_toggle:o}=i;return e?(o(t,!0),Dt.in(t,s[0],n,i.origin)):Dt.out(t,s[1]||s[0],n,i.origin).then(()=>o(t,!1))}const rt=[];var Ps={mixins:[nt,ti,Kt],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},e)=>y(t,e),transitionElement(){return this.panel}},connected(){const t=this.panel||this.$el;t.role=this.role,this.overlay&&(t.ariaModal=!0)},beforeDisconnect(){v(rt,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:t})=>`${t},a[href*="#"]`,handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&me(e)&&!this.$el.contains(y(s))?this.hide():P(e,this.selClose)&&(_t(t),this.hide())}},{name:"toggle",self:!0,handler(t,e){t.defaultPrevented||(t.preventDefault(),this.target=e==null?void 0:e.$el,this.isToggled()===v(rt,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(v(rt,this))return!1;!this.stack&&rt.length?(Promise.all(rt.map(e=>e.hide())).then(this.show),t.preventDefault()):rt.push(this)}},{name:"show",self:!0,handler(){this.stack&&c(this.$el,"zIndex",I(c(this.$el,"zIndex"))+rt.length);const t=[this.overlay&&ba(this),this.overlay&&jn(this.$el),this.bgClose&&wa(this),this.escClose&&xa(this)];z(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),S(document.documentElement,this.clsPage),Un(this.target,!0)}},{name:"shown",self:!0,handler(){ze(this.$el)||(this.$el.tabIndex=-1),P(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){v(rt,this)&&rt.splice(rt.indexOf(this),1),c(this.$el,"zIndex","");const{target:t}=this;rt.some(e=>e.clsPage===this.clsPage)||(_(document.documentElement,this.clsPage),queueMicrotask(()=>{ze(t)&&t.focus({preventScroll:!0})})),Un(t,!1),this.target=null}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},async show(){return this.container&&M(this.$el)!==this.container&&(q(this.container,this.$el),await Qe()),this.toggleElement(this.$el,!0,Rn)},hide(){return this.toggleElement(this.$el,!1,Rn)}}};function Rn(t,e,{transitionElement:i,_toggle:s}){return new Promise((n,o)=>z(t,"show hide",()=>{var r;(r=t._reject)==null||r.call(t),t._reject=o,s(t,e);const a=z(i,"transitionstart",()=>{z(i,"transitionend transitioncancel",n,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),n()},va(c(i,"transitionDuration")))})).then(()=>delete t._reject)}function va(t){return t?ne(t,"ms")?I(t):I(t)*1e3:0}function ba(t){return x(document,"focusin",e=>{Rt(rt)===t&&!t.$el.contains(e.target)&&t.$el.focus()})}function wa(t){return x(document,at,({target:e})=>{Rt(rt)!==t||t.overlay&&!t.$el.contains(e)||!t.panel||t.panel.contains(e)||z(document,`${Tt} ${De} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===Tt&&e===n&&t.hide()},!0)})}function xa(t){return x(document,"keydown",e=>{e.keyCode===27&&Rt(rt)===t&&t.hide()})}function Un(t,e){t!=null&&t.ariaExpanded&&(t.ariaExpanded=e)}var _s={slide:{show(t){return[{transform:j(t*-100)},{transform:j()}]},percent(t){return ei(t)},translate(t,e){return[{transform:j(e*-100*t)},{transform:j(e*100*(1-t))}]}}};function ei(t){return Math.abs(new DOMMatrix(c(t,"transform")).m41/t.offsetWidth)}function j(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function $a(t,e,i,{animation:s,easing:n}){const{percent:o,translate:r,show:a=A}=s,l=a(i),{promise:h,resolve:u}=Vn();return{dir:i,show(d,f=0,b){const w=b?"linear":n;return d-=Math.round(d*V(f,-1,1)),this.translate(f),Zt(e,"itemin",{percent:f,duration:d,timing:w,dir:i}),Zt(t,"itemout",{percent:1-f,duration:d,timing:w,dir:i}),Promise.all([D.start(e,l[1],d,w),D.start(t,l[0],d,w)]).then(()=>{this.reset(),u()},A),h},cancel(){return D.cancel([e,t])},reset(){xt([e,t],l[0])},async forward(d,f=this.percent()){return await this.cancel(),this.show(d,f,!0)},translate(d){this.reset();const f=r(d,i);c(e,f[1]),c(t,f[0]),Zt(e,"itemtranslatein",{percent:d,dir:i}),Zt(t,"itemtranslateout",{percent:1-d,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function Zt(t,e,i){m(t,be(e,!1,!1,i))}function Vn(){let t;return{promise:new Promise(e=>t=e),resolve:t}}var _i={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,n;let o=0;return((n=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:n.replace(/%s/g,()=>e[o++]||""))||""}}},ya={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){E(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){E(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!W(this.$el)||this.draggable&&P(this.$el,":focus-within")&&!P(this.$el,":focus")||this.pauseOnHover&&P(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const Ai={passive:!1,capture:!0},ka="touchstart mousedown",As="touchmove mousemove",Sa="touchend touchcancel mouseup click input scroll";var Ia={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=wt(i);K&&(s.x=-s.x),this.prevPos=ce(s,this.pos)?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:ka,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!pt(t)&&Ea(t.target)||t.target.closest(pe)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:As,el:({list:t})=>t,handler:A,...Ai}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,x(document,As,this.move,Ai),x(document,Sa,this.end,{passive:!0,capture:!0,once:!0}),c(this.list,"userSelect","none")},move(t){const e=this.pos.x-this.drag.x;if(e===0||!this.dragging&&Ta(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,n=Math.abs(e),o=this.getIndex(s+this.dir),r=Gn.call(this,s,o);for(;o!==s&&n>r;)this.drag.x-=r*this.dir,s=o,n-=r,o=this.getIndex(s+this.dir),r=Gn.call(this,s,o);this.percent=n/r;const a=i[s],l=i[o],h=this.index!==o,u=s===o;let d;for(const f of[this.index,this.prevIndex])v([o,s],f)||(m(i[f],"itemhidden",[this]),u&&(d=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||d)&&m(i[this.index],"itemshown",[this]),h&&(this.prevIndex=s,this.index=o,u||(m(a,"beforeitemhide",[this]),m(a,"itemhide",[this])),m(l,"beforeitemshow",[this]),m(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!u&&l)},end(){if(ve(document,As,this.move,Ai),this.dragging)if(setTimeout(x(this.list,"click",t=>t.preventDefault(),Ai)),this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=this.dir<0==this.prevPos.x>this.pos.x;t?(m(this.slides[this.prevIndex],"itemhidden",[this]),m(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}c(this.list,{userSelect:""}),this.drag=this.percent=null}}};function Gn(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function Ea(t){return c(t,"userSelect")!=="none"&&oe(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}function Ta(t,e){return Math.atan2(Math.abs(e.y-t.y),Math.abs(e.x-t.x))*180/Math.PI}function Ca(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,s]of Object.entries(e))Yn(t,s,i);t._initial=!0}function Yn(t,e,i){t._watches.push({name:i,...Ae(e)?e:{handler:e}})}function Pa(t,e){for(const{name:i,handler:s,immediate:n=!0}of t._watches)(t._initial&&n||yt(e,i)&&!ce(e[i],t[i]))&&s.call(t,t[i],e[i]);t._initial=!1}function _a(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)Jn(t,i,e[i])}const Xn={subtree:!0,childList:!0};function Jn(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:n,$el:o}=t;if(!yt(s,e)&&(s[e]=(i.get||i).call(t,n,o),i.observe&&t._computedObserver)){const r=i.observe.call(t,n);t._computedObserver.observe(["~","+","-"].includes(r[0])?o.parentElement:o.getRootNode(),Xn)}return s[e]},set(s){const{_computed:n}=t;n[e]=i.set?i.set.call(t,s):s,J(n[e])&&delete n[e]}})}function Aa(t){t._hasComputed&&(Zr(t,{read:()=>Pa(t,Kn(t)),events:["resize","computed"]}),t._computedObserver=cs(t.$el,()=>Xe(t,"computed"),Xn),t._disconnect.push(()=>{t._computedObserver.disconnect(),t._computedObserver=null,Kn(t)}))}function Kn(t){const e={...t._computed};return t._computed={},e}function Ma(t){for(const e of t.$options.events||[])if(yt(e,"handler"))Zn(t,e);else for(const i in e)Zn(t,{name:i,handler:e[i]})}function Zn(t,{name:e,el:i,handler:s,capture:n,passive:o,delegate:r,filter:a,self:l}){a&&!a.call(t,t)||t._disconnect.push(x(i?i.call(t,t):t.$el,e,r==null?void 0:r.call(t,t),s.bind(t),{passive:o,capture:n,self:l}))}function Oa(t){for(const e of t.$options.observe||[])Da(t,e)}function Da(t,e){let{observe:i,target:s=t.$el,handler:n,options:o,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._disconnect.length}`;ut(s)&&!yt(t,l)&&Jn(t,l,()=>{const d=s.call(t,t);return Q(d)?T(d):d}),n=L(n)?t[n]:n.bind(t),ut(o)&&(o=o.call(t,t));const h=yt(t,l)?t[l]:s,u=i(h,n,o,a);ut(s)&&Q(t[l])&&Yn(t,{handler:Ba(u,o),immediate:!1},l),t._disconnect.push(()=>u.disconnect())}function Ba(t,e){return(i,s)=>{for(const n of s)v(i,n)||(t.unobserve?t.unobserve(n):t.observe&&t.disconnect());for(const n of i)(!v(s,n)||!t.unobserve)&&t.observe(n,e)}}function Na(t){const{$options:e,$props:i}=t,s=Qn(e);vt(i,s);const{computed