(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{32660:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(79205).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},76858:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(79205).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},71799:function(t,e,n){"use strict";n.d(e,{$:function(){return i}});var r=n(2265);function i(t){let{speed:e=.5,direction:n="left",pauseOnHover:i,children:u}=t,c=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(t,["speed","direction","pauseOnHover","children"]),[a,l]=(0,r.useState)(1),[s,f]=o(),[d,p]=o();return(0,r.useEffect)(()=>{f&&p&&l(Math.ceil(f/p))},[f,p]),(0,r.createElement)("div",Object.assign({ref:s,"data-marqy":"","data-direction":n,"data-pause-on-hover":i?"":null},c),(0,r.createElement)("div",{"data-marqy-inner":""},[,,].fill(0).map((t,n)=>(0,r.createElement)("div",{key:n,"data-marqy-content":"",style:{animationDuration:(null!=p?p:0)*a/(100*e)+"s"}},Array(a).fill(0).map((t,e)=>{let i=0===n&&0===e;return(0,r.createElement)("div",{key:e,ref:i?d:null,"aria-hidden":!i||null,"data-marqy-item":""},u)})))))}function o(){let[t,e]=(0,r.useState)(0),[n,i]=(0,r.useState)(null),o=(0,r.useRef)(null),u=(0,r.useCallback)(()=>{var t;return null==(t=o.current)?void 0:t.disconnect()},[]),c=(0,r.useCallback)(()=>{o.current=new ResizeObserver(([t])=>e(t.contentRect.width)),n&&o.current.observe(n)},[n]);return(0,r.useEffect)(()=>(c(),()=>u()),[u,c]),[i,t]}},36760:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=o(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=o(e,n));return e}(n)))}return t}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0!==(n=(function(){return i}).apply(e,[]))&&(t.exports=n)}()},70650:function(t,e,n){"use strict";n.d(e,{Ee:function(){return x},NY:function(){return S},fC:function(){return b}});var r=n(2265),i=n(73966),o=n(26606),u=n(61188),c=n(66840),a=n(57437),l="Avatar",[s,f]=(0,i.b)(l),[d,p]=s(l),m=r.forwardRef((t,e)=>{let{__scopeAvatar:n,...i}=t,[o,u]=r.useState("idle");return(0,a.jsx)(d,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:u,children:(0,a.jsx)(c.WV.span,{...i,ref:e})})});m.displayName=l;var g="AvatarImage",y=r.forwardRef((t,e)=>{let{__scopeAvatar:n,src:i,onLoadingStatusChange:l=()=>{},...s}=t,f=p(g,n),d=function(t,e){let[n,i]=r.useState("idle");return(0,u.b)(()=>{if(!t){i("error");return}let n=!0,r=new window.Image,o=t=>()=>{n&&i(t)};return i("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=t,e&&(r.referrerPolicy=e),()=>{n=!1}},[t,e]),n}(i,s.referrerPolicy),m=(0,o.W)(t=>{l(t),f.onImageLoadingStatusChange(t)});return(0,u.b)(()=>{"idle"!==d&&m(d)},[d,m]),"loaded"===d?(0,a.jsx)(c.WV.img,{...s,ref:e,src:i}):null});y.displayName=g;var h="AvatarFallback",v=r.forwardRef((t,e)=>{let{__scopeAvatar:n,delayMs:i,...o}=t,u=p(h,n),[l,s]=r.useState(void 0===i);return r.useEffect(()=>{if(void 0!==i){let t=window.setTimeout(()=>s(!0),i);return()=>window.clearTimeout(t)}},[i]),l&&"loaded"!==u.imageLoadingStatus?(0,a.jsx)(c.WV.span,{...o,ref:e}):null});v.displayName=h;var b=m,x=y,S=v},61984:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});let r={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function i(t={}){let e,n,o;let u=!1,c=!0,a=!1,l=0;function s(){if(o||!c)return;u||n.emit("autoplay:play");let{ownerWindow:t}=n.internalEngine();t.clearInterval(l),l=t.setInterval(g,e.delay),u=!0}function f(){if(o)return;u&&n.emit("autoplay:stop");let{ownerWindow:t}=n.internalEngine();t.clearInterval(l),l=0,u=!1}function d(){if(p())return c=u,f();c&&s()}function p(){let{ownerDocument:t}=n.internalEngine();return"hidden"===t.visibilityState}function m(t){void 0!==t&&(a=t),c=!0,s()}function g(){let{index:t}=n.internalEngine(),r=t.clone().add(1).get(),i=n.scrollSnapList().length-1;e.stopOnLastSnap&&r===i&&f(),n.canScrollNext()?n.scrollNext(a):n.scrollTo(0,a)}return{name:"autoplay",options:t,init:function(u,l){n=u;let{mergeOptions:m,optionsAtMedia:g}=l,y=m(r,i.globalOptions);if(e=g(m(y,t)),n.scrollSnapList().length<=1)return;a=e.jump,o=!1;let{eventStore:h,ownerDocument:v}=n.internalEngine(),b=n.rootNode(),x=e.rootNode&&e.rootNode(b)||b,S=n.containerNode();n.on("pointerDown",f),e.stopOnInteraction||n.on("pointerUp",s),e.stopOnMouseEnter&&(h.add(x,"mouseenter",()=>{c=!1,f()}),e.stopOnInteraction||h.add(x,"mouseleave",()=>{c=!0,s()})),e.stopOnFocusIn&&(n.on("slideFocusStart",f),e.stopOnInteraction||h.add(S,"focusout",s)),h.add(v,"visibilitychange",d),e.playOnInit&&!p()&&s()},destroy:function(){n.off("pointerDown",f).off("pointerUp",s).off("slideFocusStart",f),f(),o=!0,u=!1},play:m,stop:function(){u&&f()},reset:function(){u&&m()},isPlaying:function(){return u}}}i.globalOptions=void 0},9467:function(t,e,n){"use strict";n.d(e,{Z:function(){return I}});var r=n(2265);function i(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function o(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&n.every(n=>{let r=t[n],u=e[n];return"function"==typeof r?`${r}`==`${u}`:i(r)&&i(u)?o(r,u):r===u})}function u(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function c(t){return"number"==typeof t}function a(t){return"string"==typeof t}function l(t){return"boolean"==typeof t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return Math.abs(t)}function d(t){return Math.sign(t)}function p(t){return h(t).map(Number)}function m(t){return t[g(t)]}function g(t){return Math.max(0,t.length-1)}function y(t,e=0){return Array.from(Array(t),(t,n)=>e+n)}function h(t){return Object.keys(t)}function v(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function b(){let t=[],e={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)),t.push(u),e},clear:function(){t=t.filter(t=>t())}};return e}function x(t=0,e=0){let n=f(t-e);function r(n){return n<t||n>e}return{length:n,max:e,min:t,constrain:function(n){return r(n)?n<t?t:e:n},reachedAny:r,reachedMax:function(t){return t>e},reachedMin:function(e){return e<t},removeOffset:function(t){return n?t-n*Math.ceil((t-e)/n):t}}}function S(t){let e=t;function n(t){return c(t)?t:t.get()}return{get:function(){return e},set:function(t){e=n(t)},add:function(t){e+=n(t)},subtract:function(t){e-=n(t)}}}function w(t,e){let n="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},r=e.style,i=!1;return{clear:function(){i||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){i||(r.transform=n(t.direction(e)))},toggleActive:function(t){i=!t}}}let O={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function E(t,e,n){let r,i,o,u,I;let k=t.ownerDocument,L=k.defaultView,A=function(t){function e(t,e){return function t(e,n){return[e,n].reduce((e,n)=>(h(n).forEach(r=>{let i=e[r],o=n[r],u=s(i)&&s(o);e[r]=u?t(i,o):o}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(n){let r=n.breakpoints||{},i=h(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,n)=>e(t,n),{});return e(n,i)},optionsMediaQueries:function(e){return e.map(t=>h(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(L),D=(I=[],{init:function(t,e){return(I=e.filter(({options:t})=>!1!==A.optionsAtMedia(t).active)).forEach(e=>e.init(t,A)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){I=I.filter(t=>t.destroy())}}),N=b(),j=function(){let t,e={},n={init:function(e){t=e},emit:function(r){return(e[r]||[]).forEach(e=>e(t,r)),n},off:function(t,r){return e[t]=(e[t]||[]).filter(t=>t!==r),n},on:function(t,r){return e[t]=(e[t]||[]).concat([r]),n},clear:function(){e={}}};return n}(),{mergeOptions:F,optionsAtMedia:M,optionsMediaQueries:P}=A,{on:T,off:C,emit:H}=j,R=!1,V=F(O,E.globalOptions),z=F(V),q=[];function $(e,n){!R&&(z=M(V=F(V,e)),q=n||q,function(){let{container:e,slides:n}=z;o=(a(e)?t.querySelector(e):e)||t.children[0];let r=a(n)?o.querySelectorAll(n):n;u=[].slice.call(r||o.children)}(),r=function e(n){let r=function(t,e,n,r,i,o,u){let s,O;let{align:E,axis:I,direction:k,startIndex:L,loop:A,duration:D,dragFree:N,dragThreshold:j,inViewThreshold:F,slidesToScroll:M,skipSnaps:P,containScroll:T,watchResize:C,watchSlides:H,watchDrag:R,watchFocus:V}=o,z={measure:function(t){let{offsetTop:e,offsetLeft:n,offsetWidth:r,offsetHeight:i}=t;return{top:e,right:n+r,bottom:e+i,left:n,width:r,height:i}}},q=z.measure(e),$=n.map(z.measure),B=function(t,e){let n="rtl"===e,r="y"===t,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(t){let{height:e,width:n}=t;return r?e:n},direction:function(t){return t*i}}}(I,k),U=B.measureSize(q),Z={measure:function(t){return t/100*U}},W=function(t,e){let n={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(r,i){return a(t)?n[t](r):t(e,r,i)}}}(E,U),_=!A&&!!T,{slideSizes:J,slideSizesWithGaps:X,startGap:Y,endGap:Q}=function(t,e,n,r,i,o){let{measureSize:u,startEdge:c,endEdge:a}=t,l=n[0]&&i,s=function(){if(!l)return 0;let t=n[0];return f(e[c]-t[c])}(),d=l?parseFloat(o.getComputedStyle(m(r)).getPropertyValue(`margin-${a}`)):0,p=n.map(u),y=n.map((t,e,n)=>{let r=e===g(n);return e?r?p[e]+d:n[e+1][c]-t[c]:p[e]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:y,startGap:s,endGap:d}}(B,q,$,n,A||!!T,i),G=function(t,e,n,r,i,o,u,a,l){let{startEdge:s,endEdge:d,direction:y}=t,h=c(n);return{groupSlides:function(t){return h?p(t).filter(t=>t%n==0).map(e=>t.slice(e,e+n)):t.length?p(t).reduce((n,c,l)=>{let p=m(n)||0,h=c===g(t),v=i[s]-o[p][s],b=i[s]-o[c][d],x=r||0!==p?0:y(u),S=f(b-(!r&&h?y(a):0)-(v+x));return l&&S>e+2&&n.push(c),h&&n.push(t.length),n},[]).map((e,n,r)=>{let i=Math.max(r[n-1]||0);return t.slice(i,e)}):[]}}}(B,U,M,A,q,$,Y,Q,0),{snaps:K,snapsAligned:tt}=function(t,e,n,r,i){let{startEdge:o,endEdge:u}=t,{groupSlides:c}=i,a=c(r).map(t=>m(t)[u]-t[0][o]).map(f).map(e.measure),l=r.map(t=>n[o]-t[o]).map(t=>-f(t)),s=c(l).map(t=>t[0]).map((t,e)=>t+a[e]);return{snaps:l,snapsAligned:s}}(B,W,q,$,G),te=-m(K)+m(X),{snapsContained:tn,scrollContainLimit:tr}=function(t,e,n,r,i){let o=x(-e+t,0),u=n.map((t,e)=>{let{min:r,max:i}=o,u=o.constrain(t),c=e===g(n);return e?c||1>f(r-u)?r:1>f(i-u)?i:u:i}).map(t=>parseFloat(t.toFixed(3))),c=function(){let t=u[0],e=m(u);return x(u.lastIndexOf(t),u.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[o.max];if("keepSnaps"===r)return u;let{min:n,max:i}=c;return u.slice(n,i)}(),scrollContainLimit:c}}(U,te,tt,T,0),ti=_?tn:tt,{limit:to}=function(t,e,n){let r=e[0];return{limit:x(n?r-t:m(e),r)}}(te,ti,A),tu=function t(e,n,r){let{constrain:i}=x(0,e),o=e+1,u=c(n);function c(t){return r?f((o+t)%o):i(t)}function a(){return t(e,u,r)}let l={get:function(){return u},set:function(t){return u=c(t),l},add:function(t){return a().set(u+t)},clone:a};return l}(g(ti),L,A),tc=tu.clone(),ta=p(n),tl=({dragHandler:t,scrollBody:e,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(t.pointerDown()),e.seek(i)},ts=({scrollBody:t,translate:e,location:n,offsetLocation:r,scrollLooper:i,slideLooper:o,dragHandler:u,animation:c,eventHandler:a,scrollBounds:l,options:{loop:s}},f)=>{let d=t.settled(),p=!l.shouldConstrain(),m=s?d:d&&p;m&&!u.pointerDown()&&(c.stop(),a.emit("settle")),m||a.emit("scroll");let g=n.get()*f+tm.get()*(1-f);r.set(g),s&&(i.loop(t.direction()),o.loop()),e.to(r.get())},tf=function(t,e,n,r){let i=b(),o=1e3/60,u=null,c=0,a=0;function l(t){if(!a)return;u||(u=t);let i=t-u;for(u=t,c+=i;c>=o;)n(o),c-=o;r(c/o),a&&e.requestAnimationFrame(l)}function s(){e.cancelAnimationFrame(a),u=null,c=0,a=0}return{init:function(){i.add(t,"visibilitychange",()=>{t.hidden&&(u=null,c=0)})},destroy:function(){s(),i.clear()},start:function(){a||(a=e.requestAnimationFrame(l))},stop:s,update:()=>n(o),render:r}}(r,i,t=>tl(tI,t),t=>ts(tI,t)),td=ti[tu.get()],tp=S(td),tm=S(td),tg=S(td),ty=S(td),th=function(t,e,n,r,i,o){let u=0,c=0,a=i,l=.68,s=t.get(),p=0;function m(t){return a=t,y}function g(t){return l=t,y}let y={direction:function(){return c},duration:function(){return a},velocity:function(){return u},seek:function(e){let i=e/1e3,o=a*i,f=r.get()-t.get(),m=0;return a?(n.set(t),u+=f/o,u*=l,s+=u,t.add(u*i),m=s-p):(u=0,n.set(r),t.set(r),m=f),c=d(m),p=s,y},settled:function(){return .001>f(r.get()-e.get())},useBaseFriction:function(){return g(.68)},useBaseDuration:function(){return m(i)},useFriction:g,useDuration:m};return y}(tp,tg,tm,ty,D,0),tv=function(t,e,n,r,i){let{reachedAny:o,removeOffset:u,constrain:c}=r;function a(t){return t.concat().sort((t,e)=>f(t)-f(e))[0]}function l(e,r){let i=[e,e+n,e-n];if(!t)return e;if(!r)return a(i);let o=i.filter(t=>d(t)===r);return o.length?a(o):m(i)-n}return{byDistance:function(n,r){let a=i.get()+n,{index:s,distance:d}=function(n){let r=t?u(n):c(n),{index:i}=e.map((t,e)=>({diff:l(t-r,0),index:e})).sort((t,e)=>f(t.diff)-f(e.diff))[0];return{index:i,distance:r}}(a),p=!t&&o(a);if(!r||p)return{index:s,distance:n};let m=n+l(e[s]-d,0);return{index:s,distance:m}},byIndex:function(t,n){let r=l(e[t]-i.get(),n);return{index:t,distance:r}},shortcut:l}}(A,ti,te,to,ty),tb=function(t,e,n,r,i,o,u){function c(i){let c=i.distance,a=i.index!==e.get();o.add(c),c&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),a&&(n.set(e.get()),e.set(i.index),u.emit("select"))}return{distance:function(t,e){c(i.byDistance(t,e))},index:function(t,n){let r=e.clone().set(t);c(i.byIndex(r.get(),n))}}}(tf,tu,tc,th,tv,ty,u),tx=function(t){let{max:e,length:n}=t;return{get:function(t){return n?-((t-e)/n):0}}}(to),tS=b(),tw=function(t,e,n,r){let i;let o={},u=null,c=null,a=!1;return{init:function(){i=new IntersectionObserver(t=>{a||(t.forEach(t=>{o[e.indexOf(t.target)]=t}),u=null,c=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>i.observe(t))},destroy:function(){i&&i.disconnect(),a=!0},get:function(t=!0){if(t&&u)return u;if(!t&&c)return c;let e=h(o).reduce((e,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(t&&i||!t&&!i)&&e.push(r),e},[]);return t&&(u=e),t||(c=e),e}}}(e,n,u,F),{slideRegistry:tO}=function(t,e,n,r,i,o){let{groupSlides:u}=i,{min:c,max:a}=r;return{slideRegistry:function(){let r=u(o);return 1===n.length?[o]:t&&"keepSnaps"!==e?r.slice(c,a).map((t,e,n)=>{let r=e===g(n);return e?r?y(g(o)-m(n)[0]+1,m(n)[0]):t:y(m(n[0])+1)}):r}()}}(_,T,ti,tr,G,ta),tE=function(t,e,n,r,i,o,u,a){let s={passive:!0,capture:!0},f=0;function d(t){"Tab"===t.code&&(f=new Date().getTime())}return{init:function(p){a&&(o.add(document,"keydown",d,!1),e.forEach((e,d)=>{o.add(e,"focus",e=>{(l(a)||a(p,e))&&function(e){if(new Date().getTime()-f>10)return;u.emit("slideFocusStart"),t.scrollLeft=0;let o=n.findIndex(t=>t.includes(e));c(o)&&(i.useDuration(0),r.index(o,0),u.emit("slideFocus"))}(d)},s)}))}}}(t,n,tO,tb,th,tS,u,V),tI={ownerDocument:r,ownerWindow:i,eventHandler:u,containerRect:q,slideRects:$,animation:tf,axis:B,dragHandler:function(t,e,n,r,i,o,u,c,a,s,p,m,g,y,h,S,w,O,E){let{cross:I,direction:k}=t,L=["INPUT","SELECT","TEXTAREA"],A={passive:!1},D=b(),N=b(),j=x(50,225).constrain(y.measure(20)),F={mouse:300,touch:400},M={mouse:500,touch:600},P=h?43:25,T=!1,C=0,H=0,R=!1,V=!1,z=!1,q=!1;function $(t){if(!v(t,r)&&t.touches.length>=2)return B(t);let e=o.readPoint(t),n=o.readPoint(t,I),u=f(e-C),a=f(n-H);if(!V&&!q&&(!t.cancelable||!(V=u>a)))return B(t);let l=o.pointerMove(t);u>S&&(z=!0),s.useFriction(.3).useDuration(.75),c.start(),i.add(k(l)),t.preventDefault()}function B(t){let e=p.byDistance(0,!1).index!==m.get(),n=o.pointerUp(t)*(h?M:F)[q?"mouse":"touch"],r=function(t,e){let n=m.add(-1*d(t)),r=p.byDistance(t,!h).distance;return h||f(t)<j?r:w&&e?.5*r:p.byIndex(n.get(),0).distance}(k(n),e),i=function(t,e){var n,r;if(0===t||0===e||f(t)<=f(e))return 0;let i=(n=f(t),r=f(e),f(n-r));return f(i/t)}(n,r);V=!1,R=!1,N.clear(),s.useDuration(P-10*i).useFriction(.68+i/50),a.distance(r,!h),q=!1,g.emit("pointerUp")}function U(t){z&&(t.stopPropagation(),t.preventDefault(),z=!1)}return{init:function(t){E&&D.add(e,"dragstart",t=>t.preventDefault(),A).add(e,"touchmove",()=>void 0,A).add(e,"touchend",()=>void 0).add(e,"touchstart",c).add(e,"mousedown",c).add(e,"touchcancel",B).add(e,"contextmenu",B).add(e,"click",U,!0);function c(c){(l(E)||E(t,c))&&function(t){let c=v(t,r);q=c,z=h&&c&&!t.buttons&&T,T=f(i.get()-u.get())>=2,c&&0!==t.button||function(t){let e=t.nodeName||"";return L.includes(e)}(t.target)||(R=!0,o.pointerDown(t),s.useFriction(0).useDuration(0),i.set(u),function(){let t=q?n:e;N.add(t,"touchmove",$,A).add(t,"touchend",B).add(t,"mousemove",$,A).add(t,"mouseup",B)}(),C=o.readPoint(t),H=o.readPoint(t,I),g.emit("pointerDown"))}(c)}},destroy:function(){D.clear(),N.clear()},pointerDown:function(){return R}}}(B,t,r,i,ty,function(t,e){let n,r;function i(t){return t.timeStamp}function o(n,r){let i=r||t.scroll,o=`client${"x"===i?"X":"Y"}`;return(v(n,e)?n:n.touches[0])[o]}return{pointerDown:function(t){return n=t,r=t,o(t)},pointerMove:function(t){let e=o(t)-o(r),u=i(t)-i(n)>170;return r=t,u&&(n=t),e},pointerUp:function(t){if(!n||!r)return 0;let e=o(r)-o(n),u=i(t)-i(n),c=i(t)-i(r)>170,a=e/u;return u&&!c&&f(a)>.1?a:0},readPoint:o}}(B,i),tp,tf,tb,th,tv,tu,u,Z,N,j,P,0,R),eventStore:tS,percentOfView:Z,index:tu,indexPrevious:tc,limit:to,location:tp,offsetLocation:tg,previousLocation:tm,options:o,resizeHandler:function(t,e,n,r,i,o,u){let c,a;let s=[t].concat(r),d=[],p=!1;function m(t){return i.measureSize(u.measure(t))}return{init:function(i){o&&(a=m(t),d=r.map(m),c=new ResizeObserver(n=>{(l(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===t,u=r.indexOf(o.target),c=n?a:d[u];if(f(m(n?t:r[u])-c)>=.5){i.reInit(),e.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(t=>c.observe(t))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(e,u,i,n,B,C,z),scrollBody:th,scrollBounds:function(t,e,n,r,i){let o=i.measure(10),u=i.measure(50),c=x(.1,.99),a=!1;function l(){return!!(!a&&t.reachedAny(n.get())&&t.reachedAny(e.get()))}return{shouldConstrain:l,constrain:function(i){if(!l())return;let a=t.reachedMin(e.get())?"min":"max",s=f(t[a]-e.get()),d=n.get()-e.get(),p=c.constrain(s/u);n.subtract(d*p),!i&&f(d)<o&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(t){a=!t}}}(to,tg,ty,th,Z),scrollLooper:function(t,e,n,r){let{reachedMin:i,reachedMax:o}=x(e.min+.1,e.max+.1);return{loop:function(e){if(!(1===e?o(n.get()):-1===e&&i(n.get())))return;let u=-1*e*t;r.forEach(t=>t.add(u))}}}(te,to,tg,[tp,tg,tm,ty]),scrollProgress:tx,scrollSnapList:ti.map(tx.get),scrollSnaps:ti,scrollTarget:tv,scrollTo:tb,slideLooper:function(t,e,n,r,i,o,u,c,a){let l=p(i),s=m(d(p(i).reverse(),u[0]),n,!1).concat(m(d(l,e-u[0]-1),-n,!0));function f(t,e){return t.reduce((t,e)=>t-i[e],e)}function d(t,e){return t.reduce((t,n)=>f(t,e)>0?t.concat([n]):t,[])}function m(i,u,l){let s=o.map((t,n)=>({start:t-r[n]+.5+u,end:t+e-.5+u}));return i.map(e=>{let r=l?0:-n,i=l?n:0,o=s[e][l?"end":"start"];return{index:e,loopPoint:o,slideLocation:S(-1),translate:w(t,a[e]),target:()=>c.get()>o?r:i}})}return{canLoop:function(){return s.every(({index:t})=>.1>=f(l.filter(e=>e!==t),e))},clear:function(){s.forEach(t=>t.translate.clear())},loop:function(){s.forEach(t=>{let{target:e,translate:n,slideLocation:r}=t,i=e();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:s}}(B,U,te,J,X,K,ti,tg,n),slideFocus:tE,slidesHandler:(O=!1,{init:function(t){H&&(s=new MutationObserver(e=>{!O&&(l(H)||H(t,e))&&function(e){for(let n of e)if("childList"===n.type){t.reInit(),u.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){s&&s.disconnect(),O=!0}}),slidesInView:tw,slideIndexes:ta,slideRegistry:tO,slidesToScroll:G,target:ty,translate:w(B,e)};return tI}(t,o,u,k,L,n,j);return n.loop&&!r.slideLooper.canLoop()?e(Object.assign({},n,{loop:!1})):r}(z),P([V,...q.map(({options:t})=>t)]).forEach(t=>N.add(t,"change",B)),z.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(_),r.eventHandler.init(_),r.resizeHandler.init(_),r.slidesHandler.init(_),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&u.length&&r.dragHandler.init(_),i=D.init(_,q)))}function B(t,e){let n=W();U(),$(F({startIndex:n},t),e),j.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(),D.destroy(),N.clear()}function Z(t,e,n){z.active&&!R&&(r.scrollBody.useBaseFriction().useDuration(!0===e?0:z.duration),r.scrollTo.index(t,n||0))}function W(){return r.index.get()}let _={canScrollNext:function(){return r.index.add(1).get()!==W()},canScrollPrev:function(){return r.index.add(-1).get()!==W()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){R||(R=!0,N.clear(),U(),j.emit("destroy"),j.clear())},off:C,on:T,emit:H,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:B,rootNode:function(){return t},scrollNext:function(t){Z(r.index.add(1).get(),t,-1)},scrollPrev:function(t){Z(r.index.add(-1).get(),t,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:Z,selectedScrollSnap:W,slideNodes:function(){return u},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return $(e,n),setTimeout(()=>j.emit("init"),0),_}function I(t={},e=[]){let n=(0,r.useRef)(t),i=(0,r.useRef)(e),[c,a]=(0,r.useState)(),[l,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,i.current)},[c]);return(0,r.useEffect)(()=>{o(n.current,t)||(n.current=t,f())},[t,f]),(0,r.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let n=u(t),r=u(e);return n.every((t,e)=>o(t,r[e]))}(i.current,e)&&(i.current=e,f())},[e,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&l){E.globalOptions=I.globalOptions;let t=E(l,n.current,i.current);return a(t),()=>t.destroy()}a(void 0)},[l,a]),[s,c]}E.globalOptions=void 0,I.globalOptions=void 0}}]);
//# sourceMappingURL=505-2d35a6a3fd62e0c5.js.map