/*! * Splide.js * Version : 4.1.3 * License : MIT * Copyright: 2022 Naotoshi Fujita */ var n,t;n=this,t=function(){"use strict";const v="(prefers-reduced-motion: reduce)";const R=4,F=5;var e={CREATED:1,MOUNTED:2,IDLE:3,MOVING:R,SCROLLING:F,DRAGGING:6,DESTROYED:7};function P(n){n.length=0}function T(n,...t){return n.bind(null,...t)}const m=setTimeout,un=()=>{};function h(n){return requestAnimationFrame(n)}function t(n,t){return typeof t===n}function cn(n){return!i(n)&&t("object",n)}const o=Array.isArray,y=T(t,"function"),M=T(t,"string"),sn=(T(t,"boolean"),T(t,"undefined"));function i(n){return null===n}function b(n){try{return n instanceof(n.ownerDocument.defaultView||window).HTMLElement}catch(n){return!1}}function w(n){return o(n)?n:[n]}function g(n,t){w(n).forEach(t)}function x(n,t){return n.includes(t)}function S(n,t){return n.push(...w(t)),n}const r=Array.prototype;function s(n,t,e){return r.slice.call(n,t,e)}function L(t,n,e){t&&g(M(n)?n.split(" "):n,n=>{n&&t.classList.toggle(n,e)})}function _(n,t){L(n,t,!0)}function $(n,t){g(t,n.appendChild.bind(n))}function z(n,e){g(n,n=>{const t=(e||n).parentNode;t&&t.insertBefore(n,e)})}function an(n,t){return b(n)&&n.matches(t)}function k(n,t){const e=n?s(n.children):[];return t?e.filter(n=>an(n,t)):e}function fn(n,t){return t?k(n,t)[0]:n.firstElementChild}const ln=Object.assign,E=Object.keys;function u(t,e,n){t&&(n?E(t).reverse():E(t)).forEach(n=>{"__proto__"!==n&&e(t[n],n)})}function p(e,...n){return n.forEach(n=>{u(n,(n,t)=>{o(n)?n=n.slice():cn(n)&&(n=p({},cn(e[t])?e[t]:{},n)),e[t]=n})}),e}function dn(t,n){g(n||E(t),n=>{delete t[n]})}function O(n,e){g(n,t=>{g(e,n=>{t&&t.removeAttribute(n)})})}function C(e,t,o){cn(t)?u(t,(n,t)=>{C(e,t,n)}):g(e,n=>{i(o)||""===o?O(n,t):n.setAttribute(t,String(o))})}function D(n,t,e){n=document.createElement(n);return t&&(M(t)?_:C)(n,t),e&&$(e,n),n}function I(n,t,e){if(sn(e))return getComputedStyle(n)[t];i(e)||(n.style[t]=""+e)}function hn(n,t){I(n,"display",t)}function pn(n){b(n)&&n.focus({preventScroll:!0})}function N(n,t){return n.getAttribute(t)}function vn(n,t){return!!n&&n.classList.contains(t)}function j(n){return n.getBoundingClientRect()}function G(n){g(n,n=>{n&&n.parentNode&&n.parentNode.removeChild(n)})}function gn(n){return fn((new DOMParser).parseFromString(n,"text/html").body)}function X(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function mn(n,t){return n&&n.querySelector(t)}function yn(n,t){return t&&n?s(n.querySelectorAll(t)):[]}function W(n,t){L(n,t,!1)}function bn(n){return n.timeStamp}function A(n){return M(n)?n:n?n+"px":""}const{min:B,max:wn,floor:xn,ceil:Sn,abs:Y,sign:kn}=Math;function En(n,t,e){return Y(n-t){t=t.replace("%s",""+n)}),t}function An(n,t=2){return(""+n).padStart(t,"0")}const Ln={};function c(n,t){g(n,n=>{M(n)&&n.split(" ").forEach(t)})}function a(t,e){const o=[];for(let n=t.length-1;0<=n;n--)e(t[n])&&o.push(...t.splice(n,1));return o}function Pn(n){const i=n||[],r=n?{}:void 0;return{bind:function(t,n,e,o){c(n,n=>{t.addEventListener(n,e,o),i.push([t.removeEventListener.bind(t,n,e,o),r])})},create:T(Pn,i),destroy:function(){r?a(i,n=>n[1]===r).forEach(n=>{n[0]()}):(i.forEach(n=>{n[0]()}),P(i))}}}function f(n){const o=n||[],i=n?{}:void 0;return{on:function(n,t){c(n,n=>{o.push([n,t,i])})},off:function(n,e){c(n,t=>{a(o,n=>n[0]===t&&(!e||n[1]===e)&&n[2]===i)})},emit:function(t,...e){o.slice().forEach(n=>{n[0]===t&&n[1](...e)})},create:T(f,o),destroy:function(){i?a(o,n=>n[2]===i):P(o)}}}function _n(t,n,e,o){const i=Date["now"];let r,u=0,c,s=!0,a=0;function f(){if(!s){if(u=t?B((i()-r)/t,1):1,e&&e(u),1<=u&&(n(),r=i(),o&&++a>=o))return l();c=h(f)}}function l(){s=!0}function d(){c&&cancelAnimationFrame(c),u=0,c=0,s=!0}return{start:function(n){n||d(),r=i()-(n?u*t:0),s=!1,c=h(f)},rewind:function(){r=i(),u=0,e&&e(u)},pause:l,cancel:d,set:function(n){t=n},isPaused:function(){return s}}}function l(n){let t=n;return{set:function(n){t=n},is:function(n){return x(w(n),t)}}}const H="mounted",J="move",On="moved",Cn="click",Dn="active",In="inactive",Tn="visible",Mn="hidden",K="refresh",U="updated",Nn="resize",jn="resized",Rn="scroll",V="scrolled",Fn="overflow",Gn="navigation:mounted",Xn="autoplay:play",Wn="autoplay:pause",Bn="_sk",Yn="_sh",qn="_ei",Hn="!overflow";const Jn="ArrowLeft",Kn="ArrowRight";const Un="ttb",d={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp",Kn],ArrowRight:["ArrowDown",Jn]};const Q="role",Z="tabindex";const Vn="aria-controls",Qn="aria-current",Zn="aria-selected",nn="aria-label",nt="aria-labelledby",tt="aria-hidden",et="aria-orientation",ot="aria-roledescription",it="aria-live",rt="aria-busy",ut="aria-atomic",ct=[Q,Z,"disabled",Vn,Qn,nn,nt,tt,et,ot],st="splide",at="data-"+st;var n=st+"__";const ft=st,lt=n+"track",dt=n+"list",ht=n+"slide",pt=ht+"--clone",vt=ht+"__container",gt=n+"arrows",mt=n+"arrow",yt=mt+"--prev",bt=mt+"--next",wt=n+"pagination",xt=wt+"__page",St=n+"progress"+"__bar",kt=n+"toggle",Et=n+"sr",tn="is-active",$t="is-prev",zt="is-next",At="is-visible",Lt="is-loading",Pt="is-focus-in",_t="is-overflow",Ot=[tn,At,$t,zt,Lt,Pt,_t];n={slide:ht,clone:pt,arrows:gt,arrow:mt,prev:yt,next:bt,pagination:wt,page:xt,spinner:n+"spinner"};function Ct(n,t){if(!n)throw new Error(`[${st}] `+(t||""))}const Dt="touchstart mousedown",It="touchmove mousemove",Tt="touchend touchcancel mouseup click";const en="slide",on="loop",Mt="fade",Nt=(i,o,t,r)=>{const n=i.event.create(),{on:e,emit:u,bind:c}=n,{Components:s,root:a,options:f}=i,{isNavigation:l,updateOnMove:d,i18n:h,pagination:p,slideFocus:v}=f,g=s["Elements"],m=s.Direction["resolve"],y=N(r,"style"),b=N(r,nn),w=-1{n=n.splide.Components.Slides.getAt(o);return n?n.slide.id:""}).join(" ");C(r,nn,zn(h.slideX,(w?t:o)+1)),C(r,Vn,n),C(r,Q,v?"button":""),v&&O(r,ot)}function E(){S||$()}function $(){var n,t,e;S||(n=i["index"],(e=z())!==vn(r,tn)&&(L(r,tn,e),C(r,Qn,l&&e||""),u(e?Dn:In,A)),e=function(){if(i.is(Mt))return z();var n=j(g.track),t=j(r),e=m("left",!0),o=m("right",!0);return xn(n[e])<=Sn(t[e])&&xn(t[o])<=Sn(n[o])}(),t=!e&&(!z()||w),i.state.is([R,F])||C(r,tt,t||""),C(yn(r,f.focusableNodes||""),Z,t?-1:""),v&&C(r,Z,t?-1:0),e!==vn(r,At)&&(L(r,At,e),u(e?Tn:Mn,A)),e||document.activeElement!==r||(t=s.Slides.getAt(i.index))&&pn(t.slide),L(r,$t,o===n-1),L(r,zt,o===n+1))}function z(){var n=i["index"];return n===o||f.cloneStatus&&n===t}const A={index:o,slideIndex:t,slide:r,container:x,isClone:w,mount:function(){w||(r.id=a.id+"-slide"+An(o+1),C(r,Q,p?"tabpanel":"group"),C(r,ot,h.slide),C(r,nn,b||zn(h.slideLabel,[o+1,i.length]))),c(r,"click",T(u,Cn,A)),c(r,"keydown",T(u,Bn,A)),e([On,Yn,V],$),e(Gn,k),d&&e(J,E)},destroy:function(){S=!0,n.destroy(),W(r,Ot),O(r,ct),C(r,"style",y),C(r,nn,b||"")},update:$,pos:function(){var n=s.Slides.get()[0],t=m("left");return n?Y(j(r)[t]-j(n.slide)[t]):0},size:function(){return j(r)[m("width")]},style:function(n,t,e){I(e&&x||r,n,t)},isWithin:function(n,t){let e=Y(n-o);return(e=w||!f.rewind&&!i.is(on)?e:B(e,i.length-e))<=t}};return A};const jt=at+"-interval";const rn={passive:!1,capture:!0};const Rt=at+"-lazy",Ft=Rt+"-srcset",Gt=`[${Rt}], [${Ft}]`;const Xt=[" ","Enter"];const Wt={Breakpoints:(o,n,i,t)=>{const r=o["state"],u=i.breakpoints||{},c=i.reducedMotion||{},s=Pn(),a=[];function f(n){n&&s.destroy()}function l(n,t){const e=matchMedia(t);s.bind(e,"change",d),a.push([n,()=>e.matches])}function d(){var n=r.is(7),t=i.direction,e=a.reduce((n,t)=>p(n,t[1]()?t[0]:{}),{});dn(i),h(e,!1,!r.is(1)),i.destroy?o.destroy("completely"===i.destroy):n?(f(!0),o.mount()):t!==i.direction&&o.refresh()}function h(n,t,e){p(i,n),t&&p(Object.getPrototypeOf(i),n),e&&o.emit(U,i)}return{setup:function(){const e="min"===i.mediaQuery;E(u).sort((n,t)=>e?+n-+t:+t-+n).forEach(n=>{n!==Hn&&l(u[n],`(${e?"min":"max"}-width:${n}px)`)}),u[Hn]&&(a.push([u[Hn],()=>n.Layout&&!n.Layout.isOverflow()]),t.on(Fn,d)),l(c,v),d()},destroy:f,reduce:function(n){matchMedia(v).matches&&(n?p(i,c):dn(i,E(c)))},set:h}},Direction:(n,t,i)=>{return{resolve:function(n,t,e){const o="rtl"!==(e=e||i.direction)||t?e===Un?0:-1:1;return d[n]&&d[n][o]||n.replace(/width|left|right/i,(n,t)=>{const e=d[n.toLowerCase()][o]||n;return 0{const{on:i,bind:r}=o,u=n["root"],c=e["i18n"],s={},a=[];let f=[],l=[],d,h,p;function v(){d=y(lt),h=fn(d,"."+dt),Ct(d&&h,"A track/list element is missing."),S(a,k(h,`.${ht}:not(.${pt})`)),ln(s,{root:u,track:d,list:h,slides:a,arrows:y(gt),pagination:y(wt),prev:y(yt),next:y(bt),bar:y(St),toggle:y(kt)});var n=u.id||function(n){return""+n+An(Ln[n]=(Ln[n]||0)+1)}(st),t=e.role;u.id=n,d.id=d.id||n+"-track",h.id=h.id||n+"-list",!N(u,Q)&&"SECTION"!==u.tagName&&t&&C(u,Q,t),C(u,ot,c.carousel),C(h,Q,"presentation"),m()}function g(n){var t=ct.concat("style");P(a),W(u,f),W(d,l),O([d,h],t),O(u,n?t:["style",ot])}function m(){W(u,f),W(d,l),f=b(ft),l=b(lt),_(u,f),_(d,l),C(u,nn,e.label),C(u,nt,e.labelledby)}function y(n){var t,e,n=mn(u,"."+n);return n&&(t=n,e="."+ft,t.closest(e)===u)?n:void 0}function b(n){return[n+"--"+e.type,n+"--"+e.direction,e.drag&&n+"--draggable",e.isNavigation&&n+"--nav",n===ft&&tn]}return ln(s,{setup:v,mount:function(){i(K,g),i(K,v),i(U,m),r(document,Dt+" keydown",n=>{p="keydown"===n.type},{capture:!0}),r(u,"focusin",()=>{L(u,Pt,!!p)})},destroy:g})},Slides:(i,r,u,n)=>{const{on:t,emit:c,bind:s}=n,{slides:a,list:f}=r.Elements,l=[];function e(){a.forEach((n,t)=>{d(n,t,-1)})}function o(){p(n=>{n.destroy()}),P(l)}function d(n,t,e){const o=Nt(i,t,e,n);o.mount(),l.push(o),l.sort((n,t)=>n.index-t.index)}function h(n){return n?v(n=>!n.isClone):l}function p(n,t){h(t).forEach(n)}function v(t){return l.filter(y(t)?t:n=>M(t)?an(n.slide,t):x(w(t),n.index))}return{mount:function(){e(),t(K,o),t(K,e)},destroy:o,update:function(){p(n=>{n.update()})},register:d,get:h,getIn:function(n){const t=r["Controller"],e=t.toIndex(n),o=t.hasFocus()?1:u.perPage;return v(n=>$n(n.index,e,e+o-1))},getAt:function(n){return v(n)[0]},add:function(n,t){g(n,n=>{if(b(n=M(n)?gn(n):n)){var e=a[t];e?z(n,e):$(f,n),_(n,u.classes.slide);{var e=n,o=T(c,Nn);const i=yn(e,"img");let t=i["length"];t?i.forEach(n=>{s(n,"load error",()=>{--t||o()})}):o()}}}),c(K)},remove:function(n){G(v(n).map(n=>n.slide)),c(K)},forEach:p,filter:v,style:function(t,e,o){p(n=>{n.style(t,e,o)})},getLength:function(n){return(n?a:l).length},isEnough:function(){return l.length>u.perPage}}},Layout:(t,n,e,o)=>{const{on:i,bind:r,emit:u}=o;o=n.Slides;const c=n.Direction["resolve"],{root:s,track:a,list:f}=n.Elements,{getAt:l,style:d}=o;let h,p,v;function g(){h=e.direction===Un,I(s,"maxWidth",A(e.width)),I(a,c("paddingLeft"),y(!1)),I(a,c("paddingRight"),y(!0)),m(!0)}function m(n){var t=j(s);!n&&p.width===t.width&&p.height===t.height||(I(a,"height",function(){let n="";h&&(Ct(n=b(),"height or heightRatio is missing."),n=`calc(${n} - ${y(!1)} - ${y(!0)})`);return n}()),d(c("marginRight"),A(e.gap)),d("width",e.autoWidth?null:A(e.fixedWidth)||(h?"":w())),d("height",A(e.fixedHeight)||(h?e.autoHeight?null:w():b()),!0),p=t,u(jn),v!==(v=z())&&(L(s,_t,v),u(Fn,v)))}function y(n){var t=e["padding"],n=c(n?"right":"left");return t&&A(t[n]||(cn(t)?0:t))||"0px"}function b(){return A(e.height||j(f).width*e.heightRatio)}function w(){var n=A(e.gap);return`calc((100%${n&&" + "+n})/${e.perPage||1}${n&&" - "+n})`}function x(){return j(f)[c("width")]}function S(n=0,t){const e=l(n);return(e?e.size():0)+(t?0:$())}function k(n,t){const e=l(n);return e?e.pos()+e.size()+(t?0:$()):0}function E(n){return k(t.length-1)-k(0)+S(0,n)}function $(){const n=l(0),t=l(1);return n&&t?t.pos()-n.pos()-n.size():0}function z(){return t.is(Mt)||E(!0)>x()}return{mount:function(){g(),r(window,"resize load",function(n,t){const e=_n(t||0,n,void 0,1);return()=>{e.isPaused()&&e.start()}}(T(u,Nn))),i([U,K],g),i(Nn,m)},resize:m,listSize:x,slideSize:S,sliderSize:E,totalSize:k,getPadding:function(n){return parseFloat(I(a,c("padding"+(n?"Right":"Left"))))||0},isOverflow:z}},Clones:(c,e,s,t)=>{const n=t["on"],{Elements:a,Slides:f,Layout:{resize:o}}=e,i=e.Direction["resolve"],l=[];let d;function r(){if(n(K,h),n([U,Nn],p),d=v()){{var i=d;const r=f.get().slice(),u=r["length"];if(u){for(;r.length{var e=t{const{on:t,emit:c}=n,s=o.state["set"],a=i["Slides"],{slideSize:u,getPadding:f,listSize:l,sliderSize:d,totalSize:h}=i.Layout,{resolve:p,orient:v}=i.Direction,{list:g,track:m}=i.Elements;let y;function e(){i.Controller.isBusy()||(i.Scroll.cancel(),b(o.index),i.Slides.update())}function b(n){w(E(n,!0))}function w(n,t){o.is(Mt)||(t=t?n:function(n){{var t,e;o.is(on)&&(t=k(n),e=t>i.Controller.getEnd(),(t<0||e)&&(n=x(n,e)))}return n}(n),I(g,"transform",`translate${p("X")}(${t}px)`),n!==t&&c(Yn))}function x(n,t){var e=n-z(t),o=d();return n-=v(o*(Sn(Y(e)/o)||1))*(t?1:-1)}function S(){w($(),!0),y.cancel()}function k(t){var e=a.get();let o=0,i=1/0;for(let n=0;n{s(3),c(On,t,e,n),o&&o()})},jump:b,translate:w,shift:x,cancel:S,toIndex:k,toPosition:E,getPosition:$,getLimit:z,exceededLimit:function(n,t=$()){var e=!0!==n&&v(t)v(z(!0));return e||n},reposition:e}},Controller:(i,r,u,n)=>{const{on:t,emit:e}=n,c=r["Move"],{getPosition:s,getLimit:o,toPosition:a}=c,{isEnough:f,getLength:l}=r.Slides,d=u["omitEnd"],h=i.is(on),p=i.is(en),v=T(z,!1),g=T(z,!0);let m=u.start||0,y,b=m,w,x,S;function k(){w=l(!0),x=u.perMove,S=u.perPage,y=P();var n=d?y:w-1,n=q(m,0,n);(b=n)!==m&&(m=n,c.reposition())}function E(){y!==P()&&e(qn)}function $(n,t,e){var o;I()||-1<(o=L(n=function(n){let t=m;{var e,o;M(n)?([,e,o]=n.match(/([+\-<>])(\d+)?/)||[],"+"===e||"-"===e?t=A(m+ +(""+e+(+o||1)),m):">"===e?t=o?_(+o):v(!0):"<"===e&&(t=g(!0))):t=h?n:q(n,0,y)}return t}(n)))&&(t||o!==m)&&(C(o),c.move(n,o,b,e))}function z(n,t){var e=x||(D()?1:S),e=A(m+e*(n?-1:1),m,!(x||D()));return-1===e&&p&&!En(s(),o(!n),1)?n?0:y:t?e:L(e)}function A(n,t,e){var o;return f()||D()?((o=function(n){if(p&&"move"===u.trimSpace&&n!==m)for(var t=s();t===a(n,!0)&&$n(n,0,i.length-1,!u.rewind);)ny?n=x||!$n(0,n,t,!0)&&!$n(y,t,n,!0)?h?e?n<0?-(w%S||S):w:n:u.rewind?n<0?y:0:-1:_(O(n)):e&&n!==t&&(n=_(O(t)+(n=y?w-1:n)/S)}function C(n){n!==m&&(b=m,m=n)}function D(){return!sn(u.focus)||u.isNavigation}function I(){return i.state.is([R,F])&&!!u.waitForTransition}return{mount:function(){k(),t([U,K,qn],k),t(jn,E)},go:$,jump:function(n){const t=r.Breakpoints["set"];var e=u["speed"];t({speed:0}),$(n),t({speed:e})},scroll:function(n,t,e,o){r.Scroll.scroll(n,t,e,()=>{var n=L(c.toIndex(s()));C(d?B(n,y):n),o&&o()})},getNext:v,getPrev:g,getAdjacent:z,getEnd:P,setIndex:C,getIndex:function(n){return n?b:m},toIndex:_,toPage:O,toDest:function(n){return n=c.toIndex(n),p?q(n,0,y):n},hasFocus:D,isBusy:I}},Arrows:(i,n,t,e)=>{const{on:o,bind:r,emit:u}=e,{classes:c,i18n:s}=t,{Elements:a,Controller:f}=n,{arrows:l,track:d}=a;let h=l,p=a.prev,v=a.next,g,m;const y={};function b(){var n=t.arrows;!n||p&&v||(h=l||D("div",c.arrows),p=k(!0),v=k(!1),g=!0,$(h,[p,v]),l||z(h,d)),p&&v&&(ln(y,{prev:p,next:v}),hn(h,n?"":"none"),_(h,m=gt+"--"+t.direction),n&&(o([H,On,K,V,qn],E),r(v,"click",T(S,">")),r(p,"click",T(S,"<")),E(),C([p,v],Vn,d.id),u("arrows:mounted",p,v))),o(U,w)}function w(){x(),b()}function x(){e.destroy(),W(h,m),g?(G(l?[p,v]:h),p=v=null):O([p,v],ct)}function S(n){f.go(n,!0)}function k(n){return gn(`