uikit 3.19.5-dev.8317c4705 → 3.19.5-dev.97cca0902

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/css/uikit-core-rtl.css +2 -2
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +2 -2
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +2 -2
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +2 -2
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +55 -55
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +55 -55
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +11 -18
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +12 -19
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +12 -20
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +12 -19
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +12 -19
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +100 -74
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +103 -77
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/boot.js +6 -7
  44. package/src/js/api/component.js +4 -4
  45. package/src/js/api/computed.js +24 -23
  46. package/src/js/api/observer.js +17 -5
  47. package/src/js/components/slider-parallax.js +2 -2
  48. package/src/js/components/slider.js +1 -1
  49. package/src/js/core/drop.js +1 -2
  50. package/src/js/core/height-placeholder.js +5 -2
  51. package/src/js/core/height-viewport.js +1 -1
  52. package/src/js/core/icon.js +2 -3
  53. package/src/js/core/img.js +1 -1
  54. package/src/js/core/inverse.js +22 -5
  55. package/src/js/core/switcher.js +5 -1
  56. package/src/js/core/toggle.js +7 -3
  57. package/src/js/mixin/slider.js +0 -3
  58. package/src/js/mixin/slideshow.js +3 -0
  59. package/src/js/util/filter.js +1 -11
  60. package/src/js/util/lang.js +1 -1
  61. package/src/js/util/selector.js +5 -5
  62. package/src/js/util/svg.js +1 -12
  63. package/src/less/components/utility.less +1 -1
  64. package/src/scss/components/utility.scss +1 -1
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -147,7 +147,7 @@
147
147
  return value === void 0;
148
148
  }
149
149
  function toNode(element) {
150
- return toNodes(element)[0];
150
+ return element && toNodes(element)[0];
151
151
  }
152
152
  function toNodes(element) {
153
153
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -210,10 +210,11 @@
210
210
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
211
211
  const trailingCommaRe = /\s*,$/;
212
212
  const parseSelector = memoize((selector) => {
213
+ var _a;
213
214
  selector = selector.replace(addStarRe, "$1 *");
214
215
  let isContextSelector = false;
215
216
  const selectors = [];
216
- for (let sel of selector.match(splitSelectorRe)) {
217
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
217
218
  sel = sel.replace(trailingCommaRe, "").trim();
218
219
  if (sel[0] === ">") {
219
220
  sel = `:scope ${sel}`;
@@ -241,7 +242,7 @@
241
242
  let ctx = context;
242
243
  if (sel[0] === "!") {
243
244
  const selectors = sel.substr(1).trim().split(" ");
244
- ctx = parent(context).closest(selectors[0]);
245
+ ctx = context.parentElement.closest(selectors[0]);
245
246
  sel = selectors.slice(1).join(" ").trim();
246
247
  if (!sel.length && isSingle) {
247
248
  return ctx;
@@ -257,9 +258,9 @@
257
258
  }
258
259
  } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
259
260
  return _doQuery(
260
- parent(context),
261
+ ctx.parentElement,
261
262
  queryFn,
262
- `:scope :nth-child(${index(context) + 1}) ${sel}`
263
+ `:scope :nth-child(${index(ctx) + 1}) ${sel}`
263
264
  );
264
265
  }
265
266
  if (ctx) {
@@ -321,18 +322,10 @@
321
322
  }
322
323
 
323
324
  function getMaxPathLength(el) {
324
- return Math.ceil(
325
- Math.max(
326
- 0,
327
- ...$$("[stroke]", el).map((stroke) => {
328
- try {
329
- return stroke.getTotalLength();
330
- } catch (e) {
331
- return 0;
332
- }
333
- })
334
- )
335
- );
325
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
326
+ var _a;
327
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
328
+ })));
336
329
  }
337
330
 
338
331
  const props = {
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&K(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function K(n,t){for(const{read:e,write:r,events:s=[]}of n._updates){if(!t.has("update")&&!s.some(c=>t.has(c)))continue;let o;e&&(o=e.call(n,n._data,t),o&&i.isPlainObject(o)&&i.assign(n._data,o)),r&&o!==!1&&i.fastdom.write(()=>{n._connected&&r.call(n,n._data,t)})}}function X(n){return M(i.observeResize,n,"resize")}function Y(n){return M((t,e)=>i.observeViewportResize(e),n,"resize")}function Z(n){return M((t,e)=>({disconnect:i.on(k(t),"scroll",e,{passive:!0})}),n,"scroll")}function M(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function k(n){return i.toNodes(n).map(t=>{const{ownerDocument:e}=t,r=i.scrollParent(t,!0);return r===e.scrollingElement?e:r})}var U={props:{media:Boolean},data:{media:!1},connected(){const n=nn(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function nn(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function tn(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:An,from:en}=Array;function rn(n){return typeof n=="function"}function F(n){return n!==null&&typeof n=="object"}function on(n){return F(n)&&n===n.window}function sn(n){return A(n)===9}function z(n){return A(n)>=1}function A(n){return!on(n)&&F(n)&&n.nodeType}function O(n){return typeof n=="string"}function cn(n){return n===void 0}function $(n){return h(n)[0]}function h(n){return z(n)?[n]:Array.from(n||[]).filter(z)}function an(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function P(n,t,e){var r;if(F(t)){for(const s in t)P(n,s,t[s]);return}if(cn(e))return(r=$(n))==null?void 0:r.getAttribute(t);for(const s of h(n))rn(e)&&(e=e.call(s,P(s,t))),e===null?fn(s,t):s.setAttribute(t,e)}function fn(n,t){h(n).forEach(e=>e.removeAttribute(t))}function j(n){var t;return(t=$(n))==null?void 0:t.parentElement}function un(n,t){return h(n).filter(e=>T(e,t))}function T(n,t){return h(n).some(e=>e.matches(t))}function dn(n,t){n=$(n);const e=n?en(n.children):[];return t?un(e,t):e}function W(n,t){return t?h(n).indexOf($(t)):dn(j(n)).indexOf(n)}function hn(n,t){return h($n(n,$(t),"querySelectorAll"))}const ln=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,gn=/.*?[^\\](?![^(]*\))(?:,|$)/g,mn=/\s*,$/,bn=an(n=>{n=n.replace(ln,"$1 *");let t=!1;const e=[];for(let r of n.match(gn))r=r.replace(mn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),t||(t=["!","+","~","-"].includes(r[0])),e.push(r);return{selector:e.join(","),selectors:e,isContextSelector:t}});function $n(n,t=document,e){if(!n||!O(n))return n;const r=bn(n);if(!r.isContextSelector)return C(t,e,r.selector);n="";const s=r.selectors.length===1;for(let o of r.selectors){let c=t;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(c=j(t).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&s)return c}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),u=(c||t).previousElementSibling;if(c=T(u,o.substr(1))?u:null,o=a.slice(1).join(" "),!o.length&&s)return c}else if(o[0]==="~"||o[0]==="+"&&s)return C(j(t),e,`:scope :nth-child(${W(t)+1}) ${o}`);c&&(n+=`${n?",":""}${pn(c)} ${o}`)}return sn(t)||(t=t.ownerDocument),C(t,e,n)}function C(n,t,e){try{return n[t](e)}catch{return null}}function pn(n){const t=[];for(;n.parentNode;){const e=P(n,"id");if(e){t.unshift(`#${xn(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${W(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function xn(n){return O(n)?CSS.escape(n):""}const wn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function vn(n){const t=wn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),yn(e.content.childNodes)}function yn(n){return n.length>1?n:n[0]}function Sn(n,t){return _n(n)?h(vn(n)):hn(n,t)}function _n(n){return O(n)&&tn(n.trim(),"<")}function Mn(n){return Math.ceil(Math.max(0,...Sn("[stroke]",n).map(t=>{try{return t.getTotalLength()}catch{return 0}})))}const v={x:y,y,rotate:y,scale:y,color:N,backgroundColor:N,borderColor:N,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Pn,stroke:jn,bgx:R,bgy:R},{keys:D}=Object;var Fn={mixins:[U],props:L(D(v),"list"),data:L(D(v),void 0),computed:{props(n,t){const e={};for(const s in n)s in v&&!i.isUndefined(n[s])&&(e[s]=n[s].slice());const r={};for(const s in e)r[s]=v[s](s,t,e[s],e);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))i.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function y(n,t,e){let r=_(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",s;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,s=o=>i.toFloat(i.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",s=o=>{var c;return _([o])?i.toPx(o,"width",t,!0)/t[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:i.toFloat(o)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,s),(o,c)=>{o.transform=`${o.transform||""} ${n}(${p(e,c)}${r})`}}function N(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e,r=>On(t,r)),(r,s)=>{const[o,c,a]=B(e,s),u=o.map((l,f)=>(l+=a*(c[f]-l),f===3?i.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${u})`}}function On(n,t){return x(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=_(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(s,o)=>{const c=p(e,o);s.filter=`${s.filter||""} ${n}(${c+r})`}}function Pn(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e),(r,s)=>{r[n]=p(e,s)}}function jn(n,t,e){e.length===1&&e.unshift(0);const r=_(e),s=Mn(t);return e=m(e.reverse(),o=>(o=i.toFloat(o),r==="%"?o*s/100:o)),e.some(([o])=>o)?(i.css(t,"strokeDasharray",s),(o,c)=>{o.strokeDashoffset=p(e,c)}):i.noop}function R(n,t,e,r){e.length===1&&e.unshift(0);const s=n==="bgy"?"height":"width";r[n]=m(e,a=>i.toPx(a,s,t));const o=["bgx","bgy"].filter(a=>a in r);if(o.length===2&&n==="bgx")return i.noop;if(x(t,"backgroundSize","")==="cover")return Cn(n,t,e,r);const c={};for(const a of o)c[a]=q(t,a);return H(o,c,r)}function Cn(n,t,e,r){const s=Nn(t);if(!s.width)return i.noop;const o={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([zn])=>zn),w=Math.min(...d),I=Math.max(...d),G=d.indexOf(w)<d.indexOf(I),J=I-w;a[f]=`${(G?-J:0)-(G?w:I)}px`,o[f==="bgy"?"height":"width"]+=J}const u=i.Dimensions.cover(s,o);for(const f of c){const d=f==="bgy"?"height":"width",w=u[d]-o[d];a[f]=`max(${q(t,f)},-${w}px) + ${a[f]}`}const l=H(c,a,r);return(f,d)=>{l(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function q(n,t){return x(n,`background-position-${t.substr(-1)}`,"")}function H(n,t,e){return function(r,s){for(const o of n){const c=p(e[o],s);r[`background-position-${o.substr(-1)}`]=`calc(${t[o]} + ${c}px)`}}}const S={};function Nn(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth)?(e.onload=()=>{S[t]=E(e),i.trigger(n,i.createEvent("load",!1))},E(e)):S[t]=E(e)}function E(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:r}=n;let s=0;for(let o=0;o<r;o++){let[c,a]=i.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(c=t(c),a=a?i.toFloat(a)/100:null,o===0?a===null?a=0:a&&e.push([c,0]):o===r-1&&(a===null?a=1:a!==1&&(e.push([c,a]),a=1)),e.push([c,a]),a===null)s++;else if(s){const u=e[o-s-1][1],l=(a-u)/(s+1);for(let f=s;f>0;f--)e[o-f][1]=u+l*(s-f+1);s=0}}return e}function B(n,t){const e=i.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function p(n,t){const[e,r,s]=B(n,t);return e+Math.abs(e-r)*s*(e<r?1:-1)}const En=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,t){var e;for(const r of n){const s=(e=r.match)==null?void 0:e.call(r,En);if(s)return s[1]}return t}function x(n,t,e){const r=n.style[t],s=i.css(i.css(n,t,e),t);return n.style[t]=r,s}function L(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}function In(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}var V={mixins:[Fn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>Q(n&&i.query(n,t)||t),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return i.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[Y(),Z({target:({target:n})=>n}),X({target:({$el:n,target:t})=>[n,t,i.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=In(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function Q(n){return n?"offsetTop"in n?n:Q(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",V),V});
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&J(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function J(n,t){for(const{read:e,write:r,events:o=[]}of n._updates){if(!t.has("update")&&!o.some(c=>t.has(c)))continue;let s;e&&(s=e.call(n,n._data,t),s&&i.isPlainObject(s)&&i.assign(n._data,s)),r&&s!==!1&&i.fastdom.write(()=>{n._connected&&r.call(n,n._data,t)})}}function K(n){return M(i.observeResize,n,"resize")}function X(n){return M((t,e)=>i.observeViewportResize(e),n,"resize")}function Y(n){return M((t,e)=>({disconnect:i.on(Z(t),"scroll",e,{passive:!0})}),n,"scroll")}function M(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function Z(n){return i.toNodes(n).map(t=>{const{ownerDocument:e}=t,r=i.scrollParent(t,!0);return r===e.scrollingElement?e:r})}var k={props:{media:Boolean},data:{media:!1},connected(){const n=U(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function U(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function nn(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:An,from:tn}=Array;function en(n){return typeof n=="function"}function F(n){return n!==null&&typeof n=="object"}function rn(n){return F(n)&&n===n.window}function on(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!rn(n)&&F(n)&&n.nodeType}function O(n){return typeof n=="string"}function sn(n){return n===void 0}function $(n){return n&&l(n)[0]}function l(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function cn(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function P(n,t,e){var r;if(F(t)){for(const o in t)P(n,o,t[o]);return}if(sn(e))return(r=$(n))==null?void 0:r.getAttribute(t);for(const o of l(n))en(e)&&(e=e.call(o,P(o,t))),e===null?an(o,t):o.setAttribute(t,e)}function an(n,t){l(n).forEach(e=>e.removeAttribute(t))}function fn(n){var t;return(t=$(n))==null?void 0:t.parentElement}function un(n,t){return l(n).filter(e=>A(e,t))}function A(n,t){return l(n).some(e=>e.matches(t))}function dn(n,t){n=$(n);const e=n?tn(n.children):[];return t?un(e,t):e}function T(n,t){return t?l(n).indexOf($(t)):dn(fn(n)).indexOf(n)}function ln(n,t){return l($n(n,$(t),"querySelectorAll"))}const hn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,gn=/.*?[^\\](?![^(]*\))(?:,|$)/g,mn=/\s*,$/,bn=cn(n=>{var t;n=n.replace(hn,"$1 *");let e=!1;const r=[];for(let o of(t=n.match(gn))!=null?t:[])o=o.replace(mn,"").trim(),o[0]===">"&&(o=`:scope ${o}`),e||(e=["!","+","~","-"].includes(o[0])),r.push(o);return{selector:r.join(","),selectors:r,isContextSelector:e}});function $n(n,t=document,e){if(!n||!O(n))return n;const r=bn(n);if(!r.isContextSelector)return j(t,e,r.selector);n="";const o=r.selectors.length===1;for(let s of r.selectors){let c=t;if(s[0]==="!"){const a=s.substr(1).trim().split(" ");if(c=t.parentElement.closest(a[0]),s=a.slice(1).join(" ").trim(),!s.length&&o)return c}if(s[0]==="-"){const a=s.substr(1).trim().split(" "),u=(c||t).previousElementSibling;if(c=A(u,s.substr(1))?u:null,s=a.slice(1).join(" "),!s.length&&o)return c}else if(s[0]==="~"||s[0]==="+"&&o)return j(c.parentElement,e,`:scope :nth-child(${T(c)+1}) ${s}`);c&&(n+=`${n?",":""}${pn(c)} ${s}`)}return on(t)||(t=t.ownerDocument),j(t,e,n)}function j(n,t,e){try{return n[t](e)}catch{return null}}function pn(n){const t=[];for(;n.parentNode;){const e=P(n,"id");if(e){t.unshift(`#${xn(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${T(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function xn(n){return O(n)?CSS.escape(n):""}const vn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function wn(n){const t=vn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),yn(e.content.childNodes)}function yn(n){return n.length>1?n:n[0]}function Sn(n,t){return _n(n)?l(wn(n)):ln(n,t)}function _n(n){return O(n)&&nn(n.trim(),"<")}function Mn(n){return Math.ceil(Math.max(0,...Sn("[stroke]",n).map(t=>{var e;return(e=t.getTotalLength)==null?void 0:e.call(t)})))}const w={x:y,y,rotate:y,scale:y,color:C,backgroundColor:C,borderColor:C,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Pn,stroke:jn,bgx:D,bgy:D},{keys:W}=Object;var Fn={mixins:[k],props:B(W(w),"list"),data:B(W(w),void 0),computed:{props(n,t){const e={};for(const o in n)o in w&&!i.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=w[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))i.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function y(n,t,e){let r=_(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,o=s=>i.toFloat(i.toFloat(s).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=s=>{var c;return _([s])?i.toPx(s,"width",t,!0)/t[`offset${(c=s.endsWith)!=null&&c.call(s,"vh")?"Height":"Width"}`]:i.toFloat(s)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,o),(s,c)=>{s.transform=`${s.transform||""} ${n}(${p(e,c)}${r})`}}function C(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e,r=>On(t,r)),(r,o)=>{const[s,c,a]=H(e,o),u=s.map((h,f)=>(h+=a*(c[f]-h),f===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${u})`}}function On(n,t){return x(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=_(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,s)=>{const c=p(e,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function Pn(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e),(r,o)=>{r[n]=p(e,o)}}function jn(n,t,e){e.length===1&&e.unshift(0);const r=_(e),o=Mn(t);return e=m(e.reverse(),s=>(s=i.toFloat(s),r==="%"?s*o/100:s)),e.some(([s])=>s)?(i.css(t,"strokeDasharray",o),(s,c)=>{s.strokeDashoffset=p(e,c)}):i.noop}function D(n,t,e,r){e.length===1&&e.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(e,a=>i.toPx(a,o,t));const s=["bgx","bgy"].filter(a=>a in r);if(s.length===2&&n==="bgx")return i.noop;if(x(t,"backgroundSize","")==="cover")return Cn(n,t,e,r);const c={};for(const a of s)c[a]=R(t,a);return q(s,c,r)}function Cn(n,t,e,r){const o=Nn(t);if(!o.width)return i.noop;const s={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([zn])=>zn),v=Math.min(...d),E=Math.max(...d),Q=d.indexOf(v)<d.indexOf(E),G=E-v;a[f]=`${(Q?-G:0)-(Q?v:E)}px`,s[f==="bgy"?"height":"width"]+=G}const u=i.Dimensions.cover(o,s);for(const f of c){const d=f==="bgy"?"height":"width",v=u[d]-s[d];a[f]=`max(${R(t,f)},-${v}px) + ${a[f]}`}const h=q(c,a,r);return(f,d)=>{h(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,t){return x(n,`background-position-${t.substr(-1)}`,"")}function q(n,t,e){return function(r,o){for(const s of n){const c=p(e[s],o);r[`background-position-${s.substr(-1)}`]=`calc(${t[s]} + ${c}px)`}}}const S={};function Nn(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth)?(e.onload=()=>{S[t]=N(e),i.trigger(n,i.createEvent("load",!1))},N(e)):S[t]=N(e)}function N(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:r}=n;let o=0;for(let s=0;s<r;s++){let[c,a]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(c=t(c),a=a?i.toFloat(a)/100:null,s===0?a===null?a=0:a&&e.push([c,0]):s===r-1&&(a===null?a=1:a!==1&&(e.push([c,a]),a=1)),e.push([c,a]),a===null)o++;else if(o){const u=e[s-o-1][1],h=(a-u)/(o+1);for(let f=o;f>0;f--)e[s-f][1]=u+h*(o-f+1);o=0}}return e}function H(n,t){const e=i.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function p(n,t){const[e,r,o]=H(n,t);return e+Math.abs(e-r)*o*(e<r?1:-1)}const En=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,En);if(o)return o[1]}return t}function x(n,t,e){const r=n.style[t],o=i.css(i.css(n,t,e),t);return n.style[t]=r,o}function B(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}function In(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}var L={mixins:[Fn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>V(n&&i.query(n,t)||t),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return i.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[X(),Y({target:({target:n})=>n}),K({target:({$el:n,target:t})=>[n,t,i.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=In(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function V(n){return n?"offsetTop"in n?n:V(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",L),L});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -75,7 +75,7 @@
75
75
  return value === void 0;
76
76
  }
77
77
  function toNode(element) {
78
- return toNodes(element)[0];
78
+ return element && toNodes(element)[0];
79
79
  }
80
80
  function toNodes(element) {
81
81
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -138,10 +138,11 @@
138
138
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
139
139
  const trailingCommaRe = /\s*,$/;
140
140
  const parseSelector = memoize((selector) => {
141
+ var _a;
141
142
  selector = selector.replace(addStarRe, "$1 *");
142
143
  let isContextSelector = false;
143
144
  const selectors = [];
144
- for (let sel of selector.match(splitSelectorRe)) {
145
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
145
146
  sel = sel.replace(trailingCommaRe, "").trim();
146
147
  if (sel[0] === ">") {
147
148
  sel = `:scope ${sel}`;
@@ -169,7 +170,7 @@
169
170
  let ctx = context;
170
171
  if (sel[0] === "!") {
171
172
  const selectors = sel.substr(1).trim().split(" ");
172
- ctx = parent(context).closest(selectors[0]);
173
+ ctx = context.parentElement.closest(selectors[0]);
173
174
  sel = selectors.slice(1).join(" ").trim();
174
175
  if (!sel.length && isSingle) {
175
176
  return ctx;
@@ -185,9 +186,9 @@
185
186
  }
186
187
  } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
187
188
  return _doQuery(
188
- parent(context),
189
+ ctx.parentElement,
189
190
  queryFn,
190
- `:scope :nth-child(${index(context) + 1}) ${sel}`
191
+ `:scope :nth-child(${index(ctx) + 1}) ${sel}`
191
192
  );
192
193
  }
193
194
  if (ctx) {
@@ -249,18 +250,10 @@
249
250
  }
250
251
 
251
252
  function getMaxPathLength(el) {
252
- return Math.ceil(
253
- Math.max(
254
- 0,
255
- ...$$("[stroke]", el).map((stroke) => {
256
- try {
257
- return stroke.getTotalLength();
258
- } catch (e) {
259
- return 0;
260
- }
261
- })
262
- )
263
- );
253
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
254
+ var _a;
255
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
256
+ })));
264
257
  }
265
258
 
266
259
  const props = {
@@ -564,7 +557,7 @@
564
557
  var Component = {
565
558
  mixins: [Parallax],
566
559
  beforeConnect() {
567
- this.item = uikitUtil.closest(this.$el, `.${this.$options.id.replace("parallax", "items")} > *`);
560
+ this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
568
561
  },
569
562
  disconnected() {
570
563
  this.item = null;
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=K(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 K(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 X(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:On,from:Y}=Array;function Z(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function k(n){return C(n)&&n===n.window}function U(n){return W(n)===9}function A(n){return W(n)>=1}function W(n){return!k(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function nn(n){return n===void 0}function b(n){return h(n)[0]}function h(n){return A(n)?[n]:Array.from(n||[]).filter(A)}function tn(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function j(n,e,t){var r;if(C(e)){for(const i in e)j(n,i,e[i]);return}if(nn(t))return(r=b(n))==null?void 0:r.getAttribute(e);for(const i of h(n))Z(t)&&(t=t.call(i,j(i,e))),t===null?en(i,e):i.setAttribute(e,t)}function en(n,e){h(n).forEach(t=>t.removeAttribute(e))}function O(n){var e;return(e=b(n))==null?void 0:e.parentElement}function rn(n,e){return h(n).filter(t=>_(t,e))}function _(n,e){return h(n).some(t=>t.matches(e))}function on(n,e){n=b(n);const t=n?Y(n.children):[];return e?rn(t,e):t}function E(n,e){return e?h(n).indexOf(b(e)):on(O(n)).indexOf(n)}function sn(n,e){return h(dn(n,b(e),"querySelectorAll"))}const cn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,an=/.*?[^\\](?![^(]*\))(?:,|$)/g,fn=/\s*,$/,un=tn(n=>{n=n.replace(cn,"$1 *");let e=!1;const t=[];for(let r of n.match(an))r=r.replace(fn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),e||(e=["!","+","~","-"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}});function dn(n,e=document,t){if(!n||!M(n))return n;const r=un(n);if(!r.isContextSelector)return P(e,t,r.selector);n="";const i=r.selectors.length===1;for(let o of r.selectors){let c=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(c=O(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&i)return c}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),u=(c||e).previousElementSibling;if(c=_(u,o.substr(1))?u:null,o=a.slice(1).join(" "),!o.length&&i)return c}else if(o[0]==="~"||o[0]==="+"&&i)return P(O(e),t,`:scope :nth-child(${E(e)+1}) ${o}`);c&&(n+=`${n?",":""}${hn(c)} ${o}`)}return U(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function hn(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${ln(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${E(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function ln(n){return M(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function mn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function bn(n,e){return xn(n)?h(mn(n)):sn(n,e)}function xn(n){return M(n)&&X(n.trim(),"<")}function pn(n){return Math.ceil(Math.max(0,...bn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const w={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:vn,stroke:Sn,bgx:H,bgy:H},{keys:D}=Object;var yn={mixins:[$],props:L(D(w),"list"),data:L(D(w),void 0),computed:{props(n,e){const t={};for(const i in n)i in w&&!s.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=w[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,i=o=>s.toFloat(s.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var c;return F([o])?s.toPx(o,"width",e,!0)/e[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:s.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,c)=>{o.transform=`${o.transform||""} ${n}(${x(t,c)}${r})`}}function I(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>wn(e,r)),(r,i)=>{const[o,c,a]=B(t,i),u=o.map((l,f)=>(l+=a*(c[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${u})`}}function wn(n,e){return p(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 r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const c=x(t,o);i.filter=`${i.filter||""} ${n}(${c+r})`}}function vn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=x(t,i)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=pn(e);return t=m(t.reverse(),o=>(o=s.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(s.css(e,"strokeDasharray",i),(o,c)=>{o.strokeDashoffset=x(t,c)}):s.noop}function H(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,a=>s.toPx(a,i,e));const o=["bgx","bgy"].filter(a=>a in r);if(o.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Fn(n,e,t,r);const c={};for(const a of o)c[a]=R(e,a);return z(o,c,r)}function Fn(n,e,t,r){const i=Cn(e);if(!i.width)return s.noop;const o={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([jn])=>jn),y=Math.min(...d),T=Math.max(...d),G=d.indexOf(y)<d.indexOf(T),J=T-y;a[f]=`${(G?-J:0)-(G?y:T)}px`,o[f==="bgy"?"height":"width"]+=J}const u=s.Dimensions.cover(i,o);for(const f of c){const d=f==="bgy"?"height":"width",y=u[d]-o[d];a[f]=`max(${R(e,f)},-${y}px) + ${a[f]}`}const l=z(c,a,r);return(f,d)=>{l(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function z(n,e,t){return function(r,i){for(const o of n){const c=x(t[o],i);r[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${c}px)`}}}const S={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{S[e]=N(t),s.trigger(n,s.createEvent("load",!1))},N(t)):S[e]=N(t)}function N(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[c,a]=s.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(c=e(c),a=a?s.toFloat(a)/100:null,o===0?a===null?a=0:a&&t.push([c,0]):o===r-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)i++;else if(i){const u=t[o-i-1][1],l=(a-u)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=u+l*(i-f+1);i=0}}return t}function B(n,e){const t=s.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,r,i]=B(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const Mn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,Mn);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=s.css(s.css(n,e,t),e);return n.style[e]=r,i}function L(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var V={mixins:[yn],beforeConnect(){this.item=s.closest(this.$el,`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(Q(n,i,e)),c=this.getCss(q(n)?.5:i>0?1:0);s.fastdom.write(()=>{s.css(this.$el,o),s.Transition.start(this.$el,c,t,r).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 r=this.getCss(Q(n,t,e));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function q(n){return s.endsWith(n,"in")}function Q(n,e,t){return t/=2,q(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",V),V});
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=J(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 J(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 K(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:On,from:X}=Array;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 k(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!Z(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function U(n){return n===void 0}function b(n){return n&&l(n)[0]}function l(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function nn(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function j(n,e,t){var o;if(C(e)){for(const r in e)j(n,r,e[r]);return}if(U(t))return(o=b(n))==null?void 0:o.getAttribute(e);for(const r of l(n))Y(t)&&(t=t.call(r,j(r,e))),t===null?tn(r,e):r.setAttribute(e,t)}function tn(n,e){l(n).forEach(t=>t.removeAttribute(e))}function en(n){var e;return(e=b(n))==null?void 0:e.parentElement}function rn(n,e){return l(n).filter(t=>A(t,e))}function A(n,e){return l(n).some(t=>t.matches(e))}function on(n,e){n=b(n);const t=n?X(n.children):[];return e?rn(t,e):t}function E(n,e){return e?l(n).indexOf(b(e)):on(en(n)).indexOf(n)}function sn(n,e){return l(dn(n,b(e),"querySelectorAll"))}const cn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,an=/.*?[^\\](?![^(]*\))(?:,|$)/g,fn=/\s*,$/,un=nn(n=>{var e;n=n.replace(cn,"$1 *");let t=!1;const o=[];for(let r of(e=n.match(an))!=null?e:[])r=r.replace(fn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),t||(t=["!","+","~","-"].includes(r[0])),o.push(r);return{selector:o.join(","),selectors:o,isContextSelector:t}});function dn(n,e=document,t){if(!n||!M(n))return n;const o=un(n);if(!o.isContextSelector)return O(e,t,o.selector);n="";const r=o.selectors.length===1;for(let i of o.selectors){let c=e;if(i[0]==="!"){const a=i.substr(1).trim().split(" ");if(c=e.parentElement.closest(a[0]),i=a.slice(1).join(" ").trim(),!i.length&&r)return c}if(i[0]==="-"){const a=i.substr(1).trim().split(" "),u=(c||e).previousElementSibling;if(c=A(u,i.substr(1))?u:null,i=a.slice(1).join(" "),!i.length&&r)return c}else if(i[0]==="~"||i[0]==="+"&&r)return O(c.parentElement,t,`:scope :nth-child(${E(c)+1}) ${i}`);c&&(n+=`${n?",":""}${ln(c)} ${i}`)}return k(e)||(e=e.ownerDocument),O(e,t,n)}function O(n,e,t){try{return n[e](t)}catch{return null}}function ln(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${hn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${E(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function hn(n){return M(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function mn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function bn(n,e){return xn(n)?l(mn(n)):sn(n,e)}function xn(n){return M(n)&&K(n.trim(),"<")}function pn(n){return Math.ceil(Math.max(0,...bn("[stroke]",n).map(e=>{var t;return(t=e.getTotalLength)==null?void 0:t.call(e)})))}const w={x:v,y:v,rotate:v,scale:v,color:P,backgroundColor:P,borderColor:P,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:vn,stroke:Sn,bgx:D,bgy:D},{keys:W}=Object;var yn={mixins:[$],props:B(W(w),"list"),data:B(W(w),void 0),computed:{props(n,e){const t={};for(const r in n)r in w&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=w[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={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let o=F(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=>{var c;return F([i])?s.toPx(i,"width",e,!0)/e[`offset${(c=i.endsWith)!=null&&c.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,r),(i,c)=>{i.transform=`${i.transform||""} ${n}(${x(t,c)}${o})`}}function P(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,o=>wn(e,o)),(o,r)=>{const[i,c,a]=z(t,r),u=i.map((h,f)=>(h+=a*(c[f]-h),f===3?s.toFloat(h):parseInt(h,10))).join(",");o[n]=`rgba(${u})`}}function wn(n,e){return p(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=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(r,i)=>{const c=x(t,i);r.filter=`${r.filter||""} ${n}(${c+o})`}}function vn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(o,r)=>{o[n]=x(t,r)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const o=F(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,c)=>{i.strokeDashoffset=x(t,c)}):s.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=m(t,a=>s.toPx(a,r,e));const i=["bgx","bgy"].filter(a=>a in o);if(i.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Fn(n,e,t,o);const c={};for(const a of i)c[a]=H(e,a);return R(i,c,o)}function Fn(n,e,t,o){const r=Cn(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),a={};for(const f of c){const d=o[f].map(([jn])=>jn),y=Math.min(...d),_=Math.max(...d),Q=d.indexOf(y)<d.indexOf(_),G=_-y;a[f]=`${(Q?-G:0)-(Q?y:_)}px`,i[f==="bgy"?"height":"width"]+=G}const u=s.Dimensions.cover(r,i);for(const f of c){const d=f==="bgy"?"height":"width",y=u[d]-i[d];a[f]=`max(${H(e,f)},-${y}px) + ${a[f]}`}const h=R(c,a,o);return(f,d)=>{h(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function H(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function R(n,e,t){return function(o,r){for(const i of n){const c=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${c}px)`}}}const S={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{S[e]=I(t),s.trigger(n,s.createEvent("load",!1))},I(t)):S[e]=I(t)}function I(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[c,a]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(c=e(c),a=a?s.toFloat(a)/100:null,i===0?a===null?a=0:a&&t.push([c,0]):i===o-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)r++;else if(r){const u=t[i-r-1][1],h=(a-u)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=u+h*(r-f+1);r=0}}return t}function z(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 x(n,e){const[t,o,r]=z(n,e);return t+Math.abs(t-o)*r*(t<o?1:-1)}const Mn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,Mn);if(r)return r[1]}return e}function p(n,e,t){const o=n.style[e],r=s.css(s.css(n,e,t),e);return n.style[e]=o,r}function B(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var L={mixins:[yn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},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(q(n,r,e)),c=this.getCss(V(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,c,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(q(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function V(n){return s.endsWith(n,"in")}function q(n,e,t){return t/=2,V(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",L),L});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -579,7 +579,6 @@
579
579
  }
580
580
  }
581
581
  },
582
- observe: resize(),
583
582
  events: {
584
583
  itemshow({ target }) {
585
584
  util.addClass(target, this.clsEnter, this.clsSlideActive);
@@ -758,7 +757,7 @@
758
757
  return value === void 0;
759
758
  }
760
759
  function toNode(element) {
761
- return toNodes(element)[0];
760
+ return element && toNodes(element)[0];
762
761
  }
763
762
  function toNodes(element) {
764
763
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -821,10 +820,11 @@
821
820
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
822
821
  const trailingCommaRe = /\s*,$/;
823
822
  const parseSelector = memoize((selector) => {
823
+ var _a;
824
824
  selector = selector.replace(addStarRe, "$1 *");
825
825
  let isContextSelector = false;
826
826
  const selectors = [];
827
- for (let sel of selector.match(splitSelectorRe)) {
827
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
828
828
  sel = sel.replace(trailingCommaRe, "").trim();
829
829
  if (sel[0] === ">") {
830
830
  sel = `:scope ${sel}`;
@@ -852,7 +852,7 @@
852
852
  let ctx = context;
853
853
  if (sel[0] === "!") {
854
854
  const selectors = sel.substr(1).trim().split(" ");
855
- ctx = parent(context).closest(selectors[0]);
855
+ ctx = context.parentElement.closest(selectors[0]);
856
856
  sel = selectors.slice(1).join(" ").trim();
857
857
  if (!sel.length && isSingle) {
858
858
  return ctx;
@@ -868,9 +868,9 @@
868
868
  }
869
869
  } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
870
870
  return _doQuery(
871
- parent(context),
871
+ ctx.parentElement,
872
872
  queryFn,
873
- `:scope :nth-child(${index(context) + 1}) ${sel}`
873
+ `:scope :nth-child(${index(ctx) + 1}) ${sel}`
874
874
  );
875
875
  }
876
876
  if (ctx) {
@@ -932,18 +932,10 @@
932
932
  }
933
933
 
934
934
  function getMaxPathLength(el) {
935
- return Math.ceil(
936
- Math.max(
937
- 0,
938
- ...$$("[stroke]", el).map((stroke) => {
939
- try {
940
- return stroke.getTotalLength();
941
- } catch (e) {
942
- return 0;
943
- }
944
- })
945
- )
946
- );
935
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
936
+ var _a;
937
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
938
+ })));
947
939
  }
948
940
 
949
941
  const props = {
@@ -1587,7 +1579,7 @@
1587
1579
  util.toggleClass(this.$el, this.clsContainer, !util.$(`.${this.clsContainer}`, this.$el));
1588
1580
  },
1589
1581
  observe: resize({
1590
- target: ({ slides }) => slides
1582
+ target: ({ slides, $el }) => [$el, ...slides]
1591
1583
  }),
1592
1584
  update: {
1593
1585
  write() {
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ft(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ft(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function P(t){return D(s.observeResize,t,"resize")}function gt(t){return D(s.observeIntersection,t)}function ut(t={}){return gt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function mt(t){return D((e,i)=>({disconnect:s.on(pt(e),"scroll",i,{passive:!0})}),t,"scroll")}function D(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function pt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var xt={connected(){s.addClass(this.$el,this.$options.id)}},vt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},wt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},V={passive:!0,capture:!0},It="touchstart mousedown",F="touchmove mousemove",q="touchend touchcancel mouseup click input scroll",G=t=>t.preventDefault();var bt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:It,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&$t(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,el(){return this.list},handler:s.noop,...b}],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,s.on(document,F,this.move,b),s.on(document,q,this.end,V),s.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;this.dragging||s.on(this.list,"click",G,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),a=X.call(this,n,r);for(;r!==n&&o>a;)this.drag-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=X.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],l=this.index!==r,c=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,F,this.move,b),s.off(document,q,this.end,V),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=(s.isRtl?this.dir*(s.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)}setTimeout(()=>s.off(this.list,"click",G,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function X(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function $t(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let yt=1;function Q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${yt++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var St={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=Q(this,h)),r=h.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=Q(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{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},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},kt={mixins:[wt,bt,St,vt],props:{clsActivated:String,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:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>J(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:P(),events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),l=this.slides[d];if(h===l){r();return}if(this.dir=At(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return s.clamp(s.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,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?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}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function At(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function J(t){return .5*t+300}var Ct={props:{media:Boolean},data:{media:!1},connected(){const t=_t(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);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 t;(t=this.offMediaObj)==null||t.call(this)}};function _t(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Mt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:me,from:Nt}=Array;function Et(t){return typeof t=="function"}function j(t){return t!==null&&typeof t=="object"}function Ot(t){return j(t)&&t===t.window}function Tt(t){return Y(t)===9}function K(t){return Y(t)>=1}function Y(t){return!Ot(t)&&j(t)&&t.nodeType}function R(t){return typeof t=="string"}function Pt(t){return t===void 0}function y(t){return p(t)[0]}function p(t){return K(t)?[t]:Array.from(t||[]).filter(K)}function Dt(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function W(t,e,i){var n;if(j(e)){for(const o in e)W(t,o,e[o]);return}if(Pt(i))return(n=y(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Et(i)&&(i=i.call(o,W(o,e))),i===null?Ft(o,e):o.setAttribute(e,i)}function Ft(t,e){p(t).forEach(i=>i.removeAttribute(e))}function L(t){var e;return(e=y(t))==null?void 0:e.parentElement}function jt(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Rt(t,e){t=y(t);const i=t?Nt(t.children):[];return e?jt(i,e):i}function tt(t,e){return e?p(t).indexOf(y(e)):Rt(L(t)).indexOf(t)}function Wt(t,e){return p(Ut(t,y(e),"querySelectorAll"))}const Lt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=/.*?[^\\](?![^(]*\))(?:,|$)/g,zt=/\s*,$/,Bt=Dt(t=>{t=t.replace(Lt,"$1 *");let e=!1;const i=[];for(let n of t.match(Ht))n=n.replace(zt,"").trim(),n[0]===">"&&(n=`:scope ${n}`),e||(e=["!","+","~","-"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}});function Ut(t,e=document,i){if(!t||!R(t))return t;const n=Bt(t);if(!n.isContextSelector)return H(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let a=e;if(r[0]==="!"){const h=r.substr(1).trim().split(" ");if(a=L(e).closest(h[0]),r=h.slice(1).join(" ").trim(),!r.length&&o)return a}if(r[0]==="-"){const h=r.substr(1).trim().split(" "),d=(a||e).previousElementSibling;if(a=Z(d,r.substr(1))?d:null,r=h.slice(1).join(" "),!r.length&&o)return a}else if(r[0]==="~"||r[0]==="+"&&o)return H(L(e),i,`:scope :nth-child(${tt(e)+1}) ${r}`);a&&(t+=`${t?",":""}${Vt(a)} ${r}`)}return Tt(e)||(e=e.ownerDocument),H(e,i,t)}function H(t,e,i){try{return t[e](i)}catch{return null}}function Vt(t){const e=[];for(;t.parentNode;){const i=W(t,"id");if(i){e.unshift(`#${qt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${tt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function qt(t){return R(t)?CSS.escape(t):""}const Gt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Xt(t){const e=Gt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Qt(i.content.childNodes)}function Qt(t){return t.length>1?t:t[0]}function Jt(t,e){return Kt(t)?p(Xt(t)):Wt(t,e)}function Kt(t){return R(t)&&Mt(t.trim(),"<")}function Yt(t){return Math.ceil(Math.max(0,...Jt("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const _={x:M,y:M,rotate:M,scale:M,color:z,backgroundColor:z,borderColor:z,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:te,stroke:ee,bgx:st,bgy:st},{keys:et}=Object;ot(et(_),"list"),ot(et(_),void 0);function M(t,e,i){let n=E(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${S(i,a)}${n})`}}function z(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i,n=>Zt(e,n)),(n,o)=>{const[r,a,h]=rt(i,o),d=r.map((l,c)=>(l+=h*(a[c]-l),c===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${d})`}}function Zt(t,e){return k(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=S(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function te(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i),(n,o)=>{n[t]=S(i,o)}}function ee(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Yt(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,a)=>{r.strokeDashoffset=S(i,a)}):s.noop}function st(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(k(e,"backgroundSize","")==="cover")return se(t,e,i,n);const a={};for(const h of r)a[h]=it(e,h);return nt(r,a,n)}function se(t,e,i,n){const o=ie(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(c=>c in n),h={};for(const c of a){const f=n[c].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),C=u-g;h[c]=`${(m?-C:0)-(m?g:u)}px`,r[c==="bgy"?"height":"width"]+=C}const d=s.Dimensions.cover(o,r);for(const c of a){const f=c==="bgy"?"height":"width",g=d[f]-r[f];h[c]=`max(${it(e,c)},-${g}px) + ${h[c]}`}const l=nt(a,h,n);return(c,f)=>{l(c,f),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function it(t,e){return k(t,`background-position-${e.substr(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const a=S(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ie(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=B(i),s.trigger(t,s.createEvent("load",!1))},B(i)):N[e]=B(i)}function B(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const d=i[r-o-1][1],l=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+l*(o-c+1);o=0}}return i}function rt(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function S(t,e){const[i,n,o]=rt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const ne=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,ne);if(o)return o[1]}return e}function k(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function ot(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function re(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var oe={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[P({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),mt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=re(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],d=this.slides[a],{triggerShow:l,triggerShown:c,triggerHide:f,triggerHidden:g}=ae(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==d&&f(h),l(d),u&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ae(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:a,triggerHidden:h};function o(d){s.hasClass(d,n)&&(a(d),h(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,i)&&s.trigger(d,"itemshown",[t])}function a(d){s.hasClass(d,e)||o(d),s.hasClass(d,i)&&r(d),s.hasClass(d,n)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function h(d){s.hasClass(d,n)&&s.trigger(d,"itemhidden",[t])}}var he={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},de={observe:ut({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function at(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function ce(t,e,i,{center:n,easing:o,list:r}){const a=t?A(t,r,n):A(e,r,n)+s.dimensions(e).width*i,h=e?A(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let d;return{dir:i,show(l,c=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(c,-1,1)),this.translate(c),c=t?c:s.clamp(c,0,1),U(this.getItemIn(),"itemin",{percent:c,duration:l,timing:g,dir:i}),t&&U(this.getItemIn(!0),"itemout",{percent:1-c,duration:l,timing:g,dir:i}),new Promise(u=>{d||(d=u),s.Transition.start(r,{transform:at(-h*(s.isRtl?-1:1),"px")},l,g).then(d,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,c=this.percent()){return await this.cancel(),this.show(l,c,!0)},translate(l){const c=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",at(s.clamp(-h+(c-c*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const C=s.includes(f,m),T=m===g,lt=m===u,ue=T||!lt&&(C||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));U(m,`itemtranslate${ue?"in":"out"}`,{dir:i,percent:lt?1-l:T?l:C?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let c=this.getActives(),f=dt(r,A(e||t,r,n));if(l){const g=c;c=f,f=g}return f[s.findIndex(f,g=>!s.includes(c,g))]},getActives(){return dt(r,A(t||e,r,n))}}}function A(t,e,i){const n=O(t,e);return i?n-le(t,e):Math.min(n,ht(e))}function ht(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function le(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function dt(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function U(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var ct={mixins:[xt,kt,he,oe,de],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:ce},computed:{finite({finite:t}){return t||fe(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=ht(this.list),i=s.findIndex(this.slides,n=>{if(t>=e)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(+o+1,this.slides)]).width/2>n/2&&(i.push(+o),e=n/2-r/2):e===0&&i.push(Math.min(+o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:P({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.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 o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=J(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const l=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>d&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,a=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/a%1,n-=a}while(n>=0&&e<this.maxIndex);return[e,o]}}};function fe(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+ge(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,d=new Set([a]);let l=0;for(const c of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;f+=s.dimensions(u).width,d.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function ge(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",ct),ct});
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&lt(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function lt(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function B(t){return P(s.observeResize,t,"resize")}function ft(t){return P(s.observeIntersection,t)}function gt(t={}){return ft({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function ut(t){return P((e,i)=>({disconnect:s.on(mt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function mt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var pt={connected(){s.addClass(this.$el,this.$options.id)}},xt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},vt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},U={passive:!0,capture:!0},wt="touchstart mousedown",D="touchmove mousemove",V="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var It={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:wt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&bt(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:D,el(){return this.list},handler:s.noop,...b}],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,s.on(document,D,this.move,b),s.on(document,V,this.end,U),s.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;this.dragging||s.on(this.list,"click",q,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),a=G.call(this,n,r);for(;r!==n&&o>a;)this.drag-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=G.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],l=this.index!==r,c=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,D,this.move,b),s.off(document,V,this.end,U),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=(s.isRtl?this.dir*(s.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)}setTimeout(()=>s.off(this.list,"click",q,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function G(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function bt(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let $t=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${$t++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var yt={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=X(this,h)),r=h.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=X(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{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},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},St={mixins:[vt,It,yt,xt],props:{clsActivated:String,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:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),l=this.slides[d];if(h===l){r();return}if(this.dir=kt(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return s.clamp(s.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,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?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}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function kt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}var _t={props:{media:Boolean},data:{media:!1},connected(){const t=At(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);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 t;(t=this.offMediaObj)==null||t.call(this)}};function At(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Ct(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:me,from:Mt}=Array;function Nt(t){return typeof t=="function"}function F(t){return t!==null&&typeof t=="object"}function Et(t){return F(t)&&t===t.window}function Ot(t){return K(t)===9}function J(t){return K(t)>=1}function K(t){return!Et(t)&&F(t)&&t.nodeType}function j(t){return typeof t=="string"}function Tt(t){return t===void 0}function y(t){return t&&p(t)[0]}function p(t){return J(t)?[t]:Array.from(t||[]).filter(J)}function Pt(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function R(t,e,i){var n;if(F(e)){for(const o in e)R(t,o,e[o]);return}if(Tt(i))return(n=y(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Nt(i)&&(i=i.call(o,R(o,e))),i===null?Dt(o,e):o.setAttribute(e,i)}function Dt(t,e){p(t).forEach(i=>i.removeAttribute(e))}function Ft(t){var e;return(e=y(t))==null?void 0:e.parentElement}function jt(t,e){return p(t).filter(i=>Y(i,e))}function Y(t,e){return p(t).some(i=>i.matches(e))}function Rt(t,e){t=y(t);const i=t?Mt(t.children):[];return e?jt(i,e):i}function Z(t,e){return e?p(t).indexOf(y(e)):Rt(Ft(t)).indexOf(t)}function Wt(t,e){return p(Ut(t,y(e),"querySelectorAll"))}const Lt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=/.*?[^\\](?![^(]*\))(?:,|$)/g,zt=/\s*,$/,Bt=Pt(t=>{var e;t=t.replace(Lt,"$1 *");let i=!1;const n=[];for(let o of(e=t.match(Ht))!=null?e:[])o=o.replace(zt,"").trim(),o[0]===">"&&(o=`:scope ${o}`),i||(i=["!","+","~","-"].includes(o[0])),n.push(o);return{selector:n.join(","),selectors:n,isContextSelector:i}});function Ut(t,e=document,i){if(!t||!j(t))return t;const n=Bt(t);if(!n.isContextSelector)return W(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let a=e;if(r[0]==="!"){const h=r.substr(1).trim().split(" ");if(a=e.parentElement.closest(h[0]),r=h.slice(1).join(" ").trim(),!r.length&&o)return a}if(r[0]==="-"){const h=r.substr(1).trim().split(" "),d=(a||e).previousElementSibling;if(a=Y(d,r.substr(1))?d:null,r=h.slice(1).join(" "),!r.length&&o)return a}else if(r[0]==="~"||r[0]==="+"&&o)return W(a.parentElement,i,`:scope :nth-child(${Z(a)+1}) ${r}`);a&&(t+=`${t?",":""}${Vt(a)} ${r}`)}return Ot(e)||(e=e.ownerDocument),W(e,i,t)}function W(t,e,i){try{return t[e](i)}catch{return null}}function Vt(t){const e=[];for(;t.parentNode;){const i=R(t,"id");if(i){e.unshift(`#${qt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Z(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function qt(t){return j(t)?CSS.escape(t):""}const Gt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Xt(t){const e=Gt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Qt(i.content.childNodes)}function Qt(t){return t.length>1?t:t[0]}function Jt(t,e){return Kt(t)?p(Xt(t)):Wt(t,e)}function Kt(t){return j(t)&&Ct(t.trim(),"<")}function Yt(t){return Math.ceil(Math.max(0,...Jt("[stroke]",t).map(e=>{var i;return(i=e.getTotalLength)==null?void 0:i.call(e)})))}const C={x:M,y:M,rotate:M,scale:M,color:L,backgroundColor:L,borderColor:L,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:te,stroke:ee,bgx:et,bgy:et},{keys:tt}=Object;rt(tt(C),"list"),rt(tt(C),void 0);function M(t,e,i){let n=E(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${S(i,a)}${n})`}}function L(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i,n=>Zt(e,n)),(n,o)=>{const[r,a,h]=nt(i,o),d=r.map((l,c)=>(l+=h*(a[c]-l),c===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${d})`}}function Zt(t,e){return k(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=S(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function te(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i),(n,o)=>{n[t]=S(i,o)}}function ee(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Yt(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,a)=>{r.strokeDashoffset=S(i,a)}):s.noop}function et(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(k(e,"backgroundSize","")==="cover")return se(t,e,i,n);const a={};for(const h of r)a[h]=st(e,h);return it(r,a,n)}function se(t,e,i,n){const o=ie(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(c=>c in n),h={};for(const c of a){const f=n[c].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),A=u-g;h[c]=`${(m?-A:0)-(m?g:u)}px`,r[c==="bgy"?"height":"width"]+=A}const d=s.Dimensions.cover(o,r);for(const c of a){const f=c==="bgy"?"height":"width",g=d[f]-r[f];h[c]=`max(${st(e,c)},-${g}px) + ${h[c]}`}const l=it(a,h,n);return(c,f)=>{l(c,f),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function st(t,e){return k(t,`background-position-${e.substr(-1)}`,"")}function it(t,e,i){return function(n,o){for(const r of t){const a=S(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ie(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=H(i),s.trigger(t,s.createEvent("load",!1))},H(i)):N[e]=H(i)}function H(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const d=i[r-o-1][1],l=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+l*(o-c+1);o=0}}return i}function nt(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function S(t,e){const[i,n,o]=nt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const ne=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,ne);if(o)return o[1]}return e}function k(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function rt(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function re(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var oe={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[B({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ut({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=re(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],d=this.slides[a],{triggerShow:l,triggerShown:c,triggerHide:f,triggerHidden:g}=ae(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==d&&f(h),l(d),u&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ae(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:a,triggerHidden:h};function o(d){s.hasClass(d,n)&&(a(d),h(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,i)&&s.trigger(d,"itemshown",[t])}function a(d){s.hasClass(d,e)||o(d),s.hasClass(d,i)&&r(d),s.hasClass(d,n)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function h(d){s.hasClass(d,n)&&s.trigger(d,"itemhidden",[t])}}var he={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},de={observe:gt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ot(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function ce(t,e,i,{center:n,easing:o,list:r}){const a=t?_(t,r,n):_(e,r,n)+s.dimensions(e).width*i,h=e?_(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let d;return{dir:i,show(l,c=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(c,-1,1)),this.translate(c),c=t?c:s.clamp(c,0,1),z(this.getItemIn(),"itemin",{percent:c,duration:l,timing:g,dir:i}),t&&z(this.getItemIn(!0),"itemout",{percent:1-c,duration:l,timing:g,dir:i}),new Promise(u=>{d||(d=u),s.Transition.start(r,{transform:ot(-h*(s.isRtl?-1:1),"px")},l,g).then(d,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,c=this.percent()){return await this.cancel(),this.show(l,c,!0)},translate(l){const c=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ot(s.clamp(-h+(c-c*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const A=s.includes(f,m),T=m===g,ct=m===u,ue=T||!ct&&(A||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));z(m,`itemtranslate${ue?"in":"out"}`,{dir:i,percent:ct?1-l:T?l:A?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let c=this.getActives(),f=ht(r,_(e||t,r,n));if(l){const g=c;c=f,f=g}return f[s.findIndex(f,g=>!s.includes(c,g))]},getActives(){return ht(r,_(t||e,r,n))}}}function _(t,e,i){const n=O(t,e);return i?n-le(t,e):Math.min(n,at(e))}function at(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function le(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function ht(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function z(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var dt={mixins:[pt,St,he,oe,de],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:ce},computed:{finite({finite:t}){return t||fe(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=at(this.list),i=s.findIndex(this.slides,n=>{if(t>=e)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(+o+1,this.slides)]).width/2>n/2&&(i.push(+o),e=n/2-r/2):e===0&&i.push(Math.min(+o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:B({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.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 o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=Q(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const l=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>d&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,a=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/a%1,n-=a}while(n>=0&&e<this.maxIndex);return[e,o]}}};function fe(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+ge(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,d=new Set([a]);let l=0;for(const c of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;f+=s.dimensions(u).width,d.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function ge(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",dt),dt});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.97cca0902 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -75,7 +75,7 @@
75
75
  return value === void 0;
76
76
  }
77
77
  function toNode(element) {
78
- return toNodes(element)[0];
78
+ return element && toNodes(element)[0];
79
79
  }
80
80
  function toNodes(element) {
81
81
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -138,10 +138,11 @@
138
138
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
139
139
  const trailingCommaRe = /\s*,$/;
140
140
  const parseSelector = memoize((selector) => {
141
+ var _a;
141
142
  selector = selector.replace(addStarRe, "$1 *");
142
143
  let isContextSelector = false;
143
144
  const selectors = [];
144
- for (let sel of selector.match(splitSelectorRe)) {
145
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
145
146
  sel = sel.replace(trailingCommaRe, "").trim();
146
147
  if (sel[0] === ">") {
147
148
  sel = `:scope ${sel}`;
@@ -169,7 +170,7 @@
169
170
  let ctx = context;
170
171
  if (sel[0] === "!") {
171
172
  const selectors = sel.substr(1).trim().split(" ");
172
- ctx = parent(context).closest(selectors[0]);
173
+ ctx = context.parentElement.closest(selectors[0]);
173
174
  sel = selectors.slice(1).join(" ").trim();
174
175
  if (!sel.length && isSingle) {
175
176
  return ctx;
@@ -185,9 +186,9 @@
185
186
  }
186
187
  } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
187
188
  return _doQuery(
188
- parent(context),
189
+ ctx.parentElement,
189
190
  queryFn,
190
- `:scope :nth-child(${index(context) + 1}) ${sel}`
191
+ `:scope :nth-child(${index(ctx) + 1}) ${sel}`
191
192
  );
192
193
  }
193
194
  if (ctx) {
@@ -249,18 +250,10 @@
249
250
  }
250
251
 
251
252
  function getMaxPathLength(el) {
252
- return Math.ceil(
253
- Math.max(
254
- 0,
255
- ...$$("[stroke]", el).map((stroke) => {
256
- try {
257
- return stroke.getTotalLength();
258
- } catch (e) {
259
- return 0;
260
- }
261
- })
262
- )
263
- );
253
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
254
+ var _a;
255
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
256
+ })));
264
257
  }
265
258
 
266
259
  const props = {
@@ -564,7 +557,7 @@
564
557
  var Component = {
565
558
  mixins: [Parallax],
566
559
  beforeConnect() {
567
- this.item = uikitUtil.closest(this.$el, `.${this.$options.id.replace("parallax", "items")} > *`);
560
+ this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
568
561
  },
569
562
  disconnected() {
570
563
  this.item = null;