(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[923],{2269:(e,t,n)=>{"use strict";var r=n(9509);n(8375);var i=n(2115),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),u=void 0!==r&&r.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,o=void 0===i?u:i;l(s(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",l("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(u||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+a(e+"-"+n)),d[r]}function p(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var h=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=r||new c({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),r&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=o,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=f(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:f(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,y="undefined"!=typeof window?new h:void 0;function v(e){var t=y||i.useContext(m);return t&&("undefined"==typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=v},3084:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(2115),i=n(2843),o=n(408);function u(){o.r.current||(0,i.U)();let[e]=(0,r.useState)(o.O.current);return e}},5005:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(2115);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],u=t[n];return"function"==typeof r?`${r}`==`${u}`:i(r)&&i(u)?o(r,u):r===u})}function u(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function c(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function f(e){return Math.sign(e)}function p(e){return y(e).map(Number)}function h(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function S(){let e=[],t={add:function(n,r,i,o={passive:!0}){let u;return"addEventListener"in n?(n.addEventListener(r,i,o),u=()=>n.removeEventListener(r,i,o)):(n.addListener(i),u=()=>n.removeListener(i)),e.push(u),t},clear:function(){e=e.filter(e=>e())}};return t}function _(e=0,t=0){let n=d(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(y(n).forEach(r=>{let i=t[r],o=n[r],u=a(i)&&a(o);t[r]=u?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=y(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(R),j=(O=[],{init:function(e,t){return(O=t.filter(({options:e})=>!1!==I.optionsAtMedia(e).active)).forEach(t=>t.init(e,I)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){O=O.filter(e=>e.destroy())}}),k=S(),z=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:A,optionsAtMedia:C,optionsMediaQueries:T}=I,{on:D,off:L,emit:N}=z,M=!1,P=A(x,F.globalOptions),H=A(P),V=[];function q(t,n){if(M)return;H=C(P=A(P,t)),V=n||V;let{container:a,slides:x}=H;o=(c(a)?e.querySelector(a):a)||e.children[0];let F=c(x)?o.querySelectorAll(x):x;u=[].slice.call(F||o.children),r=function t(n){let r=function(e,t,n,r,i,o,u){let a,x,{align:F,axis:O,direction:E,startIndex:R,loop:I,duration:j,dragFree:k,dragThreshold:z,inViewThreshold:A,slidesToScroll:C,skipSnaps:T,containScroll:D,watchResize:L,watchSlides:N,watchDrag:M,watchFocus:P}=o,H={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},V=H.measure(t),q=n.map(H.measure),B=function(e,t){let n="rtl"===t,r="y"===e,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*i}}}(O,E),U=B.measureSize(V),$={measure:function(e){return e/100*U}},J=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,i){return c(e)?n[e](r):e(t,r,i)}}}(F,U),X=!I&&!!D,{slideSizes:Q,slideSizesWithGaps:Y,startGap:G,endGap:K}=function(e,t,n,r,i,o){let{measureSize:u,startEdge:s,endEdge:c}=e,l=n[0]&&i,a=function(){if(!l)return 0;let e=n[0];return d(t[s]-e[s])}(),f=l?parseFloat(o.getComputedStyle(h(r)).getPropertyValue(`margin-${c}`)):0,p=n.map(u),g=n.map((e,t,n)=>{let r=t===m(n);return t?r?p[t]+f:n[t+1][s]-e[s]:p[t]+a}).map(d);return{slideSizes:p,slideSizesWithGaps:g,startGap:a,endGap:f}}(B,V,q,n,I||!!D,i),W=function(e,t,n,r,i,o,u,c,l){let{startEdge:a,endEdge:f,direction:g}=e,y=s(n);return{groupSlides:function(e){return y?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,s,l)=>{let p=h(n)||0,y=s===m(e),v=i[a]-o[p][a],S=i[a]-o[s][f],_=r||0!==p?0:g(u),b=d(S-(!r&&y?g(c):0)-(v+_));return l&&b>t+2&&n.push(s),y&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(B,U,C,I,V,q,G,K,0),{snaps:Z,snapsAligned:ee}=function(e,t,n,r,i){let{startEdge:o,endEdge:u}=e,{groupSlides:s}=i,c=s(r).map(e=>h(e)[u]-e[0][o]).map(d).map(t.measure),l=r.map(e=>n[o]-e[o]).map(e=>-d(e)),a=s(l).map(e=>e[0]).map((e,t)=>e+c[t]);return{snaps:l,snapsAligned:a}}(B,J,V,q,W),et=-h(Z)+h(Y),{snapsContained:en,scrollContainLimit:er}=function(e,t,n,r,i){let o=_(-t+e,0),u=n.map((e,t)=>{let{min:r,max:i}=o,u=o.constrain(e),s=t===m(n);return t?s||function(e,t){return 1>=d(e-t)}(r,u)?r:function(e,t){return 1>=d(e-t)}(i,u)?i:u:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){let e=u[0],t=h(u);return _(u.lastIndexOf(e),u.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return u;let{min:n,max:i}=s;return u.slice(n,i)}(),scrollContainLimit:s}}(U,et,ee,D,0),ei=X?en:ee,{limit:eo}=function(e,t,n){let r=t[0];return{limit:_(n?r-e:h(t),r)}}(et,ei,I),eu=function e(t,n,r){let{constrain:i}=_(0,t),o=t+1,u=s(n);function s(e){return r?d((o+e)%o):i(e)}function c(){return e(t,u,r)}let l={get:function(){return u},set:function(e){return u=s(e),l},add:function(e){return c().set(u+e)},clone:c};return l}(m(ei),R,I),es=eu.clone(),ec=p(n),el=function(e,t,n,r){let i=S(),o=1e3/60,u=null,s=0,c=0;function l(e){if(!c)return;u||(u=e,n(),n());let i=e-u;for(u=e,s+=i;s>=o;)n(),s-=o;r(s/o),c&&(c=t.requestAnimationFrame(l))}function a(){t.cancelAnimationFrame(c),u=null,s=0,c=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(u=null,s=0)})},destroy:function(){a(),i.clear()},start:function(){c||(c=t.requestAnimationFrame(l))},stop:a,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ex),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:o,slideLooper:u,dragHandler:s,animation:c,eventHandler:l,scrollBounds:a,options:{loop:d}},f)=>{let p=e.settled(),h=!a.shouldConstrain(),m=d?p:p&&h,g=m&&!s.pointerDown();g&&c.stop();let y=n.get()*f+i.get()*(1-f);r.set(y),d&&(o.loop(e.direction()),u.loop()),t.to(r.get()),g&&l.emit("settle"),m||l.emit("scroll")})(ex,e)),ea=ei[eu.get()],ed=b(ea),ef=b(ea),ep=b(ea),eh=b(ea),em=function(e,t,n,r,i,o){let u=0,s=0,c=i,l=.68,a=e.get(),p=0;function h(e){return c=e,g}function m(e){return l=e,g}let g={direction:function(){return s},duration:function(){return c},velocity:function(){return u},seek:function(){let t=r.get()-e.get(),i=0;return c?(n.set(e),u+=t/c,u*=l,a+=u,e.add(u),i=a-p):(u=0,n.set(r),e.set(r),i=t),s=f(i),p=a,g},settled:function(){return .001>d(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return h(i)},useFriction:m,useDuration:h};return g}(ed,ep,ef,eh,j,.68),eg=function(e,t,n,r,i){let{reachedAny:o,removeOffset:u,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>d(e)-d(t))[0]}function l(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let o=i.filter(e=>f(e)===r);return o.length?c(o):h(i)-n}return{byDistance:function(n,r){let c=i.get()+n,{index:a,distance:f}=function(n){let r=e?u(n):s(n),{index:i}=t.map((e,t)=>({diff:l(e-r,0),index:t})).sort((e,t)=>d(e.diff)-d(t.diff))[0];return{index:i,distance:r}}(c),p=!e&&o(c);if(!r||p)return{index:a,distance:n};let h=n+l(t[a]-f,0);return{index:a,distance:h}},byIndex:function(e,n){let r=l(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:l}}(I,ei,et,eo,eh),ey=function(e,t,n,r,i,o,u){function s(i){let s=i.distance,c=i.index!==t.get();o.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),u.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}}}(el,eu,es,em,eg,eh,u),ev=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eo),eS=S(),e_=function(e,t,n,r){let i,o={},u=null,s=null,c=!1;return{init:function(){i=new IntersectionObserver(e=>{c||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),u=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),c=!0},get:function(e=!0){if(e&&u)return u;if(!e&&s)return s;let t=y(o).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(u=t),e||(s=t),t}}}(t,n,u,A),{slideRegistry:eb}=function(e,t,n,r,i,o){let{groupSlides:u}=i,{min:s,max:c}=r;return{slideRegistry:function(){let r=u(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?r.slice(s,c).map((e,t,n)=>{let r=t===m(n);return t?r?g(m(o)-h(n)[0]+1,h(n)[0]):e:g(h(n[0])+1)}):r}()}}(X,D,ei,er,W,ec),ew=function(e,t,n,r,i,o,u,c){let a={passive:!0,capture:!0},d=0;function f(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(p){c&&(o.add(document,"keydown",f,!1),t.forEach((t,f)=>{o.add(t,"focus",t=>{(l(c)||c(p,t))&&function(t){if(new Date().getTime()-d>10)return;u.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));s(o)&&(i.useDuration(0),r.index(o,0),u.emit("slideFocus"))}(f)},a)}))}}}(e,n,eb,ey,em,eS,u,P),ex={ownerDocument:r,ownerWindow:i,eventHandler:u,containerRect:V,slideRects:q,animation:el,axis:B,dragHandler:function(e,t,n,r,i,o,u,s,c,a,p,h,m,g,y,b,w,x,F){let{cross:O,direction:E}=e,R=["INPUT","SELECT","TEXTAREA"],I={passive:!1},j=S(),k=S(),z=_(50,225).constrain(g.measure(20)),A={mouse:300,touch:400},C={mouse:500,touch:600},T=y?43:25,D=!1,L=0,N=0,M=!1,P=!1,H=!1,V=!1;function q(e){if(!v(e,r)&&e.touches.length>=2)return B(e);let t=o.readPoint(e),n=o.readPoint(e,O),u=d(t-L),c=d(n-N);if(!P&&!V&&(!e.cancelable||!(P=u>c)))return B(e);let l=o.pointerMove(e);u>b&&(H=!0),a.useFriction(.3).useDuration(.75),s.start(),i.add(E(l)),e.preventDefault()}function B(e){let t=p.byDistance(0,!1).index!==h.get(),n=o.pointerUp(e)*(y?C:A)[V?"mouse":"touch"],r=function(e,t){let n=h.add(-1*f(e)),r=p.byDistance(e,!y).distance;return y||d(e)e.preventDefault(),I).add(t,"touchmove",()=>void 0,I).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",B).add(t,"contextmenu",B).add(t,"click",U,!0);function s(s){(l(F)||F(e,s))&&function(e){let s=v(e,r);if((V=s,H=y&&s&&!e.buttons&&D,D=d(i.get()-u.get())>=2,!s||0===e.button)&&!function(e){let t=e.nodeName||"";return R.includes(t)}(e.target)){M=!0,o.pointerDown(e),a.useFriction(0).useDuration(0),i.set(u);let r=V?n:t;k.add(r,"touchmove",q,I).add(r,"touchend",B).add(r,"mousemove",q,I).add(r,"mouseup",B),L=o.readPoint(e),N=o.readPoint(e,O),m.emit("pointerDown")}}(s)}},destroy:function(){j.clear(),k.clear()},pointerDown:function(){return M}}}(B,e,r,i,eh,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),u=i(e)-i(n)>170;return r=e,u&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),u=i(e)-i(n),s=i(e)-i(r)>170,c=t/u;return u&&!s&&d(c)>.1?c:0},readPoint:o}}(B,i),ed,el,ey,em,eg,eu,u,$,k,z,T,0,M),eventStore:eS,percentOfView:$,index:eu,indexPrevious:es,limit:eo,location:ed,offsetLocation:ep,previousLocation:ef,options:o,resizeHandler:function(e,t,n,r,i,o,u){let s,c,a=[e].concat(r),f=[],p=!1;function h(e){return i.measureSize(u.measure(e))}return{init:function(i){o&&(c=h(e),f=r.map(h),s=new ResizeObserver(n=>{(l(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===e,u=r.indexOf(o.target),s=n?c:f[u];if(d(h(n?e:r[u])-s)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{a.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,u,i,n,B,L,H),scrollBody:em,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),u=i.measure(50),s=_(.1,.99),c=!1;function l(){return!c&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:l,constrain:function(i){if(!l())return;let c=e.reachedMin(t.get())?"min":"max",a=d(e[c]-t.get()),f=n.get()-t.get(),p=s.constrain(a/u);n.subtract(f*p),!i&&d(f)e.add(u))}}}(et,eo,ep,[ed,ep,ef,eh]),scrollProgress:ev,scrollSnapList:ei.map(ev.get),scrollSnaps:ei,scrollTarget:eg,scrollTo:ey,slideLooper:function(e,t,n,r,i,o,u,s,c){let l=p(i),a=p(i).reverse(),d=m(h(a,u[0]),n,!1).concat(m(h(l,t-u[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function h(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(i,u,l){let a=o.map((e,n)=>({start:e-r[n]+.5+u,end:e+t-.5+u}));return i.map(t=>{let r=l?0:-n,i=l?n:0,o=a[t][l?"end":"start"];return{index:t,loopPoint:o,slideLocation:b(-1),translate:w(e,c[t]),target:()=>s.get()>o?r:i}})}return{canLoop:function(){return d.every(({index:e})=>.1>=f(l.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:d}}(B,U,et,Q,Y,Z,ei,ep,n),slideFocus:ew,slidesHandler:(x=!1,{init:function(e){N&&(a=new MutationObserver(t=>{!x&&(l(N)||N(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),u.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){a&&a.disconnect(),x=!0}}),slidesInView:e_,slideIndexes:ec,slideRegistry:eb,slidesToScroll:W,target:eh,translate:w(B,t)};return ex}(e,o,u,E,R,n,z);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(H),T([P,...V.map(({options:e})=>e)]).forEach(e=>k.add(e,"change",B)),H.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(X),r.eventHandler.init(X),r.resizeHandler.init(X),r.slidesHandler.init(X),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&u.length&&r.dragHandler.init(X),i=j.init(X,V))}function B(e,t){let n=J();U(),q(A({startIndex:n},e),t),z.emit("reInit")}function U(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),j.destroy(),k.clear()}function $(e,t,n){H.active&&!M&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:H.duration),r.scrollTo.index(e,n||0))}function J(){return r.index.get()}let X={canScrollNext:function(){return r.index.add(1).get()!==J()},canScrollPrev:function(){return r.index.add(-1).get()!==J()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){M||(M=!0,k.clear(),U(),z.emit("destroy"),z.clear())},off:L,on:D,emit:N,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:B,rootNode:function(){return e},scrollNext:function(e){$(r.index.add(1).get(),e,-1)},scrollPrev:function(e){$(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.offsetLocation.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:$,selectedScrollSnap:J,slideNodes:function(){return u},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return q(t,n),setTimeout(()=>z.emit("init"),0),X}function O(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[s,c]=(0,r.useState)(),[l,a]=(0,r.useState)(),d=(0,r.useCallback)(()=>{s&&s.reInit(n.current,i.current)},[s]);return(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,d())},[e,d]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=u(e),r=u(t);return n.every((e,t)=>o(e,r[t]))}(i.current,t)&&(i.current=t,d())},[t,d]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&l){F.globalOptions=O.globalOptions;let e=F(l,n.current,i.current);return c(e),()=>e.destroy()}c(void 0)},[l,c]),[a,s]}F.globalOptions=void 0,O.globalOptions=void 0},5805:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function i(e={}){let t,n,o,u,s=null,c=0,l=!1,a=!1,d=!1,f=!1;function p(){if(!o){if(g()){d=!0;return}l||n.emit("autoplay:play");let{ownerWindow:e}=n.internalEngine();e.clearTimeout(c),c=e.setTimeout(b,u[n.selectedScrollSnap()]),s=new Date().getTime(),n.emit("autoplay:timerset"),l=!0}}function h(){if(!o){l&&n.emit("autoplay:stop");let{ownerWindow:e}=n.internalEngine();e.clearTimeout(c),c=0,s=null,n.emit("autoplay:timerstopped"),l=!1}}function m(){if(g())return d=l,h();d&&p()}function g(){let{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function y(){a||h()}function v(){a||p()}function S(){a=!0,h()}function _(){a=!1,p()}function b(){let{index:e}=n.internalEngine(),r=e.clone().add(1).get(),i=n.scrollSnapList().length-1,o=t.stopOnLastSnap&&r===i;if(n.canScrollNext()?n.scrollNext(f):n.scrollTo(0,f),n.emit("autoplay:select"),o)return h();p()}return{name:"autoplay",options:e,init:function(s,c){n=s;let{mergeOptions:l,optionsAtMedia:a}=c,d=l(r,i.globalOptions);if(t=a(l(d,e)),n.scrollSnapList().length<=1)return;f=t.jump,o=!1,u=function(e,t){let n=e.scrollSnapList();return"number"==typeof t?n.map(()=>t):t(n,e)}(n,t.delay);let{eventStore:g,ownerDocument:b}=n.internalEngine(),w=!!n.internalEngine().options.watchDrag,x=function(e,t){let n=e.rootNode();return t&&t(n)||n}(n,t.rootNode);g.add(b,"visibilitychange",m),w&&n.on("pointerDown",y),w&&!t.stopOnInteraction&&n.on("pointerUp",v),t.stopOnMouseEnter&&g.add(x,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&g.add(x,"mouseleave",_),t.stopOnFocusIn&&n.on("slideFocusStart",h),t.stopOnFocusIn&&!t.stopOnInteraction&&g.add(n.containerNode(),"focusout",p),t.playOnInit&&p()},destroy:function(){n.off("pointerDown",y).off("pointerUp",v).off("slideFocusStart",h),h(),o=!0,l=!1},play:function(e){void 0!==e&&(f=e),p()},stop:function(){l&&h()},reset:function(){l&&p()},isPlaying:function(){return l},timeUntilNext:function(){return s?u[n.selectedScrollSnap()]-(new Date().getTime()-s):null}}}i.globalOptions=void 0},8375:()=>{},9137:(e,t,n)=>{"use strict";e.exports=n(2269).style}}]);