UNPKG

uikit

Version:

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

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