| 12345678 |
- function _t(n,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}
- /*!
- * Splide.js
- * Version : 3.0.0
- * License : MIT
- * Copyright: 2021 Naotoshi Fujita
- */
- var n,t;n=this,t=function(){"use strict";var m="splide",f="data-"+m,n={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function w(n){n.length=0}function b(n){return!u(n)&&"object"==typeof n}function r(n){return Array.isArray(n)}function A(n){return"string"==typeof n}function u(n){return null===n}function y(n){return n instanceof HTMLElement}function x(n){return n instanceof HTMLButtonElement}function _(n){return r(n)?n:[n]}function k(n,t){_(n).forEach(t)}function M(n,t){return-1<n.indexOf(t)}function E(n,t){return n.push.apply(n,_(t)),n}var o=Array.prototype;function i(n,t,i){return o.slice.call(n,t,i)}function a(n,t){return i(n).filter(t)[0]}function L(t,n,i){t&&k(n,function(n){n&&t.classList[i?"add":"remove"](n)})}function S(n,t){L(n,t,!0)}function z(n,t){k(t,n.appendChild.bind(n))}function R(n,i){k(n,function(n){var t=i.parentNode;t&&t.insertBefore(n,i)})}function P(n,t){return(n.msMatchesSelector||n.matches).call(n,t)}function O(n,t){return n?i(n.children).filter(function(n){return P(n,t)}):[]}function D(n,t){return t?O(n,t)[0]:n.firstElementChild}function e(n,t){if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var u=i[r];if("__proto__"!==u&&!1===t(n[u],u))break}return n}function T(r){for(var n=arguments.length,t=new Array(1<n?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return t.forEach(function(i){e(i,function(n,t){r[t]=i[t]})}),r}function s(i,n){return e(n,function(n,t){r(n)?i[t]=n.slice():b(n)?i[t]=s(b(i[t])?i[t]:{},n):i[t]=n}),i}function W(t,n){t&&k(n,function(n){t.removeAttribute(n)})}function F(i,n,t){b(n)?e(n,function(n,t){F(i,t,n)}):u(t)?W(i,n):i.setAttribute(n,String(t))}function I(n,t,i){n=document.createElement(n);return t&&(A(t)||r(t)?S:F)(n,t),i&&z(i,n),n}function j(n,t){if(A(t))return r(n)?null:getComputedStyle(n)[t];e(t,function(t,i){u(t)||k(n,function(n){n&&(n.style[i]=""+t)})})}function B(n,t){j(n,{display:t})}function g(n,t){return n.getAttribute(t)}function C(n,t){return n&&n.classList.contains(t)}function X(n){return D((new DOMParser).parseFromString(n,"text/html").body)}function G(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function H(n,t){return n&&n.querySelector(t)}function N(n,t){return i(n.querySelectorAll(t))}function U(n){return n.getBoundingClientRect()}function Y(n){k(n,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function q(n,t){L(n,t,!1)}function J(n){return A(n)?n:n?n+"px":""}function K(n,t){if(void 0===t&&(t=""),!n)throw new Error("["+m+"] "+t)}function c(n){setTimeout(n)}function l(){}function v(n){return requestAnimationFrame(n)}function V(n,t,i,r){var u=Math.min(t,i),i=Math.max(t,i);return r?u<n&&n<i:u<=n&&n<=i}var d=Math.max,h=Math.min;function Q(n,t,i){var r=h(t,i),i=d(t,i);return h(d(r,n),i)}function Z(n){return(0<n)-(n<0)}var $=Math.min,nn=Math.max,tn=Math.floor,rn=Math.ceil,un=Math.abs;Math.round;function on(t,n){return k(n,function(n){t=t.replace("%s",""+n)}),t}function en(n){return n<10?"0"+n:""+n}var cn={};var p={marginRight:["marginBottom","marginLeft"],width:["height"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],pageX:["pageY"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};var fn=m,an=m+"__slider",sn=m+"__track",ln=m+"__list",dn=m+"__slide",vn=dn+"--clone",hn=dn+"__container",gn=m+"__arrows",t=m+"__arrow",pn=t+"--prev",mn=t+"--next",yn=m+"__pagination",wn=m+"__progress",_n=wn+"__bar",bn=m+"__autoplay",xn=m+"__play",kn=m+"__pause",Mn="is-active",An="is-prev",En="is-next",Ln="is-visible",Sn="is-loading",zn=[Mn,Ln,An,En,Sn],Rn="mounted",Pn="move",On="moved",Dn="click",Tn="active",Wn="inactive",Fn="visible",In="hidden",jn="slide:keydown",Bn="refresh",Cn="undated",Xn="resize",Gn="resized",Hn="scrolled",Nn="destroy",Un="lazyload:loaded",Yn=10;function qn(){var o={};function r(n,r){t(n,function(n,t){var i=o[n];o[n]=i&&i.filter(function(n){return n.n?n.n!==r:n.t!==t})})}function t(n,t){_(n).join(" ").split(" ").forEach(function(n){n=n.split(".");t(n[0],n[1])})}return{on:function(n,i,r,u){void 0===u&&(u=Yn),t(n,function(n,t){o[n]=o[n]||[],E(o[n],{i:n,r:i,t:t,u:u,n:r}).sort(function(n,t){return n.u-t.u})})},off:r,offBy:function(i){e(o,function(n,t){r(t,i)})},emit:function(n){var t=arguments;(o[n]||[]).forEach(function(n){n.r.apply(n,i(t,1))})},destroy:function(){o={}}}}function Jn(n){var r=n.event,u={},o=[];function t(n,t){e(n,t,function(t,i){o=o.filter(function(n){return n[0]!==t||n[1]!==i||(t.removeEventListener(i,n[2],n[3]),!1)})})}function e(n,t,i){k(n,function(n){n&&t.split(" ").forEach(i.bind(null,n))})}function i(){o=o.filter(function(n){return t(n[0],n[1])}),r.offBy(u)}return r.on(Nn,i,u),{on:function(n,t,i){r.on(n,t,u,i)},off:function(n){r.off(n,u)},emit:r.emit,bind:function(n,t,i,r){e(n,t,function(n,t){o.push([n,t,i,r]),n.addEventListener(t,i,r)})},unbind:t,destroy:i}}function Kn(t,i,r,u){var o,n,e=Date.now,c=0,f=!0,a=0;function s(){var n;f||(n=e()-o,t<=n?(c=1,o=e()):c=n/t,r&&r(c),1===c&&(i(),u&&++a>=u)?l():v(s))}function l(){f=!0}function d(){cancelAnimationFrame(n),f=!(n=c=0)}return{start:function(n){n||d(),o=e()-(n?c*t:0),f=!1,v(s)},rewind:function(){o=e(),c=0,r&&r(c)},pause:l,cancel:d,isPaused:function(){return f}}}function Vn(n){var t=n;return{set:function(n){t=n},is:function(n){return M(_(n),t)}}}function Qn(i,r){var u;return function(){var n=arguments,t=this;u||(u=Kn(r||0,function(){i.apply(t,n),u=null},null,1)).start()}}var Zn="role",$n="aria-controls",nt="aria-current",tt="aria-label",it="aria-hidden",rt="tabindex",ut=[Zn,$n,nt,tt,it,rt,"disabled"],ot="slide",et="loop",ct="fade";function ft(u,r,i,o){var e,n=Jn(u),c=n.on,f=n.emit,a=n.bind,t=n.destroy,s=u.Components,l=u.root,d=u.options,v=d.isNavigation,h=d.updateOnMove,g=s.Direction.resolve,p=-1<i,m=D(o,"."+hn);function y(){var n;e||(n=u.index,w.call(this,_()),function(n){F(o,it,!n||null),F(o,rt,n&&d.slideFocus?0:null),n!==C(o,Ln)&&(L(o,Ln,n),f(n?Fn:In,this))}.call(this,function(){if(u.is(ct))return _();var n=U(s.Elements.track),t=U(o),i=g("left"),r=g("right");return tn(n[i])<=rn(t[i])&&tn(t[r])<=rn(n[r])}()),L(o,An,r===n-1),L(o,En,r===n+1))}function w(n){n!==C(o,Mn)&&(L(o,Mn,n),v&&F(o,nt,n||null),f(n?Tn:Wn,this))}function _(){return u.index===r}return{index:r,slideIndex:i,slide:o,container:m,isClone:p,mount:function(){var t=this;!function(){p||(o.id=l.id+"-slide"+en(r+1));{var n,t;v&&(x(o)||F(o,Zn,"button"),t=p?i:r,n=on(d.i18n.slideX,t+1),t=u.splides.map(function(n){return n.root.id}).join(" "),F(o,tt,n),F(o,$n,t))}}(),a(o,"click keydown",function(n){f("click"===n.type?Dn:jn,t,n)}),c([Gn,On,Cn,Bn,Hn],y.bind(this)),h&&c(Pn,function(n,t,i){e||(i===r&&w.call(this,!0),y.call(this))}.bind(this)),y.call(this)},destroy:function(){e=!0,t(),q(o,zn),W(o,ut)},rule:function(n,t,i){i="#"+o.id+(m&&i?" > ."+hn:""),s.Style.rule(i,n,t)},isWithin:function(n,t){return n=un(n-r),(n=!u.is(ot)&&!p?$(n,u.length-n):n)<=t}}}var at="touchmove mousemove",st="touchend touchcancel mouseup mouseleave";var lt=["Left","Right","Up","Down"];var dt=f+"-lazy",vt=dt+"-srcset",ht="["+dt+"], ["+vt+"]";var gt=[" ","Enter","Spacebar"];var pt=Object.freeze({__proto__:null,Options:function(t,n,i){var r,u,o;function e(n){n&&removeEventListener("resize",c)}function c(){var n=a(u,function(n){return n[1].matches})||[];n[0]!==o&&function(n){n=i.breakpoints[n]||r;n.destroy?(t.options=r,t.destroy("completely"===n.destroy)):(t.state.is(5)&&(e(!0),t.mount()),t.options=n)}(o=n[0])}return{setup:function(){try{s(i,JSON.parse(g(t.root,f)))}catch(n){K(!1,n.message)}r=s({},i)},mount:function(){var n=i.breakpoints;n&&(u=Object.keys(n).sort(function(n,t){return+n-+t}).map(function(n){return[n,matchMedia("("+(i.mediaQuery||"max")+"-width:"+n+"px)")]}),addEventListener("resize",c),c())},destroy:e}},Direction:function(n,t,r){return{resolve:function(n,t){var i=r.direction;return p[n]["rtl"!==i||t?"ttb"===i?0:-1:1]||n},orient:function(n){return n*("rtl"===r.direction?1:-1)}}},Elements:function(n,t,i){var r,u,o,e,c=Jn(n).on,f=n.root,a={},s=[];function l(){var n;!function(){u=D(f,"."+an),o=H(f,"."+sn),e=D(o,"."+ln),K(o&&e,"Missing a track/list element."),E(s,O(e,"."+dn+":not(."+vn+")"));var n=g("."+bn),t=g("."+gn);T(a,{root:f,slider:u,track:o,list:e,slides:s,arrows:t,prev:H(t,"."+pn),next:H(t,"."+mn),bar:H(g("."+wn),"."+_n),play:H(n,"."+xn),pause:H(n,"."+kn)})}(),n=f.id||function(n){return""+n+en(cn[n]=(cn[n]||0)+1)}(m),f.id=n,o.id=o.id||n+"-track",e.id=e.id||n+"-list",S(f,r=p())}function d(){w(s),q(f,r)}function v(){d(),l()}function h(){q(f,r),S(f,r=p())}function g(n){return D(f,n)||D(u,n)}function p(){return[fn+"--"+i.type,fn+"--"+i.direction,i.drag&&fn+"--draggable",i.isNavigation&&fn+"--nav",Mn]}return T(a,{setup:l,mount:function(){c(Bn,v),c(Cn,h)},destroy:d})},Style:function(){var n,u;function r(t,n,i){var r=u.cssRules,r=a(r,function(n){return o(n)&&n.selectorText===t})||r[u.insertRule(t+"{}",0)];o(r)&&(r.style[n]=""+i)}function o(n){return n instanceof CSSStyleRule}return{mount:function(){n=I("style",{},document.head),u=n.sheet},destroy:function(){Y(n),u=null},rule:r,ruleBy:function(n,t,i){r("#"+(y(n)?n.id:n),t,i)}}},Slides:function(r,u,o){var n=Jn(r),t=n.on,e=n.emit,c=n.bind,f=(n=u.Elements).slides,a=n.list,s=[];function i(){f.forEach(function(n,t){v(n,t,-1)})}function l(){g(function(n){n.destroy()}),w(s)}function d(){l(),i()}function v(n,t,i){n=ft(r,t,i,n);n.mount(),s.push(n)}function h(n){return n?p(function(n){return!n.isClone}):s}function g(n,t){h(t).forEach(n)}function p(t){return s.filter("function"==typeof t?t:function(n){return A(t)?P(n.slide,t):M(_(t),n.index)})}return{mount:function(){i(),t(Bn,d)},destroy:l,register:v,get:h,getIn:function(n){var t=u.Controller,i=t.toIndex(n),r=t.hasFocus()?1:o.perPage;return p(function(n){return V(n.index,i,i+r-1)})},getAt:function(n){return p(n)[0]},add:function(n,u){k(n,function(n){var t,i,r;y(n=A(n)?X(n):n)&&((t=f[u])?R(n,t):z(a,n),S(n,o.classes.slide),n=n,i=e.bind(null,Xn),n=N(n,"img"),(r=n.length)?n.forEach(function(n){c(n,"load error",function(){--r||i()})}):i())}),e(Bn)},remove:function(n){Y(p(n).map(function(n){return n.slide})),e(Bn)},forEach:g,filter:p,rule:function(t,i,r){g(function(n){n.rule(t,i,r)})},getLength:function(n){return(n?f:s).length},isEnough:function(){return s.length>o.perPage}}},Clones:function(c,n,f){var t,a,i=Jn(c),r=i.on,u=i.emit,s=n.Elements,l=n.Slides,o=n.Direction.resolve,d=[];function e(){(t=p())&&function(u){var o=l.get().slice(),e=o.length;if(e){for(a=0;o.length<u;)E(o,o);o.slice(-u).concat(o.slice(0,u)).forEach(function(n,t){var i=t<u,r=function(n){n=n.cloneNode(!0);return S(n,f.classes.clone),n.id=c.root.id+"-clone"+en(++a),n}(n.slide);i?R(r,o[0].slide):z(s.list,r),E(d,r),l.register(r,t-u+(i?0:e),n.index)})}}(t)}function v(){Y(d),w(d)}function h(){v(),e()}function g(){t!==p()&&u(Bn)}function p(){var n,t=f.clones;return c.is(et)?t||(t=((n=f[o("fixedWidth")])&&rn(U(s.track)[o("width")]/n)||f[o("autoWidth")]&&c.length||f.perPage)*(f.drag?(f.flickMaxPages||1)+1:2)):t=0,t}return{mount:function(){e(),r(Bn,h),r([Cn,Xn],g)},destroy:v}},Layout:function(n,t,i){var r=(n=Jn(n)).on,u=n.bind,o=n.emit,e=t.Slides,c=t.Style.ruleBy,f=t.Direction.resolve,a=(t=t.Elements).root,s=t.track,l=t.list,d=e.getAt,v="ttb"===i.direction;function h(){c(a,"maxWidth",J(i.width)),c(s,f("paddingLeft"),m(!1)),c(s,f("paddingRight"),m(!0)),e.rule(f("marginRight"),J(i.gap)),e.rule("width",i.autoWidth?"":J(i.fixedWidth)||(v?"":w())),p(),g()}function g(){c(s,"height",function(){var n="";{var t,i;v&&(K(n=y(),'"height" or "heightRatio" is missing.'),t=m(!1),i=m(!0),(t||i)&&(n="calc("+n,n+=(t?" - "+t:"")+(i?" - "+i:"")+")"))}return n}()),i.heightRatio&&p(),o(Gn)}function p(){e.rule("height",J(i.fixedHeight)||(v?i.autoHeight?"":w():y()),!0)}function m(n){var t=i.padding,n=f(n?"right":"left",!0);return t?J(t[n]||(b(t)?"0":t)):""}function y(){return J(i.height||U(l).width*i.heightRatio)}function w(){var n=J(i.gap);return"calc((100%"+(n&&" + "+n)+")/"+(i.perPage||1)+(n&&" - "+n)+")"}function _(){var n=d(0);return n&&parseFloat(j(n.slide,f("marginRight")))||0}return{mount:function(){h(),u(window,"resize load",Qn(o.bind(this,Xn))),r([Cn,Bn],h),r(Xn,g)},listSize:function(){return U(l)[f("width")]},slideSize:function(n,t){return(n=d(n||0))?U(n.slide)[f("width")]+(t?0:_()):0},sliderSize:function(){var n=d(0),t=d(e.getLength(!0)-1);return n&&t?U(t.slide)[f("right")]-U(n.slide)[f("left")]:0},totalSize:function(n,t){var i=d(n);if(i){n=U(i.slide)[f("right")],i=U(l)[f("left")];return un(n-i)+(t?0:_())}return 0},getPadding:function(n){return parseFloat(j(s,f("padding"+(n?"Right":"Left"),!0)))||0}}},Move:function(u,c,o){var e,f,n=Jn(u),t=n.on,a=n.emit,r=(n=c.Layout).slideSize,i=n.getPadding,s=n.totalSize,l=n.listSize,d=n.sliderSize,v=(n=c.Direction).resolve,h=n.orient,g=(n=c.Elements).list,p=n.track,m=0,y=0;function w(){var n,t,i;"free"!==o.drag?_(u.index):(o[v("fixedWidth")]||o[v("autoWidth")]||b(l()*y),S(m)?b(A(!0)):(n=10,t=M(),i=x(t),un(t-k(i))<n&&_(i)))}function _(n){e=f=!1,c.Transition.cancel(),b(k(n,!0))}function b(n){m=function(n){{var t,i,r;!e&&u.is(et)&&(t=n-m,i=L(n),r=S(n),(i&&0<t||r&&t<0)&&(n+=h(d()*(i?1:-1))))}return n}(n),y=m/l(),c.Style.ruleBy(g,"transform","translate"+v("X")+"("+m+"px)")}function x(n){for(var t=c.Slides.get(),i=0,r=1/0,u=0;u<t.length;u++){var o=t[u].index,e=un(k(o)-n);if(!(e<r))break;r=e,i=o}return i}function k(n,t){var i,i=h(s(n-1)-(i=n,"center"!==(n=o.focus)?(+n||0)*r(i):(l()-r(i,!0))/2));return t?function(n){o.trimSpace&&u.is(ot)&&(n=Q(n,0,h(d()-l())));return n}(i):i}function M(){var n=v("left");return U(g)[n]-U(p)[n]+h(i(!1))}function A(n){var t=!!o.trimSpace;return k(n?c.Controller.getEnd():0,t)}function E(){return!(!e&&!f)}function L(n,t){return h(n)+(t||0)<h(A(!1))}function S(n,t){return h(n)+(t||0)>h(A(!0))}return{mount:function(){t([Xn,Gn,Cn,Bn],w,Yn-1)},move:function(n,t,i){var r;E()||(r=M(),e=n!==t,f=o.waitForTransition,u.state.set(4),a(Pn,t,i,n),c.Transition.start(n,function(){!function(n,t,i,r){e&&_(t);f=!1,u.state.set(3),a(On,t,i,n),"move"===o.trimSpace&&n!==i&&r===M()&&c.Controller.go(i<n?">":"<")}(n,t,i,r)}))},jump:_,translate:b,cancel:function(){b(M()),c.Transition.cancel()},toIndex:x,toPosition:k,getPosition:M,getLimit:A,isBusy:E,isExceededMin:L,isExceededMax:S,isExceeded:function(){return L(m)||S(m)}}},Controller:function(n,t,u){var o,e,c,i=Jn(n).on,r=t.Move,f=(t=t.Slides).isEnough,a=t.getLength,s=n.is(et),l=u.start||0,d=l;function v(){o=a(!0),e=u.perMove,c=u.perPage,o<=l&&r.jump(l=o-1)}function h(){k(r.toIndex(r.getPosition()))}function g(n){return m(!1,n)}function p(n){return m(!0,n)}function m(n,t){n=y(l+(e||M()?1:c)*(n?-1:1),l);return t?n:_(n)}function y(n,t,i){var r;return f()?(r=w(),n<0||r<n?n=V(0,n,t,!0)||V(r,t,n,!0)?b(x(n)):s?e?n:n<0?-(o%c||c):o:u.rewind?n<0?r:0:-1:s||i||n===t||(n=b(x(t)+(n<t?-1:1)))):n=-1,n}function w(){var n=o-c;return(M()||s&&e)&&(n=o-1),nn(n,0)}function _(n){return s?f()?n%o+(n<0?o:0):-1:n}function b(n){return Q(M()?n:c*n,0,w())}function x(n){return M()||(n=V(n,o-c,o-1)?o-1:n,n=tn(n/c)),n}function k(n){n!==l&&(d=l,l=n)}function M(){return!(void 0===u.focus)||u.isNavigation}return{mount:function(){v(),r.jump(l),i([Cn,Bn],v),i(Hn,h,0)},go:function(n,t){var i=function(n){var t=l;{var i,r;A(n)?(r=n.match(/([+\-<>])(\d+)?/)||[],i=r[1],r=r[2],"+"===i||"-"===i?t=y(l+ +(""+i+(+r||1)),l,!0):">"===i?t=r?b(+r):g(!0):"<"===i&&(t=p(!0))):t=s?Q(n,-c,o+c-1):Q(n,0,w())}return t}(n);-1<(n=_(i))&&!r.isBusy()&&(t||n!==l)&&(k(n),r.move(i,n,d))},getNext:g,getPrev:p,getEnd:w,setIndex:k,getIndex:function(n){return n?d:l},toIndex:b,toPage:x,hasFocus:M}},Arrows:function(u,n,i){var r,o=(t=Jn(u)).on,e=t.bind,c=t.emit,f=i.classes,a=i.i18n,t=n.Elements,s=n.Controller,l=t.slider,d=t.track,v=t.arrows,h=t.prev,g=t.next,p={};function m(){var n,t;i.arrows&&(h&&g||(n="slider"===i.arrows&&l?l:u.root,v=I("div",f.arrows),h=y(!0),g=y(!1),r=!0,z(v,[h,g]),R(v,D(n)))),h&&g&&(p.prev?B(v,!1===i.arrows?"none":""):(F(h,$n,d.id),F(g,$n,d.id),p.prev=h,p.next=g,t=s.go,o([Rn,Pn,Cn,Bn,Hn],w),e(g,"click",function(){t(">")}),e(h,"click",function(){t("<")}),c("arrows:mounted",h,g)))}function y(n){return X('<button class="'+f.arrow+" "+(n?f.prev:f.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="'+(i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function w(){var n=u.index,t=s.getPrev(),i=s.getNext(),r=-1<t&&n<t?a.last:a.prev,n=-1<i&&i<n?a.first:a.next;h.disabled=t<0,g.disabled=i<0,F(h,tt,r),F(g,tt,n),c("arrows:updated",h,g,t,i)}return{arrows:p,mount:function(){m(),o(Cn,m)},destroy:function(){r?Y(v):(W(h,ut),W(g,ut))}}},Autoplay:function(n,t,i){var r,u,o,e=Jn(n),c=e.on,f=e.bind,a=e.emit,s=(e=t.Elements).root,l=e.track,d=e.bar,v=e.play,h=e.pause,g=Kn(i.interval,n.go.bind(n,">"),function(n){a("autoplay:playing",n),d&&j(d,{width:100*n+"%"})}),p=g.isPaused;function m(n){var t=n?h:v;t&&(x(t)||F(t,Zn,"button"),F(t,$n,l.id),F(t,tt,i.i18n[n?"pause":"play"]),f(t,"click",n?w:y))}function y(){p()&&t.Slides.isEnough()&&(g.start(!i.resetProgress),r=u=!1,a("autoplay:play"))}function w(n){void 0===n&&(n=!0),p()||(g.pause(),a("autoplay:pause")),o=n}function _(){o||(r||u?w(!1):y())}return{mount:function(){var n=i.autoplay;n&&(m(!0),m(!1),function(){i.pauseOnHover&&f(s,"mouseenter mouseleave",function(n){r="mouseenter"===n.type,_()});i.pauseOnFocus&&f(s,"focusin focusout",function(n){u="focusin"===n.type,_()});c([Pn,"scroll",Bn],g.rewind)}(),"pause"!==n&&y())},destroy:g.cancel,play:y,pause:w,isPaused:p}},Cover:function(n,t,i){var r=Jn(n).on;function u(i){t.Slides.forEach(function(n){var t=D(n.container||n.slide,"img");t&&t.src&&o(i,t,n)})}function o(n,t,i){i.rule("background",n?'center/cover no-repeat url("'+t.src+'")':"",!0),B(t,n?"none":"")}return{mount:function(){i.cover&&(r(Un,function(n,t){o(!0,n,t)}),r([Rn,Cn,Bn],u.bind(null,!0)))},destroy:function(){u(!1)}}},Scroll:function(c,n,f){var i,t=Jn(c),r=t.on,a=t.emit,s=n.Move,l=s.getPosition,d=s.getLimit;function v(r,n,u){var t,o=l(),e=1;n=n||(t=un(r-o),nn(t/1.2,800)),g(),i=Kn(n,h,function(n){var t=l(),i=(o+(r-o)*(i=n,(n=f.easingFunc)?n(i):1-Math.pow(1-i,4))-l())*e;s.translate(t+i),c.is(ot)&&!u&&s.isExceeded()&&(e*=.6,un(i)<10&&(i=s.isExceededMin(l()),v(d(!i),600,!0)))},1),a("scroll"),i.start()}function h(){a(Hn)}function g(){i&&i.cancel()}function u(){i&&!i.isPaused()&&(g(),h())}return{mount:function(){r(Pn,g),r([Cn,Bn],u)},destroy:g,scroll:v,cancel:u}},Drag:function(r,n,i){var u,o,e,c,f,a,s,l,t,d,v=Jn(r),h=v.emit,g=v.bind,p=v.unbind,m=n.Elements.track,y=(v=n.Direction).resolve,w=v.orient,_=n.Layout.listSize,b=(v=n.Controller).go,x=v.getEnd,k=n.Move,M=n.Scroll,A=k.translate,E=k.toIndex,L=k.getPosition,S=k.isExceeded,z=r.is(ot),R=r.is(ct),P="free"===i.drag;function O(n){l="mousedown"===n.type,t=l?window:m,l&&n.button||(k.isBusy()?G(n):(g(t,at,D),g(t,st,T),k.cancel(),M.cancel(),u=W(n)))}function D(n){var t;n.cancelable?(t=i.dragMinThreshold||15,(l||un(W(n)-u)>t)&&(g(m,"click",function(n){p(m,"click"),G(n,!0)},{capture:s=!0}),h("drag")),s&&(function(n){var t=n.timeStamp;(!o||50<t-o||S()!==d)&&(e=L(),c=W(n),f=t);d=S(),o=t,a=n,R||A(e+function(n){return n/(d&&z?5:1)}(W(n)-c));h("dragging")}(n),G(n,!0))):T(n)}function T(n){p(t,at+" "+st),s=!1,a&&(function(n){n=function(n){if(r.is(et)||!S()){var t=W(a)-c,i=a.timeStamp-f,n=n.timeStamp-o<50;if(i&&n)return t/i}return 0}(n);R?b(r.index+w(Z(n))):(n=function(n){var t=i.flickPower||600;return L()+Z(n)*$(un(n)*t,P?1/0:_()*(i.flickMaxPages||1))}(n),P?M.scroll(n):b(function(n){n=E(n);return z?Q(n,0,x()):n}(n),!0));o=0,h("dragged")}(n),a=null)}function W(n){return(l?n:n.touches[0])[y("pageX")]}return{mount:function(){i.drag&&g(m,"touchstart mousedown",O)}}},Keyboard:function(t,n,i){var r,u=Jn(t),o=u.on,e=u.bind,c=u.unbind,f=n.Elements.root,a=n.Direction.resolve;function s(){var n=i.keyboard,n=void 0===n?"global":n;n&&("focused"===n?F(r=f,rt,0):r=window,e(r,"keydown",function(n){n=n.key,n=M(lt,n)?"Arrow"+n:n;n===a("ArrowLeft")?t.go("<"):n===a("ArrowRight")&&t.go(">")}))}function l(){r&&(c(r,"keydown"),y(r)&&W(r,rt))}return{mount:function(){s(),o(Cn,function(){l(),s()})},destroy:l}},LazyLoad:function(t,n,o){var i=Jn(t),r=i.on,u=i.off,e=i.bind,c=i.emit,f="sequential"===o.lazyLoad,a=[],s=0;function l(){s=0,a=[]}function d(){(a=a.filter(function(n){return!n.o.isWithin(t.index,o.perPage*((o.preloadPages||1)+1))||v(n)})).length||u(On)}function v(t){var i=t.e;S(t.o.slide,Sn),e(i,"load error",function(n){!function(n,t){var i=n.o;q(i.slide,Sn),t||(Y(n.c),B(n.e,""),c(Un,n.e,i),c(Xn));f&&h()}(t,"error"===n.type)}),["src","srcset"].forEach(function(n){t[n]&&(F(i,n,t[n]),W(i,"src"===n?dt:vt))})}function h(){s<a.length&&v(a[s++])}return{mount:function(){o.lazyLoad&&(r([Rn,Bn],function(){l(),n.Slides.forEach(function(u){N(u.slide,ht).forEach(function(n){var t,i=g(n,dt),r=g(n,vt);i===n.src&&r===n.srcset||(F(t=I("span",o.classes.spinner,n.parentElement),Zn,"presentation"),a.push({e:n,o:u,src:i,srcset:r,c:t}),B(n,"none"))})}),f&&h()}),f||r([Rn,Bn,On],d))},destroy:l}},Pagination:function(f,a,s){var l,n=Jn(f),t=n.on,d=n.emit,v=n.bind,i=n.unbind,h=a.Slides,g=(n=a.Controller).go,r=n.toPage,p=n.hasFocus,u=n.getIndex,m=[];function o(){e(),s.pagination&&h.isEnough()&&(function(){var n=f.length,o=s.classes,e=s.i18n,c=s.perPage,t=a.Elements,i=t.slider,t=t.root,t="slider"===s.pagination&&i?i:t,r=p()?n:rn(n/c);l=I("ul",o.pagination,t);for(var u=0;u<r;u++)!function(n){var t=I("li",null,l),i=I("button",{class:o.page,type:"button"},t),r=h.getIn(n).map(function(n){return n.slide.id}),u=!p()&&1<c?e.pageX:e.slideX;v(i,"click",function(){g(">"+n)}),F(i,$n,r.join(" ")),F(i,tt,on(u,n+1)),d("pagination:page",l,t,i,n),m.push({li:t,button:i,page:n})}(u)}(),d("pagination:mounted",{list:l,items:m},c(f.index)),y())}function e(){l&&(Y(l),m.forEach(function(n){i(n.button,"click")}),w(m),l=null)}function c(n){return m[r(n)]}function y(){var n=c(u(!0)),t=c(u());n&&(q(n.button,Mn),W(n.button,nt)),t&&(S(t.button,Mn),F(t.button,nt,!0)),d("pagination:updated",{list:l,items:m},n,t)}return{items:m,mount:function(){o(),t([Cn,Bn],o),t([Pn,Hn],y)},destroy:e,getAt:c}},Sync:function(i,n,r){var u=i.splides;return{mount:function(){var o,n,t;r.isNavigation?(n=Jn(i),t=n.on,n=n.emit,t(Dn,function(n){i.go(n.index)}),t(jn,function(n,t){M(gt,t.key)&&(i.go(n.index),G(t))}),n("navigation:mounted",i.splides)):(o=[],u.concat(i).forEach(function(r,n,u){Jn(r).on(Pn,function(t,n,i){u.forEach(function(n){n===r||M(o,r)||(o.push(n),n.go(n.is(et)?i:t))}),w(o)})}))}}},Wheel:function(i,n,t){var r=Jn(i).bind;function u(n){var t=n.deltaY;t&&(i.go(t<0?"<":">"),G(n))}return{mount:function(){t.wheel&&r(n.Elements.track,"wheel",u)}}}}),mt={type:"slide",speed:400,waitForTransition:!0,perPage:1,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(.42,.65,.27,.99)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,classes:{slide:dn,clone:vn,arrows:gn,arrow:t,prev:pn,next:mn,pagination:yn,page:yn+"__page",spinner:m+"__spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function yt(n,r,t){var i=Jn(n).on,u=r.Style.ruleBy;return{mount:function(){i([Rn,Bn],function(){c(function(){r.Slides.forEach(function(n){u(n.slide,"transition","opacity "+t.speed+"ms "+t.easing)})})})},start:function(n,t){var i=r.Elements.track;u(i,"height",J(U(i).height)),c(function(){t(),u(i,"height","")})},cancel:l}}function wt(o,t,e){var c,n=Jn(o).bind,f=t.Move,a=t.Controller,i=t.Elements.list;function r(){s("")}function s(n){t.Style.ruleBy(i,"transition",n)}return{mount:function(){n(i,"transitionend",function(n){n.target===i&&c&&(r(),c())})},start:function(n,t){var i=f.toPosition(n,!0),r=f.getPosition(),u=function(n){var t=e.rewindSpeed;if(o.is(ot)&&t){var i=a.getIndex(!0),r=a.getEnd();if(0===i&&r<=n||r<=i&&0===n)return t}return e.speed}(n);1<=un(i-r)&&1<=u?(s("transform "+u+"ms "+e.easing),f.translate(i),c=t):(f.jump(n),t())},cancel:r}}yn=function(){function i(n,t){this.event=qn(),this.Components={},this.state=Vn(1),this.splides=[],this.f={},this.a={};n=A(n)?H(document,n):n;K(n,n+" is invalid."),this.root=n,s(mt,i.defaults),s(s(this.f,mt),t||{})}var n,t,r=i.prototype;return r.mount=function(n,t){var i=this;this.state.set(1),this.s=t||this.s||(this.is(ct)?yt:wt),this.a=n||this.a;var n=T({},pt,this.a,{Transition:this.s}),r=this.Components;return e(n,function(n,t){n=n(i,i.Components,i.f);(r[t]=n).setup&&n.setup()}),e(r,function(n){n.mount&&n.mount()}),e(r,function(n){n.mounted&&n.mounted()}),this.emit(Rn),S(this.root,"is-initialized"),this.state.set(3),this.emit("ready"),this},r.sync=function(n){return this.splides.push(n),n.splides.push(this),this},r.go=function(n){this.Components.Controller.go(n)},r.on=function(n,t){return this.event.on(n,t,null,20),this},r.off=function(n){return this.event.off(n),this},r.emit=function(n){for(var t,i=arguments.length,r=new Array(1<i?i-1:0),u=1;u<i;u++)r[u-1]=arguments[u];return(t=this.event).emit.apply(t,[n].concat(r)),this},r.add=function(n,t){return this.Components.Slides.add(n,t),this},r.remove=function(n){return this.Components.Slides.remove(n),this},r.is=function(n){return this.f.type===n},r.refresh=function(){return this.emit(Bn),this},r.destroy=function(t){var n=this.event,i=this.state;return i.is(1)?n.on("ready",this.destroy.bind(this,t),this):(e(this.Components,function(n){n.destroy&&n.destroy(t)}),n.emit(Nn),n.destroy(),w(this.splides),i.set(5)),this},n=i,(r=[{key:"options",get:function(){return this.f},set:function(n){var t=this.f;s(t,n),this.state.is(1)||this.emit(Cn,t)}},{key:"length",get:function(){return this.Components.Slides.getLength(!0)}},{key:"index",get:function(){return this.Components.Controller.getIndex()}}])&&_t(n.prototype,r),t&&_t(n,t),i}();return yn.defaults={},yn.STATES=n,yn},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).Splide=t();
|