uikit 3.25.17-dev.80dfe87 → 3.25.17-dev.8c70e44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/build/prefix.js +1 -1
- package/build/publishDev.js +1 -1
- package/build/release.js +2 -2
- package/build/scope.js +1 -1
- package/build/scss.js +1 -1
- package/dist/css/uikit-core-rtl.css +892 -802
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +892 -802
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +893 -803
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +893 -803
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +133 -132
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +134 -133
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/marquee.js +179 -0
- package/dist/js/components/marquee.min.js +1 -0
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +8 -12
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +8 -12
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +41 -25
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +8 -12
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +71 -102
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +19 -19
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +754 -262
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +629 -374
- package/dist/js/uikit.min.js +1 -1
- package/package.json +2 -2
- package/src/js/api/component.js +2 -3
- package/src/js/api/observables.js +2 -4
- package/src/js/api/options.js +6 -3
- package/src/js/api/props.js +1 -4
- package/src/js/api/state.js +7 -8
- package/src/js/components/index.js +1 -0
- package/src/js/components/internal/lightbox-animations.js +7 -26
- package/src/js/components/internal/slideshow-animations.js +15 -62
- package/src/js/components/lightbox-panel.js +121 -96
- package/src/js/components/lightbox.js +5 -8
- package/src/js/components/marquee.js +123 -0
- package/src/js/components/tooltip.js +4 -2
- package/src/js/core/accordion.js +78 -29
- package/src/js/core/drop.js +5 -4
- package/src/js/core/dropnav.js +3 -3
- package/src/js/core/grid.js +5 -19
- package/src/js/core/height-match.js +1 -2
- package/src/js/core/margin.js +3 -0
- package/src/js/core/overflow-fade.js +5 -5
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/switcher.js +24 -44
- package/src/js/core/video.js +172 -15
- package/src/js/mixin/connect.js +57 -0
- package/src/js/mixin/internal/slideshow-animations.js +5 -13
- package/src/js/mixin/internal/slideshow-transitioner.js +2 -2
- package/src/js/mixin/modal.js +4 -3
- package/src/js/mixin/parallax.js +1 -4
- package/src/js/mixin/position.js +1 -1
- package/src/js/mixin/scroll-driven.js +57 -0
- package/src/js/mixin/slider-nav.js +1 -1
- package/src/js/mixin/slider-parallax.js +9 -38
- package/src/js/mixin/togglable.js +13 -14
- package/src/js/util/attr.js +7 -7
- package/src/js/util/class.js +1 -1
- package/src/js/util/dom.js +3 -4
- package/src/js/util/lang.js +1 -1
- package/src/js/util/player.js +4 -4
- package/src/js/util/style.js +10 -15
- package/src/js/util/viewport.js +22 -25
- package/src/less/components/_import.less +6 -1
- package/src/less/components/base.less +1 -1
- package/src/less/components/button.less +1 -1
- package/src/less/components/dropcap.less +71 -0
- package/src/less/components/floating-shadow.less +65 -0
- package/src/less/components/form.less +5 -5
- package/src/less/components/grid.less +57 -64
- package/src/less/components/logo.less +94 -0
- package/src/less/components/margin.less +81 -81
- package/src/less/components/marquee.less +133 -0
- package/src/less/components/nav.less +1 -1
- package/src/less/components/padding.less +9 -9
- package/src/less/components/utility.less +0 -157
- package/src/less/theme/_import.less +5 -1
- package/src/less/theme/dropcap.less +29 -0
- package/src/less/theme/floating-shadow.less +20 -0
- package/src/less/theme/logo.less +29 -0
- package/src/less/theme/marquee.less +14 -0
- package/src/less/theme/utility.less +0 -32
- package/src/scss/components/_import.scss +6 -1
- package/src/scss/components/base.scss +1 -1
- package/src/scss/components/button.scss +1 -1
- package/src/scss/components/dropcap.scss +63 -0
- package/src/scss/components/floating-shadow.scss +62 -0
- package/src/scss/components/form.scss +5 -5
- package/src/scss/components/grid.scss +57 -64
- package/src/scss/components/logo.scss +75 -0
- package/src/scss/components/margin.scss +81 -81
- package/src/scss/components/marquee.scss +136 -0
- package/src/scss/components/nav.scss +1 -1
- package/src/scss/components/padding.scss +9 -9
- package/src/scss/components/utility.scss +0 -128
- package/src/scss/mixins-theme.scss +41 -32
- package/src/scss/mixins.scss +38 -29
- package/src/scss/variables-theme.scss +14 -9
- package/src/scss/variables.scss +14 -9
- package/tests/accordion.html +77 -10
- package/tests/alert.html +1 -1
- package/tests/align.html +5 -5
- package/tests/animation.html +4 -4
- package/tests/article.html +7 -7
- package/tests/background.html +2 -2
- package/tests/badge.html +1 -1
- package/tests/base.html +2 -2
- package/tests/button.html +1 -1
- package/tests/card.html +15 -15
- package/tests/close.html +2 -2
- package/tests/comment.html +9 -9
- package/tests/container.html +2 -2
- package/tests/countdown.html +21 -21
- package/tests/cover.html +3 -3
- package/tests/description-list.html +1 -1
- package/tests/divider.html +3 -3
- package/tests/dotnav.html +1 -1
- package/tests/drop.html +7 -7
- package/tests/dropbar.html +5 -5
- package/tests/dropcap.html +26 -0
- package/tests/dropdown.html +1 -1
- package/tests/dropnav.html +18 -18
- package/tests/filter.html +3 -3
- package/tests/floating-shadow.html +44 -0
- package/tests/form.html +14 -14
- package/tests/grid.html +41 -47
- package/tests/heading.html +2 -2
- package/tests/height-viewport.html +4 -4
- package/tests/height.html +5 -5
- package/tests/icon.html +8 -8
- package/tests/image.html +6 -6
- package/tests/index.html +13 -13
- package/tests/js/index.js +1 -1
- package/tests/leader.html +5 -5
- package/tests/lightbox.html +6 -6
- package/tests/link.html +1 -1
- package/tests/list.html +4 -4
- package/tests/logo.html +84 -0
- package/tests/margin.html +7 -7
- package/tests/marker.html +3 -3
- package/tests/marquee.html +617 -0
- package/tests/modal.html +3 -3
- package/tests/nav.html +5 -5
- package/tests/navbar.html +27 -27
- package/tests/notification.html +2 -2
- package/tests/offcanvas.html +12 -12
- package/tests/overlay.html +3 -3
- package/tests/padding.html +1 -1
- package/tests/pagination.html +3 -3
- package/tests/parallax.html +1 -1
- package/tests/position.html +6 -6
- package/tests/scrollspy.html +12 -12
- package/tests/search.html +5 -5
- package/tests/section.html +17 -17
- package/tests/slidenav.html +3 -3
- package/tests/slider.html +5 -5
- package/tests/slideshow.html +3 -3
- package/tests/sortable.html +15 -15
- package/tests/sticky-navbar.html +4 -4
- package/tests/sticky-parallax.html +3 -3
- package/tests/sticky.html +3 -3
- package/tests/svg.html +3 -2
- package/tests/switcher.html +6 -6
- package/tests/tab.html +4 -4
- package/tests/text.html +3 -3
- package/tests/tile.html +4 -4
- package/tests/toggle.html +1 -1
- package/tests/tooltip.html +3 -3
- package/tests/totop.html +2 -2
- package/tests/transition.html +1 -1
- package/tests/upload.html +5 -5
- package/tests/utility.html +16 -116
- package/tests/video.html +224 -24
- package/tests/visibility.html +4 -4
- package/tests/width.html +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.25.17-dev.80dfe87 | https://www.getuikit.com | (c) 2014 - 2026 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._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&>(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function gt(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 V(t){return P(s.observeResize,t,"resize")}function z(t){return P(s.observeIntersection,t)}function ut(t={}){return z({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 P((e,i)=>({disconnect:s.on(pt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(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(){this._cmpCls=s.hasClass(this.$el,this.$options.id),s.addClass(this.$el,this.$options.id)},disconnected(){this._cmpCls||s.removeClass(this.$el,this.$options.id)}};function vt(){return new Promise(t=>requestAnimationFrame(t))}var wt={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++]||""))||""}}},It={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:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!s.isVisible(this.$el)||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 C={passive:!1,capture:!0},bt="touchstart mousedown",D="touchmove mousemove",$t="touchend touchcancel mouseup click input scroll";var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i);s.isRtl&&(n.x=-n.x),this.prevPos=s.isEqual(n,this.pos)?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:bt,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&St(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:({list:t})=>t,handler:s.noop,...C}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=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,C),s.on(document,$t,this.end,{passive:!0,capture:!0,once:!0}),s.css(this.list,"userSelect","none")},move(t){const e=this.pos.x-this.drag.x;if(e===0||!this.dragging&&Ct(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),a=B.call(this,n,r);for(;r!==n&&o>a;)this.drag.x-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=B.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],f=this.index!==r,c=n===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&s.trigger(i[this.index],"itemshown",[this]),f&&(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,C),this.dragging)if(setTimeout(s.on(this.list,"click",t=>t.preventDefault(),C)),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=this.dir<0==this.prevPos.x>this.pos.x;t?(s.trigger(this.slides[this.prevIndex],"itemhidden",[this]),s.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function B(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function St(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}function Ct(t,e){return Math.atan2(Math.abs(e.y-t.y),Math.abs(e.x-t.x))*180/Math.PI}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 j(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${_t++}`}const b={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};function kt(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}var At={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$$(t,e),navChildren(){return this.nav.map(t=>s.children(t)).flat()},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},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=j(this,h)),r=h.id),o=this.t("slideX",s.toFloat(i)+1),n.role="tab"}else this.list&&(this.list.id||(this.list.id=j(this,this.list)),r=this.list.id),o=this.t(i);n.ariaControls=r,n.ariaLabel=n.ariaLabel||o}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav.length?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav.length?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===b.SPACE)&&(kt(t),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.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),n.ariaSelected=r,n.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))}},padNavitems(){for(const t of this.nav){const e=s.children(t),i=[];for(let n=0;n<this.length;n++){const o=`${this.attrItem}="${n}"`;i[n]=e.findLast(r=>r.matches(`[${o}]`))||s.$(`<li ${o}><a href></a></li>`)}s.isEqual(i,e)||s.html(t,i)}}}};const Mt="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Et="cubic-bezier(0.165, 0.84, 0.44, 1)";var Nt={mixins:[It,yt,At,wt],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:{async 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),f=this.slides[d];if(h===f){r();return}if(this.dir=Tt(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}h&&s.trigger(h,"itemhide",[this]),s.trigger(f,"itemshow",[this]),await this._show(h,f,e),h&&s.trigger(h,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,await vt(),n.length&&this.show(n.shift(),!0)},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)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?Mt:Et:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}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 Tt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function q(t){return .5*t+300}function Pt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Dt}=Array;function F(t){return t!==null&&typeof t=="object"}function Ft(t){return F(t)&&t===t.window}function Ot(t){return Q(t)===9}function U(t){return Q(t)>=1}function Q(t){return!Ft(t)&&F(t)&&t.nodeType}function O(t){return typeof t=="string"}function Rt(t){return t===void 0}function _(t){return t&&m(t)[0]}function m(t){return U(t)?[t]:Array.from(t||[]).filter(U)}function G(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function X(t,e,i){var n;if(F(e)){for(const o in e)X(t,o,e[o]);return}if(Rt(i))return(n=_(t))==null?void 0:n.getAttribute(e);for(const o of m(t))i===null?Wt(o,e):o.setAttribute(e,i)}function Wt(t,e){m(t).forEach(i=>i.removeAttribute(e))}const Ht=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Lt(t){return m(t).some(e=>Ht.call(e))}function Vt(t){var e;return(e=_(t))==null?void 0:e.parentElement}function zt(t,e){return m(t).filter(i=>J(i,e))}function J(t,e){return m(t).some(i=>i.matches(e))}function Bt(t,e){t=_(t);const i=t?Dt(t.children):[];return e?zt(i,e):i}function K(t,e){return Bt(Vt(t)).indexOf(t)}function jt(t,e){return m(Xt(t,_(e),"querySelectorAll"))}const qt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ut=/(\([^)]*\)|[^,])+/g,Qt=G(t=>{let e=!1;if(!t||!O(t))return{};const i=[];for(let n of t.match(Ut))n=n.trim().replace(qt,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Gt=/(\([^)]*\)|\S)*/,Y=G(t=>{t=t.slice(1).trim();const[e]=t.match(Gt);return[e,t.slice(e.length+1)]});function Xt(t,e=document,i){var n;const o=Qt(t);if(!o.isContextSelector)return o.selector?R(e,i,o.selector):t;t="";const r=o.selectors.length===1;for(let a of o.selectors){let h,d=e;if(a[0]==="!"&&([h,a]=Y(a),d=(n=e.parentElement)==null?void 0:n.closest(h),!a&&r)||d&&a[0]==="-"&&([h,a]=Y(a),d=d.previousElementSibling,d=J(d,h)?d:null,!a&&r))return d;if(d){if(r)return a[0]==="~"||a[0]==="+"?(a=`:scope > :nth-child(${K(d)+1}) ${a}`,d=d.parentElement):a[0]===">"&&(a=`:scope ${a}`),R(d,i,a);t+=`${t?",":""}${Jt(d)} ${a}`}}return Ot(e)||(e=e.ownerDocument),R(e,i,t)}function R(t,e,i){try{return t[e](i)}catch{return null}}function Jt(t){const e=[];for(;t.parentNode;){const i=X(t,"id");if(i){e.unshift(`#${Kt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${K(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Kt(t){return O(t)?CSS.escape(t):""}const Yt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Zt(t){const e=Yt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),te(i.content.childNodes)}function te(t){return t.length>1?t:t[0]}function ee(t,e){return se(t)?m(Zt(t)):jt(t,e)}function se(t){return O(t)&&Pt(t.trim(),"<")}function ie(t){return Lt(t)?Math.ceil(Math.max(0,...ee("[stroke]",t).map(e=>{var i;return((i=e.getTotalLength)==null?void 0:i.call(e))||0}))):0}const Z={x:k,y:k,rotate:k,scale:k,color:W,backgroundColor:W,borderColor:W,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:re,stroke:oe,bgx:et,bgy:et},{keys:tt}=Object;ot(tt(Z),"list"),ot(tt(Z),void 0);function k(t,e,i){let n=M(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 M([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}(${$(i,a)}${n})`}}function W(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i,n=>ne(e,n)),(n,o)=>{const[r,a,h]=rt(i,o),d=r.map((f,c)=>(f+=h*(a[c]-f),c===3?s.toFloat(f):parseInt(f,10))).join(",");n[t]=`rgba(${d})`}}function ne(t,e){return y(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=M(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=$(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function re(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i),(n,o)=>{n[t]=$(i,o)}}function oe(t,e,i){i.length===1&&i.unshift(0);const n=M(i),o=ie(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=$(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(y(e,"backgroundSize","")==="cover")return ae(t,e,i,n);const a={};for(const h of r)a[h]=st(e,h);return it(r,a,n)}function ae(t,e,i,n){const o=he(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 l=n[c].map(([T])=>T),g=Math.min(...l),u=Math.max(...l),N=l.indexOf(g)<l.indexOf(u),p=u-g;h[c]=`${(N?-p:0)-(N?g:u)}px`,r[c==="bgy"?"height":"width"]+=p}const d=s.Dimensions.cover(o,r);for(const c of a){const l=c==="bgy"?"height":"width",g=d[l]-r[l];h[c]=`max(${st(e,c)},-${g}px) + ${h[c]}`}const f=it(a,h,n);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function st(t,e){return y(t,`background-position-${e.slice(-1)}`,"")}function it(t,e,i){return function(n,o){for(const r of t){const a=$(i[r],o);n[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const nt={},A={};function he(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(A[e])return A[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!nt[e])?(s.once(i,"error load",()=>{A[e]=H(i),s.trigger(t,s.createEvent("load",!1))}),nt[e]=!0,H(i)):A[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],f=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+f*(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 $(t,e){const[i,n,o]=rt(t,e);return i+(n-i)*o}const de=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,de);if(o)return o[1]}return e}function y(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 ce(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var le={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[V({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:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=ce(s.scrolledOver(t,e,i),this.parallaxEasing);return{parallax:this.getIndexAt(n)}},write({parallax:t}){const[e,i]=t,n=this.getValidIndex(e+Math.ceil(i)),o=this.slides[e],r=this.slides[n],{triggerShow:a,triggerShown:h,triggerHide:d,triggerHidden:f}=fe(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))s.includes([n,e],l)||(d(this.slides[l]),f(this.slides[l]));const c=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,o!==r&&d(o),a(r),c&&h(o),this._translate(o===r?1:i,o,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function fe(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 ge={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)},events:["resize"]}},ue={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?`translate3d(${t+e}, 0, 0)`:""}function L(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}function me(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function pe(t,e,i,{center:n,easing:o,list:r}){const a=t?S(t,r,n):S(e,r,n)+s.dimensions(e).width*i,h=e?S(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1),{promise:d,resolve:f}=me();return{dir:i,show(c,l=0,g){const u=g?"linear":o;return c-=Math.round(c*s.clamp(l,-1,1)),s.css(r,"transitionProperty","none"),this.translate(l),s.css(r,"transitionProperty",""),l=t?l:s.clamp(l,0,1),L(this.getItemIn(),"itemin",{percent:l,duration:c,timing:u,dir:i}),t&&L(this.getItemIn(!0),"itemout",{percent:1-l,duration:c,timing:u,dir:i}),s.Transition.start(r,{transform:at(-h*(s.isRtl?-1:1),"px")},c,u).then(f,s.noop),d},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){if(c===this.percent())return;const l=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",at(s.clamp(-h+(l-l*c),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const g=this.getActives(),u=this.getItemIn(),N=this.getItemIn(!0);c=t?s.clamp(c,-1,1):0;for(const p of s.children(r)){const T=s.includes(g,p),lt=p===u,ft=p===N,be=lt||!ft&&(T||i*(s.isRtl?-1:1)===-1^E(p,r)>E(t||e));L(p,`itemtranslate${be?"in":"out"}`,{dir:i,percent:ft?1-c:lt?c:T?1:0})}},percent(){return Math.abs((new DOMMatrix(s.css(r,"transform")).m41*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(c=!1){let l=this.getActives(),g=dt(r,S(e||t,r,n));if(c){const u=l;l=g,g=u}return g[s.findIndex(g,u=>!s.includes(l,u))]},getActives(){return dt(r,S(t||e,r,n))}}}function S(t,e,i){const n=E(t,e);return i?n-xe(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 xe(t,e){return(s.dimensions(e).width-s.dimensions(t).width)/2}function E(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=E(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}var ct={mixins:[xt,Nt,ge,le,ue],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:pe},computed:{finite({finite:t}){return t||ve(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-.005)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-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:[V({target:({slides:t,$el:e})=>[e,...t]}),z({handler(t){for(const{target:e,isIntersecting:i}of t)e.ariaHidden=e.inert=!i},target:({slides:t})=>t,args:{intersecting:!1},options:({$el:t})=>({root:t,rootMargin:"0px -10px"})})],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.parallax||this._translate(1),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||!this.length)return;const e=this.slides[t];let i=(s.dimensions(this.list).width-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)s.toggleClass(n,i,s.includes(e,n))},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-n)/2:0,r=new Set;for(const a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const f=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(f).width*a,r.add(f)}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+s.dimensions(s.last(this.slides)).width)/2:w(this.list,this.maxIndex);let n=t*i,o;do{const r=s.dimensions(this.slides[++e]).width,a=this.center?(r+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 ve(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+we(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 f=0;for(const c of[-1,1]){let l=h/2,g=0;for(;l<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;l+=s.dimensions(u).width,d.add(u)}f=Math.max(f,(h+s.dimensions(n[s.getIndex(+r+c,n)]).width)/2-(l-o))}if(Math.trunc(f)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function we(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}var Ie="slider";return typeof window<"u"&&window.UIkit&&window.UIkit.component(Ie,ct),ct}));
|
|
1
|
+
/*! UIkit 3.25.17-dev.8c70e44 | https://www.getuikit.com | (c) 2014 - 2026 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._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&>(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function gt(t,e){for(const{read:i,write:n,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(o=>e.has(o)))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 V(t){return P(s.observeResize,t,"resize")}function z(t){return P(s.observeIntersection,t)}function ut(t={}){return z({handler:function(e,i){const{targets:n=this.$el,preload:a=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,a-1).forEach(o=>s.removeAttr(o,"loading"));for(const{target:r}of e.filter(({isIntersecting:o})=>o))i.unobserve(r)},...t})}function mt(t){return P((e,i)=>({disconnect:s.on(pt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(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(){this._cmpCls=s.hasClass(this.$el,this.$options.id),s.addClass(this.$el,this.$options.id)},disconnected(){this._cmpCls||s.removeClass(this.$el,this.$options.id)}};function vt(){return new Promise(t=>requestAnimationFrame(t))}var wt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,a;let r=0;return((a=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},It={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:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!s.isVisible(this.$el)||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 C={passive:!1,capture:!0},bt="touchstart mousedown",D="touchmove mousemove",$t="touchend touchcancel mouseup click input scroll";var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i);s.isRtl&&(n.x=-n.x),this.prevPos=s.isEqual(n,this.pos)?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:bt,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&St(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:({list:t})=>t,handler:s.noop,...C}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=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,C),s.on(document,$t,this.end,{passive:!0,capture:!0,once:!0}),s.css(this.list,"userSelect","none")},move(t){const e=this.pos.x-this.drag.x;if(e===0||!this.dragging&&Ct(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,a=Math.abs(e),r=this.getIndex(n+this.dir),o=j.call(this,n,r);for(;r!==n&&a>o;)this.drag.x-=o*this.dir,n=r,a-=o,r=this.getIndex(n+this.dir),o=j.call(this,n,r);this.percent=a/o;const h=i[n],d=i[r],f=this.index!==r,c=n===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&s.trigger(i[this.index],"itemshown",[this]),f&&(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,C),this.dragging)if(setTimeout(s.on(this.list,"click",t=>t.preventDefault(),C)),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=this.dir<0==this.prevPos.x>this.pos.x;t?(s.trigger(this.slides[this.prevIndex],"itemhidden",[this]),s.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function j(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function St(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}function Ct(t,e){return Math.atan2(Math.abs(e.y-t.y),Math.abs(e.x-t.x))*180/Math.PI}s.memoize((t,e)=>{const i=Object.keys(e),n=[...i,t].flatMap(a=>[s.hyphenate(a),`data-${s.hyphenate(a)}`]);return{attributes:i,filter:n}});let _t=1;function B(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${_t++}`}const b={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};function kt(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}var At={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$$(t,e),navChildren(){return this.nav.flatMap(t=>s.children(t))},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let a,r=null;if(s.isNumeric(i)){const o=s.toNumber(i),h=this.slides[o];h&&(h.id||(h.id=B(this,h)),r=h.id),a=this.t("slideX",s.toFloat(i)+1),n.role="tab"}else this.list&&(this.list.id||(this.list.id=B(this,this.list)),r=this.list.id),a=this.t(i);n.ariaControls=r,n.ariaLabel=n.ariaLabel||a}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav.length?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav.length?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===b.SPACE)&&(kt(t),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let a=i===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],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),n.ariaSelected=r,n.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))}},padNavitems(){for(const t of this.nav){const e=s.children(t),i=[];for(let n=0;n<this.length;n++){const a=`${this.attrItem}="${n}"`;i[n]=e.findLast(r=>r.matches(`[${a}]`))||s.$(`<li ${a}><a href></a></li>`)}s.isEqual(i,e)||s.html(t,i)}}}};const Mt="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Et="cubic-bezier(0.165, 0.84, 0.44, 1)";var Nt={mixins:[It,yt,At,wt],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:{async show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,a=e?0:n.length,r=()=>{n.splice(a,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 o=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(t,this.index),f=this.slides[d];if(h===f){r();return}if(this.dir=Tt(t,o),this.prevIndex=o,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}h&&s.trigger(h,"itemhide",[this]),s.trigger(f,"itemshow",[this]),await this._show(h,f,e),h&&s.trigger(h,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,await vt(),n.length&&this.show(n.shift(),!0)},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)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?Mt:Et:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}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 Tt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function q(t){return .5*t+300}function Pt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Dt}=Array;function F(t){return t!==null&&typeof t=="object"}function Ft(t){return F(t)&&t===t.window}function Ot(t){return Q(t)===9}function U(t){return Q(t)>=1}function Q(t){return!Ft(t)&&F(t)&&t.nodeType}function O(t){return typeof t=="string"}function Rt(t){return t===void 0}function _(t){return t&&m(t)[0]}function m(t){return U(t)?[t]:Array.from(t||[]).filter(U)}function G(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function X(t,e,i){var n;if(F(e)){for(const a in e)X(t,a,e[a]);return}if(Rt(i))return(n=_(t))==null?void 0:n.getAttribute(e);for(const a of m(t))i===null?Wt(a,e):a.setAttribute(e,i)}function Wt(t,e){m(t).forEach(i=>i.removeAttribute(e))}const Ht=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Lt(t){return m(t).some(e=>Ht.call(e))}function Vt(t){var e;return(e=_(t))==null?void 0:e.parentElement}function zt(t,e){return m(t).filter(i=>J(i,e))}function J(t,e){return m(t).some(i=>i.matches(e))}function jt(t,e){t=_(t);const i=t?Dt(t.children):[];return e?zt(i,e):i}function K(t,e){return jt(Vt(t)).indexOf(t)}function Bt(t,e){return m(Xt(t,_(e),"querySelectorAll"))}const qt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ut=/(\([^)]*\)|[^,])+/g,Qt=G(t=>{let e=!1;if(!t||!O(t))return{};const i=[];for(let n of t.match(Ut))n=n.trim().replace(qt,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Gt=/(\([^)]*\)|\S)*/,Y=G(t=>{t=t.slice(1).trim();const[e]=t.match(Gt);return[e,t.slice(e.length+1)]});function Xt(t,e=document,i){var n;const a=Qt(t);if(!a.isContextSelector)return a.selector?R(e,i,a.selector):t;t="";const r=a.selectors.length===1;for(let o of a.selectors){let h,d=e;if(o[0]==="!"&&([h,o]=Y(o),d=(n=e.parentElement)==null?void 0:n.closest(h),!o&&r)||d&&o[0]==="-"&&([h,o]=Y(o),d=d.previousElementSibling,d=J(d,h)?d:null,!o&&r))return d;if(d){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${K(d)+1}) ${o}`,d=d.parentElement):o[0]===">"&&(o=`:scope ${o}`),R(d,i,o);t+=`${t?",":""}${Jt(d)} ${o}`}}return Ot(e)||(e=e.ownerDocument),R(e,i,t)}function R(t,e,i){try{return t[e](i)}catch{return null}}function Jt(t){const e=[];for(;t.parentNode;){const i=X(t,"id");if(i){e.unshift(`#${Kt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${K(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Kt(t){return O(t)?CSS.escape(t):""}const Yt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Zt(t){const e=Yt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),te(i.content.childNodes)}function te(t){return t.length>1?t:t[0]}function ee(t,e){return se(t)?m(Zt(t)):Bt(t,e)}function se(t){return O(t)&&Pt(t.trim(),"<")}function ie(t){return Lt(t)?Math.ceil(Math.max(0,...ee("[stroke]",t).map(e=>{var i;return((i=e.getTotalLength)==null?void 0:i.call(e))||0}))):0}const Z={x:k,y:k,rotate:k,scale:k,color:W,backgroundColor:W,borderColor:W,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:re,stroke:ae,bgx:et,bgy:et},{keys:tt}=Object;at(tt(Z),"list"),at(tt(Z),void 0);function k(t,e,i){let n=M(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",a;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,a=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",a=r=>{var o;return M([r])?s.toPx(r,"width",e,!0)/e[`offset${(o=r.endsWith)!=null&&o.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,a),(r,o)=>{r.transform=`${r.transform||""} ${t}(${$(i,o)}${n})`}}function W(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i,n=>ne(e,n)),(n,a)=>{const[r,o,h]=rt(i,a),d=r.map((f,c)=>(f+=h*(o[c]-f),c===3?s.toFloat(f):parseInt(f,10))).join(",");n[t]=`rgba(${d})`}}function ne(t,e){return y(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=M(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(a,r)=>{const o=$(i,r);a.filter=`${a.filter||""} ${t}(${o+n})`}}function re(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=v(i),(n,a)=>{n[t]=$(i,a)}}function ae(t,e,i){i.length===1&&i.unshift(0);const n=M(i),a=ie(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*a/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",a),(r,o)=>{r.strokeDashoffset=$(i,o)}):s.noop}function et(t,e,i,n){i.length===1&&i.unshift(0);const a=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,a,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return oe(t,e,i,n);const o={};for(const h of r)o[h]=st(e,h);return it(r,o,n)}function oe(t,e,i,n){const a=he(e);if(!a.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(c=>c in n),h={};for(const c of o){const l=n[c].map(([T])=>T),g=Math.min(...l),u=Math.max(...l),N=l.indexOf(g)<l.indexOf(u),p=u-g;h[c]=`${(N?-p:0)-(N?g:u)}px`,r[c==="bgy"?"height":"width"]+=p}const d=s.Dimensions.cover(a,r);for(const c of o){const l=c==="bgy"?"height":"width",g=d[l]-r[l];h[c]=`max(${st(e,c)},-${g}px) + ${h[c]}`}const f=it(o,h,n);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function st(t,e){return y(t,`background-position-${e.slice(-1)}`,"")}function it(t,e,i){return function(n,a){for(const r of t){const o=$(i[r],a);n[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${o}px)`}}}const nt={},A={};function he(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(A[e])return A[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!nt[e])?(s.once(i,"error load",()=>{A[e]=H(i),s.trigger(t,s.createEvent("load",!1))}),nt[e]=!0,H(i)):A[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 a=0;for(let r=0;r<n;r++){let[o,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(o=e(o),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([o,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([o,h]),h=1)),i.push([o,h]),h===null)a++;else if(a){const d=i[r-a-1][1],f=(h-d)/(a+1);for(let c=a;c>0;c--)i[r-c][1]=d+f*(a-c+1);a=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 $(t,e){const[i,n,a]=rt(t,e);return i+(n-i)*a}const de=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,e){var i;for(const n of t){const a=(i=n.match)==null?void 0:i.call(n,de);if(a)return a[1]}return e}function y(t,e,i){const n=t.style[e],a=s.css(s.css(t,e,i),e);return t.style[e]=n,a}function at(t,e){return Object.fromEntries(t.map(i=>[i,e]))}function ce(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var le={props:{parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[V({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),mt({filter:({parallax:t})=>t})],computed:{parallaxTargetFallback:(t,e)=>e,parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.parallaxTargetFallback}},update:{read(){if(!this.parallax)return;const t=this.parallaxTarget;if(!t)return;const e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0);return{percent:ce(s.scrolledOver(t,e,i),this.parallaxEasing)}},events:["scroll","resize"]}},fe={mixins:[le],props:{parallax:Boolean},data:{parallax:!1},computed:{parallaxTargetFallback(){return this.list}},update:{write({percent:t}){if(!this.parallax)return;const[e,i]=this.getIndexAt(t),n=this.getValidIndex(e+Math.ceil(i)),a=this.slides[e],r=this.slides[n],{triggerShow:o,triggerShown:h,triggerHide:d,triggerHidden:f}=ge(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))s.includes([n,e],l)||(d(this.slides[l]),f(this.slides[l]));const c=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,a!==r&&d(a),o(r),c&&h(a),this._translate(a===r?1:i,a,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ge(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:a,triggerShown:r,triggerHide:o,triggerHidden:h};function a(d){s.hasClass(d,n)&&(o(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 o(d){s.hasClass(d,e)||a(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 ue={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)},events:["resize"]}},me={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 ot(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function L(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}function pe(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function xe(t,e,i,{center:n,easing:a,list:r}){const o=t?S(t,r,n):S(e,r,n)+s.dimensions(e).width*i,h=e?S(e,r,n):o+s.dimensions(t).width*i*(s.isRtl?-1:1),{promise:d,resolve:f}=pe();return{dir:i,show(c,l=0,g){const u=g?"linear":a;return c-=Math.round(c*s.clamp(l,-1,1)),s.css(r,"transitionProperty","none"),this.translate(l),s.css(r,"transitionProperty",""),l=t?l:s.clamp(l,0,1),L(this.getItemIn(),"itemin",{percent:l,duration:c,timing:u,dir:i}),t&&L(this.getItemIn(!0),"itemout",{percent:1-l,duration:c,timing:u,dir:i}),s.Transition.start(r,{transform:ot(-h*(s.isRtl?-1:1),"px")},c,u).then(f,s.noop),d},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){if(c===this.percent())return;const l=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ot(s.clamp(-h+(l-l*c),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const g=this.getActives(),u=this.getItemIn(),N=this.getItemIn(!0);c=t?s.clamp(c,-1,1):0;for(const p of s.children(r)){const T=s.includes(g,p),lt=p===u,ft=p===N,$e=lt||!ft&&(T||i*(s.isRtl?-1:1)===-1^E(p,r)>E(t||e));L(p,`itemtranslate${$e?"in":"out"}`,{dir:i,percent:ft?1-c:lt?c:T?1:0})}},percent(){return Math.abs((new DOMMatrix(s.css(r,"transform")).m41*(s.isRtl?-1:1)+o)/(h-o))},getDistance(){return Math.abs(h-o)},getItemIn(c=!1){let l=this.getActives(),g=dt(r,S(e||t,r,n));if(c){const u=l;l=g,g=u}return g[s.findIndex(g,u=>!s.includes(l,u))]},getActives(){return dt(r,S(t||e,r,n))}}}function S(t,e,i){const n=E(t,e);return i?n-ve(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 ve(t,e){return(s.dimensions(e).width-s.dimensions(t).width)/2}function E(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(a=>{const r=E(a,t),o=r+Math.min(s.dimensions(a).width,i);return r>=e&&o<=n})}var ct={mixins:[xt,Nt,ue,fe,me],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:xe},computed:{finite({finite:t}){return t||we(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-.005)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 a=0;a<this.length;a++){const r=s.dimensions(this.slides[a]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(a+1,this.slides)]).width/2>n/2&&(i.push(a),e=(n-r)/2):e===0&&i.push(Math.min(a,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:[V({target:({slides:t,$el:e})=>[e,...t]}),z({handler(t){for(const{target:e,isIntersecting:i}of t)e.ariaHidden=e.inert=!i},target:({slides:t})=>t,args:{intersecting:!1},options:({$el:t})=>({root:t,rootMargin:"0px -10px"})})],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.parallax||this._translate(1),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 a=0;a<e;a++)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((a,r)=>s.css(a,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center||!this.length)return;const e=this.slides[t];let i=(s.dimensions(this.list).width-s.dimensions(e).width)/2,n=0;for(;i>0;){const a=this.getIndex(--n+t,t),r=this.slides[a];s.css(r,"order",a>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)s.toggleClass(n,i,s.includes(e,n))},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,a=this.center?(t-n)/2:0,r=new Set;for(const o of[-1,1]){let h=a+(o>0?n:0),d=0;do{const f=this.slides[this.getIndex(this.index+o+d++*o)];h+=s.dimensions(f).width*o,r.add(f)}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+s.dimensions(s.last(this.slides)).width)/2:w(this.list,this.maxIndex);let n=t*i,a;do{const r=s.dimensions(this.slides[++e]).width,o=this.center?(r+s.dimensions(this.slides[e+1]).width)/2:r;a=n/o%1,n-=o}while(n>=0&&e<this.maxIndex);return[e,a]}}};function we(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+Ie(t));const n=s.children(t),a=Math.trunc(i/2);for(const r in n){const o=n[r],h=s.dimensions(o).width,d=new Set([o]);let f=0;for(const c of[-1,1]){let l=h/2,g=0;for(;l<a;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;l+=s.dimensions(u).width,d.add(u)}f=Math.max(f,(h+s.dimensions(n[s.getIndex(+r+c,n)]).width)/2-(l-a))}if(Math.trunc(f)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function Ie(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}var be="slider";return typeof window<"u"&&window.UIkit&&window.UIkit.component(be,ct),ct}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.17-dev.
|
|
1
|
+
/*! UIkit 3.25.17-dev.8c70e44 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -92,13 +92,12 @@
|
|
|
92
92
|
}
|
|
93
93
|
if (isUndefined(value)) {
|
|
94
94
|
return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
95
|
+
}
|
|
96
|
+
for (const el of toNodes(element)) {
|
|
97
|
+
if (value === null) {
|
|
98
|
+
removeAttr(el, name);
|
|
99
|
+
} else {
|
|
100
|
+
el.setAttribute(name, value);
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
}
|
|
@@ -556,10 +555,7 @@
|
|
|
556
555
|
return val;
|
|
557
556
|
}
|
|
558
557
|
function fillObject(keys2, value) {
|
|
559
|
-
return keys2.
|
|
560
|
-
data[prop] = value;
|
|
561
|
-
return data;
|
|
562
|
-
}, {});
|
|
558
|
+
return Object.fromEntries(keys2.map((prop) => [prop, value]));
|
|
563
559
|
}
|
|
564
560
|
|
|
565
561
|
var Component = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.25.17-dev.
|
|
1
|
+
/*! UIkit 3.25.17-dev.8c70e44 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(i,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow_parallax=$(i.UIkit.util))})(this,(function(i){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(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 Y(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{from:k}=Array;function C(n){return n!==null&&typeof n=="object"}function U(n){return C(n)&&n===n.window}function nn(n){return _(n)===9}function I(n){return _(n)>=1}function _(n){return!U(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function tn(n){return n===void 0}function w(n){return n&&l(n)[0]}function l(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function N(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function T(n,t,e){var r;if(C(t)){for(const o in t)T(n,o,t[o]);return}if(tn(e))return(r=w(n))==null?void 0:r.getAttribute(t);for(const o of l(n))e===null?en(o,t):o.setAttribute(t,e)}function en(n,t){l(n).forEach(e=>e.removeAttribute(t))}const rn=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function on(n){return l(n).some(t=>rn.call(t))}function sn(n){var t;return(t=w(n))==null?void 0:t.parentElement}function cn(n,t){return l(n).filter(e=>W(e,t))}function W(n,t){return l(n).some(e=>e.matches(t))}function an(n,t){n=w(n);const e=n?k(n.children):[];return t?cn(e,t):e}function A(n,t){return an(sn(n)).indexOf(n)}function fn(n,t){return l(gn(n,w(t),"querySelectorAll"))}const un=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,dn=/(\([^)]*\)|[^,])+/g,ln=N(n=>{let t=!1;if(!n||!M(n))return{};const e=[];for(let r of n.match(dn))r=r.trim().replace(un,"$1 *"),t||(t=["!","+","~","-",">"].includes(r[0])),e.push(r);return{selector:e.join(","),selectors:e,isContextSelector:t}}),hn=/(\([^)]*\)|\S)*/,D=N(n=>{n=n.slice(1).trim();const[t]=n.match(hn);return[t,n.slice(t.length+1)]});function gn(n,t=document,e){var r;const o=ln(n);if(!o.isContextSelector)return o.selector?O(t,e,o.selector):n;n="";const s=o.selectors.length===1;for(let c of o.selectors){let a,f=t;if(c[0]==="!"&&([a,c]=D(c),f=(r=t.parentElement)==null?void 0:r.closest(a),!c&&s)||f&&c[0]==="-"&&([a,c]=D(c),f=f.previousElementSibling,f=W(f,a)?f:null,!c&&s))return f;if(f){if(s)return c[0]==="~"||c[0]==="+"?(c=`:scope > :nth-child(${A(f)+1}) ${c}`,f=f.parentElement):c[0]===">"&&(c=`:scope ${c}`),O(f,e,c);n+=`${n?",":""}${mn(f)} ${c}`}}return nn(t)||(t=t.ownerDocument),O(t,e,n)}function O(n,t,e){try{return n[t](e)}catch{return null}}function mn(n){const t=[];for(;n.parentNode;){const e=T(n,"id");if(e){t.unshift(`#${$n(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function $n(n){return M(n)?CSS.escape(n):""}const bn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function pn(n){const t=bn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),xn(e.content.childNodes)}function xn(n){return n.length>1?n:n[0]}function wn(n,t){return yn(n)?l(pn(n)):fn(n,t)}function yn(n){return M(n)&&Z(n.trim(),"<")}function vn(n){return on(n)?Math.ceil(Math.max(0,...wn("[stroke]",n).map(t=>{var e;return((e=t.getTotalLength)==null?void 0:e.call(t))||0}))):0}const y={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:Cn,stroke:Mn,bgx:R,bgy:R},{keys:H}=Object;var Sn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,t){const e={};for(const o in n)o in y&&!i.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=y[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){i.resetProps(this.$el,this.getCss(0))},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 v(n,t,e){let r=F(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 F([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}(${b(e,c)}${r})`}}function P(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,r=>Fn(t,r)),(r,o)=>{const[s,c,a]=L(e,o),f=s.map((h,u)=>(h+=a*(c[u]-h),u===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${f})`}}function Fn(n,t){return p(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=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,s)=>{const c=b(e,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function Cn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(r,o)=>{r[n]=b(e,o)}}function Mn(n,t,e){e.length===1&&e.unshift(0);const r=F(e),o=vn(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=b(e,c)}):i.noop}function R(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(p(t,"backgroundSize","")==="cover")return On(n,t,e,r);const c={};for(const a of s)c[a]=B(t,a);return V(s,c,r)}function On(n,t,e,r){const o=Pn(t);if(!o.width)return i.noop;const s={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(u=>u in r),a={};for(const u of c){const d=r[u].map(([In])=>In),x=Math.min(...d),E=Math.max(...d),K=d.indexOf(x)<d.indexOf(E),X=E-x;a[u]=`${(K?-X:0)-(K?x:E)}px`,s[u==="bgy"?"height":"width"]+=X}const f=i.Dimensions.cover(o,s);for(const u of c){const d=u==="bgy"?"height":"width",x=f[d]-s[d];a[u]=`max(${B(t,u)},-${x}px) + ${a[u]}`}const h=V(c,a,r);return(u,d)=>{h(u,d),u.backgroundSize=`${f.width}px ${f.height}px`,u.backgroundRepeat="no-repeat"}}function B(n,t){return p(n,`background-position-${t.slice(-1)}`,"")}function V(n,t,e){return function(r,o){for(const s of n){const c=b(e[s],o);r[`background-position-${s.slice(-1)}`]=`calc(${t[s]} + ${c}px)`}}}const z={},S={};function Pn(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&&!z[t])?(i.once(e,"error load",()=>{S[t]=j(e),i.trigger(n,i.createEvent("load",!1))}),z[t]=!0,j(e)):S[t]=j(e)}function j(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 f=e[s-o-1][1],h=(a-f)/(o+1);for(let u=o;u>0;u--)e[s-u][1]=f+h*(o-u+1);o=0}}return e}function L(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 b(n,t){const[e,r,o]=L(n,t);return e+(r-e)*o}const jn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,jn);if(o)return o[1]}return t}function p(n,t,e){const r=n.style[t],o=i.css(i.css(n,t,e),t);return n.style[t]=r,o}function q(n,t){return Object.fromEntries(n.map(e=>[e,t]))}var Q={mixins:[Sn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:t,duration:e,timing:r,dir:o}}){i.fastdom.read(()=>{if(!this.matchMedia)return;const s=this.getCss(J(n,o,t)),c=this.getCss(G(n)?.5:o>0?1:0);i.fastdom.write(()=>{i.css(this.$el,s),i.Transition.start(this.$el,c,e,r).catch(i.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){i.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:t,dir:e}}){i.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,e,t));i.fastdom.write(()=>i.css(this.$el,r))})}}]};function G(n){return i.endsWith(n,"in")}function J(n,t,e){return e/=2,G(n)^t<0?e:1-e}var En="slideshowParallax";return typeof window<"u"&&window.UIkit&&window.UIkit.component(En,Q),Q}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.17-dev.
|
|
1
|
+
/*! UIkit 3.25.17-dev.8c70e44 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
for (const el of util.toNodes(util.isFunction(targets) ? targets(this) : targets)) {
|
|
78
78
|
util.$$('[loading="lazy"]', el).slice(0, preload - 1).forEach((el2) => util.removeAttr(el2, "loading"));
|
|
79
79
|
}
|
|
80
|
-
for (const
|
|
81
|
-
observer.unobserve(
|
|
80
|
+
for (const { target } of entries.filter(({ isIntersecting }) => isIntersecting)) {
|
|
81
|
+
observer.unobserve(target);
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
...options
|
|
@@ -157,13 +157,12 @@
|
|
|
157
157
|
}
|
|
158
158
|
if (isUndefined(value)) {
|
|
159
159
|
return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
160
|
+
}
|
|
161
|
+
for (const el of toNodes(element)) {
|
|
162
|
+
if (value === null) {
|
|
163
|
+
removeAttr(el, name);
|
|
164
|
+
} else {
|
|
165
|
+
el.setAttribute(name, value);
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
}
|
|
@@ -586,25 +585,20 @@
|
|
|
586
585
|
return val;
|
|
587
586
|
}
|
|
588
587
|
function fillObject(keys2, value) {
|
|
589
|
-
return keys2.
|
|
590
|
-
data[prop] = value;
|
|
591
|
-
return data;
|
|
592
|
-
}, {});
|
|
588
|
+
return Object.fromEntries(keys2.map((prop) => [prop, value]));
|
|
593
589
|
}
|
|
594
590
|
function ease(percent, easing) {
|
|
595
591
|
return easing >= 0 ? Math.pow(percent, easing + 1) : 1 - Math.pow(1 - percent, 1 - easing);
|
|
596
592
|
}
|
|
597
593
|
|
|
598
|
-
var
|
|
594
|
+
var ScrollDriven = {
|
|
599
595
|
props: {
|
|
600
|
-
parallax: Boolean,
|
|
601
596
|
parallaxTarget: Boolean,
|
|
602
597
|
parallaxStart: String,
|
|
603
598
|
parallaxEnd: String,
|
|
604
599
|
parallaxEasing: Number
|
|
605
600
|
},
|
|
606
601
|
data: {
|
|
607
|
-
parallax: false,
|
|
608
602
|
parallaxTarget: false,
|
|
609
603
|
parallaxStart: 0,
|
|
610
604
|
parallaxEnd: 0,
|
|
@@ -618,26 +612,48 @@
|
|
|
618
612
|
scroll({ filter: ({ parallax }) => parallax })
|
|
619
613
|
],
|
|
620
614
|
computed: {
|
|
615
|
+
parallaxTargetFallback: ($props, $el) => $el,
|
|
621
616
|
parallaxTarget({ parallaxTarget }, $el) {
|
|
622
|
-
return parallaxTarget && util.query(parallaxTarget, $el) || this.
|
|
617
|
+
return parallaxTarget && util.query(parallaxTarget, $el) || this.parallaxTargetFallback;
|
|
623
618
|
}
|
|
624
619
|
},
|
|
625
620
|
update: {
|
|
626
621
|
read() {
|
|
627
622
|
if (!this.parallax) {
|
|
628
|
-
return
|
|
623
|
+
return;
|
|
629
624
|
}
|
|
630
625
|
const target = this.parallaxTarget;
|
|
631
626
|
if (!target) {
|
|
632
|
-
return
|
|
627
|
+
return;
|
|
633
628
|
}
|
|
634
629
|
const start = util.toPx(this.parallaxStart, "height", target, true);
|
|
635
630
|
const end = util.toPx(this.parallaxEnd, "height", target, true);
|
|
636
631
|
const percent = ease(util.scrolledOver(target, start, end), this.parallaxEasing);
|
|
637
|
-
return {
|
|
632
|
+
return { percent };
|
|
638
633
|
},
|
|
639
|
-
|
|
640
|
-
|
|
634
|
+
events: ["scroll", "resize"]
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
var SliderParallax = {
|
|
639
|
+
mixins: [ScrollDriven],
|
|
640
|
+
props: {
|
|
641
|
+
parallax: Boolean
|
|
642
|
+
},
|
|
643
|
+
data: {
|
|
644
|
+
parallax: false
|
|
645
|
+
},
|
|
646
|
+
computed: {
|
|
647
|
+
parallaxTargetFallback() {
|
|
648
|
+
return this.list;
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
update: {
|
|
652
|
+
write({ percent }) {
|
|
653
|
+
if (!this.parallax) {
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
const [prevIndex, slidePercent] = this.getIndexAt(percent);
|
|
641
657
|
const nextIndex = this.getValidIndex(prevIndex + Math.ceil(slidePercent));
|
|
642
658
|
const prev = this.slides[prevIndex];
|
|
643
659
|
const next = this.slides[nextIndex];
|
|
@@ -728,18 +744,11 @@
|
|
|
728
744
|
|
|
729
745
|
var Animations$1 = {
|
|
730
746
|
slide: {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
},
|
|
737
|
-
translate(percent, dir) {
|
|
738
|
-
return [
|
|
739
|
-
{ transform: translate(dir * -100 * percent) },
|
|
740
|
-
{ transform: translate(dir * 100 * (1 - percent)) }
|
|
741
|
-
];
|
|
742
|
-
}
|
|
747
|
+
percent: translated,
|
|
748
|
+
translate: (percent, dir) => [
|
|
749
|
+
{ transform: translate(dir * -100 * percent) },
|
|
750
|
+
{ transform: translate(dir * 100 * (1 - percent)) }
|
|
751
|
+
]
|
|
743
752
|
}
|
|
744
753
|
};
|
|
745
754
|
function translated(el) {
|
|
@@ -750,8 +759,8 @@
|
|
|
750
759
|
}
|
|
751
760
|
|
|
752
761
|
function Transitioner(prev, next, dir, { animation, easing }) {
|
|
753
|
-
const { percent, translate
|
|
754
|
-
const props =
|
|
762
|
+
const { percent, translate } = animation;
|
|
763
|
+
const props = translate(1, dir);
|
|
755
764
|
const { promise, resolve } = withResolvers();
|
|
756
765
|
return {
|
|
757
766
|
dir,
|
|
@@ -1038,7 +1047,7 @@
|
|
|
1038
1047
|
|
|
1039
1048
|
util.memoize((id, props) => {
|
|
1040
1049
|
const attributes = Object.keys(props);
|
|
1041
|
-
const filter = attributes
|
|
1050
|
+
const filter = [...attributes, id].flatMap((key) => [util.hyphenate(key), `data-${util.hyphenate(key)}`]);
|
|
1042
1051
|
return { attributes, filter };
|
|
1043
1052
|
});
|
|
1044
1053
|
|
|
@@ -1074,7 +1083,7 @@
|
|
|
1074
1083
|
computed: {
|
|
1075
1084
|
nav: ({ selNav }, $el) => util.$$(selNav, $el),
|
|
1076
1085
|
navChildren() {
|
|
1077
|
-
return this.nav.
|
|
1086
|
+
return this.nav.flatMap((nav) => util.children(nav));
|
|
1078
1087
|
},
|
|
1079
1088
|
selNavItem: ({ attrItem }) => `[${attrItem}],[data-${attrItem}]`,
|
|
1080
1089
|
navItems(_, $el) {
|
|
@@ -1443,75 +1452,35 @@
|
|
|
1443
1452
|
var Animations = {
|
|
1444
1453
|
...Animations$1,
|
|
1445
1454
|
fade: {
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
},
|
|
1449
|
-
percent(current) {
|
|
1450
|
-
return 1 - util.css(current, "opacity");
|
|
1451
|
-
},
|
|
1452
|
-
translate(percent) {
|
|
1453
|
-
return [{ opacity: 1 - percent, zIndex: 0 }, { zIndex: -1 }];
|
|
1454
|
-
}
|
|
1455
|
+
percent: (current) => 1 - util.css(current, "opacity"),
|
|
1456
|
+
translate: (percent) => [{ opacity: 1 - percent, zIndex: 0 }, { zIndex: -1 }]
|
|
1455
1457
|
},
|
|
1456
1458
|
scale: {
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
},
|
|
1463
|
-
translate(percent) {
|
|
1464
|
-
return [
|
|
1465
|
-
{ opacity: 1 - percent, transform: scale3d(1 + 0.5 * percent), zIndex: 0 },
|
|
1466
|
-
{ zIndex: -1 }
|
|
1467
|
-
];
|
|
1468
|
-
}
|
|
1459
|
+
percent: (current) => 1 - util.css(current, "opacity"),
|
|
1460
|
+
translate: (percent) => [
|
|
1461
|
+
{ opacity: 1 - percent, transform: scale3d(1 + 0.5 * percent), zIndex: 0 },
|
|
1462
|
+
{ zIndex: -1 }
|
|
1463
|
+
]
|
|
1469
1464
|
},
|
|
1470
1465
|
pull: {
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
},
|
|
1480
|
-
percent(current, next, dir) {
|
|
1481
|
-
return dir < 0 ? 1 - translated(next) : translated(current);
|
|
1482
|
-
},
|
|
1483
|
-
translate(percent, dir) {
|
|
1484
|
-
return dir < 0 ? [
|
|
1485
|
-
{ transform: translate(30 * percent), zIndex: -1 },
|
|
1486
|
-
{ transform: translate(-100 * (1 - percent)), zIndex: 0 }
|
|
1487
|
-
] : [
|
|
1488
|
-
{ transform: translate(-percent * 100), zIndex: 0 },
|
|
1489
|
-
{ transform: translate(30 * (1 - percent)), zIndex: -1 }
|
|
1490
|
-
];
|
|
1491
|
-
}
|
|
1466
|
+
percent: (current, next, dir) => dir < 0 ? 1 - translated(next) : translated(current),
|
|
1467
|
+
translate: (percent, dir) => dir < 0 ? [
|
|
1468
|
+
{ transform: translate(30 * percent), zIndex: -1 },
|
|
1469
|
+
{ transform: translate(-100 * (1 - percent)), zIndex: 0 }
|
|
1470
|
+
] : [
|
|
1471
|
+
{ transform: translate(-percent * 100), zIndex: 0 },
|
|
1472
|
+
{ transform: translate(30 * (1 - percent)), zIndex: -1 }
|
|
1473
|
+
]
|
|
1492
1474
|
},
|
|
1493
1475
|
push: {
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
},
|
|
1503
|
-
percent(current, next, dir) {
|
|
1504
|
-
return dir > 0 ? 1 - translated(next) : translated(current);
|
|
1505
|
-
},
|
|
1506
|
-
translate(percent, dir) {
|
|
1507
|
-
return dir < 0 ? [
|
|
1508
|
-
{ transform: translate(percent * 100), zIndex: 0 },
|
|
1509
|
-
{ transform: translate(-30 * (1 - percent)), zIndex: -1 }
|
|
1510
|
-
] : [
|
|
1511
|
-
{ transform: translate(-30 * percent), zIndex: -1 },
|
|
1512
|
-
{ transform: translate(100 * (1 - percent)), zIndex: 0 }
|
|
1513
|
-
];
|
|
1514
|
-
}
|
|
1476
|
+
percent: (current, next, dir) => dir > 0 ? 1 - translated(next) : translated(current),
|
|
1477
|
+
translate: (percent, dir) => dir < 0 ? [
|
|
1478
|
+
{ transform: translate(percent * 100), zIndex: 0 },
|
|
1479
|
+
{ transform: translate(-30 * (1 - percent)), zIndex: -1 }
|
|
1480
|
+
] : [
|
|
1481
|
+
{ transform: translate(-30 * percent), zIndex: -1 },
|
|
1482
|
+
{ transform: translate(100 * (1 - percent)), zIndex: 0 }
|
|
1483
|
+
]
|
|
1515
1484
|
}
|
|
1516
1485
|
};
|
|
1517
1486
|
function scale3d(value) {
|