uikit 3.16.4-dev.fd2458e3b → 3.16.5-dev.dda1f1b31

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 (120) hide show
  1. package/.eslintrc.json +1 -0
  2. package/CHANGELOG.md +9 -1
  3. package/build/build.js +5 -4
  4. package/build/icons.js +2 -1
  5. package/build/less.js +2 -11
  6. package/build/prefix.js +2 -1
  7. package/build/release.js +4 -3
  8. package/build/scope.js +2 -1
  9. package/build/scss.js +2 -1
  10. package/build/util.js +3 -3
  11. package/dist/css/uikit-core-rtl.css +1 -1
  12. package/dist/css/uikit-core-rtl.min.css +1 -1
  13. package/dist/css/uikit-core.css +1 -1
  14. package/dist/css/uikit-core.min.css +1 -1
  15. package/dist/css/uikit-rtl.css +1 -1
  16. package/dist/css/uikit-rtl.min.css +1 -1
  17. package/dist/css/uikit.css +1 -1
  18. package/dist/css/uikit.min.css +1 -1
  19. package/dist/js/components/countdown.js +12 -14
  20. package/dist/js/components/countdown.min.js +1 -1
  21. package/dist/js/components/filter.js +506 -22
  22. package/dist/js/components/filter.min.js +1 -1
  23. package/dist/js/components/lightbox-panel.js +2601 -310
  24. package/dist/js/components/lightbox-panel.min.js +1 -1
  25. package/dist/js/components/lightbox.js +2612 -323
  26. package/dist/js/components/lightbox.min.js +1 -1
  27. package/dist/js/components/notification.js +1 -1
  28. package/dist/js/components/notification.min.js +1 -1
  29. package/dist/js/components/parallax.js +466 -43
  30. package/dist/js/components/parallax.min.js +1 -1
  31. package/dist/js/components/slider-parallax.js +184 -2
  32. package/dist/js/components/slider-parallax.min.js +1 -1
  33. package/dist/js/components/slider.js +2345 -49
  34. package/dist/js/components/slider.min.js +1 -1
  35. package/dist/js/components/slideshow-parallax.js +184 -2
  36. package/dist/js/components/slideshow-parallax.min.js +1 -1
  37. package/dist/js/components/slideshow.js +2339 -49
  38. package/dist/js/components/slideshow.min.js +1 -1
  39. package/dist/js/components/sortable.js +472 -1
  40. package/dist/js/components/sortable.min.js +1 -1
  41. package/dist/js/components/tooltip.js +2298 -11
  42. package/dist/js/components/tooltip.min.js +1 -1
  43. package/dist/js/components/upload.js +1 -1
  44. package/dist/js/components/upload.min.js +1 -1
  45. package/dist/js/uikit-core.js +951 -931
  46. package/dist/js/uikit-core.min.js +1 -1
  47. package/dist/js/uikit-icons.js +153 -152
  48. package/dist/js/uikit-icons.min.js +1 -1
  49. package/dist/js/uikit.js +979 -954
  50. package/dist/js/uikit.min.js +1 -1
  51. package/package.json +2 -2
  52. package/src/images/icons/mastodon.svg +3 -0
  53. package/src/js/api/app.js +12 -0
  54. package/src/js/api/boot.js +64 -43
  55. package/src/js/api/component.js +60 -61
  56. package/src/js/api/computed.js +39 -0
  57. package/src/js/api/events.js +45 -0
  58. package/src/js/api/global.js +58 -56
  59. package/src/js/api/hooks.js +35 -114
  60. package/src/js/api/index.js +8 -24
  61. package/src/js/api/instance.js +55 -55
  62. package/src/js/api/log.js +10 -0
  63. package/src/js/api/observables.js +125 -0
  64. package/src/js/api/observer.js +76 -0
  65. package/src/js/{util → api}/options.js +38 -1
  66. package/src/js/api/props.js +102 -0
  67. package/src/js/api/state.js +26 -280
  68. package/src/js/api/update.js +77 -0
  69. package/src/js/api/watch.js +34 -0
  70. package/src/js/components/countdown.js +14 -16
  71. package/src/js/components/filter.js +18 -24
  72. package/src/js/components/internal/slider-preload.js +5 -6
  73. package/src/js/components/lightbox-panel.js +1 -1
  74. package/src/js/components/lightbox.js +11 -23
  75. package/src/js/components/parallax.js +8 -6
  76. package/src/js/components/slider.js +10 -0
  77. package/src/js/components/tooltip.js +2 -1
  78. package/src/js/core/accordion.js +5 -6
  79. package/src/js/core/cover.js +9 -9
  80. package/src/js/core/drop.js +13 -6
  81. package/src/js/core/dropnav.js +1 -1
  82. package/src/js/core/grid.js +2 -5
  83. package/src/js/core/height-match.js +9 -16
  84. package/src/js/core/height-viewport.js +5 -7
  85. package/src/js/core/img.js +12 -19
  86. package/src/js/core/leader.js +4 -2
  87. package/src/js/core/margin.js +11 -21
  88. package/src/js/core/modal.js +1 -1
  89. package/src/js/core/offcanvas.js +6 -2
  90. package/src/js/core/overflow-auto.js +5 -5
  91. package/src/js/core/responsive.js +5 -7
  92. package/src/js/core/scroll.js +19 -10
  93. package/src/js/core/scrollspy-nav.js +6 -5
  94. package/src/js/core/scrollspy.js +27 -36
  95. package/src/js/core/sticky.js +12 -10
  96. package/src/js/core/svg.js +4 -2
  97. package/src/js/core/switcher.js +11 -9
  98. package/src/js/core/toggle.js +4 -4
  99. package/src/js/core/video.js +6 -14
  100. package/src/js/mixin/modal.js +2 -1
  101. package/src/js/mixin/parallax.js +1 -1
  102. package/src/js/mixin/slider-nav.js +2 -1
  103. package/src/js/mixin/slider.js +9 -3
  104. package/src/js/util/filter.js +13 -0
  105. package/src/js/util/index.js +0 -1
  106. package/src/js/util/keys.js +11 -0
  107. package/src/js/util/lang.js +7 -7
  108. package/src/js/util/observer.js +4 -2
  109. package/src/js/util/scroll.js +42 -0
  110. package/src/js/util/svg.js +16 -0
  111. package/src/js/util/viewport.js +1 -1
  112. package/src/scss/mixins-theme.scss +1640 -1596
  113. package/src/scss/mixins.scss +1370 -1370
  114. package/src/scss/variables-theme.scss +1255 -1255
  115. package/src/scss/variables.scss +1113 -1113
  116. package/src/js/mixin/lazyload.js +0 -27
  117. package/src/js/mixin/resize.js +0 -11
  118. package/src/js/mixin/scroll.js +0 -32
  119. package/src/js/mixin/swipe.js +0 -72
  120. package/src/js/mixin/utils.js +0 -91
@@ -1 +1 @@
1
- /*! UIkit 3.16.4-dev.fd2458e3b | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,f){typeof exports=="object"&&typeof module<"u"?module.exports=f(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],f):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitSlideshow=f(t.UIkit.util))})(this,function(t){"use strict";var f={connected(){t.addClass(this.$el,this.$options.id)}},y={slide:{show(e){return[{transform:h(e*-100)},{transform:h()}]},percent(e){return g(e)},translate(e,s){return[{transform:h(s*-100*e)},{transform:h(s*100*(1-e))}]}}};function g(e){return Math.abs(t.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function h(e=0,s="%"){return e+=e?s:"",`translate3d(${e}, 0, 0)`}function z(e){return`scale3d(${e}, ${e}, 1)`}function S(e,s,r,{animation:n,easing:a}){const{percent:i,translate:l,show:d=t.noop}=n,p=d(r),m=new t.Deferred;return{dir:r,show(o,c=0,v){const I=v?"linear":a;return o-=Math.round(o*t.clamp(c,-1,1)),this.translate(c),x(s,"itemin",{percent:c,duration:o,timing:I,dir:r}),x(e,"itemout",{percent:1-c,duration:o,timing:I,dir:r}),Promise.all([t.Transition.start(s,p[1],o,I),t.Transition.start(e,p[0],o,I)]).then(()=>{this.reset(),m.resolve()},t.noop),m.promise},cancel(){t.Transition.cancel([s,e])},reset(){for(const o in p[0])t.css([s,e],o,"")},forward(o,c=this.percent()){return t.Transition.cancel([s,e]),this.show(o,c,!0)},translate(o){this.reset();const c=l(o,r);t.css(s,c[1]),t.css(e,c[0]),x(s,"itemtranslatein",{percent:o,dir:r}),x(e,"itemtranslateout",{percent:1-o,dir:r})},percent(){return i(e||s,s,r)},getDistance(){return e==null?void 0:e.offsetWidth}}}function x(e,s,r){t.trigger(e,t.createEvent(s,!1,!1,r))}var T={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var r,n,a;let i=0;return((a=((r=this.i18n)==null?void 0:r[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:a.replace(/%s/g,()=>s[i++]||""))||""}}},E={connected(){var e;this.registerObserver(t.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}};function w(e,s=e.$el,r=""){if(s.id)return s.id;let n=`${e.$options.id}-${e._uid}${r}`;return t.$(`#${n}`)&&(n=w(e,s,`${r}-2`)),n}const u={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var C={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:e},s){return t.$(e,s)},watch(e,s){t.attr(e,"role","tablist"),s&&this.$emit()},immediate:!0},selNavItem({attrItem:e}){return`[${e}],[data-${e}]`},navItems:{get(e,s){return t.$$(this.selNavItem,s)},watch(){this.$emit()}}},connected(){t.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((e,s)=>t.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",s+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.nav&&this.length!==this.nav.children.length&&t.html(this.nav,this.slides.map((e,s)=>`<li ${this.attrItem}="${s}"><a href></a></li>`).join("")),t.attr(t.children(this.nav).concat(this.list),"role","presentation");for(const e of this.navItems){const s=t.data(e,this.attrItem),r=t.$("a,button",e)||e;let n,a=null;if(t.isNumeric(s)){const i=t.toNumber(s),l=this.slides[i];l&&(l.id||(l.id=w(this,l,`-item-${s}`)),a=l.id),n=this.t("slideX",t.toFloat(s)+1),t.attr(r,"role","tab")}else this.list&&(this.list.id||(this.list.id=w(this,this.list,"-items")),a=this.list.id),n=this.t(s);t.attr(r,{"aria-controls":a,"aria-label":t.attr(r,"aria-label")||n})}}},{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(e){t.closest(e.target,"a,button")&&(e.type==="click"||e.keyCode===u.SPACE)&&(e.preventDefault(),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(e){const{current:s,keyCode:r}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let a=r===u.HOME?0:r===u.END?"last":r===u.LEFT?"previous":r===u.RIGHT?"next":-1;~a&&(e.preventDefault(),this.show(a))}}],methods:{updateNav(){const e=this.getValidIndex();let s,r;for(const n of this.navItems){const a=t.data(n,this.attrItem),i=t.$("a,button",n)||n;if(t.isNumeric(a)){const d=t.toNumber(a)===e;t.toggleClass(n,this.clsActive,d),t.attr(i,{"aria-selected":d,tabindex:d?null:-1}),d&&(r=i),s=s||t.matches(i,":focus")}else t.toggleClass(n,"uk-invisible",this.finite&&(a==="previous"&&e===0||a==="next"&&e>=this.maxIndex));s&&r&&r.focus()}}}};const b={passive:!1,capture:!0},_={passive:!0,capture:!0},D="touchstart mousedown",$="touchmove mousemove",A="touchend touchcancel mouseup click input scroll";var H={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=r=>{const n=t.getEventPos(r).x*(t.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(r)}}},events:[{name:D,passive:!0,delegate(){return`${this.selList} > *`},handler(e){!this.draggable||!t.isTouch(e)&&O(e.target)||t.closest(e.target,t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:$,el(){return this.list},handler:t.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,t.on(document,$,this.move,b),t.on(document,A,this.end,_),t.css(this.list,"userSelect","none")},move(e){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;t.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;const{slides:r}=this;let{prevIndex:n}=this,a=Math.abs(s),i=this.getIndex(n+this.dir,n),l=this._getDistance(n,i)||r[n].offsetWidth;for(;i!==n&&a>l;)this.drag-=l*this.dir,n=i,a-=l,i=this.getIndex(n+this.dir,n),l=this._getDistance(n,i)||r[n].offsetWidth;this.percent=a/l;const d=r[n],p=r[i],m=this.index!==i,o=n===i;let c;[this.index,this.prevIndex].filter(v=>!t.includes([i,n],v)).forEach(v=>{t.trigger(r[v],"itemhidden",[this]),o&&(c=!0,this.prevIndex=n)}),(this.index===n&&this.prevIndex!==n||c)&&t.trigger(r[this.index],"itemshown",[this]),m&&(this.prevIndex=n,this.index=i,!o&&t.trigger(d,"beforeitemhide",[this]),t.trigger(p,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),d,!o&&p),m&&(!o&&t.trigger(d,"itemhide",[this]),t.trigger(p,"itemshow",[this]))},end(){if(t.off(document,$,this.move,b),t.off(document,A,this.end,_),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 e=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function O(e){return t.css(e,"userSelect")!=="none"&&t.toNodes(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}var M={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live","polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:`${t.pointerEnter} focusin`,filter(){return this.autoplay},handler:"stopAutoplay"},{name:`${t.pointerLeave} focusout`,filter(){return this.autoplay},handler:"startAutoplay"}],methods:{startAutoplay(){this.draggable&&t.matches(this.$el,":focus-within")||this.pauseOnHover&&t.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),t.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),t.attr(this.list,"aria-live","polite")}}},P={mixins:[M,H,C,E,T],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:e},s){return R(s.offsetWidth/e)},list({selList:e},s){return t.$(e,s)},maxIndex(){return this.length-1},slides:{get(){return t.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},methods:{show(e,s=!1){var r;if(this.dragging||!this.length)return;const{stack:n}=this,a=s?0:n.length,i=()=>{n.splice(a,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((r=this._transitioner)==null||r.forward(Math.min(this.duration,200)));return}const l=this.getIndex(this.index),d=t.hasClass(this.slides,this.clsActive)&&this.slides[l],p=this.getIndex(e,this.index),m=this.slides[p];if(d===m){i();return}if(this.dir=L(e,l),this.prevIndex=l,this.index=p,d&&!t.trigger(d,"beforeitemhide",[this])||!t.trigger(m,"beforeitemshow",[this,d])){this.index=this.prevIndex,i();return}const o=this._show(d,m,s).then(()=>{d&&t.trigger(d,"itemhidden",[this]),t.trigger(m,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return d&&t.trigger(d,"itemhide",[this]),t.trigger(m,"itemshow",[this]),o},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,this.maxIndex)},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},_show(e,s,r){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:r?s.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!r&&!e)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)},_getDistance(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()},_translate(e,s=this.prevIndex,r=this.index){const n=this._getTransitioner(s===r?!1:s,r);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,r=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,r*(t.isRtl?-1:1),n)}}};function L(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function R(e){return .5*e+300}var W={mixins:[P],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:y,Transitioner:S},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}},j={...y,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:z(1+.5),zIndex:0},{zIndex:-1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:z(1+.5*e),zIndex:0},{zIndex:-1}]}},pull:{show(e){return e<0?[{transform:h(30),zIndex:-1},{transform:h(),zIndex:0}]:[{transform:h(-100),zIndex:0},{transform:h(),zIndex:-1}]},percent(e,s,r){return r<0?1-g(s):g(e)},translate(e,s){return s<0?[{transform:h(30*e),zIndex:-1},{transform:h(-100*(1-e)),zIndex:0}]:[{transform:h(-e*100),zIndex:0},{transform:h(30*(1-e)),zIndex:-1}]}},push:{show(e){return e<0?[{transform:h(100),zIndex:0},{transform:h(),zIndex:-1}]:[{transform:h(-30),zIndex:-1},{transform:h(),zIndex:0}]},percent(e,s,r){return r>0?1-g(s):g(e)},translate(e,s){return s<0?[{transform:h(e*100),zIndex:0},{transform:h(-30*(1-e)),zIndex:-1}]:[{transform:h(-30*e),zIndex:-1},{transform:h(100*(1-e)),zIndex:0}]}}},B={update:{write(){if(this.stack.length||this.dragging)return;const e=this.getValidIndex(this.index);!~this.prevIndex||this.index!==e?this.show(e):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},F={data:{preload:5},methods:{lazyload(e=this.$el,s=this.$el){this.registerObserver(t.observeIntersection(e,(r,n)=>{for(const a of t.toNodes(t.isFunction(s)?s():s))t.$$('[loading="lazy"]',a).slice(0,this.preload-1).forEach(i=>t.removeAttr(i,"loading"));for(const a of r.filter(({isIntersecting:i})=>i).map(({target:i})=>i))n.unobserve(a)}))}}},V={mixins:[F],connected(){this.lazyload(this.slides,this.getAdjacentSlides)}},N={mixins:[f,W,B,V],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:j},update:{read(){if(!this.list)return!1;let[e,s]=this.ratio.split(":").map(Number);return s=s*this.list.offsetWidth/e||0,this.minHeight&&(s=Math.max(this.minHeight,s)),this.maxHeight&&(s=Math.min(this.maxHeight,s)),{height:s-t.boxModelAdjust(this.list,"height","content-box")}},write({height:e}){e>0&&t.css(this.list,"minHeight",e)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(e=>this.slides[this.getIndex(this.index+e)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",N),N});
1
+ /*! UIkit 3.16.5-dev.dda1f1b31 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(c,nt){typeof exports=="object"&&typeof module<"u"?module.exports=nt(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],nt):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlideshow=nt(c.UIkit.util))})(this,function(c){"use strict";var nt={connected(){c.addClass(this.$el,this.$options.id)}},$e={slide:{show(t){return[{transform:v(t*-100)},{transform:v()}]},percent(t){return rt(t)},translate(t,e){return[{transform:v(e*-100*t)},{transform:v(e*100*(1-t))}]}}};function rt(t){return Math.abs(c.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function v(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function Ie(t){return`scale3d(${t}, ${t}, 1)`}function Ln(t,e,n,{animation:r,easing:o}){const{percent:s,translate:i,show:a=c.noop}=r,u=a(n),f=new c.Deferred;return{dir:n,show(d,p=0,b){const x=b?"linear":o;return d-=Math.round(d*c.clamp(p,-1,1)),this.translate(p),bt(e,"itemin",{percent:p,duration:d,timing:x,dir:n}),bt(t,"itemout",{percent:1-p,duration:d,timing:x,dir:n}),Promise.all([c.Transition.start(e,u[1],d,x),c.Transition.start(t,u[0],d,x)]).then(()=>{this.reset(),f.resolve()},c.noop),f.promise},cancel(){c.Transition.cancel([e,t])},reset(){for(const d in u[0])c.css([e,t],d,"")},forward(d,p=this.percent()){return c.Transition.cancel([e,t]),this.show(d,p,!0)},translate(d){this.reset();const p=i(d,n);c.css(e,p[1]),c.css(t,p[0]),bt(e,"itemtranslatein",{percent:d,dir:n}),bt(t,"itemtranslateout",{percent:1-d,dir:n})},percent(){return s(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function bt(t,e,n){c.trigger(t,c.createEvent(e,!1,!1,n))}var Hn={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,r,o;let s=0;return((o=((n=this.i18n)==null?void 0:n[t])||((r=this.$options.i18n)==null?void 0:r[t]))==null?void 0:o.replace(/%s/g,()=>e[s++]||""))||""}}};const ot={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},{hasOwnProperty:jn,toString:Wn}=Object.prototype;function z(t,e){return jn.call(t,e)}const Fn=/\B([A-Z])/g,st=N(t=>t.replace(Fn,"-$1").toLowerCase()),Bn=/-(\w)/g,it=N(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(Bn,(e,n)=>n.toUpperCase())),L=N(t=>t.charAt(0).toUpperCase()+t.slice(1));function H(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}function qn(t,e){var n;return(n=t==null?void 0:t.endsWith)==null?void 0:n.call(t,e)}function Y(t,e){var n;return(n=t==null?void 0:t.includes)==null?void 0:n.call(t,e)}function _e(t,e){var n;return(n=t==null?void 0:t.findIndex)==null?void 0:n.call(t,e)}const{isArray:$,from:Xn}=Array,{assign:St}=Object;function _(t){return typeof t=="function"}function M(t){return t!==null&&typeof t=="object"}function D(t){return Wn.call(t)==="[object Object]"}function J(t){return M(t)&&t===t.window}function xt(t){return Mt(t)===9}function zt(t){return Mt(t)>=1}function ct(t){return Mt(t)===1}function Mt(t){return!J(t)&&M(t)&&t.nodeType}function Ee(t){return typeof t=="boolean"}function w(t){return typeof t=="string"}function Dt(t){return typeof t=="number"}function yt(t){return Dt(t)||w(t)&&!isNaN(t-parseFloat(t))}function Ae(t){return!($(t)?t.length:M(t)&&Object.keys(t).length)}function E(t){return t===void 0}function Rt(t){return Ee(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function at(t){const e=Number(t);return isNaN(e)?!1:e}function I(t){return parseFloat(t)||0}function g(t){return h(t)[0]}function h(t){return zt(t)?[t]:Array.from(t||[]).filter(zt)}function G(t){if(J(t))return t;t=g(t);const e=xt(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Lt(t,e){return t===e||M(t)&&M(e)&&Object.keys(t).length===Object.keys(e).length&&$t(t,(n,r)=>n===e[r])}function Yn(t,e,n){return t.replace(new RegExp(`${e}|${n}`,"g"),r=>r===e?n:e)}function Oe(t){return t[t.length-1]}function $t(t,e){for(const n in t)if(e(t[n],n)===!1)return!1;return!0}function Ce(t,e){return t.slice().sort(({[e]:n=0},{[e]:r=0})=>n>r?1:r>n?-1:0)}function Ht(t,e){return t.reduce((n,r)=>n+I(_(e)?e(r):r[e]),0)}function Jn(t,e){const n=new Set;return t.filter(({[e]:r})=>n.has(r)?!1:n.add(r))}function Gn(t,e){return e.reduce((n,r)=>({...n,[r]:t[r]}),{})}function K(t,e=0,n=1){return Math.min(Math.max(at(t)||0,e),n)}function It(){}function Te(...t){return[["bottom","top"],["right","left"]].every(([e,n])=>Math.min(...t.map(({[e]:r})=>r))-Math.max(...t.map(({[n]:r})=>r))>0)}function jt(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Wt(t,e,n){const r=e==="width"?"height":"width";return{[r]:t[e]?Math.round(n*t[r]/t[e]):t[r],[e]:n}}function Pe(t,e){t={...t};for(const n in t)t=t[n]>e[n]?Wt(t,n,e[n]):t;return t}function Kn(t,e){t=Pe(t,e);for(const n in t)t=t[n]<e[n]?Wt(t,n,e[n]):t;return t}const Zn={ratio:Wt,contain:Pe,cover:Kn};function Qn(t,e,n=0,r=!1){e=h(e);const{length:o}=e;return o?(t=yt(t)?at(t):t==="next"?n+1:t==="previous"?n-1:t==="last"?o-1:e.indexOf(g(t)),r?K(t,0,o-1):(t%=o,t<0?t+o:t)):-1}function N(t){const e=Object.create(null);return n=>e[n]||(e[n]=t(n))}class Vn{constructor(){this.promise=new Promise((e,n)=>{this.reject=n,this.resolve=e})}}function j(t,e,n){var r;if(M(e)){for(const o in e)j(t,o,e[o]);return}if(E(n))return(r=g(t))==null?void 0:r.getAttribute(e);for(const o of h(t))_(n)&&(n=n.call(o,j(o,e))),n===null?Ft(o,e):o.setAttribute(e,n)}function Ne(t,e){return h(t).some(n=>n.hasAttribute(e))}function Ft(t,e){h(t).forEach(n=>n.removeAttribute(e))}function Bt(t,e){for(const n of[e,`data-${e}`])if(Ne(t,n))return j(t,n)}const kn={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Un(t){return h(t).some(e=>kn[e.tagName.toLowerCase()])}function _t(t){return h(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const qt="input,select,textarea,button";function tr(t){return h(t).some(e=>Z(e,qt))}const Se=`${qt},a[href],[tabindex]`;function er(t){return Z(t,Se)}function ut(t){var e;return(e=g(t))==null?void 0:e.parentElement}function ze(t,e){return h(t).filter(n=>Z(n,e))}function Z(t,e){return h(t).some(n=>n.matches(e))}function ft(t,e){return ct(t)?t.closest(H(e,">")?e.slice(1):e):h(t).map(n=>ft(n,e)).filter(Boolean)}function Et(t,e){return w(e)?!!ft(t,e):g(e).contains(g(t))}function Xt(t,e){const n=[];for(;t=ut(t);)(!e||Z(t,e))&&n.push(t);return n}function Me(t,e){t=g(t);const n=t?h(t.children):[];return e?ze(n,e):n}function De(t,e){return e?h(t).indexOf(g(e)):Me(ut(t)).indexOf(t)}function Re(t){return t=g(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function nr(t){if(Re(t)){t=g(t);const e=decodeURIComponent(t.hash).substring(1);return document.getElementById(e)||document.getElementsByName(e)[0]}}function rr(t,e){return Yt(t,He(t,e))}function or(t,e){return dt(t,He(t,e))}function Yt(t,e){return g(je(t,g(e),"querySelector"))}function dt(t,e){return h(je(t,g(e),"querySelectorAll"))}const sr=/(^|[^\\],)\s*[!>+~-]/,Le=N(t=>t.match(sr));function He(t,e=document){return w(t)&&Le(t)||xt(e)?e:e.ownerDocument}const ir=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,cr=N(t=>t.replace(ir,"$1 *"));function je(t,e=document,n){if(!t||!w(t))return t;if(t=cr(t),Le(t)){const r=ur(t);t="";for(let o of r){let s=e;if(o[0]==="!"){const i=o.substr(1).trim().split(" ");if(s=ft(ut(e),i[0]),o=i.slice(1).join(" ").trim(),!o.length&&r.length===1)return s}if(o[0]==="-"){const i=o.substr(1).trim().split(" "),a=(s||e).previousElementSibling;s=Z(a,o.substr(1))?a:null,o=i.slice(1).join(" ")}s&&(t+=`${t?",":""}${fr(s)} ${o}`)}e=document}try{return e[n](t)}catch{return null}}const ar=/.*?[^\\](?:,|$)/g,ur=N(t=>t.match(ar).map(e=>e.replace(/,$/,"").trim()));function fr(t){const e=[];for(;t.parentNode;){const n=j(t,"id");if(n){e.unshift(`#${We(n)}`);break}else{let{tagName:r}=t;r!=="HTML"&&(r+=`:nth-child(${De(t)+1})`),e.unshift(r),t=t.parentNode}}return e.join(" > ")}function We(t){return w(t)?CSS.escape(t):""}function W(...t){let[e,n,r,o,s=!1]=Jt(t);o.length>1&&(o=hr(o)),s!=null&&s.self&&(o=lr(o)),r&&(o=dr(r,o));for(const i of n)for(const a of e)a.addEventListener(i,o,s);return()=>Fe(e,n,o,s)}function Fe(...t){let[e,n,,r,o=!1]=Jt(t);for(const s of n)for(const i of e)i.removeEventListener(s,r,o)}function Q(...t){const[e,n,r,o,s=!1,i]=Jt(t),a=W(e,n,r,u=>{const f=!i||i(u);f&&(a(),o(u,f))},s);return a}function F(t,e,n){return Gt(t).every(r=>r.dispatchEvent(Be(e,!0,!0,n)))}function Be(t,e=!0,n=!1,r){return w(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:n,detail:r})),t}function Jt(t){return t[0]=Gt(t[0]),w(t[1])&&(t[1]=t[1].split(" ")),_(t[2])&&t.splice(2,0,!1),t}function dr(t,e){return n=>{const r=t[0]===">"?dt(t,n.currentTarget).reverse().filter(o=>Et(n.target,o))[0]:ft(n.target,t);r&&(n.current=r,e.call(this,n),delete n.current)}}function hr(t){return e=>$(e.detail)?t(e,...e.detail):t(e)}function lr(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function qe(t){return t&&"addEventListener"in t}function pr(t){return qe(t)?t:g(t)}function Gt(t){return $(t)?t.map(pr).filter(Boolean):w(t)?dt(t):qe(t)?[t]:h(t)}function mr(t){return t.pointerType==="touch"||!!t.touches}function Xe(t){var e,n;const{clientX:r,clientY:o}=((e=t.touches)==null?void 0:e[0])||((n=t.changedTouches)==null?void 0:n[0])||t;return{x:r,y:o}}const gr={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function l(t,e,n,r){const o=h(t);for(const s of o)if(w(e)){if(e=Kt(e),E(n))return getComputedStyle(s).getPropertyValue(e);s.style.setProperty(e,yt(n)&&!gr[e]?`${n}px`:n||Dt(n)?n:"",r)}else if($(e)){const i={};for(const a of e)i[a]=l(s,a);return i}else M(e)&&(r=n,$t(e,(i,a)=>l(s,a,i,r)));return o[0]}const Kt=N(t=>vr(t));function vr(t){if(H(t,"--"))return t;t=st(t);const{style:e}=document.documentElement;if(t in e)return t;for(const n of["webkit","moz"]){const r=`-${n}-${t}`;if(r in e)return r}}function V(t,...e){Ge(t,e,"add")}function Zt(t,...e){Ge(t,e,"remove")}function Ye(t,e){j(t,"class",n=>(n||"").replace(new RegExp(`\\b${e}\\b\\s?`,"g"),""))}function wr(t,...e){e[0]&&Zt(t,e[0]),e[1]&&V(t,e[1])}function Je(t,e){return[e]=Qt(e),!!e&&h(t).some(n=>n.classList.contains(e))}function br(t,e,n){const r=Qt(e);E(n)||(n=!!n);for(const o of h(t))for(const s of r)o.classList.toggle(s,n)}function Ge(t,e,n){e=e.reduce((r,o)=>r.concat(Qt(o)),[]);for(const r of h(t))r.classList[n](...e)}function Qt(t){return String(t).split(/[ ,]/).filter(Boolean)}function xr(t,e,n=400,r="linear"){return n=Math.round(n),Promise.all(h(t).map(o=>new Promise((s,i)=>{for(const u in e){const f=l(o,u);f===""&&l(o,u,f)}const a=setTimeout(()=>F(o,"transitionend"),n);Q(o,"transitionend transitioncanceled",({type:u})=>{clearTimeout(a),Zt(o,"uk-transition"),l(o,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),u==="transitioncanceled"?i():s(o)},{self:!0}),V(o,"uk-transition"),l(o,{transitionProperty:Object.keys(e).map(Kt).join(","),transitionDuration:`${n}ms`,transitionTimingFunction:r,...e})})))}const yr={start:xr,async stop(t){F(t,"transitionend"),await Promise.resolve()},async cancel(t){F(t,"transitioncanceled"),await Promise.resolve()},inProgress(t){return Je(t,"uk-transition")}},ht="uk-animation-";function Ke(t,e,n=200,r,o){return Promise.all(h(t).map(s=>new Promise((i,a)=>{F(s,"animationcanceled");const u=setTimeout(()=>F(s,"animationend"),n);Q(s,"animationend animationcanceled",({type:f})=>{clearTimeout(u),f==="animationcanceled"?a():i(s),l(s,"animationDuration",""),Ye(s,`${ht}\\S*`)},{self:!0}),l(s,"animationDuration",`${n}ms`),V(s,e,ht+(o?"leave":"enter")),H(e,ht)&&(r&&V(s,`uk-transform-origin-${r}`),o&&V(s,`${ht}reverse`))})))}const $r=new RegExp(`${ht}(enter|leave)`),Ir={in:Ke,out(t,e,n,r){return Ke(t,e,n,r,!0)},inProgress(t){return $r.test(j(t,"class"))},cancel(t){F(t,"animationcanceled")}};function _r(t){if(document.readyState!=="loading"){t();return}Q(document,"DOMContentLoaded",t)}function Vt(t,...e){return e.some(n=>{var r;return((r=t==null?void 0:t.tagName)==null?void 0:r.toLowerCase())===n.toLowerCase()})}function Ze(t){return t=B(t),t.innerHTML="",t}function Er(t,e){return E(e)?B(t).innerHTML:lt(Ze(t),e)}const Ar=At("prepend"),lt=At("append"),Qe=At("before"),Or=At("after");function At(t){return function(e,n){var r;const o=h(w(n)?Ot(n):n);return(r=B(e))==null||r[t](...o),ke(o)}}function kt(t){h(t).forEach(e=>e.remove())}function Ve(t,e){for(e=g(Qe(t,e));e.firstChild;)e=e.firstChild;return lt(e,t),e}function Cr(t,e){return h(h(t).map(n=>n.hasChildNodes()?Ve(h(n.childNodes),e):lt(n,e)))}function Tr(t){h(t).map(ut).filter((e,n,r)=>r.indexOf(e)===n).forEach(e=>e.replaceWith(...e.childNodes))}const Pr=/^\s*<(\w+|!)[^>]*>/,Nr=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Ot(t){const e=Nr.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("div");return Pr.test(t)?n.insertAdjacentHTML("beforeend",t.trim()):n.textContent=t,ke(n.childNodes)}function ke(t){return t.length>1?t:t[0]}function Ut(t,e){if(ct(t))for(e(t),t=t.firstElementChild;t;){const n=t.nextElementSibling;Ut(t,e),t=n}}function B(t,e){return Ue(t)?g(Ot(t)):Yt(t,e)}function te(t,e){return Ue(t)?h(Ot(t)):dt(t,e)}function Ue(t){return w(t)&&H(t.trim(),"<")}const q={width:["left","right"],height:["top","bottom"]};function ee(t){const e=ct(t)?g(t).getBoundingClientRect():{height:en(t),width:re(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function C(t,e){const n=ee(t);if(t){const{scrollY:o,scrollX:s}=G(t),i={height:o,width:s};for(const a in q)for(const u of q[a])n[u]+=i[a]}if(!e)return n;const r=l(t,"position");$t(l(t,["left","top"]),(o,s)=>l(t,s,e[s]-n[s]+I(r==="absolute"&&o==="auto"?tn(t)[s]:o)))}function tn(t){let{top:e,left:n}=C(t);const{ownerDocument:{body:r,documentElement:o},offsetParent:s}=g(t);let i=s||o;for(;i&&(i===r||i===o)&&l(i,"position")==="static";)i=i.parentNode;if(ct(i)){const a=C(i);e-=a.top+I(l(i,"borderTopWidth")),n-=a.left+I(l(i,"borderLeftWidth"))}return{top:e-I(l(t,"marginTop")),left:n-I(l(t,"marginLeft"))}}function ne(t){t=g(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+I(l(t,"borderTopWidth")),e[1]+=t.offsetLeft+I(l(t,"borderLeftWidth")),l(t,"position")==="fixed"){const n=G(t);return e[0]+=n.scrollY,e[1]+=n.scrollX,e}return e}const en=nn("height"),re=nn("width");function nn(t){const e=L(t);return(n,r)=>{if(E(r)){if(J(n))return n[`inner${e}`];if(xt(n)){const o=n.documentElement;return Math.max(o[`offset${e}`],o[`scroll${e}`])}return n=g(n),r=l(n,t),r=r==="auto"?n[`offset${e}`]:I(r)||0,r-oe(n,t)}else return l(n,t,!r&&r!==0?"":+r+oe(n,t)+"px")}}function oe(t,e,n="border-box"){return l(t,"boxSizing")===n?Ht(q[e].map(L),r=>I(l(t,`padding${r}`))+I(l(t,`border${r}Width`))):0}function Sr(t){for(const e in q)for(const n in q[e])if(q[e][n]===t)return q[e][1-n];return t}function zr(t,e="width",n=window,r=!1){return w(t)?Ht(Dr(t),o=>{const s=Lr(o);return s?Hr(s==="vh"?jr():s==="vw"?re(G(n)):r?n[`offset${L(e)}`]:ee(n)[e],o):o}):I(t)}const Mr=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,Dr=N(t=>t.toString().replace(/\s/g,"").match(Mr)||[]),Rr=/(?:v[hw]|%)$/,Lr=N(t=>(t.match(Rr)||[])[0]);function Hr(t,e){return t*I(e)/100}let pt,k;function jr(){return pt||(k||(k=B("<div>"),l(k,{height:"100vh",position:"fixed"}),W(window,"resize",()=>pt=null)),lt(document.body,k),pt=k.clientHeight,kt(k),pt)}const mt=typeof window<"u",Wr=mt&&document.dir==="rtl",U=mt&&"ontouchstart"in window,tt=mt&&window.PointerEvent,Fr=tt?"pointerdown":U?"touchstart":"mousedown",Br=tt?"pointermove":U?"touchmove":"mousemove",qr=tt?"pointerup":U?"touchend":"mouseup",Xr=tt?"pointerenter":U?"":"mouseenter",Yr=tt?"pointerleave":U?"":"mouseleave",Jr=tt?"pointercancel":"touchcancel",T={reads:[],writes:[],read(t){return this.reads.push(t),ie(),t},write(t){return this.writes.push(t),ie(),t},clear(t){on(this.reads,t),on(this.writes,t)},flush:se};function se(t){rn(T.reads),rn(T.writes.splice(0)),T.scheduled=!1,(T.reads.length||T.writes.length)&&ie(t+1)}const Gr=4;function ie(t){T.scheduled||(T.scheduled=!0,t&&t<Gr?Promise.resolve().then(()=>se(t)):requestAnimationFrame(()=>se(1)))}function rn(t){let e;for(;e=t.shift();)try{e()}catch(n){console.error(n)}}function on(t,e){const n=t.indexOf(e);return~n&&t.splice(n,1)}function sn(){}sn.prototype={positions:[],init(){this.positions=[];let t;this.unbind=W(document,"mousemove",e=>t=Xe(e)),this.interval=setInterval(()=>{t&&(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:n,right:r,top:o,bottom:s}=e,[i]=this.positions,a=Oe(this.positions),u=[i,a];return jt(a,e)?!1:[[{x:n,y:o},{x:r,y:s}],[{x:n,y:s},{x:r,y:o}]].some(d=>{const p=Kr(u,d);return p&&jt(p,e)})}};function Kr([{x:t,y:e},{x:n,y:r}],[{x:o,y:s},{x:i,y:a}]){const u=(a-s)*(n-t)-(i-o)*(r-e);if(u===0)return!1;const f=((i-o)*(e-s)-(a-s)*(t-o))/u;return f<0?!1:{x:t+f*(n-t),y:e+f*(r-e)}}function cn(t,e,n={},r=!0){const o=new IntersectionObserver(r?(s,i)=>{s.some(a=>a.isIntersecting)&&e(s,i)}:e,n);for(const s of h(t))o.observe(s);return o}const Zr=mt&&window.ResizeObserver;function an(t,e,n={box:"border-box"}){return Zr?un(ResizeObserver,t,e,n):(Qr(),gt.add(e),{observe:It,unobserve:It,disconnect(){gt.delete(e)}})}let gt;function Qr(){if(gt)return;gt=new Set;let t;const e=()=>{if(!t){t=!0,requestAnimationFrame(()=>t=!1);for(const n of gt)n()}};W(window,"load resize",e),W(document,"loadedmetadata load",e,!0)}function Vr(t,e,n){return un(MutationObserver,t,e,n)}function un(t,e,n,r){const o=new t(n);for(const s of h(e))o.observe(s,r);return o}function kr(t){if(Tt(t)&&ce(t,{func:"playVideo",method:"play"}),Ct(t))try{t.play().catch(It)}catch{}}function Ur(t){Tt(t)&&ce(t,{func:"pauseVideo",method:"pause"}),Ct(t)&&t.pause()}function to(t){Tt(t)&&ce(t,{func:"mute",method:"setVolume",value:0}),Ct(t)&&(t.muted=!0)}function eo(t){return Ct(t)||Tt(t)}function Ct(t){return Vt(t,"video")}function Tt(t){return Vt(t,"iframe")&&(fn(t)||dn(t))}function fn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function dn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function ce(t,e){await ro(t),hn(t,e)}function hn(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const ae="_ukPlayer";let no=0;function ro(t){if(t[ae])return t[ae];const e=fn(t),n=dn(t),r=++no;let o;return t[ae]=new Promise(s=>{e&&Q(t,"load",()=>{const i=()=>hn(t,{event:"listening",id:r});o=setInterval(i,100),i()}),Q(window,"message",s,!1,({data:i})=>{try{return i=JSON.parse(i),e&&(i==null?void 0:i.id)===r&&i.event==="onReady"||n&&Number(i==null?void 0:i.player_id)===r}catch{}}),t.src=`${t.src}${Y(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${r}`}`}).then(()=>clearInterval(o))}function oo(t,e=0,n=0){return _t(t)?Te(...ue(t).map(r=>{const{top:o,left:s,bottom:i,right:a}=S(r);return{top:o-e,left:s-n,bottom:i+e,right:a+n}}).concat(C(t))):!1}function so(t,{offset:e=0}={}){const n=_t(t)?Pt(t,!1,["hidden"]):[];return n.reduce((i,a,u)=>{const{scrollTop:f,scrollHeight:d,offsetHeight:p}=a,b=S(a),x=d-b.height,{height:P,top:R}=n[u-1]?S(n[u-1]):C(t);let O=Math.ceil(R-b.top-e+f);return e>0&&p<P+e?O+=e:e=0,O>x?(e-=O-x,O=x):O<0&&(e-=O,O=0),()=>r(a,O-f).then(i)},()=>Promise.resolve())();function r(i,a){return new Promise(u=>{const f=i.scrollTop,d=o(Math.abs(a)),p=Date.now();(function b(){const x=s(K((Date.now()-p)/d));i.scrollTop=f+a*x,x===1?u():requestAnimationFrame(b)})()})}function o(i){return 40*Math.pow(i,.375)}function s(i){return .5*(1-Math.cos(Math.PI*i))}}function io(t,e=0,n=0){if(!_t(t))return 0;const[r]=Pt(t,!0),{scrollHeight:o,scrollTop:s}=r,{height:i}=S(r),a=o-i,u=ne(t)[0]-ne(r)[0],f=Math.max(0,u-i+e),d=Math.min(a,u+t.offsetHeight-n);return K((s-f)/(d-f))}function Pt(t,e=!1,n=[]){const r=ln(t);let o=Xt(t).reverse();o=o.slice(o.indexOf(r)+1);const s=_e(o,i=>l(i,"position")==="fixed");return~s&&(o=o.slice(s)),[r].concat(o.filter(i=>l(i,"overflow").split(" ").some(a=>Y(["auto","scroll",...n],a))&&(!e||i.scrollHeight>S(i).height))).reverse()}function ue(t){return Pt(t,!1,["hidden","clip"])}function S(t){const e=G(t),{visualViewport:n,document:{documentElement:r}}=e;let o=t===ln(t)?e:t;if(J(o)&&n){let{height:i,width:a,scale:u,pageTop:f,pageLeft:d}=n;return i=Math.round(i*u),a=Math.round(a*u),{height:i,width:a,top:f,left:d,bottom:f+i,right:d+a}}let s=C(o);if(l(o,"display")==="inline")return s;for(let[i,a,u,f]of[["width","x","left","right"],["height","y","top","bottom"]])J(o)?o=r:s[u]+=I(l(o,`border-${u}-width`)),s[i]=s[a]=o[`client${L(i)}`],s[f]=s[i]+s[u];return s}function ln(t){return G(t).document.scrollingElement}const A=[["width","x","left","right"],["height","y","top","bottom"]];function co(t,e,n){n={attach:{element:["left","top"],target:["left","top"],...n.attach},offset:[0,0],placement:[],...n},$(e)||(e=[e,e]),C(t,pn(t,e,n))}function pn(t,e,n){const r=mn(t,e,n),{boundary:o,viewportOffset:s=0,placement:i}=n;let a=r;for(const[u,[f,,d,p]]of Object.entries(A)){const b=ao(t,e[u],s,o,u);if(Nt(r,b,u))continue;let x=0;if(i[u]==="flip"){const P=n.attach.target[u];if(P===p&&r[p]<=b[p]||P===d&&r[d]>=b[d])continue;x=fo(t,e,n,u)[d]-r[d];const R=uo(t,e[u],s,u);if(!Nt(fe(r,x,u),R,u)){if(Nt(r,R,u))continue;if(n.recursion)return!1;const O=ho(t,e,n);if(O&&Nt(O,R,1-u))return O;continue}}else if(i[u]==="shift"){const P=C(e[u]),{offset:R}=n;x=K(K(r[d],b[d],b[p]-r[f]),P[d]-r[f]+R[u],P[p]-R[u])-r[d]}a=fe(a,x,u)}return a}function mn(t,e,n){let{attach:r,offset:o}={attach:{element:["left","top"],target:["left","top"],...n.attach},offset:[0,0],...n},s=C(t);for(const[i,[a,,u,f]]of Object.entries(A)){const d=r.target[i]===r.element[i]?S(e[i]):C(e[i]);s=fe(s,d[u]-s[u]+gn(r.target[i],f,d[a])-gn(r.element[i],f,s[a])+ +o[i],i)}return s}function fe(t,e,n){const[,r,o,s]=A[n],i={...t};return i[o]=t[r]=t[o]+e,i[s]+=e,i}function gn(t,e,n){return t==="center"?n/2:t===e?n:0}function ao(t,e,n,r,o){let s=wn(...vn(t,e).map(S));return n&&(s[A[o][2]]+=n,s[A[o][3]]-=n),r&&(s=wn(s,C($(r)?r[o]:r))),s}function uo(t,e,n,r){const[o,s,i,a]=A[r],[u]=vn(t,e),f=S(u);return["auto","scroll"].includes(l(u,`overflow-${s}`))&&(f[i]-=u[`scroll${L(i)}`],f[a]=f[i]+u[`scroll${L(o)}`]),f[i]+=n,f[a]-=n,f}function vn(t,e){return ue(e).filter(n=>Et(t,n))}function wn(...t){let e={};for(const n of t)for(const[,,r,o]of A)e[r]=Math.max(e[r]||0,n[r]),e[o]=Math.min(...[e[o],n[o]].filter(Boolean));return e}function Nt(t,e,n){const[,,r,o]=A[n];return t[r]>=e[r]&&t[o]<=e[o]}function fo(t,e,{offset:n,attach:r},o){return mn(t,e,{attach:{element:bn(r.element,o),target:bn(r.target,o)},offset:lo(n,o)})}function ho(t,e,n){return pn(t,e,{...n,attach:{element:n.attach.element.map(xn).reverse(),target:n.attach.target.map(xn).reverse()},offset:n.offset.reverse(),placement:n.placement.reverse(),recursion:!0})}function bn(t,e){const n=[...t],r=A[e].indexOf(t[e]);return~r&&(n[e]=A[e][1-r%2+2]),n}function xn(t){for(let e=0;e<A.length;e++){const n=A[e].indexOf(t);if(~n)return A[1-e][n%2+2]}}function lo(t,e){return t=[...t],t[e]*=-1,t}var po=Object.freeze({__proto__:null,$:B,$$:te,Animation:Ir,Deferred:Vn,Dimensions:Zn,MouseTracker:sn,Transition:yr,addClass:V,after:Or,append:lt,apply:Ut,assign:St,attr:j,before:Qe,boxModelAdjust:oe,camelize:it,children:Me,clamp:K,closest:ft,createEvent:Be,css:l,data:Bt,dimensions:ee,each:$t,empty:Ze,endsWith:qn,escape:We,fastdom:T,filter:ze,find:Yt,findAll:dt,findIndex:_e,flipPosition:Sr,fragment:Ot,getEventPos:Xe,getIndex:Qn,getTargetedElement:nr,hasAttr:Ne,hasClass:Je,hasOwn:z,hasTouch:U,height:en,html:Er,hyphenate:st,inBrowser:mt,includes:Y,index:De,intersectRect:Te,isArray:$,isBoolean:Ee,isDocument:xt,isElement:ct,isEmpty:Ae,isEqual:Lt,isFocusable:er,isFunction:_,isInView:oo,isInput:tr,isNode:zt,isNumber:Dt,isNumeric:yt,isObject:M,isPlainObject:D,isRtl:Wr,isSameSiteAnchor:Re,isString:w,isTag:Vt,isTouch:mr,isUndefined:E,isVideo:eo,isVisible:_t,isVoidElement:Un,isWindow:J,last:Oe,matches:Z,memoize:N,mute:to,noop:It,observeIntersection:cn,observeMutation:Vr,observeResize:an,off:Fe,offset:C,offsetPosition:ne,offsetViewport:S,on:W,once:Q,overflowParents:ue,parent:ut,parents:Xt,pause:Ur,pick:Gn,play:kr,pointInRect:jt,pointerCancel:Jr,pointerDown:Fr,pointerEnter:Xr,pointerLeave:Yr,pointerMove:Br,pointerUp:qr,position:tn,positionAt:co,prepend:Ar,propName:Kt,query:rr,queryAll:or,ready:_r,remove:kt,removeAttr:Ft,removeClass:Zt,removeClasses:Ye,replaceClass:wr,scrollIntoView:so,scrollParents:Pt,scrolledOver:io,selFocusable:Se,selInput:qt,sortBy:Ce,startsWith:H,sumBy:Ht,swap:Yn,toArray:Xn,toBoolean:Rt,toEventTargets:Gt,toFloat:I,toNode:g,toNodes:h,toNumber:at,toPx:zr,toWindow:G,toggleClass:br,trigger:F,ucfirst:L,uniqueBy:Jn,unwrap:Tr,width:re,within:Et,wrapAll:Ve,wrapInner:Cr});function mo(t){t._observers=[],t._observerUpdates=new Map;for(const e of t.$options.observe||[])if(z(e,"handler"))yn(t,e);else for(const n in e)yn(t,e[n],n)}function de(t,...e){t._observers.push(...e)}function go(t){for(const e of t._observers)e==null||e.disconnect(),t._observerUpdates.delete(e)}function vo(t){for(const[e,n]of t._observerUpdates)n(e)}function yn(t,e,n){let{observe:r,target:o=t.$el,handler:s,options:i,filter:a,args:u}=D(e)?e:{type:n,handler:e};if(a&&!a.call(t,t))return;const f=_(o)?o.call(t,t):o;s=w(s)?t[s]:s.bind(t),_(i)&&(i=i.call(t,t));const d=r(f,s,i,u);_(o)&&$(f)&&d.unobserve&&t._observerUpdates.set(d,wo(t,o,f)),de(t,d)}function wo(t,e,n){return r=>{const o=e.call(t,t);Lt(n,o)||(n.forEach(s=>!Y(o,s)&&r.unobserve(s)),o.forEach(s=>!Y(n,s)&&r.observe(s)),n.splice(0,n.length,...o))}}function $n(t){if(t._watch)return;const e=!z(t,"_watch");t._watch=T.read(()=>{t._connected&&bo(t,e),t._watch=null})}function bo(t,e){const n={...t._computed};t._computed={};for(const[r,{watch:o,immediate:s}]of Object.entries(t.$options.computed||{}))o&&(e&&s||z(n,r)&&!Lt(n[r],t[r]))&&o.call(t,t[r],e?void 0:n[r]);vo(t)}function he(t,e="update"){t._connected&&((e==="update"||e==="resize")&&$n(t),t.$options.update&&(t._updates||(t._updates=new Set,T.read(()=>{t._connected&&xo(t,t._updates),delete t._updates})),t._updates.add(e.type||e)))}function xo(t,e){for(const{read:n,write:r,events:o=[]}of t.$options.update){if(!e.has("update")&&!o.some(i=>e.has(i)))continue;let s;n&&(s=n.call(t,t._data,e),s&&D(s)&&St(t._data,s)),r&&s!==!1&&T.write(()=>{t._connected&&r.call(t,t._data,e)})}}function yo(t){let{el:e,computed:n,observe:r}=t.$options;if(!n&&!(r!=null&&r.some(s=>_(s.target))))return;for(const s in n||{})if(n[s].document){e=e.ownerDocument;break}const o=new MutationObserver(()=>$n(t));o.observe(e,{childList:!0,subtree:!0}),de(t,o)}function $o(t){t._events=[];for(const e of t.$options.events||[])if(z(e,"handler"))le(t,e);else for(const n in e)le(t,e[n],n)}function Io(t){t._events.forEach(e=>e()),delete t._events}function le(t,e,n){let{name:r,el:o,handler:s,capture:i,passive:a,delegate:u,filter:f,self:d}=D(e)?e:{name:n,handler:e};if(o=_(o)?o.call(t,t):o||t.$el,$(o)){o.forEach(p=>le(t,{...e,el:p},n));return}!o||f&&!f.call(t)||t._events.push(W(o,r,u?w(u)?u:u.call(t,t):null,w(s)?t[s]:s.bind(t),{passive:a,capture:i,self:d}))}const y={};y.events=y.observe=y.created=y.beforeConnect=y.connected=y.beforeDisconnect=y.disconnected=y.destroy=pe,y.args=function(t,e){return e!==!1&&pe(e||t)},y.update=function(t,e){return Ce(pe(t,_(e)?{read:e}:e),"order")},y.props=function(t,e){if($(e)){const n={};for(const r of e)n[r]=String;e=n}return y.methods(t,e)},y.computed=y.methods=function(t,e){return e?t?{...t,...e}:e:t},y.i18n=y.data=function(t,e,n){return n?In(t,e,n):e?t?function(r){return In(t,e,r)}:e:t};function In(t,e,n){return y.computed(_(t)?t.call(n,n):t,_(e)?e.call(n,n):e)}function pe(t,e){return t=t&&!$(t)?[t]:t,e?t?t.concat(e):$(e)?e:[e]:t}function _o(t,e){return E(e)?t:e}function vt(t,e,n){const r={};if(_(e)&&(e=e.options),e.extends&&(t=vt(t,e.extends,n)),e.mixins)for(const s of e.mixins)t=vt(t,s,n);for(const s in t)o(s);for(const s in e)z(t,s)||o(s);function o(s){r[s]=(y[s]||_o)(t[s],e[s],n)}return r}function _n(t,e=[]){try{return t?H(t,"{")?JSON.parse(t):e.length&&!Y(t,":")?{[e[0]]:t}:t.split(";").reduce((n,r)=>{const[o,s]=r.split(/:(.*)/);return o&&!E(s)&&(n[o.trim()]=s.trim()),n},{}):{}}catch{return{}}}function me(t,e){return t===Boolean?Rt(e):t===Number?at(e):t==="list"?Eo(e):t===Object&&w(e)?_n(e):t?t(e):e}function Eo(t){return $(t)?t:w(t)?t.split(/,(?![^(]*\))/).map(e=>yt(e)?at(e):Rt(e.trim())):[t]}function Ao(t){const e=En(t.$options);for(let r in e)E(e[r])||(t.$props[r]=e[r]);const n=[t.$options.computed,t.$options.methods];for(let r in t.$props)r in e&&Oo(n,r)&&(t[r]=t.$props[r])}function En(t){const e={},{args:n=[],props:r={},el:o,id:s}=t;if(!r)return e;for(const a in r){const u=st(a);let f=Bt(o,u);E(f)||(f=r[a]===Boolean&&f===""?!0:me(r[a],f),!(u==="target"&&H(f,"_"))&&(e[a]=f))}const i=_n(Bt(o,s),n);for(const a in i){const u=it(a);E(r[u])||(e[u]=me(r[u],i[a]))}return e}function Oo(t,e){return t.every(n=>!n||!z(n,e))}function Co(t){const{$options:e,$props:n}=t,{id:r,attrs:o,props:s,el:i}=e;if(!s||o===!1)return;const a=$(o)?o:Object.keys(s),u=a.map(d=>st(d)).concat(r),f=new MutationObserver(d=>{const p=En(e);d.some(({attributeName:b})=>{const x=b.replace("data-","");return(x===r?a:[it(x),it(b)]).some(P=>!E(p[P])&&p[P]!==n[P])})&&t.$reset()});f.observe(i,{attributes:!0,attributeFilter:u.concat(u.map(d=>`data-${d}`))}),de(t,f)}function et(t,e){var n;(n=t.$options[e])==null||n.forEach(r=>r.call(t))}function An(t){t._connected||(t._data={},t._computed={},Ao(t),et(t,"beforeConnect"),t._connected=!0,$o(t),mo(t),Co(t),yo(t),et(t,"connected"),he(t))}function On(t){t._connected&&(et(t,"beforeDisconnect"),go(t),Io(t),et(t,"disconnected"),t._connected=!1,delete t._watch)}function To(t){const{computed:e}=t.$options;if(t._computed={},e)for(const n in e)Po(t,n,e[n])}function Po(t,e,n){Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:r,$props:o,$el:s}=t;return z(r,e)||(r[e]=(n.get||n).call(t,o,s)),r[e]},set(r){const{_computed:o}=t;o[e]=n.set?n.set.call(t,r):r,E(o[e])&&delete o[e]}})}let No=0;function Cn(t,e={}){e.data=Mo(e,t.constructor.options),t.$options=vt(t.constructor.options,e,t),t.$props={},t._uid=No++,So(t),zo(t),To(t),et(t,"created"),e.el&&t.$mount(e.el)}function So(t){const{data:e={}}=t.$options;for(const n in e)t.$props[n]=t[n]=e[n]}function zo(t){const{methods:e}=t.$options;if(e)for(const n in e)t[n]=e[n].bind(t)}function Mo({data:t={}},{args:e=[],props:n={}}){$(t)&&(t=t.slice(0,e.length).reduce((r,o,s)=>(D(o)?St(r,o):r[e[s]]=o,r),{}));for(const r in t)E(t[r])?delete t[r]:n[r]&&(t[r]=me(n[r],t[r]));return t}const m=function(t){Cn(this,t)};m.util=po,m.options={},m.version="3.16.5-dev.dda1f1b31";const Do="uk-",X="__uikit__",wt={};function Tn(t,e){var n;const r=Do+st(t);if(!e)return D(wt[r])&&(wt[r]=m.extend(wt[r])),wt[r];t=it(t),m[t]=(s,i)=>ge(t,s,i);const o=D(e)?{...e}:e.options;return o.id=r,o.name=t,(n=o.install)==null||n.call(o,m,o,t),m._initialized&&!o.functional&&requestAnimationFrame(()=>ge(t,`[${r}],[data-${r}]`)),wt[r]=o}function ge(t,e,n){const r=Tn(t);return r.options.functional?new r({data:D(e)?e:[...arguments]}):e?te(e).map(o)[0]:o();function o(s){const i=we(s,t);if(i)if(n)i.$destroy();else return i;return new r({el:s,data:n})}}function ve(t){return t[X]||{}}function we(t,e){return ve(t)[e]}function Ro(t,e){t[X]||(t[X]={}),t[X][e.$options.name]=e}function Lo(t,e){var n;(n=t[X])==null||delete n[e.$options.name],Ae(t[X])||delete t[X]}m.component=Tn,m.getComponents=ve,m.getComponent=we,m.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},m.mixin=function(t,e){e=(w(e)?this.component(e):e)||this,e.options=vt(e.options,t)},m.extend=function(t){t=t||{};const e=this,n=function(o){Cn(this,o)};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.options=vt(e.options,t),n.super=e,n.extend=e.extend,n};function Pn(t,e){t=t?g(t):document.body;for(const n of Xt(t).reverse())Nn(n,e);Ut(t,n=>Nn(n,e))}m.update=Pn;function Nn(t,e){const n=ve(t);for(const r in n)he(n[r],e)}let Sn;Object.defineProperty(m,"container",{get(){return Sn||document.body},set(t){Sn=B(t)}}),m.prototype.$mount=function(t){const e=this;Ro(t,e),e.$options.el=t,Et(t,document)&&An(e)},m.prototype.$destroy=function(t=!1){const e=this,{el:n}=e.$options;n&&On(e),et(e,"destroy"),Lo(n,e),t&&kt(e.$el)},m.prototype.$create=ge,m.prototype.$emit=function(t){he(this,t)},m.prototype.$update=function(t=this.$el,e){Pn(t,e)},m.prototype.$reset=function(){On(this),An(this)},m.prototype.$getComponent=we,Object.defineProperties(m.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(m,"container")});function be(t,e=t.$el,n=""){if(e.id)return e.id;let r=`${t.$options.id}-${t._uid}${n}`;return B(`#${r}`)&&(r=be(t,e,`${n}-2`)),r}var Ho={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:t},e){return c.$(t,e)},watch(t,e){c.attr(t,"role","tablist"),e&&this.$emit()},immediate:!0},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems:{get(t,e){return c.$$(this.selNavItem,e)},watch(){this.$emit()}}},connected(){c.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((t,e)=>c.attr(t,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",e+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.nav&&this.length!==this.nav.children.length&&c.html(this.nav,this.slides.map((t,e)=>`<li ${this.attrItem}="${e}"><a href></a></li>`).join("")),c.attr(c.children(this.nav).concat(this.list),"role","presentation");for(const t of this.navItems){const e=c.data(t,this.attrItem),n=c.$("a,button",t)||t;let r,o=null;if(c.isNumeric(e)){const s=c.toNumber(e),i=this.slides[s];i&&(i.id||(i.id=be(this,i,`-item-${e}`)),o=i.id),r=this.t("slideX",c.toFloat(e)+1),c.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=be(this,this.list,"-items")),o=this.list.id),r=this.t(e);c.attr(n,{"aria-controls":o,"aria-label":c.attr(n,"aria-label")||r})}}},{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){c.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===ot.SPACE)&&(t.preventDefault(),this.show(c.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:n}=t,r=c.data(e,this.attrItem);if(!c.isNumeric(r))return;let o=n===ot.HOME?0:n===ot.END?"last":n===ot.LEFT?"previous":n===ot.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();let e,n;for(const r of this.navItems){const o=c.data(r,this.attrItem),s=c.$("a,button",r)||r;if(c.isNumeric(o)){const a=c.toNumber(o)===t;c.toggleClass(r,this.clsActive,a),c.attr(s,{"aria-selected":a,tabindex:a?null:-1}),a&&(n=s),e=e||c.matches(s,":focus")}else c.toggleClass(r,"uk-invisible",this.finite&&(o==="previous"&&t===0||o==="next"&&t>=this.maxIndex));e&&n&&n.focus()}}}};const xe={passive:!1,capture:!0},zn={passive:!0,capture:!0},jo="touchstart mousedown",ye="touchmove mousemove",Mn="touchend touchcancel mouseup click input scroll";var Wo={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const r=c.getEventPos(n).x*(c.isRtl?-1:1);this.prevPos=r===this.pos?this.prevPos:this.pos,this.pos=r,e(n)}}},events:[{name:jo,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!c.isTouch(t)&&Fo(t.target)||c.closest(t.target,c.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:ye,el(){return this.list},handler:c.noop,...xe}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,c.on(document,ye,this.move,xe),c.on(document,Mn,this.end,zn),c.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;c.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;const{slides:n}=this;let{prevIndex:r}=this,o=Math.abs(e),s=this.getIndex(r+this.dir,r),i=this._getDistance(r,s)||n[r].offsetWidth;for(;s!==r&&o>i;)this.drag-=i*this.dir,r=s,o-=i,s=this.getIndex(r+this.dir,r),i=this._getDistance(r,s)||n[r].offsetWidth;this.percent=o/i;const a=n[r],u=n[s],f=this.index!==s,d=r===s;let p;[this.index,this.prevIndex].filter(b=>!c.includes([s,r],b)).forEach(b=>{c.trigger(n[b],"itemhidden",[this]),d&&(p=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||p)&&c.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=r,this.index=s,!d&&c.trigger(a,"beforeitemhide",[this]),c.trigger(u,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&u),f&&(!d&&c.trigger(a,"itemhide",[this]),c.trigger(u,"itemshow",[this]))},end(){if(c.off(document,ye,this.move,xe),c.off(document,Mn,this.end,zn),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(c.isRtl?this.dir*(c.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)}c.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function Fo(t){return c.css(t,"userSelect")!=="none"&&c.toNodes(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var Bo={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){c.attr(this.list,"aria-live","polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){c.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:`${c.pointerEnter} focusin`,filter(){return this.autoplay},handler:"stopAutoplay"},{name:`${c.pointerLeave} focusout`,filter(){return this.autoplay},handler:"startAutoplay"}],methods:{startAutoplay(){this.draggable&&c.matches(this.$el,":focus-within")||this.pauseOnHover&&c.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),c.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),c.attr(this.list,"aria-live","polite")}}};function qo(t){return Dn(an,t,"resize")}function Xo(t){return Dn(cn,t)}function Yo(t={}){return Xo({handler:function(e,n){const{targets:r=this.$el,preload:o=5}=t;for(const s of h(_(r)?r(this):r))te('[loading="lazy"]',s).slice(0,o-1).forEach(i=>Ft(i,"loading"));for(const s of e.filter(({isIntersecting:i})=>i).map(({target:i})=>i))n.unobserve(s)},...t})}function Dn(t,e,n){return{observe:t,handler(){this.$emit(n)},...e}}var Jo={mixins:[Bo,Wo,Ho,Hn],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){c.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:t},e){return Ko(e.offsetWidth/t)},list({selList:t},e){return c.$(t,e)},maxIndex(){return this.length-1},slides:{get(){return c.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},observe:qo(),methods:{show(t,e=!1){var n;if(this.dragging||!this.length)return;const{stack:r}=this,o=e?0:r.length,s=()=>{r.splice(o,1),r.length&&this.show(r.shift(),!0)};if(r[e?"unshift":"push"](t),!e&&r.length>1){r.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const i=this.getIndex(this.index),a=c.hasClass(this.slides,this.clsActive)&&this.slides[i],u=this.getIndex(t,this.index),f=this.slides[u];if(a===f){s();return}if(this.dir=Go(t,i),this.prevIndex=i,this.index=u,a&&!c.trigger(a,"beforeitemhide",[this])||!c.trigger(f,"beforeitemshow",[this,a])){this.index=this.prevIndex,s();return}const d=this._show(a,f,e).then(()=>{a&&c.trigger(a,"itemhidden",[this]),c.trigger(f,"itemshown",[this]),r.shift(),this._transitioner=null,requestAnimationFrame(()=>r.length&&this.show(r.shift(),!0))});return a&&c.trigger(a,"itemhide",[this]),c.trigger(f,"itemshow",[this]),d},getIndex(t=this.index,e=this.index){return c.clamp(c.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:r}=this.stack;return this._transitioner[r>1?"forward":"show"](r>1?Math.min(this.duration,75+75/(r-1)):this.duration,this.percent)},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate(t,e=this.prevIndex,n=this.index){const r=this._getTransitioner(e===n?!1:e,n);return r.translate(t),r},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,r=this.transitionOptions){return new this.Transitioner(c.isNumber(t)?this.slides[t]:t,c.isNumber(e)?this.slides[e]:e,n*(c.isRtl?-1:1),r)}}};function Go(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Ko(t){return .5*t+300}var Zo={mixins:[Jo],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:$e,Transitioner:Ln},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){c.addClass(t,this.clsActive)},itemshown({target:t}){c.addClass(t,this.clsActivated)},itemhidden({target:t}){c.removeClass(t,this.clsActive,this.clsActivated)}}},Qo={...$e,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-c.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:Ie(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-c.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:Ie(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:v(30),zIndex:-1},{transform:v(),zIndex:0}]:[{transform:v(-100),zIndex:0},{transform:v(),zIndex:-1}]},percent(t,e,n){return n<0?1-rt(e):rt(t)},translate(t,e){return e<0?[{transform:v(30*t),zIndex:-1},{transform:v(-100*(1-t)),zIndex:0}]:[{transform:v(-t*100),zIndex:0},{transform:v(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:v(100),zIndex:0},{transform:v(),zIndex:-1}]:[{transform:v(-30),zIndex:-1},{transform:v(),zIndex:0}]},percent(t,e,n){return n>0?1-rt(e):rt(t)},translate(t,e){return e<0?[{transform:v(t*100),zIndex:0},{transform:v(-30*(1-t)),zIndex:-1}]:[{transform:v(-30*t),zIndex:-1},{transform:v(100*(1-t)),zIndex:0}]}}},Vo={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},ko={observe:Yo({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})},Rn={mixins:[nt,Zo,Vo,ko],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:Qo},update:{read(){if(!this.list)return!1;let[t,e]=this.ratio.split(":").map(Number);return e=e*this.list.offsetWidth/t||0,this.minHeight&&(e=Math.max(this.minHeight,e)),this.maxHeight&&(e=Math.min(this.maxHeight,e)),{height:e-c.boxModelAdjust(this.list,"height","content-box")}},write({height:t}){t>0&&c.css(this.list,"minHeight",t)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",Rn),Rn});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.4-dev.fd2458e3b | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.5-dev.dda1f1b31 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -6,9 +6,480 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.UIkitSortable = factory(global.UIkit.util));
7
7
  })(this, (function (uikitUtil) { 'use strict';
8
8
 
9
+ const hyphenateRe = /\B([A-Z])/g;
10
+ const hyphenate = memoize((str) => str.replace(hyphenateRe, "-$1").toLowerCase());
11
+ const ucfirst = memoize((str) => str.charAt(0).toUpperCase() + str.slice(1));
12
+ function startsWith(str, search) {
13
+ var _a;
14
+ return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);
15
+ }
16
+ const { isArray, from: toArray } = Array;
17
+ function isFunction(obj) {
18
+ return typeof obj === "function";
19
+ }
20
+ function isObject(obj) {
21
+ return obj !== null && typeof obj === "object";
22
+ }
23
+ function isWindow(obj) {
24
+ return isObject(obj) && obj === obj.window;
25
+ }
26
+ function isDocument(obj) {
27
+ return nodeType(obj) === 9;
28
+ }
29
+ function isNode(obj) {
30
+ return nodeType(obj) >= 1;
31
+ }
32
+ function isElement(obj) {
33
+ return nodeType(obj) === 1;
34
+ }
35
+ function nodeType(obj) {
36
+ return !isWindow(obj) && isObject(obj) && obj.nodeType;
37
+ }
38
+ function isString(value) {
39
+ return typeof value === "string";
40
+ }
41
+ function isNumber(value) {
42
+ return typeof value === "number";
43
+ }
44
+ function isNumeric(value) {
45
+ return isNumber(value) || isString(value) && !isNaN(value - parseFloat(value));
46
+ }
47
+ function isUndefined(value) {
48
+ return value === void 0;
49
+ }
50
+ function toFloat(value) {
51
+ return parseFloat(value) || 0;
52
+ }
53
+ function toNode(element) {
54
+ return toNodes(element)[0];
55
+ }
56
+ function toNodes(element) {
57
+ return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
58
+ }
59
+ function each(obj, cb) {
60
+ for (const key in obj) {
61
+ if (false === cb(obj[key], key)) {
62
+ return false;
63
+ }
64
+ }
65
+ return true;
66
+ }
67
+ function sumBy(array, iteratee) {
68
+ return array.reduce(
69
+ (sum, item) => sum + toFloat(isFunction(iteratee) ? iteratee(item) : item[iteratee]),
70
+ 0
71
+ );
72
+ }
73
+ function noop() {
74
+ }
75
+ function memoize(fn) {
76
+ const cache = /* @__PURE__ */ Object.create(null);
77
+ return (key) => cache[key] || (cache[key] = fn(key));
78
+ }
79
+
80
+ function attr(element, name, value) {
81
+ var _a;
82
+ if (isObject(name)) {
83
+ for (const key in name) {
84
+ attr(element, key, name[key]);
85
+ }
86
+ return;
87
+ }
88
+ if (isUndefined(value)) {
89
+ return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
90
+ } else {
91
+ for (const el of toNodes(element)) {
92
+ if (isFunction(value)) {
93
+ value = value.call(el, attr(el, name));
94
+ }
95
+ if (value === null) {
96
+ removeAttr(el, name);
97
+ } else {
98
+ el.setAttribute(name, value);
99
+ }
100
+ }
101
+ }
102
+ }
103
+ function removeAttr(element, name) {
104
+ toNodes(element).forEach((element2) => element2.removeAttribute(name));
105
+ }
106
+
107
+ function parent(element) {
108
+ var _a;
109
+ return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
110
+ }
111
+ function filter(element, selector) {
112
+ return toNodes(element).filter((element2) => matches(element2, selector));
113
+ }
114
+ function matches(element, selector) {
115
+ return toNodes(element).some((element2) => element2.matches(selector));
116
+ }
117
+ function closest(element, selector) {
118
+ return isElement(element) ? element.closest(startsWith(selector, ">") ? selector.slice(1) : selector) : toNodes(element).map((element2) => closest(element2, selector)).filter(Boolean);
119
+ }
120
+ function within(element, selector) {
121
+ return isString(selector) ? !!closest(element, selector) : toNode(selector).contains(toNode(element));
122
+ }
123
+ function children(element, selector) {
124
+ element = toNode(element);
125
+ const children2 = element ? toNodes(element.children) : [];
126
+ return selector ? filter(children2, selector) : children2;
127
+ }
128
+ function index(element, ref) {
129
+ return ref ? toNodes(element).indexOf(toNode(ref)) : children(parent(element)).indexOf(element);
130
+ }
131
+
132
+ function findAll(selector, context) {
133
+ return toNodes(_query(selector, toNode(context), "querySelectorAll"));
134
+ }
135
+ const contextSelectorRe = /(^|[^\\],)\s*[!>+~-]/;
136
+ const isContextSelector = memoize((selector) => selector.match(contextSelectorRe));
137
+ const contextSanitizeRe = /([!>+~-])(?=\s+[!>+~-]|\s*$)/g;
138
+ const sanatize = memoize((selector) => selector.replace(contextSanitizeRe, "$1 *"));
139
+ function _query(selector, context = document, queryFn) {
140
+ if (!selector || !isString(selector)) {
141
+ return selector;
142
+ }
143
+ selector = sanatize(selector);
144
+ if (isContextSelector(selector)) {
145
+ const split = splitSelector(selector);
146
+ selector = "";
147
+ for (let sel of split) {
148
+ let ctx = context;
149
+ if (sel[0] === "!") {
150
+ const selectors = sel.substr(1).trim().split(" ");
151
+ ctx = closest(parent(context), selectors[0]);
152
+ sel = selectors.slice(1).join(" ").trim();
153
+ if (!sel.length && split.length === 1) {
154
+ return ctx;
155
+ }
156
+ }
157
+ if (sel[0] === "-") {
158
+ const selectors = sel.substr(1).trim().split(" ");
159
+ const prev = (ctx || context).previousElementSibling;
160
+ ctx = matches(prev, sel.substr(1)) ? prev : null;
161
+ sel = selectors.slice(1).join(" ");
162
+ }
163
+ if (ctx) {
164
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
165
+ }
166
+ }
167
+ context = document;
168
+ }
169
+ try {
170
+ return context[queryFn](selector);
171
+ } catch (e) {
172
+ return null;
173
+ }
174
+ }
175
+ const selectorRe = /.*?[^\\](?:,|$)/g;
176
+ const splitSelector = memoize(
177
+ (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
178
+ );
179
+ function domPath(element) {
180
+ const names = [];
181
+ while (element.parentNode) {
182
+ const id = attr(element, "id");
183
+ if (id) {
184
+ names.unshift(`#${escape(id)}`);
185
+ break;
186
+ } else {
187
+ let { tagName } = element;
188
+ if (tagName !== "HTML") {
189
+ tagName += `:nth-child(${index(element) + 1})`;
190
+ }
191
+ names.unshift(tagName);
192
+ element = element.parentNode;
193
+ }
194
+ }
195
+ return names.join(" > ");
196
+ }
197
+ function escape(css) {
198
+ return isString(css) ? CSS.escape(css) : "";
199
+ }
200
+
201
+ function on(...args) {
202
+ let [targets, types, selector, listener, useCapture = false] = getArgs(args);
203
+ if (listener.length > 1) {
204
+ listener = detail(listener);
205
+ }
206
+ if (useCapture == null ? void 0 : useCapture.self) {
207
+ listener = selfFilter(listener);
208
+ }
209
+ if (selector) {
210
+ listener = delegate(selector, listener);
211
+ }
212
+ for (const type of types) {
213
+ for (const target of targets) {
214
+ target.addEventListener(type, listener, useCapture);
215
+ }
216
+ }
217
+ return () => off(targets, types, listener, useCapture);
218
+ }
219
+ function off(...args) {
220
+ let [targets, types, , listener, useCapture = false] = getArgs(args);
221
+ for (const type of types) {
222
+ for (const target of targets) {
223
+ target.removeEventListener(type, listener, useCapture);
224
+ }
225
+ }
226
+ }
227
+ function getArgs(args) {
228
+ args[0] = toEventTargets(args[0]);
229
+ if (isString(args[1])) {
230
+ args[1] = args[1].split(" ");
231
+ }
232
+ if (isFunction(args[2])) {
233
+ args.splice(2, 0, false);
234
+ }
235
+ return args;
236
+ }
237
+ function delegate(selector, listener) {
238
+ return (e) => {
239
+ const current = selector[0] === ">" ? findAll(selector, e.currentTarget).reverse().filter((element) => within(e.target, element))[0] : closest(e.target, selector);
240
+ if (current) {
241
+ e.current = current;
242
+ listener.call(this, e);
243
+ delete e.current;
244
+ }
245
+ };
246
+ }
247
+ function detail(listener) {
248
+ return (e) => isArray(e.detail) ? listener(e, ...e.detail) : listener(e);
249
+ }
250
+ function selfFilter(listener) {
251
+ return function(e) {
252
+ if (e.target === e.currentTarget || e.target === e.current) {
253
+ return listener.call(null, e);
254
+ }
255
+ };
256
+ }
257
+ function isEventTarget(target) {
258
+ return target && "addEventListener" in target;
259
+ }
260
+ function toEventTarget(target) {
261
+ return isEventTarget(target) ? target : toNode(target);
262
+ }
263
+ function toEventTargets(target) {
264
+ return isArray(target) ? target.map(toEventTarget).filter(Boolean) : isString(target) ? findAll(target) : isEventTarget(target) ? [target] : toNodes(target);
265
+ }
266
+
267
+ const cssNumber = {
268
+ "animation-iteration-count": true,
269
+ "column-count": true,
270
+ "fill-opacity": true,
271
+ "flex-grow": true,
272
+ "flex-shrink": true,
273
+ "font-weight": true,
274
+ "line-height": true,
275
+ opacity: true,
276
+ order: true,
277
+ orphans: true,
278
+ "stroke-dasharray": true,
279
+ "stroke-dashoffset": true,
280
+ widows: true,
281
+ "z-index": true,
282
+ zoom: true
283
+ };
284
+ function css(element, property, value, priority) {
285
+ const elements = toNodes(element);
286
+ for (const element2 of elements) {
287
+ if (isString(property)) {
288
+ property = propName(property);
289
+ if (isUndefined(value)) {
290
+ return getComputedStyle(element2).getPropertyValue(property);
291
+ } else {
292
+ element2.style.setProperty(
293
+ property,
294
+ isNumeric(value) && !cssNumber[property] ? `${value}px` : value || isNumber(value) ? value : "",
295
+ priority
296
+ );
297
+ }
298
+ } else if (isArray(property)) {
299
+ const props = {};
300
+ for (const prop of property) {
301
+ props[prop] = css(element2, prop);
302
+ }
303
+ return props;
304
+ } else if (isObject(property)) {
305
+ priority = value;
306
+ each(property, (value2, property2) => css(element2, property2, value2, priority));
307
+ }
308
+ }
309
+ return elements[0];
310
+ }
311
+ const propName = memoize((name) => vendorPropName(name));
312
+ function vendorPropName(name) {
313
+ if (startsWith(name, "--")) {
314
+ return name;
315
+ }
316
+ name = hyphenate(name);
317
+ const { style } = document.documentElement;
318
+ if (name in style) {
319
+ return name;
320
+ }
321
+ for (const prefix of ["webkit", "moz"]) {
322
+ const prefixedName = `-${prefix}-${name}`;
323
+ if (prefixedName in style) {
324
+ return prefixedName;
325
+ }
326
+ }
327
+ }
328
+
329
+ const dirs = {
330
+ width: ["left", "right"],
331
+ height: ["top", "bottom"]
332
+ };
333
+ dimension("height");
334
+ dimension("width");
335
+ function dimension(prop) {
336
+ const propName = ucfirst(prop);
337
+ return (element, value) => {
338
+ if (isUndefined(value)) {
339
+ if (isWindow(element)) {
340
+ return element[`inner${propName}`];
341
+ }
342
+ if (isDocument(element)) {
343
+ const doc = element.documentElement;
344
+ return Math.max(doc[`offset${propName}`], doc[`scroll${propName}`]);
345
+ }
346
+ element = toNode(element);
347
+ value = css(element, prop);
348
+ value = value === "auto" ? element[`offset${propName}`] : toFloat(value) || 0;
349
+ return value - boxModelAdjust(element, prop);
350
+ } else {
351
+ return css(
352
+ element,
353
+ prop,
354
+ !value && value !== 0 ? "" : +value + boxModelAdjust(element, prop) + "px"
355
+ );
356
+ }
357
+ };
358
+ }
359
+ function boxModelAdjust(element, prop, sizing = "border-box") {
360
+ return css(element, "boxSizing") === sizing ? sumBy(
361
+ dirs[prop].map(ucfirst),
362
+ (prop2) => toFloat(css(element, `padding${prop2}`)) + toFloat(css(element, `border${prop2}Width`))
363
+ ) : 0;
364
+ }
365
+
366
+ const inBrowser = typeof window !== "undefined";
367
+
368
+ const hasResizeObserver = inBrowser && window.ResizeObserver;
369
+ function observeResize(targets, cb, options = { box: "border-box" }) {
370
+ if (hasResizeObserver) {
371
+ return observe$1(ResizeObserver, targets, cb, options);
372
+ }
373
+ initResizeListener();
374
+ listeners.add(cb);
375
+ return {
376
+ observe: noop,
377
+ unobserve: noop,
378
+ disconnect() {
379
+ listeners.delete(cb);
380
+ }
381
+ };
382
+ }
383
+ let listeners;
384
+ function initResizeListener() {
385
+ if (listeners) {
386
+ return;
387
+ }
388
+ listeners = /* @__PURE__ */ new Set();
389
+ let pendingResize;
390
+ const handleResize = () => {
391
+ if (pendingResize) {
392
+ return;
393
+ }
394
+ pendingResize = true;
395
+ requestAnimationFrame(() => pendingResize = false);
396
+ for (const listener of listeners) {
397
+ listener();
398
+ }
399
+ };
400
+ on(window, "load resize", handleResize);
401
+ on(document, "loadedmetadata load", handleResize, true);
402
+ }
403
+ function observeMutation(targets, cb, options) {
404
+ return observe$1(MutationObserver, targets, cb, options);
405
+ }
406
+ function observe$1(Observer, targets, cb, options) {
407
+ const observer = new Observer(cb);
408
+ for (const el of toNodes(targets)) {
409
+ observer.observe(el, options);
410
+ }
411
+ return observer;
412
+ }
413
+
414
+ function resize(options) {
415
+ return observe(observeResize, options, "resize");
416
+ }
417
+ function mutation(options) {
418
+ return observe(observeMutation, options);
419
+ }
420
+ function observe(observe2, options, emit) {
421
+ return {
422
+ observe: observe2,
423
+ handler() {
424
+ this.$emit(emit);
425
+ },
426
+ ...options
427
+ };
428
+ }
429
+
430
+ ({
431
+ props: {
432
+ margin: String,
433
+ firstColumn: Boolean
434
+ },
435
+ data: {
436
+ margin: "uk-margin-small-top",
437
+ firstColumn: "uk-first-column"
438
+ },
439
+ observe: [
440
+ mutation({
441
+ options: {
442
+ childList: true,
443
+ attributes: true,
444
+ attributeFilter: ["style"]
445
+ }
446
+ }),
447
+ resize({
448
+ target: ({ $el }) => [$el, ...uikitUtil.toArray($el.children)]
449
+ })
450
+ ],
451
+ update: {
452
+ read() {
453
+ const rows = getRows(this.$el.children);
454
+ return {
455
+ rows,
456
+ columns: getColumns(rows)
457
+ };
458
+ },
459
+ write({ columns, rows }) {
460
+ for (const row of rows) {
461
+ for (const column of row) {
462
+ uikitUtil.toggleClass(column, this.margin, rows[0] !== row);
463
+ uikitUtil.toggleClass(column, this.firstColumn, columns[0].includes(column));
464
+ }
465
+ }
466
+ },
467
+ events: ["resize"]
468
+ }
469
+ });
9
470
  function getRows(items) {
10
471
  return sortBy(items, "top", "bottom");
11
472
  }
473
+ function getColumns(rows) {
474
+ const columns = [];
475
+ for (const row of rows) {
476
+ const sorted = sortBy(row, "left", "right");
477
+ for (let j = 0; j < sorted.length; j++) {
478
+ columns[j] = columns[j] ? columns[j].concat(sorted[j]) : sorted[j];
479
+ }
480
+ }
481
+ return uikitUtil.isRtl ? columns.reverse() : columns;
482
+ }
12
483
  function sortBy(items, startProp, endProp) {
13
484
  const sorted = [[]];
14
485
  for (const el of items) {