function r(n,t){for(var i=0;i=r))return l();h(s)}}function l(){f=!0}function d(){o&&cancelAnimationFrame(o),f=!(o=c=0)}return{start:function(n){n||d(),u=e()-(n?c*t:0),f=!1,h(s)},rewind:function(){u=e(),c=0,i&&i(c)},pause:l,cancel:d,set:function(n){t=n},isPaused:function(){return f}}}function a(n){var t=n;return{set:function(n){t=n},is:function(n){return b(g(n),t)}}}var n="Arrow",Un=n+"Left",qn=n+"Right",s=n+"Up",n=n+"Down",Bn="ttb",l={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[s,qn],ArrowRight:[n,Un]};var V="role",Jn="tabindex",t="aria-",Kn=t+"controls",Vn=t+"current",Qn=t+"selected",Q=t+"label",Zn=t+"labelledby",$n=t+"hidden",nt=t+"orientation",tt=t+"roledescription",it=t+"live",rt=t+"busy",ut=t+"atomic",ot=[V,Jn,"disabled",Kn,Vn,Q,Zn,$n,nt,tt],et=_,ct=_+"__track",ft=_+"__list",at=_+"__slide",st=at+"--clone",lt=at+"__container",dt=_+"__arrows",vt=_+"__arrow",ht=vt+"--prev",pt=vt+"--next",gt=_+"__pagination",mt=gt+"__page",yt=_+"__progress"+"__bar",bt=_+"__toggle",wt=_+"__sr",Z="is-active",_t="is-prev",xt="is-next",kt="is-visible",Et="is-loading",St="is-focus-in",Lt=[Z,kt,_t,xt,Et,St];var At="touchstart mousedown",Ot="touchmove mousemove",Mt="touchend touchcancel mouseup click";var Dt="slide",Pt="loop",zt="fade";function It(u,r,t,o){var e,n=K(u),i=n.on,c=n.emit,f=n.bind,a=u.Components,s=u.root,l=u.options,d=l.isNavigation,v=l.updateOnMove,h=l.i18n,p=l.pagination,g=l.slideFocus,m=a.Direction.resolve,y=T(o,"style"),b=T(o,Q),w=-1o.perPage}}},Layout:function(n,t,i){var r,u,o=(f=K(n)).on,e=f.bind,c=f.emit,f=t.Slides,a=t.Direction.resolve,s=(t=t.Elements).root,l=t.track,d=t.list,v=f.getAt,h=f.style;function p(){u=null,r=i.direction===Bn,O(s,"maxWidth",x(i.width)),O(l,a("paddingLeft"),m(!1)),O(l,a("paddingRight"),m(!0)),g()}function g(){var n=j(s);u&&u.width===n.width&&u.height===n.height||(O(l,"height",function(){var n="";r&&(yn(n=y(),"height or heightRatio is missing."),n="calc("+n+" - "+m(!1)+" - "+m(!0)+")");return n}()),h(a("marginRight"),x(i.gap)),h("width",i.autoWidth?null:x(i.fixedWidth)||(r?"":b())),h("height",x(i.fixedHeight)||(r?i.autoHeight?null:b():y()),!0),u=n,c(Nn))}function m(n){var t=i.padding,n=a(n?"right":"left");return t&&x(t[n]||(tn(t)?0:t))||"0px"}function y(){return x(i.height||j(d).width*i.heightRatio)}function b(){var n=x(i.gap);return"calc((100%"+(n&&" + "+n)+")/"+(i.perPage||1)+(n&&" - "+n)+")"}function w(n,t){var i,n=v(n);return n?(n=j(n.slide)[a("right")],i=j(d)[a("left")],Y(n-i)+(t?0:_())):0}function _(){var n=v(0);return n&&parseFloat(O(n.slide,a("marginRight")))||0}return{mount:function(){var n,t,i;p(),e(window,"resize load",(n=D(c,k),function(){i||(i=Hn(t||0,function(){n(),i=null},null,1)).start()})),o([B,q],p),o(k,g)},listSize:function(){return j(d)[a("width")]},slideSize:function(n,t){return(n=v(n||0))?j(n.slide)[a("width")]+(t?0:_()):0},sliderSize:function(){return w(n.length-1,!0)-w(-1,!0)},totalSize:w,getPadding:function(n){return parseFloat(O(l,a("padding"+(n?"Right":"Left"))))||0}}},Clones:function(c,i,f){var n,t=K(c),r=t.on,a=t.emit,s=i.Elements,l=i.Slides,u=i.Direction.resolve,d=[];function o(){if(n=h()){var u=n,o=l.get().slice(),e=o.length;if(e){for(;o.lengthc.Controller.getEnd(),(t<0||i)&&(n=w(n,i)))}return n}(n),O(p,"transform","translate"+v("X")+"("+t+"px)"),n!==t&&f(Pn))}function w(n,t){var i=n-S(t),r=d();return n-=h(r*(_n(Y(i)/r)||1))*(t?1:-1)}function _(){b(E()),e.cancel()}function x(n){for(var t=c.Slides.get(),i=0,r=1/0,u=0;uh(S(!0));return i||n},reposition:m}},Controller:function(o,u,e){var c,f,a,n=K(o).on,s=u.Move,l=s.getPosition,r=s.getLimit,d=s.toPosition,t=u.Slides,v=t.isEnough,i=t.getLength,h=o.is(Pt),p=o.is(Dt),g=D(_,!1),m=D(_,!0),y=e.start||0,b=y;function w(){c=i(!0),f=e.perMove,a=e.perPage;var n=En(y,0,c-1);n!==y&&(y=n,s.reposition())}function _(n,t){var i=f||(O()?1:a),i=x(y+i*(n?-1:1),y,!(f||O()));return-1===i&&p&&!xn(l(),r(!n),1)?n?0:E():t?i:k(i)}function x(n,t,i){var r,u;return v()||O()?(r=E(),(u=function(n){if(p&&"move"===e.trimSpace&&n!==y)for(var t=l();t===d(n,!0)&&kn(n,0,o.length-1,!e.rewind);)n=E()?c-1:n)/a)}function A(n){n!==y&&(b=y,y=n)}function O(){return!rn(e.focus)||e.isNavigation}function M(){return o.state.is([G,$])&&!!e.waitForTransition}return{mount:function(){w(),n([B,q],w)},go:function(n,t,i){var r;M()||-1<(r=k(n=function(n){var t=y;{var i,r;P(n)?(r=n.match(/([+\-<>])(\d+)?/)||[],i=r[1],r=r[2],"+"===i||"-"===i?t=x(y+ +(""+i+(+r||1)),y):">"===i?t=r?S(+r):g(!0):"<"===i&&(t=m(!0))):t=h?n:En(n,0,E())}return t}(n)))&&(t||r!==y)&&(A(r),s.move(n,r,b,i))},scroll:function(n,t,i,r){u.Scroll.scroll(n,t,i,function(){A(k(s.toIndex(l()))),r&&r()})},getNext:g,getPrev:m,getAdjacent:_,getEnd:E,setIndex:A,getIndex:function(n){return n?b:y},toIndex:S,toPage:L,toDest:function(n){return n=s.toIndex(n),p?En(n,0,E()):n},hasFocus:O,isBusy:M}},Arrows:function(u,n,t){var i,r,o=K(u),e=o.on,c=o.bind,f=o.emit,a=t.classes,s=t.i18n,l=n.Elements,d=n.Controller,v=l.arrows,h=l.track,p=v,g=l.prev,m=l.next,y={};function b(){var n=t.arrows;!n||g&&m||(p=v||C("div",a.arrows),g=k(!0),m=k(!1),i=!0,L(p,[g,m]),v||un(p,h)),g&&m&&(an(y,{prev:g,next:m}),ln(p,n?"":"none"),z(p,r=dt+"--"+t.direction),n&&(e([Dn,q,J],E),c(m,"click",D(x,">")),c(g,"click",D(x,"<")),E(),R([g,m],Kn,h.id),f("arrows:mounted",g,m))),e(B,w)}function w(){_(),b()}function _(){o.destroy(),W(p,r),i?(N(v?[g,m]:p),g=m=null):I([g,m],ot)}function x(n){d.go(n,!0)}function k(n){return hn('