UNPKG

uikit

Version:

UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.

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