uikit 3.16.6 → 3.16.7-dev.fcb5a4616
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +2 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +2 -2
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +5 -414
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +194 -1996
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +205 -1993
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +3 -248
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +143 -2429
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +97 -2383
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +3 -408
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +81 -2367
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +85 -78
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +85 -78
- package/dist/js/uikit.min.js +1 -1
- package/package.json +9 -8
- package/src/js/api/app.js +1 -1
- package/src/js/api/boot.js +1 -1
- package/src/js/api/component.js +1 -1
- package/src/js/api/computed.js +1 -1
- package/src/js/api/events.js +1 -1
- package/src/js/api/global.js +43 -43
- package/src/js/api/index.js +5 -5
- package/src/js/api/instance.js +42 -41
- package/src/js/api/observables.js +1 -1
- package/src/js/api/observer.js +9 -1
- package/src/js/api/options.js +1 -1
- package/src/js/api/props.js +1 -1
- package/src/js/api/state.js +1 -1
- package/src/js/api/update.js +1 -1
- package/src/js/api/watch.js +1 -1
- package/src/less/components/dropdown.less +1 -1
- package/src/less/theme/dropdown.less +2 -0
- package/src/scss/components/dropdown.scss +1 -1
- package/src/scss/theme/dropdown.scss +2 -0
- package/src/scss/variables-theme.scss +2 -2
- package/src/scss/variables.scss +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.6 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(i,et){typeof exports=="object"&&typeof module<"u"?module.exports=et(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],et):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlider=et(i.UIkit.util))})(this,function(i){"use strict";var et={connected(){i.addClass(this.$el,this.$options.id)}};const{hasOwnProperty:Hn,toString:qn}=Object.prototype;function S(t,e){return Hn.call(t,e)}const Xn=/\B([A-Z])/g,nt=N(t=>t.replace(Xn,"-$1").toLowerCase()),Yn=/-(\w)/g,st=N(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(Yn,(e,n)=>n.toUpperCase())),L=N(t=>t.charAt(0).toUpperCase()+t.slice(1));function W(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}function Jn(t,e){var n;return(n=t==null?void 0:t.endsWith)==null?void 0:n.call(t,e)}function X(t,e){var n;return(n=t==null?void 0:t.includes)==null?void 0:n.call(t,e)}function Ie(t,e){var n;return(n=t==null?void 0:t.findIndex)==null?void 0:n.call(t,e)}const{isArray:$,from:Gn}=Array,{assign:Mt}=Object;function E(t){return typeof t=="function"}function R(t){return t!==null&&typeof t=="object"}function D(t){return qn.call(t)==="[object Object]"}function Y(t){return R(t)&&t===t.window}function wt(t){return Rt(t)===9}function St(t){return Rt(t)>=1}function rt(t){return Rt(t)===1}function Rt(t){return!Y(t)&&R(t)&&t.nodeType}function _e(t){return typeof t=="boolean"}function b(t){return typeof t=="string"}function Dt(t){return typeof t=="number"}function bt(t){return Dt(t)||b(t)&&!isNaN(t-parseFloat(t))}function Ee(t){return!($(t)?t.length:R(t)&&Object.keys(t).length)}function A(t){return t===void 0}function Lt(t){return _e(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function ot(t){const e=Number(t);return isNaN(e)?!1:e}function I(t){return parseFloat(t)||0}function v(t){return l(t)[0]}function l(t){return St(t)?[t]:Array.from(t||[]).filter(St)}function J(t){if(Y(t))return t;t=v(t);const e=wt(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Wt(t,e){return t===e||R(t)&&R(e)&&Object.keys(t).length===Object.keys(e).length&&xt(t,(n,s)=>n===e[s])}function Kn(t,e,n){return t.replace(new RegExp(`${e}|${n}`,"g"),s=>s===e?n:e)}function Ae(t){return t[t.length-1]}function xt(t,e){for(const n in t)if(e(t[n],n)===!1)return!1;return!0}function Ce(t,e){return t.slice().sort(({[e]:n=0},{[e]:s=0})=>n>s?1:s>n?-1:0)}function zt(t,e){return t.reduce((n,s)=>n+I(E(e)?e(s):s[e]),0)}function Zn(t,e){const n=new Set;return t.filter(({[e]:s})=>n.has(s)?!1:n.add(s))}function Qn(t,e){return e.reduce((n,s)=>({...n,[s]:t[s]}),{})}function G(t,e=0,n=1){return Math.min(Math.max(ot(t)||0,e),n)}function yt(){}function Oe(...t){return[["bottom","top"],["right","left"]].every(([e,n])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[n]:s})=>s))>0)}function jt(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Ft(t,e,n){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(n*t[s]/t[e]):t[s],[e]:n}}function Te(t,e){t={...t};for(const n in t)t=t[n]>e[n]?Ft(t,n,e[n]):t;return t}function Vn(t,e){t=Te(t,e);for(const n in t)t=t[n]<e[n]?Ft(t,n,e[n]):t;return t}const kn={ratio:Ft,contain:Te,cover:Vn};function Un(t,e,n=0,s=!1){e=l(e);const{length:r}=e;return r?(t=bt(t)?ot(t):t==="next"?n+1:t==="previous"?n-1:t==="last"?r-1:e.indexOf(v(t)),s?G(t,0,r-1):(t%=r,t<0?t+r:t)):-1}function N(t){const e=Object.create(null);return n=>e[n]||(e[n]=t(n))}class ts{constructor(){this.promise=new Promise((e,n)=>{this.reject=n,this.resolve=e})}}function z(t,e,n){var s;if(R(e)){for(const r in e)z(t,r,e[r]);return}if(A(n))return(s=v(t))==null?void 0:s.getAttribute(e);for(const r of l(t))E(n)&&(n=n.call(r,z(r,e))),n===null?Bt(r,e):r.setAttribute(e,n)}function Pe(t,e){return l(t).some(n=>n.hasAttribute(e))}function Bt(t,e){l(t).forEach(n=>n.removeAttribute(e))}function Ht(t,e){for(const n of[e,`data-${e}`])if(Pe(t,n))return z(t,n)}const es={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 ns(t){return l(t).some(e=>es[e.tagName.toLowerCase()])}function $t(t){return l(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const qt="input,select,textarea,button";function ss(t){return l(t).some(e=>K(e,qt))}const Ne=`${qt},a[href],[tabindex]`;function rs(t){return K(t,Ne)}function it(t){var e;return(e=v(t))==null?void 0:e.parentElement}function Me(t,e){return l(t).filter(n=>K(n,e))}function K(t,e){return l(t).some(n=>n.matches(e))}function ct(t,e){return rt(t)?t.closest(W(e,">")?e.slice(1):e):l(t).map(n=>ct(n,e)).filter(Boolean)}function It(t,e){return b(e)?!!ct(t,e):v(e).contains(v(t))}function Xt(t,e){const n=[];for(;t=it(t);)(!e||K(t,e))&&n.push(t);return n}function Se(t,e){t=v(t);const n=t?l(t.children):[];return e?Me(n,e):n}function Re(t,e){return e?l(t).indexOf(v(e)):Se(it(t)).indexOf(t)}function De(t){return t=v(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function os(t){if(De(t)){t=v(t);const e=decodeURIComponent(t.hash).substring(1);return document.getElementById(e)||document.getElementsByName(e)[0]}}function is(t,e){return Yt(t,We(t,e))}function cs(t,e){return at(t,We(t,e))}function Yt(t,e){return v(ze(t,v(e),"querySelector"))}function at(t,e){return l(ze(t,v(e),"querySelectorAll"))}const as=/(^|[^\\],)\s*[!>+~-]/,Le=N(t=>t.match(as));function We(t,e=document){return b(t)&&Le(t)||wt(e)?e:e.ownerDocument}const fs=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,us=N(t=>t.replace(fs,"$1 *"));function ze(t,e=document,n){if(!t||!b(t))return t;if(t=us(t),Le(t)){const s=ds(t);t="";for(let r of s){let o=e;if(r[0]==="!"){const c=r.substr(1).trim().split(" ");if(o=ct(it(e),c[0]),r=c.slice(1).join(" ").trim(),!r.length&&s.length===1)return o}if(r[0]==="-"){const c=r.substr(1).trim().split(" "),a=(o||e).previousElementSibling;o=K(a,r.substr(1))?a:null,r=c.slice(1).join(" ")}o&&(t+=`${t?",":""}${ls(o)} ${r}`)}e=document}try{return e[n](t)}catch{return null}}const hs=/.*?[^\\](?:,|$)/g,ds=N(t=>t.match(hs).map(e=>e.replace(/,$/,"").trim()));function ls(t){const e=[];for(;t.parentNode;){const n=z(t,"id");if(n){e.unshift(`#${je(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${Re(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function je(t){return b(t)?CSS.escape(t):""}function j(...t){let[e,n,s,r,o=!1]=Jt(t);r.length>1&&(r=gs(r)),o!=null&&o.self&&(r=ms(r)),s&&(r=ps(s,r));for(const c of n)for(const a of e)a.addEventListener(c,r,o);return()=>Fe(e,n,r,o)}function Fe(...t){let[e,n,,s,r=!1]=Jt(t);for(const o of n)for(const c of e)c.removeEventListener(o,s,r)}function Z(...t){const[e,n,s,r,o=!1,c]=Jt(t),a=j(e,n,s,f=>{const u=!c||c(f);u&&(a(),r(f,u))},o);return a}function F(t,e,n){return Gt(t).every(s=>s.dispatchEvent(Be(e,!0,!0,n)))}function Be(t,e=!0,n=!1,s){return b(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:n,detail:s})),t}function Jt(t){return t[0]=Gt(t[0]),b(t[1])&&(t[1]=t[1].split(" ")),E(t[2])&&t.splice(2,0,!1),t}function ps(t,e){return n=>{const s=t[0]===">"?at(t,n.currentTarget).reverse().filter(r=>It(n.target,r))[0]:ct(n.target,t);s&&(n.current=s,e.call(this,n),delete n.current)}}function gs(t){return e=>$(e.detail)?t(e,...e.detail):t(e)}function ms(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function He(t){return t&&"addEventListener"in t}function vs(t){return He(t)?t:v(t)}function Gt(t){return $(t)?t.map(vs).filter(Boolean):b(t)?at(t):He(t)?[t]:l(t)}function ws(t){return t.pointerType==="touch"||!!t.touches}function qe(t){var e,n;const{clientX:s,clientY:r}=((e=t.touches)==null?void 0:e[0])||((n=t.changedTouches)==null?void 0:n[0])||t;return{x:s,y:r}}const bs={"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 p(t,e,n,s){const r=l(t);for(const o of r)if(b(e)){if(e=Kt(e),A(n))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,bt(n)&&!bs[e]?`${n}px`:n||Dt(n)?n:"",s)}else if($(e)){const c={};for(const a of e)c[a]=p(o,a);return c}else R(e)&&(s=n,xt(e,(c,a)=>p(o,a,c,s)));return r[0]}const Kt=N(t=>xs(t));function xs(t){if(W(t,"--"))return t;t=nt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const n of["webkit","moz"]){const s=`-${n}-${t}`;if(s in e)return s}}function Q(t,...e){Je(t,e,"add")}function Zt(t,...e){Je(t,e,"remove")}function Xe(t,e){z(t,"class",n=>(n||"").replace(new RegExp(`\\b${e}\\b\\s?`,"g"),""))}function ys(t,...e){e[0]&&Zt(t,e[0]),e[1]&&Q(t,e[1])}function Ye(t,e){return[e]=Qt(e),!!e&&l(t).some(n=>n.classList.contains(e))}function $s(t,e,n){const s=Qt(e);A(n)||(n=!!n);for(const r of l(t))for(const o of s)r.classList.toggle(o,n)}function Je(t,e,n){e=e.reduce((s,r)=>s.concat(Qt(r)),[]);for(const s of l(t))s.classList[n](...e)}function Qt(t){return String(t).split(/[ ,]/).filter(Boolean)}function Is(t,e,n=400,s="linear"){return n=Math.round(n),Promise.all(l(t).map(r=>new Promise((o,c)=>{for(const f in e){const u=p(r,f);u===""&&p(r,f,u)}const a=setTimeout(()=>F(r,"transitionend"),n);Z(r,"transitionend transitioncanceled",({type:f})=>{clearTimeout(a),Zt(r,"uk-transition"),p(r,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),f==="transitioncanceled"?c():o(r)},{self:!0}),Q(r,"uk-transition"),p(r,{transitionProperty:Object.keys(e).map(Kt).join(","),transitionDuration:`${n}ms`,transitionTimingFunction:s,...e})})))}const _s={start:Is,async stop(t){F(t,"transitionend"),await Promise.resolve()},async cancel(t){F(t,"transitioncanceled"),await Promise.resolve()},inProgress(t){return Ye(t,"uk-transition")}},ft="uk-animation-";function Ge(t,e,n=200,s,r){return Promise.all(l(t).map(o=>new Promise((c,a)=>{F(o,"animationcanceled");const f=setTimeout(()=>F(o,"animationend"),n);Z(o,"animationend animationcanceled",({type:u})=>{clearTimeout(f),u==="animationcanceled"?a():c(o),p(o,"animationDuration",""),Xe(o,`${ft}\\S*`)},{self:!0}),p(o,"animationDuration",`${n}ms`),Q(o,e,ft+(r?"leave":"enter")),W(e,ft)&&(s&&Q(o,`uk-transform-origin-${s}`),r&&Q(o,`${ft}reverse`))})))}const Es=new RegExp(`${ft}(enter|leave)`),As={in:Ge,out(t,e,n,s){return Ge(t,e,n,s,!0)},inProgress(t){return Es.test(z(t,"class"))},cancel(t){F(t,"animationcanceled")}};function Cs(t){if(document.readyState!=="loading"){t();return}Z(document,"DOMContentLoaded",t)}function Vt(t,...e){return e.some(n=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===n.toLowerCase()})}function Ke(t){return t=B(t),t.innerHTML="",t}function Os(t,e){return A(e)?B(t).innerHTML:ut(Ke(t),e)}const Ts=_t("prepend"),ut=_t("append"),Ze=_t("before"),Ps=_t("after");function _t(t){return function(e,n){var s;const r=l(b(n)?Et(n):n);return(s=B(e))==null||s[t](...r),Ve(r)}}function kt(t){l(t).forEach(e=>e.remove())}function Qe(t,e){for(e=v(Ze(t,e));e.firstChild;)e=e.firstChild;return ut(e,t),e}function Ns(t,e){return l(l(t).map(n=>n.hasChildNodes()?Qe(l(n.childNodes),e):ut(n,e)))}function Ms(t){l(t).map(it).filter((e,n,s)=>s.indexOf(e)===n).forEach(e=>e.replaceWith(...e.childNodes))}const Ss=/^\s*<(\w+|!)[^>]*>/,Rs=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Et(t){const e=Rs.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("div");return Ss.test(t)?n.insertAdjacentHTML("beforeend",t.trim()):n.textContent=t,Ve(n.childNodes)}function Ve(t){return t.length>1?t:t[0]}function Ut(t,e){if(rt(t))for(e(t),t=t.firstElementChild;t;){const n=t.nextElementSibling;Ut(t,e),t=n}}function B(t,e){return ke(t)?v(Et(t)):Yt(t,e)}function te(t,e){return ke(t)?l(Et(t)):at(t,e)}function ke(t){return b(t)&&W(t.trim(),"<")}const H={width:["left","right"],height:["top","bottom"]};function ee(t){const e=rt(t)?v(t).getBoundingClientRect():{height:tn(t),width:se(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 O(t,e){const n=ee(t);if(t){const{scrollY:r,scrollX:o}=J(t),c={height:r,width:o};for(const a in H)for(const f of H[a])n[f]+=c[a]}if(!e)return n;const s=p(t,"position");xt(p(t,["left","top"]),(r,o)=>p(t,o,e[o]-n[o]+I(s==="absolute"&&r==="auto"?Ue(t)[o]:r)))}function Ue(t){let{top:e,left:n}=O(t);const{ownerDocument:{body:s,documentElement:r},offsetParent:o}=v(t);let c=o||r;for(;c&&(c===s||c===r)&&p(c,"position")==="static";)c=c.parentNode;if(rt(c)){const a=O(c);e-=a.top+I(p(c,"borderTopWidth")),n-=a.left+I(p(c,"borderLeftWidth"))}return{top:e-I(p(t,"marginTop")),left:n-I(p(t,"marginLeft"))}}function ne(t){t=v(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+I(p(t,"borderTopWidth")),e[1]+=t.offsetLeft+I(p(t,"borderLeftWidth")),p(t,"position")==="fixed"){const n=J(t);return e[0]+=n.scrollY,e[1]+=n.scrollX,e}return e}const tn=en("height"),se=en("width");function en(t){const e=L(t);return(n,s)=>{if(A(s)){if(Y(n))return n[`inner${e}`];if(wt(n)){const r=n.documentElement;return Math.max(r[`offset${e}`],r[`scroll${e}`])}return n=v(n),s=p(n,t),s=s==="auto"?n[`offset${e}`]:I(s)||0,s-re(n,t)}else return p(n,t,!s&&s!==0?"":+s+re(n,t)+"px")}}function re(t,e,n="border-box"){return p(t,"boxSizing")===n?zt(H[e].map(L),s=>I(p(t,`padding${s}`))+I(p(t,`border${s}Width`))):0}function Ds(t){for(const e in H)for(const n in H[e])if(H[e][n]===t)return H[e][1-n];return t}function Ls(t,e="width",n=window,s=!1){return b(t)?zt(zs(t),r=>{const o=Fs(r);return o?Bs(o==="vh"?Hs():o==="vw"?se(J(n)):s?n[`offset${L(e)}`]:ee(n)[e],r):r}):I(t)}const Ws=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,zs=N(t=>t.toString().replace(/\s/g,"").match(Ws)||[]),js=/(?:v[hw]|%)$/,Fs=N(t=>(t.match(js)||[])[0]);function Bs(t,e){return t*I(e)/100}let ht,V;function Hs(){return ht||(V||(V=B("<div>"),p(V,{height:"100vh",position:"fixed"}),j(window,"resize",()=>ht=null)),ut(document.body,V),ht=V.clientHeight,kt(V),ht)}const dt=typeof window<"u",qs=dt&&document.dir==="rtl",k=dt&&"ontouchstart"in window,U=dt&&window.PointerEvent,Xs=U?"pointerdown":k?"touchstart":"mousedown",Ys=U?"pointermove":k?"touchmove":"mousemove",Js=U?"pointerup":k?"touchend":"mouseup",Gs=U?"pointerenter":k?"":"mouseenter",Ks=U?"pointerleave":k?"":"mouseleave",Zs=U?"pointercancel":"touchcancel",T={reads:[],writes:[],read(t){return this.reads.push(t),ie(),t},write(t){return this.writes.push(t),ie(),t},clear(t){sn(this.reads,t),sn(this.writes,t)},flush:oe};function oe(t){nn(T.reads),nn(T.writes.splice(0)),T.scheduled=!1,(T.reads.length||T.writes.length)&&ie(t+1)}const Qs=4;function ie(t){T.scheduled||(T.scheduled=!0,t&&t<Qs?Promise.resolve().then(()=>oe(t)):requestAnimationFrame(()=>oe(1)))}function nn(t){let e;for(;e=t.shift();)try{e()}catch(n){console.error(n)}}function sn(t,e){const n=t.indexOf(e);return~n&&t.splice(n,1)}function rn(){}rn.prototype={positions:[],init(){this.positions=[];let t;this.unbind=j(document,"mousemove",e=>t=qe(e)),this.interval=setInterval(()=>{t&&(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:n,right:s,top:r,bottom:o}=e,[c]=this.positions,a=Ae(this.positions),f=[c,a];return jt(a,e)?!1:[[{x:n,y:r},{x:s,y:o}],[{x:n,y:o},{x:s,y:r}]].some(h=>{const d=Vs(f,h);return d&&jt(d,e)})}};function Vs([{x:t,y:e},{x:n,y:s}],[{x:r,y:o},{x:c,y:a}]){const f=(a-o)*(n-t)-(c-r)*(s-e);if(f===0)return!1;const u=((c-r)*(e-o)-(a-o)*(t-r))/f;return u<0?!1:{x:t+u*(n-t),y:e+u*(s-e)}}function on(t,e,n={},s=!0){const r=new IntersectionObserver(s?(o,c)=>{o.some(a=>a.isIntersecting)&&e(o,c)}:e,n);for(const o of l(t))r.observe(o);return r}const ks=dt&&window.ResizeObserver;function cn(t,e,n={box:"border-box"}){return ks?an(ResizeObserver,t,e,n):(Us(),lt.add(e),{observe:yt,unobserve:yt,disconnect(){lt.delete(e)}})}let lt;function Us(){if(lt)return;lt=new Set;let t;const e=()=>{if(!t){t=!0,requestAnimationFrame(()=>t=!1);for(const n of lt)n()}};j(window,"load resize",e),j(document,"loadedmetadata load",e,!0)}function tr(t,e,n){return an(MutationObserver,t,e,n)}function an(t,e,n,s){const r=new t(n);for(const o of l(e))r.observe(o,s);return r}function er(t){if(Ct(t)&&ce(t,{func:"playVideo",method:"play"}),At(t))try{t.play().catch(yt)}catch{}}function nr(t){Ct(t)&&ce(t,{func:"pauseVideo",method:"pause"}),At(t)&&t.pause()}function sr(t){Ct(t)&&ce(t,{func:"mute",method:"setVolume",value:0}),At(t)&&(t.muted=!0)}function rr(t){return At(t)||Ct(t)}function At(t){return Vt(t,"video")}function Ct(t){return Vt(t,"iframe")&&(fn(t)||un(t))}function fn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function un(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function ce(t,e){await ir(t),hn(t,e)}function hn(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const ae="_ukPlayer";let or=0;function ir(t){if(t[ae])return t[ae];const e=fn(t),n=un(t),s=++or;let r;return t[ae]=new Promise(o=>{e&&Z(t,"load",()=>{const c=()=>hn(t,{event:"listening",id:s});r=setInterval(c,100),c()}),Z(window,"message",o,!1,({data:c})=>{try{return c=JSON.parse(c),e&&(c==null?void 0:c.id)===s&&c.event==="onReady"||n&&Number(c==null?void 0:c.player_id)===s}catch{}}),t.src=`${t.src}${X(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(r))}function cr(t,e=0,n=0){return $t(t)?Oe(...fe(t).map(s=>{const{top:r,left:o,bottom:c,right:a}=M(s);return{top:r-e,left:o-n,bottom:c+e,right:a+n}}).concat(O(t))):!1}function ar(t,{offset:e=0}={}){const n=$t(t)?Ot(t,!1,["hidden"]):[];return n.reduce((c,a,f)=>{const{scrollTop:u,scrollHeight:h,offsetHeight:d}=a,g=M(a),w=h-g.height,{height:y,top:P}=n[f-1]?M(n[f-1]):O(t);let _=Math.ceil(P-g.top-e+u);return e>0&&d<y+e?_+=e:e=0,_>w?(e-=_-w,_=w):_<0&&(e-=_,_=0),()=>s(a,_-u).then(c)},()=>Promise.resolve())();function s(c,a){return new Promise(f=>{const u=c.scrollTop,h=r(Math.abs(a)),d=Date.now();(function g(){const w=o(G((Date.now()-d)/h));c.scrollTop=u+a*w,w===1?f():requestAnimationFrame(g)})()})}function r(c){return 40*Math.pow(c,.375)}function o(c){return .5*(1-Math.cos(Math.PI*c))}}function fr(t,e=0,n=0){if(!$t(t))return 0;const[s]=Ot(t,!0),{scrollHeight:r,scrollTop:o}=s,{height:c}=M(s),a=r-c,f=ne(t)[0]-ne(s)[0],u=Math.max(0,f-c+e),h=Math.min(a,f+t.offsetHeight-n);return G((o-u)/(h-u))}function Ot(t,e=!1,n=[]){const s=dn(t);let r=Xt(t).reverse();r=r.slice(r.indexOf(s)+1);const o=Ie(r,c=>p(c,"position")==="fixed");return~o&&(r=r.slice(o)),[s].concat(r.filter(c=>p(c,"overflow").split(" ").some(a=>X(["auto","scroll",...n],a))&&(!e||c.scrollHeight>M(c).height))).reverse()}function fe(t){return Ot(t,!1,["hidden","clip"])}function M(t){const e=J(t),{visualViewport:n,document:{documentElement:s}}=e;let r=t===dn(t)?e:t;if(Y(r)&&n){let{height:c,width:a,scale:f,pageTop:u,pageLeft:h}=n;return c=Math.round(c*f),a=Math.round(a*f),{height:c,width:a,top:u,left:h,bottom:u+c,right:h+a}}let o=O(r);if(p(r,"display")==="inline")return o;for(let[c,a,f,u]of[["width","x","left","right"],["height","y","top","bottom"]])Y(r)?r=s:o[f]+=I(p(r,`border-${f}-width`)),o[c]=o[a]=r[`client${L(c)}`],o[u]=o[c]+o[f];return o}function dn(t){return J(t).document.scrollingElement}const C=[["width","x","left","right"],["height","y","top","bottom"]];function ur(t,e,n){n={attach:{element:["left","top"],target:["left","top"],...n.attach},offset:[0,0],placement:[],...n},$(e)||(e=[e,e]),O(t,ln(t,e,n))}function ln(t,e,n){const s=pn(t,e,n),{boundary:r,viewportOffset:o=0,placement:c}=n;let a=s;for(const[f,[u,,h,d]]of Object.entries(C)){const g=hr(t,e[f],o,r,f);if(Tt(s,g,f))continue;let w=0;if(c[f]==="flip"){const y=n.attach.target[f];if(y===d&&s[d]<=g[d]||y===h&&s[h]>=g[h])continue;w=lr(t,e,n,f)[h]-s[h];const P=dr(t,e[f],o,f);if(!Tt(ue(s,w,f),P,f)){if(Tt(s,P,f))continue;if(n.recursion)return!1;const _=pr(t,e,n);if(_&&Tt(_,P,1-f))return _;continue}}else if(c[f]==="shift"){const y=O(e[f]),{offset:P}=n;w=G(G(s[h],g[h],g[d]-s[u]),y[h]-s[u]+P[f],y[d]-P[f])-s[h]}a=ue(a,w,f)}return a}function pn(t,e,n){let{attach:s,offset:r}={attach:{element:["left","top"],target:["left","top"],...n.attach},offset:[0,0],...n},o=O(t);for(const[c,[a,,f,u]]of Object.entries(C)){const h=s.target[c]===s.element[c]?M(e[c]):O(e[c]);o=ue(o,h[f]-o[f]+gn(s.target[c],u,h[a])-gn(s.element[c],u,o[a])+ +r[c],c)}return o}function ue(t,e,n){const[,s,r,o]=C[n],c={...t};return c[r]=t[s]=t[r]+e,c[o]+=e,c}function gn(t,e,n){return t==="center"?n/2:t===e?n:0}function hr(t,e,n,s,r){let o=vn(...mn(t,e).map(M));return n&&(o[C[r][2]]+=n,o[C[r][3]]-=n),s&&(o=vn(o,O($(s)?s[r]:s))),o}function dr(t,e,n,s){const[r,o,c,a]=C[s],[f]=mn(t,e),u=M(f);return["auto","scroll"].includes(p(f,`overflow-${o}`))&&(u[c]-=f[`scroll${L(c)}`],u[a]=u[c]+f[`scroll${L(r)}`]),u[c]+=n,u[a]-=n,u}function mn(t,e){return fe(e).filter(n=>It(t,n))}function vn(...t){let e={};for(const n of t)for(const[,,s,r]of C)e[s]=Math.max(e[s]||0,n[s]),e[r]=Math.min(...[e[r],n[r]].filter(Boolean));return e}function Tt(t,e,n){const[,,s,r]=C[n];return t[s]>=e[s]&&t[r]<=e[r]}function lr(t,e,{offset:n,attach:s},r){return pn(t,e,{attach:{element:wn(s.element,r),target:wn(s.target,r)},offset:gr(n,r)})}function pr(t,e,n){return ln(t,e,{...n,attach:{element:n.attach.element.map(bn).reverse(),target:n.attach.target.map(bn).reverse()},offset:n.offset.reverse(),placement:n.placement.reverse(),recursion:!0})}function wn(t,e){const n=[...t],s=C[e].indexOf(t[e]);return~s&&(n[e]=C[e][1-s%2+2]),n}function bn(t){for(let e=0;e<C.length;e++){const n=C[e].indexOf(t);if(~n)return C[1-e][n%2+2]}}function gr(t,e){return t=[...t],t[e]*=-1,t}var mr=Object.freeze({__proto__:null,$:B,$$:te,Animation:As,Deferred:ts,Dimensions:kn,MouseTracker:rn,Transition:_s,addClass:Q,after:Ps,append:ut,apply:Ut,assign:Mt,attr:z,before:Ze,boxModelAdjust:re,camelize:st,children:Se,clamp:G,closest:ct,createEvent:Be,css:p,data:Ht,dimensions:ee,each:xt,empty:Ke,endsWith:Jn,escape:je,fastdom:T,filter:Me,find:Yt,findAll:at,findIndex:Ie,flipPosition:Ds,fragment:Et,getEventPos:qe,getIndex:Un,getTargetedElement:os,hasAttr:Pe,hasClass:Ye,hasOwn:S,hasTouch:k,height:tn,html:Os,hyphenate:nt,inBrowser:dt,includes:X,index:Re,intersectRect:Oe,isArray:$,isBoolean:_e,isDocument:wt,isElement:rt,isEmpty:Ee,isEqual:Wt,isFocusable:rs,isFunction:E,isInView:cr,isInput:ss,isNode:St,isNumber:Dt,isNumeric:bt,isObject:R,isPlainObject:D,isRtl:qs,isSameSiteAnchor:De,isString:b,isTag:Vt,isTouch:ws,isUndefined:A,isVideo:rr,isVisible:$t,isVoidElement:ns,isWindow:Y,last:Ae,matches:K,memoize:N,mute:sr,noop:yt,observeIntersection:on,observeMutation:tr,observeResize:cn,off:Fe,offset:O,offsetPosition:ne,offsetViewport:M,on:j,once:Z,overflowParents:fe,parent:it,parents:Xt,pause:nr,pick:Qn,play:er,pointInRect:jt,pointerCancel:Zs,pointerDown:Xs,pointerEnter:Gs,pointerLeave:Ks,pointerMove:Ys,pointerUp:Js,position:Ue,positionAt:ur,prepend:Ts,propName:Kt,query:is,queryAll:cs,ready:Cs,remove:kt,removeAttr:Bt,removeClass:Zt,removeClasses:Xe,replaceClass:ys,scrollIntoView:ar,scrollParents:Ot,scrolledOver:fr,selFocusable:Ne,selInput:qt,sortBy:Ce,startsWith:W,sumBy:zt,swap:Kn,toArray:Gn,toBoolean:Lt,toEventTargets:Gt,toFloat:I,toNode:v,toNodes:l,toNumber:ot,toPx:Ls,toWindow:J,toggleClass:$s,trigger:F,ucfirst:L,uniqueBy:Zn,unwrap:Ms,width:se,within:It,wrapAll:Qe,wrapInner:Ns});function xn(t){return yn(cn,t,"resize")}function vr(t){return yn(on,t)}function wr(t={}){return vr({handler:function(e,n){const{targets:s=this.$el,preload:r=5}=t;for(const o of l(E(s)?s(this):s))te('[loading="lazy"]',o).slice(0,r-1).forEach(c=>Bt(c,"loading"));for(const o of e.filter(({isIntersecting:c})=>c).map(({target:c})=>c))n.unobserve(o)},...t})}function yn(t,e,n){return{observe:t,handler(){this.$emit(n)},...e}}var br={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,r;let o=0;return((r=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:r.replace(/%s/g,()=>e[o++]||""))||""}}};const pt={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function xr(t){t._observers=[],t._observerUpdates=new Map;for(const e of t.$options.observe||[])if(S(e,"handler"))$n(t,e);else for(const n in e)$n(t,e[n],n)}function he(t,...e){t._observers.push(...e)}function yr(t){for(const e of t._observers)e==null||e.disconnect(),t._observerUpdates.delete(e)}function $r(t){for(const[e,n]of t._observerUpdates)n(e)}function $n(t,e,n){let{observe:s,target:r=t.$el,handler:o,options:c,filter:a,args:f}=D(e)?e:{type:n,handler:e};if(a&&!a.call(t,t))return;const u=E(r)?r.call(t,t):r;o=b(o)?t[o]:o.bind(t),E(c)&&(c=c.call(t,t));const h=s(u,o,c,f);E(r)&&$(u)&&h.unobserve&&t._observerUpdates.set(h,Ir(t,r,u)),he(t,h)}function Ir(t,e,n){return s=>{const r=e.call(t,t);Wt(n,r)||(n.forEach(o=>!X(r,o)&&s.unobserve(o)),r.forEach(o=>!X(n,o)&&s.observe(o)),n.splice(0,n.length,...r))}}function In(t){if(t._watch)return;const e=!S(t,"_watch");t._watch=T.read(()=>{t._connected&&_r(t,e),t._watch=null})}function _r(t,e){const n={...t._computed};t._computed={};for(const[s,{watch:r,immediate:o}]of Object.entries(t.$options.computed||{}))r&&(e&&o||S(n,s)&&!Wt(n[s],t[s]))&&r.call(t,t[s],e?void 0:n[s]);$r(t)}function de(t,e="update"){t._connected&&((e==="update"||e==="resize")&&In(t),t.$options.update&&(t._updates||(t._updates=new Set,T.read(()=>{t._connected&&Er(t,t._updates),delete t._updates})),t._updates.add(e.type||e)))}function Er(t,e){for(const{read:n,write:s,events:r=[]}of t.$options.update){if(!e.has("update")&&!r.some(c=>e.has(c)))continue;let o;n&&(o=n.call(t,t._data,e),o&&D(o)&&Mt(t._data,o)),s&&o!==!1&&T.write(()=>{t._connected&&s.call(t,t._data,e)})}}function Ar(t){let{el:e,computed:n,observe:s}=t.$options;if(!n&&!(s!=null&&s.some(o=>E(o.target))))return;for(const o in n||{})if(n[o].document){e=e.ownerDocument;break}const r=new MutationObserver(()=>In(t));r.observe(e,{childList:!0,subtree:!0}),he(t,r)}function Cr(t){t._events=[];for(const e of t.$options.events||[])if(S(e,"handler"))le(t,e);else for(const n in e)le(t,e[n],n)}function Or(t){t._events.forEach(e=>e()),delete t._events}function le(t,e,n){let{name:s,el:r,handler:o,capture:c,passive:a,delegate:f,filter:u,self:h}=D(e)?e:{name:n,handler:e};if(r=E(r)?r.call(t,t):r||t.$el,$(r)){r.forEach(d=>le(t,{...e,el:d},n));return}!r||u&&!u.call(t)||t._events.push(j(r,s,f?b(f)?f:f.call(t,t):null,b(o)?t[o]:o.bind(t),{passive:a,capture:c,self:h}))}const x={};x.events=x.observe=x.created=x.beforeConnect=x.connected=x.beforeDisconnect=x.disconnected=x.destroy=pe,x.args=function(t,e){return e!==!1&&pe(e||t)},x.update=function(t,e){return Ce(pe(t,E(e)?{read:e}:e),"order")},x.props=function(t,e){if($(e)){const n={};for(const s of e)n[s]=String;e=n}return x.methods(t,e)},x.computed=x.methods=function(t,e){return e?t?{...t,...e}:e:t},x.i18n=x.data=function(t,e,n){return n?_n(t,e,n):e?t?function(s){return _n(t,e,s)}:e:t};function _n(t,e,n){return x.computed(E(t)?t.call(n,n):t,E(e)?e.call(n,n):e)}function pe(t,e){return t=t&&!$(t)?[t]:t,e?t?t.concat(e):$(e)?e:[e]:t}function Tr(t,e){return A(e)?t:e}function gt(t,e,n){const s={};if(E(e)&&(e=e.options),e.extends&&(t=gt(t,e.extends,n)),e.mixins)for(const o of e.mixins)t=gt(t,o,n);for(const o in t)r(o);for(const o in e)S(t,o)||r(o);function r(o){s[o]=(x[o]||Tr)(t[o],e[o],n)}return s}function En(t,e=[]){try{return t?W(t,"{")?JSON.parse(t):e.length&&!X(t,":")?{[e[0]]:t}:t.split(";").reduce((n,s)=>{const[r,o]=s.split(/:(.*)/);return r&&!A(o)&&(n[r.trim()]=o.trim()),n},{}):{}}catch{return{}}}function ge(t,e){return t===Boolean?Lt(e):t===Number?ot(e):t==="list"?Pr(e):t===Object&&b(e)?En(e):t?t(e):e}function Pr(t){return $(t)?t:b(t)?t.split(/,(?![^(]*\))/).map(e=>bt(e)?ot(e):Lt(e.trim())):[t]}function Nr(t){const e=An(t.$options);for(let s in e)A(e[s])||(t.$props[s]=e[s]);const n=[t.$options.computed,t.$options.methods];for(let s in t.$props)s in e&&Mr(n,s)&&(t[s]=t.$props[s])}function An(t){const e={},{args:n=[],props:s={},el:r,id:o}=t;if(!s)return e;for(const a in s){const f=nt(a);let u=Ht(r,f);A(u)||(u=s[a]===Boolean&&u===""?!0:ge(s[a],u),!(f==="target"&&W(u,"_"))&&(e[a]=u))}const c=En(Ht(r,o),n);for(const a in c){const f=st(a);A(s[f])||(e[f]=ge(s[f],c[a]))}return e}function Mr(t,e){return t.every(n=>!n||!S(n,e))}function Sr(t){const{$options:e,$props:n}=t,{id:s,attrs:r,props:o,el:c}=e;if(!o||r===!1)return;const a=$(r)?r:Object.keys(o),f=a.map(h=>nt(h)).concat(s),u=new MutationObserver(h=>{const d=An(e);h.some(({attributeName:g})=>{const w=g.replace("data-","");return(w===s?a:[st(w),st(g)]).some(y=>!A(d[y])&&d[y]!==n[y])})&&t.$reset()});u.observe(c,{attributes:!0,attributeFilter:f.concat(f.map(h=>`data-${h}`))}),he(t,u)}function tt(t,e){var n;(n=t.$options[e])==null||n.forEach(s=>s.call(t))}function Cn(t){t._connected||(t._data={},t._computed={},Nr(t),tt(t,"beforeConnect"),t._connected=!0,Cr(t),xr(t),Sr(t),Ar(t),tt(t,"connected"),de(t))}function On(t){t._connected&&(tt(t,"beforeDisconnect"),yr(t),Or(t),tt(t,"disconnected"),t._connected=!1,delete t._watch)}function Rr(t){const{computed:e}=t.$options;if(t._computed={},e)for(const n in e)Dr(t,n,e[n])}function Dr(t,e,n){Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:r,$el:o}=t;return S(s,e)||(s[e]=(n.get||n).call(t,r,o)),s[e]},set(s){const{_computed:r}=t;r[e]=n.set?n.set.call(t,s):s,A(r[e])&&delete r[e]}})}let Lr=0;function Tn(t,e={}){e.data=jr(e,t.constructor.options),t.$options=gt(t.constructor.options,e,t),t.$props={},t._uid=Lr++,Wr(t),zr(t),Rr(t),tt(t,"created"),e.el&&t.$mount(e.el)}function Wr(t){const{data:e={}}=t.$options;for(const n in e)t.$props[n]=t[n]=e[n]}function zr(t){const{methods:e}=t.$options;if(e)for(const n in e)t[n]=e[n].bind(t)}function jr({data:t={}},{args:e=[],props:n={}}){$(t)&&(t=t.slice(0,e.length).reduce((s,r,o)=>(D(r)?Mt(s,r):s[e[o]]=r,s),{}));for(const s in t)A(t[s])?delete t[s]:n[s]&&(t[s]=ge(n[s],t[s]));return t}const m=function(t){Tn(this,t)};m.util=mr,m.options={},m.version="3.16.6";const Fr="uk-",q="__uikit__",mt={};function Pn(t,e){var n;const s=Fr+nt(t);if(!e)return D(mt[s])&&(mt[s]=m.extend(mt[s])),mt[s];t=st(t),m[t]=(o,c)=>me(t,o,c);const r=D(e)?{...e}:e.options;return r.id=s,r.name=t,(n=r.install)==null||n.call(r,m,r,t),m._initialized&&!r.functional&&requestAnimationFrame(()=>me(t,`[${s}],[data-${s}]`)),mt[s]=r}function me(t,e,n,...s){const r=Pn(t);return r.options.functional?new r({data:D(e)?e:[e,n,...s]}):e?te(e).map(o)[0]:o();function o(c){const a=we(c,t);if(a)if(n)a.$destroy();else return a;return new r({el:c,data:n})}}function ve(t){return(t==null?void 0:t[q])||{}}function we(t,e){return ve(t)[e]}function Br(t,e){t[q]||(t[q]={}),t[q][e.$options.name]=e}function Hr(t,e){var n;(n=t[q])==null||delete n[e.$options.name],Ee(t[q])||delete t[q]}m.component=Pn,m.getComponents=ve,m.getComponent=we,m.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},m.mixin=function(t,e){e=(b(e)?this.component(e):e)||this,e.options=gt(e.options,t)},m.extend=function(t){t=t||{};const e=this,n=function(r){Tn(this,r)};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.options=gt(e.options,t),n.super=e,n.extend=e.extend,n};function Nn(t,e){t=t?v(t):document.body;for(const n of Xt(t).reverse())Mn(n,e);Ut(t,n=>Mn(n,e))}m.update=Nn;function Mn(t,e){const n=ve(t);for(const s in n)de(n[s],e)}let Sn;Object.defineProperty(m,"container",{get(){return Sn||document.body},set(t){Sn=B(t)}}),m.prototype.$mount=function(t){const e=this;Br(t,e),e.$options.el=t,It(t,document)&&Cn(e)},m.prototype.$destroy=function(t=!1){const e=this,{el:n}=e.$options;n&&On(e),tt(e,"destroy"),Hr(n,e),t&&kt(e.$el)},m.prototype.$create=me,m.prototype.$emit=function(t){de(this,t)},m.prototype.$update=function(t=this.$el,e){Nn(t,e)},m.prototype.$reset=function(){On(this),Cn(this)},m.prototype.$getComponent=we,Object.defineProperties(m.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(m,"container")});function be(t,e=t.$el,n=""){if(e.id)return e.id;let s=`${t.$options.id}-${t._uid}${n}`;return B(`#${s}`)&&(s=be(t,e,`${n}-2`)),s}var qr={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:t},e){return i.$(t,e)},watch(t,e){i.attr(t,"role","tablist"),e&&this.$emit()},immediate:!0},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems:{get(t,e){return i.$$(this.selNavItem,e)},watch(){this.$emit()}}},connected(){i.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((t,e)=>i.attr(t,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",e+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.nav&&this.length!==this.nav.children.length&&i.html(this.nav,this.slides.map((t,e)=>`<li ${this.attrItem}="${e}"><a href></a></li>`).join("")),i.attr(i.children(this.nav).concat(this.list),"role","presentation");for(const t of this.navItems){const e=i.data(t,this.attrItem),n=i.$("a,button",t)||t;let s,r=null;if(i.isNumeric(e)){const o=i.toNumber(e),c=this.slides[o];c&&(c.id||(c.id=be(this,c,`-item-${e}`)),r=c.id),s=this.t("slideX",i.toFloat(e)+1),i.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=be(this,this.list,"-items")),r=this.list.id),s=this.t(e);i.attr(n,{"aria-controls":r,"aria-label":i.attr(n,"aria-label")||s})}}},{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){i.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===pt.SPACE)&&(t.preventDefault(),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:n}=t,s=i.data(e,this.attrItem);if(!i.isNumeric(s))return;let r=n===pt.HOME?0:n===pt.END?"last":n===pt.LEFT?"previous":n===pt.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();let e,n;for(const s of this.navItems){const r=i.data(s,this.attrItem),o=i.$("a,button",s)||s;if(i.isNumeric(r)){const a=i.toNumber(r)===t;i.toggleClass(s,this.clsActive,a),i.attr(o,{"aria-selected":a,tabindex:a?null:-1}),a&&(n=o),e=e||i.matches(o,":focus")}else i.toggleClass(s,"uk-invisible",this.finite&&(r==="previous"&&t===0||r==="next"&&t>=this.maxIndex));e&&n&&n.focus()}}}};const xe={passive:!1,capture:!0},Rn={passive:!0,capture:!0},Xr="touchstart mousedown",ye="touchmove mousemove",Dn="touchend touchcancel mouseup click input scroll";var Yr={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:Xr,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!i.isTouch(t)&&Jr(t.target)||i.closest(t.target,i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:ye,el(){return this.list},handler:i.noop,...xe}],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,i.on(document,ye,this.move,xe),i.on(document,Dn,this.end,Rn),i.css(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;i.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;const{slides:n}=this;let{prevIndex:s}=this,r=Math.abs(e),o=this.getIndex(s+this.dir,s),c=this._getDistance(s,o)||n[s].offsetWidth;for(;o!==s&&r>c;)this.drag-=c*this.dir,s=o,r-=c,o=this.getIndex(s+this.dir,s),c=this._getDistance(s,o)||n[s].offsetWidth;this.percent=r/c;const a=n[s],f=n[o],u=this.index!==o,h=s===o;let d;[this.index,this.prevIndex].filter(g=>!i.includes([o,s],g)).forEach(g=>{i.trigger(n[g],"itemhidden",[this]),h&&(d=!0,this.prevIndex=s)}),(this.index===s&&this.prevIndex!==s||d)&&i.trigger(n[this.index],"itemshown",[this]),u&&(this.prevIndex=s,this.index=o,!h&&i.trigger(a,"beforeitemhide",[this]),i.trigger(f,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!h&&f),u&&(!h&&i.trigger(a,"itemhide",[this]),i.trigger(f,"itemshow",[this]))},end(){if(i.off(document,ye,this.move,xe),i.off(document,Dn,this.end,Rn),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=(i.isRtl?this.dir*(i.isRtl?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)}i.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function Jr(t){return i.css(t,"userSelect")!=="none"&&i.toNodes(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var Gr={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live","polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:`${i.pointerEnter} focusin`,filter(){return this.autoplay},handler(t){(t.type!==i.pointerEnter||this.pauseOnHover)&&this.stopAutoplay()}},{name:`${i.pointerLeave} focusout`,filter(){return this.autoplay},handler(t){(t.type!==i.pointerLeave||this.pauseOnHover)&&this.startAutoplay()}}],methods:{startAutoplay(){this.draggable&&i.matches(this.$el,":focus-within")||this.pauseOnHover&&i.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),i.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),i.attr(this.list,"aria-live","polite")}}},Kr={mixins:[Gr,Yr,qr,br],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:t},e){return Ln(e.offsetWidth/t)},list({selList:t},e){return i.$(t,e)},maxIndex(){return this.length-1},slides:{get(){return i.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},observe:xn(),methods:{show(t,e=!1){var n;if(this.dragging||!this.length)return;const{stack:s}=this,r=e?0:s.length,o=()=>{s.splice(r,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const c=this.getIndex(this.index),a=i.hasClass(this.slides,this.clsActive)&&this.slides[c],f=this.getIndex(t,this.index),u=this.slides[f];if(a===u){o();return}if(this.dir=Zr(t,c),this.prevIndex=c,this.index=f,a&&!i.trigger(a,"beforeitemhide",[this])||!i.trigger(u,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}const h=this._show(a,u,e).then(()=>{a&&i.trigger(a,"itemhidden",[this]),i.trigger(u,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return a&&i.trigger(a,"itemhide",[this]),i.trigger(u,"itemshow",[this]),h},getIndex(t=this.index,e=this.index){return i.clamp(i.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate(t,e=this.prevIndex,n=this.index){const s=this._getTransitioner(e===n?!1:e,n);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,s=this.transitionOptions){return new this.Transitioner(i.isNumber(t)?this.slides[t]:t,i.isNumber(e)?this.slides[e]:e,n*(i.isRtl?-1:1),s)}}};function Zr(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Ln(t){return .5*t+300}var Qr={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},Vr={observe:wr({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})};function Wn(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function kr(t,e,n,{center:s,easing:r,list:o}){const c=new i.Deferred,a=t?vt(t,o,s):vt(e,o,s)+i.dimensions(e).width*n,f=e?vt(e,o,s):a+i.dimensions(t).width*n*(i.isRtl?-1:1);return{dir:n,show(u,h=0,d){const g=d?"linear":r;return u-=Math.round(u*i.clamp(h,-1,1)),this.translate(h),h=t?h:i.clamp(h,0,1),$e(this.getItemIn(),"itemin",{percent:h,duration:u,timing:g,dir:n}),t&&$e(this.getItemIn(!0),"itemout",{percent:1-h,duration:u,timing:g,dir:n}),i.Transition.start(o,{transform:Wn(-f*(i.isRtl?-1:1),"px")},u,g).then(c.resolve,i.noop),c.promise},cancel(){i.Transition.cancel(o)},reset(){i.css(o,"transform","")},forward(u,h=this.percent()){return i.Transition.cancel(o),this.show(u,h,!0)},translate(u){const h=this.getDistance()*n*(i.isRtl?-1:1);i.css(o,"transform",Wn(i.clamp(-f+(h-h*u),-Pt(o),i.dimensions(o).width)*(i.isRtl?-1:1),"px"));const d=this.getActives(),g=this.getItemIn(),w=this.getItemIn(!0);u=t?i.clamp(u,-1,1):0;for(const y of i.children(o)){const P=i.includes(d,y),_=y===g,Bn=y===w,no=_||!Bn&&(P||n*(i.isRtl?-1:1)===-1^Nt(y,o)>Nt(t||e));$e(y,`itemtranslate${no?"in":"out"}`,{dir:n,percent:Bn?1-u:_?u:P?1:0})}},percent(){return Math.abs((i.css(o,"transform").split(",")[4]*(i.isRtl?-1:1)+a)/(f-a))},getDistance(){return Math.abs(f-a)},getItemIn(u=!1){let h=this.getActives(),d=jn(o,vt(e||t,o,s));if(u){const g=h;h=d,d=g}return d[i.findIndex(d,g=>!i.includes(h,g))]},getActives(){return jn(o,vt(t||e,o,s))}}}function vt(t,e,n){const s=Nt(t,e);return n?s-Ur(t,e):Math.min(s,zn(e))}function zn(t){return Math.max(0,Pt(t)-i.dimensions(t).width)}function Pt(t){return i.sumBy(i.children(t),e=>i.dimensions(e).width)}function Ur(t,e){return i.dimensions(e).width/2-i.dimensions(t).width/2}function Nt(t,e){return t&&(i.position(t).left+(i.isRtl?i.dimensions(t).width-i.dimensions(e).width:0))*(i.isRtl?-1:1)||0}function jn(t,e){e-=1;const n=i.dimensions(t).width,s=e+n+2;return i.children(t).filter(r=>{const o=Nt(r,t),c=o+Math.min(i.dimensions(r).width,n);return o>=e&&c<=s})}function $e(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}var Fn={mixins:[et,Kr,Qr,Vr],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:kr},computed:{avgWidth(){return Pt(this.list)/this.length},finite({finite:t}){return t||to(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return i.last(this.sets);let t=0;const e=zn(this.list),n=i.findIndex(this.slides,s=>{if(t>=e)return!0;t+=i.dimensions(s).width});return~n?n:this.length-1},sets({sets:t}){if(!t)return;let e=0;const n=[],s=i.dimensions(this.list).width;for(let r=0;r<this.length;r++){const o=i.dimensions(this.slides[r]).width;e+o>s&&(e=0),this.center?e<s/2&&e+o+i.dimensions(this.slides[+r+1]).width/2>s/2&&(n.push(+r),e=s/2-o/2):e===0&&n.push(Math.min(+r,this.maxIndex)),e+=o}if(n.length)return n},transitionOptions(){return{center:this.center,list:this.list}},slides(){return i.children(this.list).filter(i.isVisible)}},connected(){i.toggleClass(this.$el,this.clsContainer,!i.$(`.${this.clsContainer}`,this.$el))},observe:xn({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=i.toNumber(i.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!i.includes(this.sets,e))}this.length&&!this.dragging&&!this.stack.length&&(this.reorder(),this._translate(1)),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!i.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let s=0;s<e;s++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const n=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=Ln(this.avgWidth/this.velocity)*(i.dimensions(this.slides[n]).width/this.avgWidth),this.reorder()},itemshow(){~this.prevIndex&&i.addClass(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){i.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((r,o)=>i.css(r,"order",this.dir>0&&o<t?1:this.dir<0&&o>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let n=i.dimensions(this.list).width/2-i.dimensions(e).width/2,s=0;for(;n>0;){const r=this.getIndex(--s+t,t),o=this.slides[r];i.css(o,"order",r>t?-2:-1),n-=i.dimensions(o).width}},updateActiveClasses(){const t=this._getTransitioner(this.index).getActives(),e=[this.clsActive,(!this.sets||i.includes(this.sets,i.toFloat(this.index)))&&this.clsActivated||""];for(const n of this.slides){const s=i.includes(t,n);i.toggleClass(n,e,s),i.attr(n,"aria-hidden",!s),i.attr(i.$$(i.selFocusable,n),"tabindex",s?null:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let n;do{if(i.includes(this.sets,t))return t;n=t,t=this.getIndex(t+this.dir,e)}while(t!==n);return t},getAdjacentSlides(){const{width:t}=i.dimensions(this.list),e=-t,n=t*2,s=i.dimensions(this.slides[this.index]).width,r=this.center?t/2-s/2:0,o=new Set;for(const c of[-1,1]){let a=r+(c>0?s:0),f=0;do{const u=this.slides[this.getIndex(this.index+c+f++*c)];a+=i.dimensions(u).width*c,o.add(u)}while(this.length>f&&a>e&&a<n)}return Array.from(o)}}};function to(t,e){if(!t||t.length<2)return!0;const{width:n}=i.dimensions(t);if(!e)return Math.ceil(Pt(t))<Math.trunc(n+eo(t));const s=i.children(t),r=Math.trunc(n/2);for(const o in s){const c=s[o],a=i.dimensions(c).width,f=new Set([c]);let u=0;for(const h of[-1,1]){let d=a/2,g=0;for(;d<r;){const w=s[i.getIndex(+o+h+g++*h,s)];if(f.has(w))return!0;d+=i.dimensions(w).width,f.add(w)}u=Math.max(u,a/2+i.dimensions(s[i.getIndex(+o+h,s)]).width/2-(d-r))}if(u>i.sumBy(s.filter(h=>!f.has(h)),h=>i.dimensions(h).width))return!0}return!1}function eo(t){return Math.max(0,...i.children(t).map(e=>i.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",Fn),Fn});
|
|
1
|
+
/*! UIkit 3.16.7-dev.fcb5a4616 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(e,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],m):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSlider=m(e.UIkit.util))})(this,function(e){"use strict";var m={connected(){e.addClass(this.$el,this.$options.id)}};function _(t){return k(e.observeResize,t,"resize")}function L(t){return k(e.observeIntersection,t)}function P(t={}){return L({handler:function(s,n){const{targets:i=this.$el,preload:h=5}=t;for(const r of e.toNodes(e.isFunction(i)?i(this):i))e.$$('[loading="lazy"]',r).slice(0,h-1).forEach(o=>e.removeAttr(o,"loading"));for(const r of s.filter(({isIntersecting:o})=>o).map(({target:o})=>o))n.unobserve(r)},...t})}function k(t,s,n){return{observe:t,handler(){this.$emit(n)},...s}}var z={props:{i18n:Object},data:{i18n:null},methods:{t(t,...s){var n,i,h;let r=0;return((h=((n=this.i18n)==null?void 0:n[t])||((i=this.$options.i18n)==null?void 0:i[t]))==null?void 0:h.replace(/%s/g,()=>s[r++]||""))||""}}};const p={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function b(t,s=t.$el,n=""){if(s.id)return s.id;let i=`${t.$options.id}-${t._uid}${n}`;return e.$(`#${i}`)&&(i=b(t,s,`${n}-2`)),i}var B={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:t},s){return e.$(t,s)},watch(t,s){e.attr(t,"role","tablist"),s&&this.$emit()},immediate:!0},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems:{get(t,s){return e.$$(this.selNavItem,s)},watch(){this.$emit()}}},connected(){e.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((t,s)=>e.attr(t,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",s+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.nav&&this.length!==this.nav.children.length&&e.html(this.nav,this.slides.map((t,s)=>`<li ${this.attrItem}="${s}"><a href></a></li>`).join("")),e.attr(e.children(this.nav).concat(this.list),"role","presentation");for(const t of this.navItems){const s=e.data(t,this.attrItem),n=e.$("a,button",t)||t;let i,h=null;if(e.isNumeric(s)){const r=e.toNumber(s),o=this.slides[r];o&&(o.id||(o.id=b(this,o,`-item-${s}`)),h=o.id),i=this.t("slideX",e.toFloat(s)+1),e.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=b(this,this.list,"-items")),h=this.list.id),i=this.t(s);e.attr(n,{"aria-controls":h,"aria-label":e.attr(n,"aria-label")||i})}}},{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){e.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===p.SPACE)&&(t.preventDefault(),this.show(e.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:s,keyCode:n}=t,i=e.data(s,this.attrItem);if(!e.isNumeric(i))return;let h=n===p.HOME?0:n===p.END?"last":n===p.LEFT?"previous":n===p.RIGHT?"next":-1;~h&&(t.preventDefault(),this.show(h))}}],methods:{updateNav(){const t=this.getValidIndex();let s,n;for(const i of this.navItems){const h=e.data(i,this.attrItem),r=e.$("a,button",i)||i;if(e.isNumeric(h)){const c=e.toNumber(h)===t;e.toggleClass(i,this.clsActive,c),e.attr(r,{"aria-selected":c,tabindex:c?null:-1}),c&&(n=r),s=s||e.matches(r,":focus")}else e.toggleClass(i,"uk-invisible",this.finite&&(h==="previous"&&t===0||h==="next"&&t>=this.maxIndex));s&&n&&n.focus()}}}};const $={passive:!1,capture:!0},N={passive:!0,capture:!0},H="touchstart mousedown",y="touchmove mousemove",C="touchend touchcancel mouseup click input scroll";var U={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const s=this[t];this[t]=n=>{const i=e.getEventPos(n).x*(e.isRtl?-1:1);this.prevPos=i===this.pos?this.prevPos:this.pos,this.pos=i,s(n)}}},events:[{name:H,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&V(t.target)||e.closest(t.target,e.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:y,el(){return this.list},handler:e.noop,...$}],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,e.on(document,y,this.move,$),e.on(document,C,this.end,N),e.css(this.list,"userSelect","none")},move(t){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;e.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;const{slides:n}=this;let{prevIndex:i}=this,h=Math.abs(s),r=this.getIndex(i+this.dir,i),o=this._getDistance(i,r)||n[i].offsetWidth;for(;r!==i&&h>o;)this.drag-=o*this.dir,i=r,h-=o,r=this.getIndex(i+this.dir,i),o=this._getDistance(i,r)||n[i].offsetWidth;this.percent=h/o;const c=n[i],l=n[r],a=this.index!==r,d=i===r;let f;[this.index,this.prevIndex].filter(g=>!e.includes([r,i],g)).forEach(g=>{e.trigger(n[g],"itemhidden",[this]),d&&(f=!0,this.prevIndex=i)}),(this.index===i&&this.prevIndex!==i||f)&&e.trigger(n[this.index],"itemshown",[this]),a&&(this.prevIndex=i,this.index=r,!d&&e.trigger(c,"beforeitemhide",[this]),e.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),c,!d&&l),a&&(!d&&e.trigger(c,"itemhide",[this]),e.trigger(l,"itemshow",[this]))},end(){if(e.off(document,y,this.move,$),e.off(document,C,this.end,N),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=(e.isRtl?this.dir*(e.isRtl?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)}e.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function V(t){return e.css(t,"userSelect")!=="none"&&e.toNodes(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var j={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){e.attr(this.list,"aria-live","polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){e.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:`${e.pointerEnter} focusin`,filter(){return this.autoplay},handler(t){(t.type!==e.pointerEnter||this.pauseOnHover)&&this.stopAutoplay()}},{name:`${e.pointerLeave} focusout`,filter(){return this.autoplay},handler(t){(t.type!==e.pointerLeave||this.pauseOnHover)&&this.startAutoplay()}}],methods:{startAutoplay(){this.draggable&&e.matches(this.$el,":focus-within")||this.pauseOnHover&&e.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),e.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),e.attr(this.list,"aria-live","polite")}}},F={mixins:[j,U,B,z],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){e.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:t},s){return M(s.offsetWidth/t)},list({selList:t},s){return e.$(t,s)},maxIndex(){return this.length-1},slides:{get(){return e.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},observe:_(),methods:{show(t,s=!1){var n;if(this.dragging||!this.length)return;const{stack:i}=this,h=s?0:i.length,r=()=>{i.splice(h,1),i.length&&this.show(i.shift(),!0)};if(i[s?"unshift":"push"](t),!s&&i.length>1){i.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const o=this.getIndex(this.index),c=e.hasClass(this.slides,this.clsActive)&&this.slides[o],l=this.getIndex(t,this.index),a=this.slides[l];if(c===a){r();return}if(this.dir=q(t,o),this.prevIndex=o,this.index=l,c&&!e.trigger(c,"beforeitemhide",[this])||!e.trigger(a,"beforeitemshow",[this,c])){this.index=this.prevIndex,r();return}const d=this._show(c,a,s).then(()=>{c&&e.trigger(c,"itemhidden",[this]),e.trigger(a,"itemshown",[this]),i.shift(),this._transitioner=null,requestAnimationFrame(()=>i.length&&this.show(i.shift(),!0))});return c&&e.trigger(c,"itemhide",[this]),e.trigger(a,"itemshow",[this]),d},getIndex(t=this.index,s=this.index){return e.clamp(e.getIndex(t,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,s=this.prevIndex){return this.getIndex(t,s)},_show(t,s,n){if(this._transitioner=this._getTransitioner(t,s,this.dir,{easing:n?s.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:i}=this.stack;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_getDistance(t,s){return this._getTransitioner(t,t!==s&&s).getDistance()},_translate(t,s=this.prevIndex,n=this.index){const i=this._getTransitioner(s===n?!1:s,n);return i.translate(t),i},_getTransitioner(t=this.prevIndex,s=this.index,n=this.dir||1,i=this.transitionOptions){return new this.Transitioner(e.isNumber(t)?this.slides[t]:t,e.isNumber(s)?this.slides[s]:s,n*(e.isRtl?-1:1),i)}}};function q(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function M(t){return .5*t+300}var G={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},X={observe:P({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})};function E(t=0,s="%"){return t+=t?s:"",`translate3d(${t}, 0, 0)`}function J(t,s,n,{center:i,easing:h,list:r}){const o=new e.Deferred,c=t?v(t,r,i):v(s,r,i)+e.dimensions(s).width*n,l=s?v(s,r,i):c+e.dimensions(t).width*n*(e.isRtl?-1:1);return{dir:n,show(a,d=0,f){const g=f?"linear":h;return a-=Math.round(a*e.clamp(d,-1,1)),this.translate(d),d=t?d:e.clamp(d,0,1),A(this.getItemIn(),"itemin",{percent:d,duration:a,timing:g,dir:n}),t&&A(this.getItemIn(!0),"itemout",{percent:1-d,duration:a,timing:g,dir:n}),e.Transition.start(r,{transform:E(-l*(e.isRtl?-1:1),"px")},a,g).then(o.resolve,e.noop),o.promise},cancel(){e.Transition.cancel(r)},reset(){e.css(r,"transform","")},forward(a,d=this.percent()){return e.Transition.cancel(r),this.show(a,d,!0)},translate(a){const d=this.getDistance()*n*(e.isRtl?-1:1);e.css(r,"transform",E(e.clamp(-l+(d-d*a),-I(r),e.dimensions(r).width)*(e.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),x=this.getItemIn(!0);a=t?e.clamp(a,-1,1):0;for(const u of e.children(r)){const R=e.includes(f,u),O=u===g,W=u===x,Z=O||!W&&(R||n*(e.isRtl?-1:1)===-1^w(u,r)>w(t||s));A(u,`itemtranslate${Z?"in":"out"}`,{dir:n,percent:W?1-a:O?a:R?1:0})}},percent(){return Math.abs((e.css(r,"transform").split(",")[4]*(e.isRtl?-1:1)+c)/(l-c))},getDistance(){return Math.abs(l-c)},getItemIn(a=!1){let d=this.getActives(),f=T(r,v(s||t,r,i));if(a){const g=d;d=f,f=g}return f[e.findIndex(f,g=>!e.includes(d,g))]},getActives(){return T(r,v(t||s,r,i))}}}function v(t,s,n){const i=w(t,s);return n?i-K(t,s):Math.min(i,S(s))}function S(t){return Math.max(0,I(t)-e.dimensions(t).width)}function I(t){return e.sumBy(e.children(t),s=>e.dimensions(s).width)}function K(t,s){return e.dimensions(s).width/2-e.dimensions(t).width/2}function w(t,s){return t&&(e.position(t).left+(e.isRtl?e.dimensions(t).width-e.dimensions(s).width:0))*(e.isRtl?-1:1)||0}function T(t,s){s-=1;const n=e.dimensions(t).width,i=s+n+2;return e.children(t).filter(h=>{const r=w(h,t),o=r+Math.min(e.dimensions(h).width,n);return r>=s&&o<=i})}function A(t,s,n){e.trigger(t,e.createEvent(s,!1,!1,n))}var D={mixins:[m,F,G,X],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:J},computed:{avgWidth(){return I(this.list)/this.length},finite({finite:t}){return t||Q(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return e.last(this.sets);let t=0;const s=S(this.list),n=e.findIndex(this.slides,i=>{if(t>=s)return!0;t+=e.dimensions(i).width});return~n?n:this.length-1},sets({sets:t}){if(!t)return;let s=0;const n=[],i=e.dimensions(this.list).width;for(let h=0;h<this.length;h++){const r=e.dimensions(this.slides[h]).width;s+r>i&&(s=0),this.center?s<i/2&&s+r+e.dimensions(this.slides[+h+1]).width/2>i/2&&(n.push(+h),s=i/2-r/2):s===0&&n.push(Math.min(+h,this.maxIndex)),s+=r}if(n.length)return n},transitionOptions(){return{center:this.center,list:this.list}},slides(){return e.children(this.list).filter(e.isVisible)}},connected(){e.toggleClass(this.$el,this.clsContainer,!e.$(`.${this.clsContainer}`,this.$el))},observe:_({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const s=e.toNumber(e.data(t,this.attrItem));s!==!1&&(t.hidden=!this.maxIndex||s>this.maxIndex||this.sets&&!e.includes(this.sets,s))}this.length&&!this.dragging&&!this.stack.length&&(this.reorder(),this._translate(1)),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!e.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const s=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&s>1){for(let i=0;i<s;i++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const n=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=M(this.avgWidth/this.velocity)*(e.dimensions(this.slides[n]).width/this.avgWidth),this.reorder()},itemshow(){~this.prevIndex&&e.addClass(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){e.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((h,r)=>e.css(h,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const s=this.slides[t];let n=e.dimensions(this.list).width/2-e.dimensions(s).width/2,i=0;for(;n>0;){const h=this.getIndex(--i+t,t),r=this.slides[h];e.css(r,"order",h>t?-2:-1),n-=e.dimensions(r).width}},updateActiveClasses(){const t=this._getTransitioner(this.index).getActives(),s=[this.clsActive,(!this.sets||e.includes(this.sets,e.toFloat(this.index)))&&this.clsActivated||""];for(const n of this.slides){const i=e.includes(t,n);e.toggleClass(n,s,i),e.attr(n,"aria-hidden",!i),e.attr(e.$$(e.selFocusable,n),"tabindex",i?null:-1)}},getValidIndex(t=this.index,s=this.prevIndex){if(t=this.getIndex(t,s),!this.sets)return t;let n;do{if(e.includes(this.sets,t))return t;n=t,t=this.getIndex(t+this.dir,s)}while(t!==n);return t},getAdjacentSlides(){const{width:t}=e.dimensions(this.list),s=-t,n=t*2,i=e.dimensions(this.slides[this.index]).width,h=this.center?t/2-i/2:0,r=new Set;for(const o of[-1,1]){let c=h+(o>0?i:0),l=0;do{const a=this.slides[this.getIndex(this.index+o+l++*o)];c+=e.dimensions(a).width*o,r.add(a)}while(this.length>l&&c>s&&c<n)}return Array.from(r)}}};function Q(t,s){if(!t||t.length<2)return!0;const{width:n}=e.dimensions(t);if(!s)return Math.ceil(I(t))<Math.trunc(n+Y(t));const i=e.children(t),h=Math.trunc(n/2);for(const r in i){const o=i[r],c=e.dimensions(o).width,l=new Set([o]);let a=0;for(const d of[-1,1]){let f=c/2,g=0;for(;f<h;){const x=i[e.getIndex(+r+d+g++*d,i)];if(l.has(x))return!0;f+=e.dimensions(x).width,l.add(x)}a=Math.max(a,c/2+e.dimensions(i[e.getIndex(+r+d,i)]).width/2-(f-h))}if(a>e.sumBy(i.filter(d=>!l.has(d)),d=>e.dimensions(d).width))return!0}return!1}function Y(t){return Math.max(0,...e.children(t).map(s=>e.dimensions(s).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",D),D});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.7-dev.fcb5a4616 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.7-dev.fcb5a4616 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(s,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=b(s.UIkit.util))})(this,function(s){"use strict";var b={props:{media:Boolean},data:{media:!1},connected(){const n=X(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function X(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function T(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}function Y(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function Z(n){return C(n)&&n===n.window}function E(n){return W(n)>=1}function k(n){return W(n)===1}function W(n){return!Z(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function U(n){return n===void 0}function x(n){return u(n)[0]}function u(n){return E(n)?[n]:Array.from(n||[]).filter(E)}function j(n){const e=Object.create(null);return t=>e[t]||(e[t]=n(t))}function O(n,e,t){var o;if(C(e)){for(const r in e)O(n,r,e[r]);return}if(U(t))return(o=x(n))==null?void 0:o.getAttribute(e);for(const r of u(n))Y(t)&&(t=t.call(r,O(r,e))),t===null?nn(r,e):r.setAttribute(e,t)}function nn(n,e){u(n).forEach(t=>t.removeAttribute(e))}function A(n){var e;return(e=x(n))==null?void 0:e.parentElement}function tn(n,e){return u(n).filter(t=>_(t,e))}function _(n,e){return u(n).some(t=>t.matches(e))}function R(n,e){return k(n)?n.closest(T(e,">")?e.slice(1):e):u(n).map(t=>R(t,e)).filter(Boolean)}function en(n,e){n=x(n);const t=n?u(n.children):[];return e?tn(t,e):t}function rn(n,e){return e?u(n).indexOf(x(e)):en(A(n)).indexOf(n)}function on(n,e){return u(un(n,x(e),"querySelectorAll"))}const sn=/(^|[^\\],)\s*[!>+~-]/,cn=j(n=>n.match(sn)),an=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,fn=j(n=>n.replace(an,"$1 *"));function un(n,e=document,t){if(!n||!M(n))return n;if(n=fn(n),cn(n)){const o=hn(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const a=r.substr(1).trim().split(" ");if(i=R(A(e),a[0]),r=a.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const a=r.substr(1).trim().split(" "),c=(i||e).previousElementSibling;i=_(c,r.substr(1))?c:null,r=a.slice(1).join(" ")}i&&(n+=`${n?",":""}${ln(i)} ${r}`)}e=document}try{return e[t](n)}catch{return null}}const dn=/.*?[^\\](?:,|$)/g,hn=j(n=>n.match(dn).map(e=>e.replace(/,$/,"").trim()));function ln(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${gn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${rn(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function gn(n){return M(n)?CSS.escape(n):""}const mn=/^\s*<(\w+|!)[^>]*>/,bn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const e=bn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("div");return mn.test(n)?t.insertAdjacentHTML("beforeend",n.trim()):t.textContent=n,$n(t.childNodes)}function $n(n){return n.length>1?n:n[0]}function wn(n,e){return yn(n)?u(xn(n)):on(n,e)}function yn(n){return M(n)&&T(n.trim(),"<")}function pn(n){return Math.ceil(Math.max(0,...wn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const p={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Sn,stroke:Cn,bgx:B,bgy:B},{keys:z}=Object;var vn={mixins:[b],props:L(z(p),"list"),data:L(z(p),void 0),computed:{props(n,e){const t={};for(const r in n)r in p&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=p[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={transform:"",filter:""};for(const t in this.props)this.props[t](e,n);return e.willChange=Object.keys(e).filter(t=>e[t]!=="").join(","),e}}};function v(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=i=>s.toFloat(s.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>S([i])?s.toPx(i,"width",e,!0)/e.offsetWidth:i),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,r),(i,a)=>{i.transform+=` ${n}(${$(t,a)}${o})`}}function I(n,e,t){return t.length===1&&t.unshift(w(e,n,"")),t=m(t,o=>Fn(e,o)),(o,r)=>{const[i,a,c]=q(t,r),h=i.map((l,f)=>(l+=c*(a[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function Fn(n,e){return w(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(r,i)=>{const a=$(t,i);r.filter+=` ${n}(${a+o})`}}function Sn(n,e,t){return t.length===1&&t.unshift(w(e,n,"")),t=m(t),(o,r)=>{o[n]=$(t,r)}}function Cn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=pn(e);return t=m(t.reverse(),i=>(i=s.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",r),(i,a)=>{i.strokeDashoffset=$(t,a)}):s.noop}function B(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=m(t,c=>s.toPx(c,r,e));const i=["bgx","bgy"].filter(c=>c in o);if(i.length===2&&n==="bgx")return s.noop;if(w(e,"backgroundSize","")==="cover")return Mn(n,e,t,o);const a={};for(const c of i)a[c]=D(e,c);return H(i,a,o)}function Mn(n,e,t,o){const r=jn(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),c={};for(const f of a){const d=o[f].map(([In])=>In),y=Math.min(...d),N=Math.max(...d),K=d.indexOf(y)<d.indexOf(N),Q=N-y;c[f]=`${(K?-Q:0)-(K?y:N)}px`,i[f==="bgy"?"height":"width"]+=Q}const h=s.Dimensions.cover(r,i);for(const f of a){const d=f==="bgy"?"height":"width",y=h[d]-i[d];c[f]=`max(${D(e,f)},-${y}px) + ${c[f]}`}const l=H(a,c,o);return(f,d)=>{l(f,d),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function D(n,e){return w(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,r){for(const i of n){const a=$(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${a}px)`}}}const F={};function jn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[e])return F[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{F[e]=P(t),s.trigger(n,s.createEvent("load",!1))},P(t)):F[e]=P(t)}function P(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[a,c]=s.isString(n[i])?n[i].trim().split(" "):[n[i]];if(a=e(a),c=c?s.toFloat(c)/100:null,i===0?c===null?c=0:c&&t.push([a,0]):i===o-1&&(c===null?c=1:c!==1&&(t.push([a,c]),c=1)),t.push([a,c]),c===null)r++;else if(r){const h=t[i-r-1][1],l=(c-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function q(n,e){const t=s.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function $(n,e){const[t,o,r]=q(n,e);return s.isNumber(t)?t+Math.abs(t-o)*r*(t<o?1:-1):+o}const On=/^-?\d+(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,On);if(r)return r[1]}return e}function w(n,e,t){const o=n.style[e],r=s.css(s.css(n,e,t),e);return n.style[e]=o,r}function L(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var V={mixins:[vn],data:{selItem:"!li"},beforeConnect(){this.item=s.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(J(n,r,e)),a=this.getCss(G(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,a,t,o).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(J(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function G(n){return s.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",V),V});
|