(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3082],{10130:function(e,t,n){"use strict";e.exports=n(1277)},24158:function(e,t,n){"use strict";e.exports=n(32261)},68008:function(e,t,n){"use strict";e.exports=n(84104)},64873:function(e,t,n){"use strict";e.exports=n(3022)},41315:function(e,t,n){"use strict";e.exports=n(19032)},81247:function(e,t,n){"use strict";e.exports=n(65609)},63082:function(e,t,n){"use strict";var r=n(67294),i=n(10434),a=n(81247),o=n(76008),s=n(38416),u=n(70215),l=n(68458),c=n(73935);function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(r),h=d(i),p=d(s),v=d(u),g=d(l),m=d(c);let y=e=>{let{currentTranslate:[t,n],imageRef:r,pinchDelta:i,scale:a,touchOrigin:[o,s]}=e;if(!r?.current)return[0,0];let{height:u,left:l,top:c,width:d}=r.current?.getBoundingClientRect();return[-((o-l-d/2)/a)*i+t,-((s-c-u/2)/a)*i+n]},b=e=>{if(!e.current)return!1;let{bottom:t,left:n,right:r,top:i}=e.current?.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return n>.5*o||i>.5*a||r<.5*o||t<.5*a},w=["style"];function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){p.default(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let x={pinching:!1,scale:1,translateX:0,translateY:0},O=e=>{let{imgProps:{style:t},inline:n,isCurrentImage:i,pagerHeight:s,pagerIsDragging:u,setDisableDrag:l,singleClickToZoom:c}=e,d=v.default(e.imgProps,w),[p,g]=r.useState(!1),m=r.useRef(null),[{scale:S,translateX:O,translateY:E},C]=a.useSpring(()=>_(_({},x),{},{onChange:(e,t)=>{(e.value.scale<1||!e.value.pinching)&&t.start(x),e.value.scale>1&&b(m)&&t.start(x)},onRest:(e,t)=>{1===e.value.scale&&(t.start(x),l(!1))}}));return r.useEffect(()=>{i||1===S.get()||C.start(x)},[i,S,C]),o.useGesture({onDrag:e=>{let{cancel:t,first:n,memo:r={initialTranslateX:0,initialTranslateY:0},movement:[i,a],pinching:o,tap:s,touches:l}=e;if(!(u||1===S.get()||s||(i&&a&&!p&&g(!0),l>1||o||1>=S.get())))return S.get()>1&&b(m)?void t():n?{initialTranslateX:O.get(),initialTranslateY:E.get()}:(C.start({translateX:r.initialTranslateX+i,translateY:r.initialTranslateY+a}),r)},onDragEnd:e=>{let{memo:t}=e;void 0!==t&&setTimeout(()=>g(!1),100)},onPinch:e=>{let{cancel:t,ctrlKey:n,event:r,last:i,movement:[a],origin:[o,s]}=e;if(u)return;if(l(!0),a&&!p&&g(!0),i)return void t();let c=S.get()+a/(n?1e3:250),d=c-S.get(),f=[o,s];"clientX"in r&&"clientY"in r&&n&&(f=[r.clientX,r.clientY]);let[h,v]=y({currentTranslate:[O.get(),E.get()],imageRef:m,pinchDelta:d,scale:S.get(),touchOrigin:f});c<.5?C.start({pinching:!0,scale:.5}):c>3?C.start({pinching:!0,scale:3}):C.start({pinching:!0,scale:c,translateX:h,translateY:v})},onPinchEnd:()=>{u||(S.get()>1?l(!0):C.start(x),setTimeout(()=>g(!1),100))}},{domTarget:m,drag:{filterTaps:!0},enabled:!n,eventOptions:{passive:!1}}),(e=>{let{enabled:t=!0,latency:n=300,onDoubleClick:i=()=>null,onSingleClick:a=()=>null,ref:o}=e;r.useEffect(()=>{let e=o.current,r,s=0,u=e=>{t&&(s+=1,r=setTimeout(()=>{1===s?a(e):2===s&&i(e),s=0},n))};return e?.addEventListener("click",u),()=>{e?.removeEventListener("click",u),r&&clearTimeout(r)}})})({[c?"onSingleClick":"onDoubleClick"]:e=>{if(u||p)return void e.stopPropagation();if(1!==S.get())return void C.start(x);let{clientX:t,clientY:n}=e,r=S.get()+1,i=r-S.get(),[a,o]=y({currentTranslate:[O.get(),E.get()],imageRef:m,pinchDelta:i,scale:S.get(),touchOrigin:[t,n]});l(!0),C.start({pinching:!0,scale:r,translateX:a,translateY:o})},enabled:!n,latency:c?0:200,ref:m}),f.default.createElement(P,h.default({$inline:n,className:"lightbox-image",draggable:"false",onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},onDragStart:e=>{e.preventDefault()},ref:m,style:_(_({},t),{},{maxHeight:s,transform:a.to([S,O,E],(e,t,n)=>`translate(${t}px, ${n}px) scale(${e})`)},i&&{willChange:"transform"})},d))};O.displayName="Image";let P=g.default(a.animated.img)`
    width: auto;
    height: auto;
    max-width: 100%;
    user-select: none;
    touch-action: ${e=>{let{$inline:t}=e;return t?"pan-y":"none"}};
    ::selection {
        background: none;
    }
`,E=e=>{let{currentIndex:t,images:n,imageStageHeight:i,imageStageWidth:s,inline:u,onClose:l,onNext:c,onPrev:d,renderImageOverlay:p,singleClickToZoom:v}=e,g=r.useRef(!0),[m,y]=r.useState(!1),[b,w]=r.useState("100%"),[S,_]=r.useState(!1);r.useEffect(()=>{let e=u?i:i-50;e!==b&&w(e)},[u,b,i]);let x=f.default.useCallback(function(e){let n=(e-t)*s+(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&arguments.length>2&&void 0!==arguments[2]?arguments[2]:0);return e<t-1||e>t+1?{display:"none",x:n}:{display:"flex",x:n}},[t,s]),[P,E]=a.useSprings(n.length,e=>x(e));r.useEffect(()=>{g.current?g.current=!1:E.start(e=>x(e))},[t,x,E]);let T=o.useGesture({onDrag:e=>{let{active:t,cancel:n,direction:[r],distance:i,down:a,movement:[o],tap:u,touches:l,velocity:f}=e;if(m||0===o||u)return;S||_(!0);let h=Math.abs(r)>.7;if((a&&h&&i>s/3.5||a&&h&&f>2)&&t){let e=r>0?-1:1;return n(),void(e>0?c():e<0&&d())}l>1?n():E.start(e=>x(e,a,o))},onDragEnd:()=>{S&&(E.start(e=>x(e)),setTimeout(()=>_(!1),100))},onWheel:e=>{let{ctrlKey:t,direction:[n,r],velocity:i}=e;if(!t&&!m&&0!==i&&(S||_(!0),i>1.1)){let e=n+r>0?-1:1;e>0?c():e<0&&d()}},onWheelEnd:()=>{E.start(e=>x(e)),setTimeout(()=>_(!1),100)}},{drag:{filterTaps:!0},wheel:{enabled:!u}});return f.default.createElement(C,null,P.map((e,r)=>{let{display:i,x:a}=e;return f.default.createElement(A,h.default({$inline:u},T(),{className:"lightbox-image-pager",key:r,onClick:()=>{if(l)return 1>Math.abs(a.get())&&!m&&l()},role:"presentation",style:{display:i,transform:a.to(e=>`translateX(${e}px)`)}}),f.default.createElement(k,null,f.default.createElement(I,null,f.default.createElement(M,{$inline:u,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},f.default.createElement(O,{imgProps:n[r],inline:u,isCurrentImage:r===t,pagerHeight:b,pagerIsDragging:S,setDisableDrag:y,singleClickToZoom:v}),p()))))}))};E.displayName="ImagePager";let C=g.default.div`
    height: 100%;
    width: 100%;
`,I=g.default.div`
    display: flex;
    justify-content: center;
    align-items: center;
`,k=g.default.div`
    width: 100%;
    display: flex;
    justify-content: center;
`,A=g.default(a.animated.span)`
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 100%;
    width: 100%;
    will-change: transform;
    touch-action: ${e=>{let{$inline:t}=e;return t?"pan-y":"none"}};
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
`,M=g.default.div`
    position: relative;
    touch-action: ${e=>{let{$inline:t}=e;return t?"pan-y":"none"}};
    user-select: none;
    display: flex;
    justify-content: center;
    width: 100%;
`,T=e=>{let{currentIndex:t,images:n}=e;return f.createElement(j,null,n.map((e,n)=>{let{alt:r,src:i}=e;return f.createElement(R,{$isCurrentImage:n===t,alt:r,key:`${r}-${i}-${n}`,src:i})}))},j=g.default.div`
    width: 100%;
    height: inherit;
`,R=g.default.img`
    ${e=>{let{$isCurrentImage:t}=e;return!t&&l.css`
            visibility: hidden;
            display: none;
        `}}
    height:100%;
    width: 100%;
    object-fit: contain;
`,D=e=>{let{className:t="",currentIndex:n,images:i,inline:a,onClose:o,onNext:s,onPrev:u,renderImageOverlay:l,renderNextButton:c,renderPrevButton:d,singleClickToZoom:h}=e,p=n>0,v=n+1<i.length,[{height:g,width:m},y]=(()=>{let e=r.useRef(null),[t,n]=r.useState(null),[i,a]=r.useState({height:e.current?.clientHeight||0,width:e.current?.clientWidth||0}),o=r.useCallback(e=>{null!==e&&(n(e),a({height:e.clientHeight,width:e.clientWidth}))},[]);return r.useEffect(()=>{let e=()=>{if(t){let e=t.clientHeight,n=t.clientWidth;e===i.height&&n===i.width||a({height:e,width:n})}};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[t,i.height,i.width]),[i,o]})();return f.default.createElement(G,{className:t,"data-testid":"lightbox-image-stage",ref:y},d({canPrev:p}),m?f.default.createElement(E,{currentIndex:n,images:i,imageStageHeight:g,imageStageWidth:m,inline:a,onClose:o,onNext:v?s:()=>null,onPrev:p?u:()=>null,renderImageOverlay:l,singleClickToZoom:h}):a?f.default.createElement(T,{currentIndex:n,images:i}):null,c({canNext:v}))},G=g.default.div`
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
`;function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){p.default(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let N=e=>{let{children:t,className:n,isOpen:r,pageTransitionConfig:i,style:o}=e,s={config:$($({},a.config.default),{},{friction:32,mass:1,tension:320}),enter:{opacity:1,transform:"scale(1)"},from:{opacity:0,transform:"scale(0.75)"},leave:{opacity:0,transform:"scale(0.75)"}},u=a.useTransition(r,$($({},s),i));return f.default.createElement(f.default.Fragment,null,u((e,r)=>r&&f.default.createElement(V,{className:"lightbox-container"+(n?` ${n}`:""),"data-testid":"lightbox-container",style:$($({},e),o)},t)))},V=g.default(a.animated.div)`
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 400;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
`;class L extends f.default.Component{constructor(){super(...arguments),p.default(this,"portalContainer",void 0),p.default(this,"body",void 0),p.default(this,"preventWheel",e=>e.preventDefault())}componentDidMount(){this.body=document.body,this.portalContainer=document.createElement("div"),this.portalContainer.setAttribute("class","lightbox-portal"),this.body.appendChild(this.portalContainer),this.forceUpdate(),this.portalContainer.addEventListener("wheel",this.preventWheel)}componentWillUnmount(){this.portalContainer.removeEventListener("wheel",this.preventWheel),this.body.removeChild(this.portalContainer)}render(){if(void 0===this.portalContainer)return null;let{children:e}=this.props;return f.default.createElement(f.default.Fragment,null,m.default.createPortal(e,this.portalContainer))}}e.exports=e=>{let{className:t="",currentIndex:n,images:i=[],inline:a=!1,isOpen:o,onClose:s,onNext:u,onPrev:l,pageTransitionConfig:c=null,renderFooter:d=()=>null,renderHeader:h=()=>null,renderImageOverlay:p=()=>null,renderNextButton:v=()=>null,renderPrevButton:g=()=>null,singleClickToZoom:m=!1,style:y={}}=e;r.useEffect(()=>{let e=e=>{o&&["ArrowUp","ArrowDown","End","Home","PageUp","PageDown"].includes(e.key)&&e.preventDefault()},t=e=>{if(o)switch(e.key){case"ArrowLeft":l();break;case"ArrowRight":u();break;case"Escape":s&&s();break;default:e.preventDefault()}};return document.addEventListener("keyup",t),document.addEventListener("keydown",e),()=>{document.removeEventListener("keyup",t),document.removeEventListener("keydown",e)}});let b=f.default.createElement(D,{currentIndex:n,images:i,inline:a,onClose:s,onNext:u,onPrev:l,renderImageOverlay:p,renderNextButton:v,renderPrevButton:g,singleClickToZoom:m});return a?b:f.default.createElement(L,null,f.default.createElement(N,{className:t,isOpen:o,pageTransitionConfig:c,style:y},h(),b,d()))}},76008:function(e,t,n){"use strict";n.r(t),n.d(t,{addV:function(){return i},rubberbandIfOutOfBounds:function(){return d},subV:function(){return a},useDrag:function(){return eb},useGesture:function(){return eA},useHover:function(){return eE},useMove:function(){return eP},usePinch:function(){return eS},useScroll:function(){return eI},useWheel:function(){return ex}});var r=n(67294);function i(e,t){return e.map(function(e,n){return e+t[n]})}function a(e,t){return e.map(function(e,n){return e-t[n]})}function o(e){return Math.hypot.apply(Math,e)}function s(e,t){void 0===t&&(t=e);var n=o(t),r=0===n?0:1/n,i=t.map(function(e){return r*e});return{distance:o(e),direction:i}}function u(e,t,n){var r=o(t),i=0===r?0:1/r,a=0===n?0:1/n,s=t.map(function(e){return a*e}),u=t.map(function(e){return i*e});return{velocities:s,velocity:a*r,distance:o(e),direction:u}}function l(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function c(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function d(e,t,n,r){return(void 0===r&&(r=.15),0===r)?Math.max(t,Math.min(e,n)):e<t?-c(t-e,n-t,r)+t:e>n?+c(e-n,n-t,r)+n:e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function p(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function v(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function y(){}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?y:1===t.length?t[0]:function(){for(var e,n,r=m(t);!(n=r()).done;)e=n.value.apply(this,arguments)||e;return e}}function w(e,t){if(void 0===e){if(void 0===t)throw Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function S(e,t){return Object.assign({},t,e||{})}function _(e){if("function"!=typeof e)return e;for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}function x(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var a=i[r],o=a[0],s=a[1];switch(typeof s){case"function":n[o]=s.call(n,e[o],o,e);break;case"object":n[o]=x(e[o],s);break;case"boolean":s&&(n[o]=e[o])}}return n}function O(){return"undefined"!=typeof window&&"ontouchstart"in window}function P(e){return"pointerId"in e?null:"touchend"===e.type?e.changedTouches:e.targetTouches}function E(e){return Array.from(P(e)).map(function(e){return e.identifier})}function C(e){return{buttons:"buttons"in e?e.buttons:0,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}var I=function(e){return e};function k(e,t){void 0===t&&(t=I);var n=P(e),r=n?n[0]:e;return t([r.clientX,r.clientY])}function A(e,t,n){void 0===n&&(n=I);var r=Array.from(e.touches).filter(function(e){return t.includes(e.identifier)}),i=r[0],a=r[1];if(!i||!a)throw Error("The event doesn't have two pointers matching the pointerIds");var o=a.clientX-i.clientX,s=a.clientY-i.clientY,u=(a.clientX+i.clientX)/2,l=(a.clientY+i.clientY)/2;return{values:n([Math.hypot(o,s),-(180*Math.atan2(o,s))/Math.PI]),origin:n([u,l])}}function M(e,t){void 0===t&&(t=I);var n=e.deltaX,r=e.deltaY,i=e.deltaMode;return 1===i?(n*=40,r*=40):2===i&&(n*=800,r*=800),t([n,r])}function T(e,t){return void 0===t&&(t=I),t([e.scale,e.rotation])}var j={threshold:function(e){return void 0===e&&(e=0),w(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return w(.15);case!1:return w(0);default:return w(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return(void 0===e&&(e=0),"function"==typeof e)?e:w(e)},transform:!0},R=f({},j,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return R.bounds(e(t))};var t=e,n=t.left,r=t.right,i=t.top,a=t.bottom;return[[void 0===n?-1/0:n,void 0===r?1/0:r],[void 0===i?-1/0:i,void 0===a?1/0:a]]}}),D="undefined"!=typeof window&&window.document&&window.document.createElement,G={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return void 0===e&&(e=D?window:void 0),e}),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=t.capture;return{passive:void 0===n||n,capture:void 0!==r&&r}},transform:!0},F=f({},j,{bounds:function(e,t,n){var r=n.distanceBounds,i=void 0===r?{}:r,a=n.angleBounds,o=void 0===a?{}:a,s=function(e){var t=S(_(i,e),{min:-1/0,max:1/0});return[t.min,t.max]},u=function(e){var t=S(_(o,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof i&&"function"!=typeof o?[s(),u()]:function(e){return[s(e),u(e)]}}}),$=f({},R,{useTouch:function(e){void 0===e&&(e=!1);var t=O(),n="undefined"!=typeof window&&"onpointerdown"in window;return!!e&&!!t||!!t&&!n},experimental_preventWindowScrollY:function(e){return void 0===e&&(e=!1),e},threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,a=n.lockDirection,o=n.axis,s=w(e,i?3:void 0!==a&&a?1:(void 0===o?void 0:o)?1:0);return this.filterTaps=i,s},swipeVelocity:function(e){return void 0===e&&(e=.5),w(e)},swipeDistance:function(e){return void 0===e&&(e=50),w(e)},swipeDuration:function(e){return void 0===e&&(e=250),e},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function N(e){return void 0===e&&(e={}),x(e,G)}function V(e){return void 0===e&&(e={}),x(e,R)}function L(e){return void 0===e&&(e={}),x(e,F)}function z(e){return void 0===e&&(e={}),x(e,$)}function W(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,a=p(e,["domTarget","eventOptions","window","enabled"]),o=N({domTarget:t,eventOptions:n,window:r,enabled:i});return o.move=V(a),o}function q(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,a=p(e,["domTarget","eventOptions","window","enabled"]),o=N({domTarget:t,eventOptions:n,window:r,enabled:i});return o.hover=f({enabled:!0},a),o}function H(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,a=p(e,["domTarget","eventOptions","window","enabled"]),o=N({domTarget:t,eventOptions:n,window:r,enabled:i});return o.drag=z(a),o}function B(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,a=p(e,["domTarget","eventOptions","window","enabled"]),o=N({domTarget:t,eventOptions:n,window:r,enabled:i});return o.pinch=L(a),o}function K(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,a=p(e,["domTarget","eventOptions","window","enabled"]),o=N({domTarget:t,eventOptions:n,window:r,enabled:i});return o.scroll=V(a),o}function Y(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,a=p(e,["domTarget","eventOptions","window","enabled"]),o=N({domTarget:t,eventOptions:n,window:r,enabled:i});return o.wheel=V(a),o}function U(e){return f({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_threshold:[0,0],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:y,canceled:!1,memo:void 0,args:void 0},e)}function X(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},drag:U({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),pinch:U({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:U({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:U({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:U({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Q=new Map,Z=function(e){return e},J=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(a))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=n.controller.pointerIds.size||n.controller.touchIds.size,a=n.controller.state.shared.buttons>0||i>0,o=f({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:i,down:a}),s=n.handler(o);return n.state.memo=void 0!==s?s:n.state.memo,o},this.controller=e,this.args=t}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config.rubberband,n=this.state,r=n._bounds,o=n._initial,s=n._active,u=n._intentional,l=n.lastOffset,c=n.movement,d=n._threshold,h=this.getInternalMovement(e,this.state),p=!1===u[0]?ee(h[0],d[0]):u[0],v=!1===u[1]?ee(h[1],d[1]):u[1],g=this.checkIntentionality([p,v],h);if(g._blocked)return f({},g,{_movement:h,delta:[0,0]});var m=g._intentional,y=[!1!==m[0]?h[0]-m[0]:0,!1!==m[1]?h[1]-m[1]:0],b=i(y,l),w=s?t:[0,0];return y=et(r,i(y,o),w),f({},g,{intentional:!1!==m[0]||!1!==m[1],_initial:o,_movement:h,movement:y,values:e,offset:et(r,b,w),delta:a(y,c)})},t.clean=function(){this.clearTimeout()},function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||Z}}]),e}();function ee(e,t){return Math.abs(e)>=t&&l(e)*t}function et(e,t,n){var r=t[0],i=t[1],a=n[0],o=n[1],s=e[0],u=s[0],l=s[1],c=e[1],f=c[0],h=c[1];return[d(r,u,l,a),d(i,f,h,o)]}function en(e,t,n){var r=e.state,i=t.timeStamp,a=t.type,o=r.values,s=n?0:i-r.startTime;return{_lastEventType:a,event:t,timeStamp:i,elapsedTime:s,previous:o}}function er(e,t,n,r){var i=e.state,o=e.config,s=e.stateKey,u=e.args,l=e.transform,c=i.offset,d=n.timeStamp,h=o.initial,p=o.bounds,v=a(l(o.threshold),l([0,0])).map(Math.abs),g=f({},X()[s],{_active:!0,args:u,values:t,initial:null!=r?r:t,_threshold:v,offset:c,lastOffset:c,startTime:d});return f({},g,{_initial:_(h,g),_bounds:_(p,g)})}var ei=function(e){var t=this;this.classes=e,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=O(),this.supportsGestureEvents=function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),this.bind=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i,a={},o=m(t.classes);!(i=o()).done;)new i.value(t,n).addBindings(a);var s=function(e){el(a,e,function(r){return t.nativeRefs[e](f({},t.state.shared,{event:r,args:n}))})};for(var u in t.nativeRefs)s(u);return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=eu(n);if(!i)throw Error("domTarget must be defined");var a=n.eventOptions;ed(i,es(r),a);for(var o=0,s=Object.entries(t);o<s.length;o++){var u=s[o],l=u[0],c=u[1],d=l.slice(2).toLowerCase();r.push([d,b.apply(void 0,c)])}ec(i,r,a)}(t,a):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",a=0,o=Object.entries(t);a<o.length;a++){var s=o[a],u=s[0],l=s[1],c=Array.isArray(l)?l:[l];r[u+i]=b.apply(void 0,c)}return r}(t,a)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=eu(t.config),n=t.config.eventOptions;e&&ed(e,es(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(n){for(var a in i)ed(n,i[a],r);e.windowListeners={}}}(t)},this.classes=e,this.state=X(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function ea(e,t){"pointerId"in t?e.pointerIds.add(t.pointerId):e.touchIds=new Set(E(t))}function eo(e,t){"pointerId"in t?e.pointerIds.delete(t.pointerId):E(t).forEach(function(t){return e.touchIds.delete(t)})}function es(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function eu(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function el(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function ec(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=m(t);!(r=i()).done;){var a=r.value,o=a[0],s=a[1];e.addEventListener(o,s,n)}}function ed(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=m(t);!(r=i()).done;){var a=r.value,o=a[0],s=a[1];e.removeEventListener(o,s,n)}}function ef(e,t,n){void 0===n&&(n={});var i,a=(i=new Set,e.drag&&i.add(Q.get("drag")),e.wheel&&i.add(Q.get("wheel")),e.scroll&&i.add(Q.get("scroll")),e.move&&i.add(Q.get("move")),e.pinch&&i.add(Q.get("pinch")),e.hover&&i.add(Q.get("hover")),i),o=r.useMemo(function(){return new ei(a)},[]);return(o.config=t,o.handlers=e,o.nativeRefs=n,r.useEffect(o.effect,[]),o.config.domTarget)?eh:o.bind}function eh(){}var ep=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return a(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],a=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?a?this.config.axis&&a!==this.config.axis?{_intentional:e,_blocked:!0,axis:a}:(e["x"===a?1:0]=!1,{_intentional:e,_blocked:!1,axis:a}):{_intentional:[!1,!1],_blocked:!1,axis:a}:{_intentional:e,_blocked:!1,axis:a}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,u(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(J);function ev(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}var eg=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.ingKey="dragging",t.stateKey="drag",t.setPointerCapture=function(e){if(!t.config.useTouch&&!document.pointerLockElement){var n=e.target,r=e.pointerId;n&&"setPointerCapture"in n&&n.setPointerCapture(r),t.updateGestureState({_dragTarget:n,_dragPointerId:r})}},t.releasePointerCapture=function(){if(!t.config.useTouch&&!document.pointerLockElement){var e=t.state,n=e._dragTarget,r=e._dragPointerId;if(r&&n&&"releasePointerCapture"in n&&(!("hasPointerCapture"in n)||n.hasPointerCapture(r)))try{n.releasePointerCapture(r)}catch(e){}}},t.preventScroll=function(e){t.state._dragPreventScroll&&e.cancelable&&e.preventDefault()},t.getEventId=function(e){return t.config.useTouch?e.changedTouches[0].identifier:e.pointerId},t.isValidEvent=function(e){return t.state._pointerId===t.getEventId(e)},t.shouldPreventWindowScrollY=t.config.experimental_preventWindowScrollY&&t.controller.supportsTouchEvents,t.setUpWindowScrollDetection=function(e){var n,r,i,a,o,s;ev(e),n=t.controller,r=t.stateKey,i=[["touchmove",t.preventScroll],["touchend",t.clean.bind(v(t))],["touchcancel",t.clean.bind(v(t))]],a={passive:!1},o=n.config,s=n.windowListeners,void 0===i&&(i=[]),void 0===a&&(a=o.eventOptions),o.window&&(ed(o.window,s[r],a),ec(o.window,s[r]=i,a)),t.setTimeout(t.startDrag.bind(v(t)),250,e)},t.setUpDelayedDragTrigger=function(e){t.state._dragDelayed=!0,ev(e),t.setTimeout(t.startDrag.bind(v(t)),t.config.delay,e)},t.setStartState=function(e){var n=k(e,t.transform);t.updateSharedState(C(e)),t.updateGestureState(f({},er(v(t),n,e),en(v(t),e,!0),{_pointerId:t.getEventId(e)})),t.updateGestureState(t.getMovement(n))},t.onDragStart=function(e){ea(t.controller,e),t.enabled&&!t.state._active&&(t.setStartState(e),t.setPointerCapture(e),t.shouldPreventWindowScrollY?t.setUpWindowScrollDetection(e):t.config.delay>0?t.setUpDelayedDragTrigger(e):t.startDrag(e,!0))},t.onDragChange=function(e){if(!t.state.canceled&&t.state._active&&t.isValidEvent(e)&&(t.state._lastEventType!==e.type||e.timeStamp!==t.state.timeStamp)){if(document.pointerLockElement){var n,r=e.movementX,a=e.movementY;n=i(t.transform([r,a]),t.state.values)}else n=k(e,t.transform);var s=t.getKinematics(n,e);if(!t.state._dragStarted){if(t.state._dragDelayed){t.startDrag(e);return}if(!t.shouldPreventWindowScrollY||t.state._dragPreventScroll||!s.axis)return;if("x"===s.axis)t.startDrag(e);else{t.state._active=!1;return}}var u=C(e);t.updateSharedState(u);var l=en(v(t),e),c=o(s._movement),d=t.state._dragIsTap;d&&c>=3&&(d=!1),t.updateGestureState(f({},l,s,{_dragIsTap:d})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(eo(t.controller,e),t.isValidEvent(e)&&(t.clean(),t.state._active)){t.state._active=!1;var n=t.state._dragIsTap,r=t.state.velocities,i=r[0],a=r[1],o=t.state.movement,s=o[0],u=o[1],c=t.state._intentional,d=c[0],h=c[1],p=t.config.swipeVelocity,g=p[0],m=p[1],y=t.config.swipeDistance,b=y[0],w=y[1],S=t.config.swipeDuration,_=f({},en(v(t),e),t.getMovement(t.state.values)),x=[0,0];_.elapsedTime<S&&(!1!==d&&Math.abs(i)>g&&Math.abs(s)>b&&(x[0]=l(i)),!1!==h&&Math.abs(a)>m&&Math.abs(u)>w&&(x[1]=l(a))),t.updateSharedState({buttons:0}),t.updateGestureState(f({},_,{tap:n,swipe:x})),t.fireGestureHandler(t.config.filterTaps&&!0===n)}},t.clean=function(){var n,r,i,a,o;e.prototype.clean.call(v(t)),t.state._dragStarted=!1,t.releasePointerCapture(),n=t.controller,r=t.stateKey,a=n.config,o=n.windowListeners,void 0===i&&(i=a.eventOptions),a.window&&(ed(a.window,o[r],i),delete o[r])},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0,_active:!1}),t.updateSharedState({buttons:0}),setTimeout(function(){return t.fireGestureHandler()},0))},t.onClick=function(e){t.state._dragIsTap||e.stopPropagation()},t}h(t,e);var n=t.prototype;return n.startDrag=function(e,t){void 0===t&&(t=!1),this.state._active&&!this.state._dragStarted&&(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(e){this.config.useTouch?(el(e,"onTouchStart",this.onDragStart),el(e,"onTouchMove",this.onDragChange),el(e,"onTouchEnd",this.onDragEnd),el(e,"onTouchCancel",this.onDragEnd)):(el(e,"onPointerDown",this.onDragStart),el(e,"onPointerMove",this.onDragChange),el(e,"onPointerUp",this.onDragEnd),el(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps&&el(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(ep);function em(e,t){var n,r,i=[],a=!1;return function(){for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return a&&n===this&&t(s,i)||(r=e.apply(this,s),a=!0,n=this,i=s),r}}function ey(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,a,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!==n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if("function"==typeof Map&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o=t.entries();!(i=o.next()).done;)if(!n.has(i.value[0]))return!1;for(o=t.entries();!(i=o.next()).done;)if(!e(i.value[1],n.get(i.value[0])))return!1;return!0}if("function"==typeof Set&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o=t.entries();!(i=o.next()).done;)if(!n.has(i.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;if("undefined"!=typeof Element&&t instanceof Element)return!1;for(i=r;0!=i--;)if(("_owner"!==a[i]||!t.$$typeof)&&!e(t[a[i]],n[a[i]]))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function eb(e,t){void 0===t&&(t={}),Q.set("drag",eg);var n=(0,r.useRef)();return n.current||(n.current=em(H,ey)),ef({drag:e},n.current(t))}var ew=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.ingKey="pinching",t.stateKey="pinch",t.onPinchStart=function(e){ea(t.controller,e);var n=t.controller.touchIds;if(!(!t.enabled||t.state._active&&t.state._pointerIds.every(function(e){return n.has(e)}))&&!(n.size<2)){var r=Array.from(n).slice(0,2),i=A(e,r,t.transform),a=i.values,o=i.origin;t.updateSharedState(C(e)),t.updateGestureState(f({},er(v(t),a,e),en(v(t),e,!0),{_pointerIds:r,cancel:t.onCancel,origin:o})),t.updateGestureState(t.getMovement(a)),t.fireGestureHandler()}},t.onPinchChange=function(e){var n=t.state,r=n.canceled,i=n._active;if(!r&&i&&e.timeStamp!==t.state.timeStamp){var a=C(e);t.updateSharedState(a);try{var o=A(e,t.state._pointerIds,t.transform),s=o.values,u=o.origin,l=t.getKinematics(s,e);t.updateGestureState(f({},en(v(t),e),l,{origin:u})),t.fireGestureHandler()}catch(n){t.onPinchEnd(e)}}},t.onPinchEnd=function(e){eo(t.controller,e);var n=E(e);!t.state._pointerIds.every(function(e){return!n.includes(e)})&&(t.clean(),t.state._active&&(t.updateGestureState(f({},en(v(t),e),t.getMovement(t.state.values),{_active:!1})),t.fireGestureHandler()))},t.onCancel=function(){t.state.canceled||(t.updateGestureState({_active:!1,canceled:!0}),setTimeout(function(){return t.fireGestureHandler()},0))},t.onGestureStart=function(e){if(t.enabled){e.preventDefault();var n=T(e,t.transform);t.updateSharedState(C(e)),t.updateGestureState(f({},er(v(t),n,e),en(v(t),e,!0),{origin:[e.clientX,e.clientY],cancel:t.onCancel})),t.updateGestureState(t.getMovement(n)),t.fireGestureHandler()}},t.onGestureChange=function(e){var n=t.state,r=n.canceled,i=n._active;if(!r&&i){e.preventDefault();var a=C(e);t.updateSharedState(a);var o=T(e,t.transform);o[0]=(o[0]-t.state.event.scale)*260+t.state.values[0];var s=t.getKinematics(o,e);t.updateGestureState(f({},en(v(t),e),s,{origin:[e.clientX,e.clientY]})),t.fireGestureHandler()}},t.onGestureEnd=function(e){t.clean(),t.state._active&&(t.updateGestureState(f({},en(v(t),e),t.getMovement(t.state.values),{_active:!1,origin:[e.clientX,e.clientY]})),t.fireGestureHandler())},t.wheelShouldRun=function(e){return t.enabled&&e.ctrlKey},t.getWheelValuesFromEvent=function(e){var n=M(e,t.transform)[1],r=t.state.values,i=r[0],a=r[1],o=-(7*n),s=void 0!==a?a:0;return{values:[i+o,s],origin:[e.clientX,e.clientY],delta:[o,s]}},t.onWheel=function(e){t.wheelShouldRun(e)&&(t.setTimeout(t.onWheelEnd),t.state._active?t.onWheelChange(e):t.onWheelStart(e))},t.onWheelStart=function(e){var n=t.getWheelValuesFromEvent(e),r=n.values,i=n.delta,a=n.origin;e.cancelable&&e.preventDefault(),t.updateSharedState(C(e)),t.updateGestureState(f({},er(v(t),r,e,t.state.values),en(v(t),e,!0),{offset:r,delta:i,origin:a})),t.updateGestureState(t.getMovement(r)),t.fireGestureHandler()},t.onWheelChange=function(e){e.cancelable&&e.preventDefault(),t.updateSharedState(C(e));var n=t.getWheelValuesFromEvent(e),r=n.values,i=n.origin,a=n.delta;t.updateGestureState(f({},en(v(t),e),t.getKinematics(r,e),{origin:i,delta:a})),t.fireGestureHandler()},t.onWheelEnd=function(){t.clean(),t.state._active&&(t.state._active=!1,t.updateGestureState(t.getMovement(t.state.values)),t.fireGestureHandler())},t}return h(t,e),t.prototype.addBindings=function(e){this.controller.config.domTarget&&!this.controller.supportsTouchEvents&&this.controller.supportsGestureEvents?(el(e,"onGestureStart",this.onGestureStart),el(e,"onGestureChange",this.onGestureChange),el(e,"onGestureEnd",this.onGestureEnd)):(el(e,"onTouchStart",this.onPinchStart),el(e,"onTouchMove",this.onPinchChange),el(e,"onTouchEnd",this.onPinchEnd),el(e,"onTouchCancel",this.onPinchEnd),el(e,"onWheel",this.onWheel))},t}(function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){var n=t.values[1],r=e[0],i=e[1],o=void 0===i?n:i,s=o-n,u=t.turns;return Math.abs(s)>270&&(u+=l(s)),a([r,o-360*u],t.initial)},n.getKinematics=function(e,t){var n=this.getMovement(e),r=(e[1]-n._movement[1]-this.state.initial[1])/360,i=t.timeStamp-this.state.timeStamp,a=p(u(n.movement,n.delta,i),["distance","velocity"]);return f({turns:r},n,a)},n.mapStateValues=function(e){return{da:e.values,vdva:e.velocities}},t}(J));function eS(e,t){void 0===t&&(t={}),Q.set("pinch",ew);var n=(0,r.useRef)();return n.current||(n.current=em(B,ey)),ef({pinch:e},n.current(t))}var e_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.ingKey="wheeling",t.stateKey="wheel",t.debounced=!0,t.handleEvent=function(e){if((!e.ctrlKey||!("pinch"in t.controller.handlers))&&t.enabled){t.setTimeout(t.onEnd),t.updateSharedState(C(e));var n=i(M(e,t.transform),t.state.values);if(t.state._active)t.updateGestureState(f({},en(v(t),e),t.getKinematics(n,e)));else{t.updateGestureState(f({},er(v(t),n,e,t.state.values),en(v(t),e,!0)));var r=t.getMovement(n),a=s(r.delta);t.updateGestureState(r),t.updateGestureState(a)}t.fireGestureHandler()}},t.onEnd=function(){if(t.clean(),t.state._active){var e=t.getMovement(t.state.values);t.updateGestureState(e),t.updateGestureState({_active:!1,velocities:[0,0],velocity:0}),t.fireGestureHandler()}},t}return h(t,e),t.prototype.addBindings=function(e){el(e,"onWheel",this.handleEvent)},t}(ep);function ex(e,t){void 0===t&&(t={}),Q.set("wheel",e_);var n=(0,r.useRef)();return n.current||(n.current=em(Y,ey)),ef({wheel:e},n.current(t))}var eO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.ingKey="moving",t.stateKey="move",t.debounced=!0,t.onMove=function(e){t.enabled&&(t.setTimeout(t.onMoveEnd),t.state._active?t.onMoveChange(e):t.onMoveStart(e))},t.onMoveStart=function(e){t.updateSharedState(C(e));var n=k(e,t.transform);t.updateGestureState(f({},er(v(t),n,e),en(v(t),e,!0))),t.updateGestureState(t.getMovement(n)),t.fireGestureHandler()},t.onMoveChange=function(e){t.updateSharedState(C(e));var n=k(e,t.transform);t.updateGestureState(f({},en(v(t),e),t.getKinematics(n,e))),t.fireGestureHandler()},t.onMoveEnd=function(){if(t.clean(),t.state._active){var e=t.state.values;t.updateGestureState(t.getMovement(e)),t.updateGestureState({velocities:[0,0],velocity:0,_active:!1}),t.fireGestureHandler()}},t.hoverTransform=function(){return t.controller.config.hover.transform||t.controller.config.transform},t.onPointerEnter=function(e){if(t.controller.state.shared.hovering=!0,t.controller.config.enabled){if(t.controller.config.hover.enabled){var n=k(e,t.hoverTransform()),r=f({},t.controller.state.shared,t.state,en(v(t),e,!0),{args:t.args,values:n,active:!0,hovering:!0});t.controller.handlers.hover(f({},r,t.mapStateValues(r)))}"move"in t.controller.handlers&&t.onMoveStart(e)}},t.onPointerLeave=function(e){if(t.controller.state.shared.hovering=!1,"move"in t.controller.handlers&&t.onMoveEnd(),t.controller.config.hover.enabled){var n=k(e,t.hoverTransform()),r=f({},t.controller.state.shared,t.state,en(v(t),e),{args:t.args,values:n,active:!1});t.controller.handlers.hover(f({},r,t.mapStateValues(r)))}},t}return h(t,e),t.prototype.addBindings=function(e){"move"in this.controller.handlers&&el(e,"onPointerMove",this.onMove),"hover"in this.controller.handlers&&(el(e,"onPointerEnter",this.onPointerEnter),el(e,"onPointerLeave",this.onPointerLeave))},t}(ep);function eP(e,t){void 0===t&&(t={}),Q.set("move",eO);var n=(0,r.useRef)();return n.current||(n.current=em(W,ey)),ef({move:e},n.current(t))}function eE(e,t){void 0===t&&(t={}),Q.set("hover",eO);var n=(0,r.useRef)();return n.current||(n.current=em(q,ey)),ef({hover:e},n.current(t))}var eC=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.ingKey="scrolling",t.stateKey="scroll",t.debounced=!0,t.handleEvent=function(e){if(t.enabled){t.clearTimeout(),t.setTimeout(t.onEnd);var n,r,i,a,o,u,l=(void 0===(n=t.transform)&&(n=I),i=(r=e.currentTarget).scrollX,a=r.scrollY,o=r.scrollLeft,u=r.scrollTop,n([i||o||0,a||u||0]));if(t.updateSharedState(C(e)),t.state._active)t.updateGestureState(f({},en(v(t),e),t.getKinematics(l,e)));else{t.updateGestureState(f({},er(v(t),l,e,t.state.values),en(v(t),e,!0)));var c=t.getMovement(l),d=s(c.delta);t.updateGestureState(c),t.updateGestureState(d)}t.fireGestureHandler()}},t.onEnd=function(){t.clean(),t.state._active&&(t.updateGestureState(f({},t.getMovement(t.state.values),{_active:!1,velocities:[0,0],velocity:0})),t.fireGestureHandler())},t}return h(t,e),t.prototype.addBindings=function(e){el(e,"onScroll",this.handleEvent)},t}(ep);function eI(e,t){void 0===t&&(t={}),Q.set("scroll",eC);var n=(0,r.useRef)();return n.current||(n.current=em(K,ey)),ef({scroll:e},n.current(t))}var ek=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function eA(e,t){void 0===t&&(t={});var n,r,i,a,o,s,u,l,c,d,h,p,v,g=function(e){var t={},n={},r=new Set;for(var i in e)ek.test(i)?(r.add(RegExp.lastMatch),n[i]=e[i]):t[i]=e[i];return[n,t,r]}(e),m=g[0],y=g[1],b=g[2];Q.set("drag",eg),Q.set("hover",eO),Q.set("move",eO),Q.set("pinch",ew),Q.set("scroll",eC),Q.set("wheel",e_);var w=(void 0===(n=t)&&(n={}),void 0===(r=b)&&(r=new Set),a=(i=n).drag,o=i.wheel,s=i.move,u=i.scroll,l=i.pinch,c=i.hover,d=i.eventOptions,h=i.window,p=i.transform,v=N({domTarget:i.domTarget,eventOptions:d,transform:p,window:h,enabled:i.enabled}),r.has("onDrag")&&(v.drag=z(a)),r.has("onWheel")&&(v.wheel=V(o)),r.has("onScroll")&&(v.scroll=V(u)),r.has("onMove")&&(v.move=V(s)),r.has("onPinch")&&(v.pinch=L(l)),r.has("onHover")&&(v.hover=f({enabled:!0},c)),v),S={};return b.has("onDrag")&&(S.drag=eM(m,"onDrag")),b.has("onWheel")&&(S.wheel=eM(m,"onWheel")),b.has("onScroll")&&(S.scroll=eM(m,"onScroll")),b.has("onMove")&&(S.move=eM(m,"onMove")),b.has("onPinch")&&(S.pinch=eM(m,"onPinch")),b.has("onHover")&&(S.hover=m.onHover),ef(S,w,y)}function eM(e,t){var n=t+"Start",r=t+"End";return function(i){var a=void 0;return i.first&&n in e&&e[n](i),t in e&&(a=e[t](i)),i.last&&r in e&&e[r](i),a}}},68458:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheet:function(){return tO},StyleSheetConsumer:function(){return e9},StyleSheetContext:function(){return e7},StyleSheetManager:function(){return te},ThemeConsumer:function(){return tc},ThemeContext:function(){return tl},ThemeProvider:function(){return tf},__PRIVATE__:function(){return tP},createGlobalStyle:function(){return tS},css:function(){return tm},default:function(){return tb},isStyledComponent:function(){return eD},keyframes:function(){return t_},styled:function(){return tb},useTheme:function(){return td},version:function(){return B},withTheme:function(){return tx}});var r=n(97582),i=n(67294),a="-ms-",o="-moz-",s="-webkit-",u="comm",l="rule",c="decl",d="@keyframes",f=Math.abs,h=String.fromCharCode,p=Object.assign;function v(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,n){return e.replace(t,n)}function m(e,t,n){return e.indexOf(t,n)}function y(e,t){return 0|e.charCodeAt(t)}function b(e,t,n){return e.slice(t,n)}function w(e){return e.length}function S(e,t){return t.push(e),e}function _(e,t){return e.filter(function(e){return!v(e,t)})}var x=1,O=1,P=0,E=0,C=0,I="";function k(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:x,column:O,length:o,return:"",siblings:s}}function A(e,t){return p(k("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function M(e){for(;e.root;)e=A(e.root,{children:[e]});S(e,e.siblings)}function T(){return C=E<P?y(I,E++):0,O++,10===C&&(O=1,x++),C}function j(){return y(I,E)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(e){var t,n;return(t=E-1,n=function e(t){for(;T();)switch(C){case t:return E;case 34:case 39:34!==t&&39!==t&&e(C);break;case 40:41===t&&e(t);break;case 92:T()}return E}(91===e?e+2:40===e?e+1:e),b(I,t,n)).trim()}function G(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function F(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case c:return e.return=e.return||e.value;case u:return"";case d:return e.return=e.value+"{"+G(e.children,r)+"}";case l:if(!w(e.value=e.props.join(",")))return""}return w(n=G(e.children,r))?e.return=e.value+"{"+n+"}":""}function $(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case c:e.return=function e(t,n,r){var i;switch(i=n,45^y(t,0)?(((i<<2^y(t,0))<<2^y(t,1))<<2^y(t,2))<<2^y(t,3):0){case 5103:return s+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return s+t+t;case 4855:return s+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return o+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return s+t+o+t+a+t+t;case 5936:switch(y(t,n+11)){case 114:return s+t+a+g(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return s+t+a+g(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return s+t+a+g(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return s+t+a+t+t;case 6165:return s+t+a+"flex-"+t+t;case 5187:return s+t+g(t,/(\w+).+(:[^]+)/,s+"box-$1$2"+a+"flex-$1$2")+t;case 5443:return s+t+a+"flex-item-"+g(t,/flex-|-self/g,"")+(v(t,/flex-|baseline/)?"":a+"grid-row-"+g(t,/flex-|-self/g,""))+t;case 4675:return s+t+a+"flex-line-pack"+g(t,/align-content|flex-|-self/g,"")+t;case 5548:return s+t+a+g(t,"shrink","negative")+t;case 5292:return s+t+a+g(t,"basis","preferred-size")+t;case 6060:return s+"box-"+g(t,"-grow","")+s+t+a+g(t,"grow","positive")+t;case 4554:return s+g(t,/([^-])(transform)/g,"$1"+s+"$2")+t;case 6187:return g(g(g(t,/(zoom-|grab)/,s+"$1"),/(image-set)/,s+"$1"),t,"")+t;case 5495:case 3959:return g(t,/(image-set\([^]*)/,s+"$1$`$1");case 4968:return g(g(t,/(.+:)(flex-)?(.*)/,s+"box-pack:$3"+a+"flex-pack:$3"),/space-between/,"justify")+s+t+t;case 4200:if(!v(t,/flex-|baseline/))return a+"grid-column-align"+b(t,n)+t;break;case 2592:case 3360:return a+g(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,v(e.props,/grid-\w+-end/)}))return~m(t+(r=r[n].value),"span",0)?t:a+g(t,"-start","")+t+a+"grid-row-span:"+(~m(r,"span",0)?v(r,/\d+/):+v(r,/\d+/)-+v(t,/\d+/))+";";return a+g(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return v(e.props,/grid-\w+-start/)})?t:a+g(g(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return g(t,/(.+)-inline(.+)/,s+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(w(t)-1-n>6)switch(y(t,n+1)){case 109:if(45!==y(t,n+4))break;case 102:return g(t,/(.+:)(.+)-([^]+)/,"$1"+s+"$2-$3$1"+o+(108==y(t,n+3)?"$3":"$2-$3"))+t;case 115:return~m(t,"stretch",0)?e(g(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return g(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,o,s,u){return a+n+":"+r+u+(i?a+n+"-span:"+(o?s:+s-+r)+u:"")+t});case 4949:if(121===y(t,n+6))return g(t,":",":"+s)+t;break;case 6444:switch(y(t,45===y(t,14)?18:11)){case 120:return g(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+s+(45===y(t,14)?"inline-":"")+"box$3$1"+s+"$2$3$1"+a+"$2box$3")+t;case 100:return g(t,":",":"+a)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case d:return G([A(e,{value:g(e.value,"@","@"+s)})],r);case l:if(e.length){var i,u;return i=n=e.props,u=function(t){switch(v(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":M(A(e,{props:[g(t,/:(read-\w+)/,":"+o+"$1")]})),M(A(e,{props:[t]})),p(e,{props:_(n,r)});break;case"::placeholder":M(A(e,{props:[g(t,/:(plac\w+)/,":"+s+"input-$1")]})),M(A(e,{props:[g(t,/:(plac\w+)/,":"+o+"$1")]})),M(A(e,{props:[g(t,/:(plac\w+)/,a+"input-$1")]})),M(A(e,{props:[t]})),p(e,{props:_(n,r)})}return""},i.map(u).join("")}}}function N(e,t,n,r,i,a,o,s,u,c,d,h){for(var p=i-1,v=0===i?a:[""],m=v.length,y=0,w=0,S=0;y<r;++y)for(var _=0,x=b(e,p+1,p=f(w=o[y])),O=e;_<m;++_)(O=(w>0?v[_]+" "+x:g(x,/&\f/g,v[_])).trim())&&(u[S++]=O);return k(e,t,n,0===i?l:s,u,c,d,h)}function V(e,t,n,r,i){return k(e,t,n,c,b(e,0,r),b(e,r+1,-1),r,i)}var L={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},z=n(83454),W=void 0!==z&&void 0!==z.env&&(z.env.REACT_APP_SC_ATTR||z.env.SC_ATTR)||"data-styled",q="active",H="data-styled-version",B="6.3.11",K="/*!sc*/\n",Y="undefined"!=typeof window&&"undefined"!=typeof document,U=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==z&&void 0!==z.env&&void 0!==z.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==z.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==z.env.REACT_APP_SC_DISABLE_SPEEDY&&z.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==z&&void 0!==z.env&&void 0!==z.env.SC_DISABLE_SPEEDY&&""!==z.env.SC_DISABLE_SPEEDY&&"false"!==z.env.SC_DISABLE_SPEEDY&&z.env.SC_DISABLE_SPEEDY),X={};function Q(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Z=new Map,J=new Map,ee=1,et=function(e){if(Z.has(e))return Z.get(e);for(;J.has(ee);)ee++;var t=ee++;return Z.set(e,t),J.set(t,e),t},en=function(e,t){ee=t+1,Z.set(e,t),J.set(t,e)},er=Object.freeze([]),ei=Object.freeze({});function ea(e,t,n){return void 0===n&&(n=ei),e.theme!==n.theme&&e.theme||t||n.theme}var eo=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),es=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eu=/(^-|-$)/g;function el(e){return e.replace(es,"-").replace(eu,"")}var ec=/(a)(d)/gi,ed=function(e){return String.fromCharCode(e+(e>25?39:97))};function ef(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ed(t%52)+n;return(ed(t%52)+n).replace(ec,"$1-$2")}var eh,ep=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ev=function(e){return ep(5381,e)};function eg(e){return ef(ev(e)>>>0)}function em(e){return e.displayName||e.name||"Component"}function ey(e){return"string"==typeof e}var eb="function"==typeof Symbol&&Symbol.for,ew=eb?Symbol.for("react.memo"):60115,eS=eb?Symbol.for("react.forward_ref"):60112,e_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ex={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eP=((eh={})[eS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eh[ew]=eO,eh);function eE(e){return("type"in e&&e.type.$$typeof)===ew?eO:"$$typeof"in e?eP[e.$$typeof]:e_}var eC=Object.defineProperty,eI=Object.getOwnPropertyNames,ek=Object.getOwnPropertySymbols,eA=Object.getOwnPropertyDescriptor,eM=Object.getPrototypeOf,eT=Object.prototype;function ej(e,t,n){if("string"!=typeof t){if(eT){var r=eM(t);r&&r!==eT&&ej(e,r,n)}var i=eI(t);ek&&(i=i.concat(ek(t)));for(var a=eE(e),o=eE(t),s=0;s<i.length;++s){var u=i[s];if(!(u in ex||n&&n[u]||o&&u in o||a&&u in a)){var l=eA(t,u);try{eC(e,u,l)}catch(e){}}}}return e}function eR(e){return"function"==typeof e}function eD(e){return"object"==typeof e&&"styledComponentId"in e}function eG(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eF(e,t){return e.join(t||"")}function e$(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eN(e,t){Object.defineProperty(e,"toString",{value:t})}var eV=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw Q(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,u=(a=0,t.length);a<u;a++)this.tag.insertRule(o,t[a])&&(this.groupSizes[e]++,o++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+K;return t},e}(),eL="style[".concat(W,"][").concat(H,'="').concat(B,'"]'),ez=new RegExp("^".concat(W,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eW=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},eq=function(e){if(!e)return document;if(eW(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(eW(t))return t}return document},eH=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},eB=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(K),i=[],a=0,o=r.length;a<o;a++){var s=r[a].trim();if(s){var u=s.match(ez);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(en(c,l),eH(e,c,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},eK=function(e){for(var t=eq(e.options.target).querySelectorAll(eL),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(W)!==q&&(eB(e,i),i.parentNode&&i.parentNode.removeChild(i))}},eY=function(e){var t,r=document.head,i=e||r,a=document.createElement("style"),o=(t=Array.from(i.querySelectorAll("style[".concat(W,"]"))))[t.length-1],s=void 0!==o?o.nextSibling:null;a.setAttribute(W,q),a.setAttribute(H,B);var u=n.nc;return u&&a.setAttribute("nonce",u),i.insertBefore(a,s),a},eU=function(){function e(e){this.element=eY(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,r=0,i=n.length;r<i;r++){var a=n[r];if(a.ownerNode===e)return a}throw Q(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eX=function(){function e(e){this.element=eY(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eQ=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eZ=Y,eJ={isServer:!Y,useCSSOMInjection:!U},e0=function(){function e(e,t,n){void 0===e&&(e=ei),void 0===t&&(t={});var i=this;this.options=(0,r.pi)((0,r.pi)({},eJ),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Y&&eZ&&(eZ=!1,eK(this)),eN(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++)(function(n){var i=J.get(n);if(void 0!==i){var a=e.names.get(i);if(void 0!==a&&a.size){var o=t.getGroup(n);if(0!==o.length){var s=W+".g"+n+'[id="'+i+'"]',u="";a.forEach(function(e){e.length>0&&(u+=e+",")}),r+=o+s+'{content:"'+u+'"}'+K}}}})(i);return r}(i)})}return e.registerId=function(e){return et(e)},e.prototype.rehydrate=function(){!this.server&&Y&&eK(this)},e.prototype.reconstructWithOptions=function(t,n){void 0===n&&(n=!0);var i=new e((0,r.pi)((0,r.pi)({},this.options),t),this.gs,n&&this.names||void 0);return!this.server&&Y&&t.target!==this.options.target&&eq(this.options.target)!==eq(t.target)&&eK(i),i},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,n=e.target,new eV(e.isServer?new eQ(n):t?new eU(n):new eX(n))))},e.prototype.hasNameForId=function(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r},e.prototype.registerName=function(e,t){et(e);var n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(et(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(et(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),e1=/&/g;function e2(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,i=!1,a=0;a<t;a++){var o=e.charCodeAt(a);if(0!==r||i||47!==o||42!==e.charCodeAt(a+1)){if(i)42===o&&47===e.charCodeAt(a+1)&&(i=!1,a++);else if(34!==o&&39!==o||0!==a&&92===e.charCodeAt(a-1)){if(0===r){if(123===o)n++;else if(125===o&&--n<0)return!0}}else 0===r?r=o:r===o&&(r=0)}else i=!0,a++}return 0!==n||0!==r}function e5(e){var t,n,r,i,a,o,s=void 0===e?ei:e,c=s.options,d=void 0===c?ei:c,p=s.plugins,v=void 0===p?er:p,_=function(e,t,n){return n.startsWith(a)&&n.endsWith(a)&&n.replaceAll(a,"").length>0?".".concat(i):e},A=v.slice();A.push(function(e){e.type===l&&e.value.includes("&")&&(o||(o=RegExp("\\".concat(a,"\\b"),"g")),e.props[0]=e.props[0].replace(e1,a).replace(o,_))}),d.prefix&&A.push($),A.push(F);var M=[],L=(n=(t=A.concat((r=function(e){return M.push(e)},function(e){!e.root&&(e=e.return)&&r(e)}))).length,function(e,r,i,a){for(var o="",s=0;s<n;s++)o+=t[s](e,r,i,a)||"";return o}),z=function(e,t,n,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r="&"),i=r,a=t,o=void 0;var s,l,c,p=function(e){if(!e2(e))return e;for(var t=e.length,n="",r=0,i=0,a=0,o=!1,s=0;s<t;s++){var u=e.charCodeAt(s);if(0!==a||o||47!==u||42!==e.charCodeAt(s+1)){if(o)42===u&&47===e.charCodeAt(s+1)&&(o=!1,s++);else if(34!==u&&39!==u||0!==s&&92===e.charCodeAt(s-1)){if(0===a){if(123===u)i++;else if(125===u){if(--i<0){for(var l=s+1;l<t;){var c=e.charCodeAt(l);if(59===c||10===c)break;l++}l<t&&59===e.charCodeAt(l)&&l++,i=0,s=l-1,r=l;continue}0===i&&(n+=e.substring(r,s+1),r=s+1)}else 59===u&&0===i&&(n+=e.substring(r,s+1),r=s+1)}}else 0===a?a=u:a===u&&(a=0)}else o=!0,s++}if(r<t){var d=e.substring(r);e2(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,i=0,a=0,o=0;i<t;){var s=e.charCodeAt(i);if(34!==s&&39!==s||0!==i&&92===e.charCodeAt(i-1)){if(0===a){if(47===s&&i+1<t&&42===e.charCodeAt(i+1)){for(i+=2;i+1<t&&(42!==e.charCodeAt(i)||47!==e.charCodeAt(i+1));)i++;i+=2}else if(40===s&&i>=3&&108==(32|e.charCodeAt(i-1))&&114==(32|e.charCodeAt(i-2))&&117==(32|e.charCodeAt(i-3)))o=1,i++;else if(o>0)41===s?o--:40===s&&o++,i++;else if(42===s&&i+1<t&&47===e.charCodeAt(i+1))i>r&&n.push(e.substring(r,i)),r=i+=2;else if(47===s&&i+1<t&&47===e.charCodeAt(i+1)){for(i>r&&n.push(e.substring(r,i));i<t&&10!==e.charCodeAt(i);)i++;r=i}else i++}else i++}else 0===a?a=s:a===s&&(a=0),i++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(e)),v=(c=function e(t,n,r,i,a,o,s,l,c){for(var d,p=0,v=0,_=s,P=0,A=0,M=0,G=1,F=1,$=1,L=0,z="",W=a,q=o,H=i,B=z;F;)switch(M=L,L=T()){case 40:if(108!=M&&58==y(B,_-1)){-1!=m(B+=g(D(L),"&","&\f"),"&\f",f(p?l[p-1]:0))&&($=-1);break}case 34:case 39:case 91:B+=D(L);break;case 9:case 10:case 13:case 32:B+=function(e){for(;C=j();)if(C<33)T();else break;return R(e)>2||R(C)>3?"":" "}(M);break;case 92:B+=function(e,t){for(var n;--t&&T()&&!(C<48)&&!(C>102)&&(!(C>57)||!(C<65))&&(!(C>70)||!(C<97)););return n=E+(t<6&&32==j()&&32==T()),b(I,e,n)}(E-1,7);continue;case 47:switch(j()){case 42:case 47:S(k(d=function(e,t){for(;T();)if(e+C===57)break;else if(e+C===84&&47===j())break;return"/*"+b(I,t,E-1)+"*"+h(47===e?e:T())}(T(),E),n,r,u,h(C),b(d,2,-2),0,c),c),(5==R(M||1)||5==R(j()||1))&&w(B)&&" "!==b(B,-1,void 0)&&(B+=" ");break;default:B+="/"}break;case 123*G:l[p++]=w(B)*$;case 125*G:case 59:case 0:switch(L){case 0:case 125:F=0;case 59+v:-1==$&&(B=g(B,/\f/g,"")),A>0&&(w(B)-_||0===G&&47===M)&&S(A>32?V(B+";",i,r,_-1,c):V(g(B," ","")+";",i,r,_-2,c),c);break;case 59:B+=";";default:if(S(H=N(B,n,r,p,v,a,l,z,W=[],q=[],_,o),o),123===L){if(0===v)e(B,n,H,H,W,o,_,l,q);else{switch(P){case 99:if(110===y(B,3))break;case 108:if(97===y(B,2))break;default:v=0;case 100:case 109:case 115:}v?e(t,H,H,i&&S(N(t,H,H,0,0,a,l,z,a,W=[],_,q),q),a,q,_,l,i?W:q):e(B,H,H,H,[""],q,0,l,q)}}}p=v=A=0,G=$=1,z=B="",_=s;break;case 58:_=1+w(B),A=M;default:if(G<1){if(123==L)--G;else if(125==L&&0==G++&&125==(C=E>0?y(I,--E):0,O--,10===C&&(O=1,x--),C))continue}switch(B+=h(L),L*G){case 38:$=v>0?1:(B+="\f",-1);break;case 44:l[p++]=(w(B)-1)*$,$=1;break;case 64:45===j()&&(B+=D(T())),P=j(),v=_=w(z=B+=function(e){for(;!R(j());)T();return b(I,e,E)}(E)),L++;break;case 45:45===M&&2==w(B)&&(G=0)}}return o}("",null,null,null,[""],(l=s=n||t?"".concat(n," ").concat(t," { ").concat(p," }"):p,x=O=1,P=w(I=l),E=0,s=[]),0,[0],s),I="",c);return d.namespace&&(v=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}(v,d.namespace)),M=[],G(v,L),M};return z.hash=v.length?v.reduce(function(e,t){return t.name||Q(15),ep(e,t.name)},5381).toString():"",z}var e3=new e0,e4=e5(),e7=i.createContext({shouldForwardProp:void 0,styleSheet:e3,stylis:e4}),e9=e7.Consumer,e6=i.createContext(void 0);function e8(){return i.useContext(e7)}function te(e){if(!i.useMemo)return e.children;var t=e8().styleSheet,n=i.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=i.useMemo(function(){return e5({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),a=i.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return i.createElement(e7.Provider,{value:a},i.createElement(e6.Provider,{value:r},e.children))}var tt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=e4);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eN(this,function(){throw Q(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e4),this.name+e.hash},e}();function tn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;r>="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var tr=function(e){return null==e||!1===e||""===e},ti=function(e){var t=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!tr(i)&&(Array.isArray(i)&&i.isCss||eR(i)?t.push("".concat(tn(n),":"),i,";"):e$(i)?t.push.apply(t,(0,r.ev)((0,r.ev)(["".concat(n," {")],ti(i),!1),["}"],!1)):t.push("".concat(tn(n),": ").concat(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in L||n.startsWith("--")?String(i).trim():"".concat(i,"px"),";")))}return t};function ta(e,t,n,r,i){if(void 0===i&&(i=[]),"string"==typeof e)return e&&i.push(e),i;if(tr(e))return i;if(eD(e))return i.push(".".concat(e.styledComponentId)),i;if(eR(e))return!eR(e)||e.prototype&&e.prototype.isReactComponent||!t?(i.push(e),i):ta(e(t),t,n,r,i);if(e instanceof tt)return n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i;if(e$(e)){for(var a=ti(e),o=0;o<a.length;o++)i.push(a[o]);return i}if(!Array.isArray(e))return i.push(e.toString()),i;for(o=0;o<e.length;o++)ta(e[o],t,n,r,i);return i}function to(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(eR(n)&&!eD(n))return!1}return!0}var ts=ev(B),tu=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&to(e),this.componentId=t,this.baseHash=ep(ts,t),this.baseStyle=n,e0.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash){if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=eG(r,this.staticRulesId);else{var i=eF(ta(this.rules,e,t,n)),a=ef(ep(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var o=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,o)}r=eG(r,a),this.staticRulesId=a}}else{for(var s=ep(this.baseHash,n.hash),u="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)u+=c;else if(c){var d=eF(ta(c,e,t,n));s=ep(ep(s,String(l)),d),u+=d}}if(u){var f=ef(s>>>0);if(!t.hasNameForId(this.componentId,f)){var h=n(u,".".concat(f),void 0,this.componentId);t.insertRules(this.componentId,f,h)}r=eG(r,f)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(et(this.componentId)):""}},e}(),tl=i.createContext(void 0),tc=tl.Consumer;function td(){var e=i.useContext(tl);if(!e)throw Q(18);return e}function tf(e){var t=i.useContext(tl),n=i.useMemo(function(){return function(e,t){if(!e)throw Q(14);if(eR(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw Q(8);return t?(0,r.pi)((0,r.pi)({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?i.createElement(tl.Provider,{value:n},e.children):null}var th={};function tp(e,t,n){var a,o,s,u,l=eD(e),c=!ey(e),d=t.attrs,f=void 0===d?er:d,h=t.componentId,p=void 0===h?(a=t.displayName,o=t.parentComponentId,th[s="string"!=typeof a?"sc":el(a)]=(th[s]||0)+1,u="".concat(s,"-").concat(eg(B+s+th[s])),o?"".concat(o,"-").concat(u):u):h,v=t.displayName,g=void 0===v?ey(e)?"styled.".concat(e):"Styled(".concat(em(e),")"):v,m=t.displayName&&t.componentId?"".concat(el(t.displayName),"-").concat(t.componentId):t.componentId||p,y=l&&e.attrs?e.attrs.concat(f).filter(Boolean):f,b=t.shouldForwardProp;if(l&&e.shouldForwardProp){var w=e.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;b=function(e,t){return w(e,t)&&S(e,t)}}else b=w}var _=new tu(n,m,l?e.componentStyle:void 0);function x(e,t){return function(e,t,n){var a,o=e.attrs,s=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,d=e.target,f=i.useContext(tl),h=e8(),p=e.shouldForwardProp||h.shouldForwardProp,v=ea(t,f,u)||ei,g=function(e,t,n){for(var i,a=(0,r.pi)((0,r.pi)({},t),{className:void 0,theme:n}),o=0;o<e.length;o+=1){var s=eR(i=e[o])?i(a):i;for(var u in s)"className"===u?a.className=eG(a.className,s[u]):"style"===u?a.style=(0,r.pi)((0,r.pi)({},a.style),s[u]):a[u]=s[u]}return"className"in t&&"string"==typeof t.className&&(a.className=eG(a.className,t.className)),a}(o,t,v),m=g.as||d,y={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?y.as=g.forwardedAs:p&&!p(b,m)||(y[b]=g[b]));var w=(a=e8(),s.generateAndInjectStyles(g,a.styleSheet,a.stylis)).className,S=eG(l,c);return w&&(S+=" "+w),g.className&&(S+=" "+g.className),y[ey(m)&&!eo.has(m)?"class":"className"]=S,n&&(y.ref=n),(0,i.createElement)(m,y)}(O,e,t)}x.displayName=g;var O=i.forwardRef(x);return O.attrs=y,O.componentStyle=_,O.displayName=g,O.shouldForwardProp=b,O.foldedComponentIds=l?eG(e.foldedComponentIds,e.styledComponentId):"",O.styledComponentId=m,O.target=l?e.target:e,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=l?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)(function e(t,n,r){if(void 0===r&&(r=!1),!r&&!e$(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)t[i]=e(t[i],n[i]);else if(e$(n))for(var i in n)t[i]=e(t[i],n[i]);return t})(e,t[r],!0);return e}({},e.defaultProps,t):t}}),eN(O,function(){return".".concat(O.styledComponentId)}),c&&ej(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),O}function tv(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var tg=function(e){return Object.assign(e,{isCss:!0})};function tm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return eR(e)||e$(e)?tg(ta(tv(er,(0,r.ev)([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?ta(e):tg(ta(tv(e,t)))}var ty=function(e){return function e(t,n,i){if(void 0===i&&(i=ei),!n)throw Q(1,n);var a=function(e){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];return t(n,i,tm.apply(void 0,(0,r.ev)([e],a,!1)))};return a.attrs=function(a){return e(t,n,(0,r.pi)((0,r.pi)({},i),{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},a.withConfig=function(a){return e(t,n,(0,r.pi)((0,r.pi)({},i),a))},a}(tp,e)},tb=ty;eo.forEach(function(e){tb[e]=ty(e)});var tw=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=to(e),e0.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(eF(ta(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&e0.registerId(this.componentId+e);var i=this.componentId+e;this.isStatic?n.hasNameForId(i,i)||this.createStyles(e,t,n,r):(this.removeStyles(e,n),this.createStyles(e,t,n,r))},e}();function tS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=tm.apply(void 0,(0,r.ev)([e],t,!1)),o="sc-global-".concat(eg(JSON.stringify(a))),s=new tw(a,o),u=new WeakMap,l=function(e){var t=e8(),n=i.useContext(tl),r=u.get(t.styleSheet);return void 0===r&&(r=t.styleSheet.allocateGSInstance(o),u.set(t.styleSheet,r)),"undefined"!=typeof window&&t.styleSheet.server||c(r,e,t.styleSheet,n,t.stylis),i.useLayoutEffect(function(){return t.styleSheet.server||c(r,e,t.styleSheet,n,t.stylis),function(){var e;s.removeStyles(r,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(o,'"]')).forEach(function(e){return e.remove()})}},[r,e,t.styleSheet,n,t.stylis]),null};function c(e,t,n,i,a){if(s.isStatic)s.renderStyles(e,X,n,a);else{var o=(0,r.pi)((0,r.pi)({},t),{theme:ea(t,i,l.defaultProps)});s.renderStyles(e,o,n,a)}}return i.memo(l)}function t_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=eF(tm.apply(void 0,(0,r.ev)([e],t,!1)));return new tt(eg(i),i)}function tx(e){var t=i.forwardRef(function(t,n){var a=ea(t,i.useContext(tl),e.defaultProps);return i.createElement(e,(0,r.pi)((0,r.pi)({},t),{theme:a,ref:n}))});return t.displayName="WithTheme(".concat(em(e),")"),ej(t,e)}var tO=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=n.nc,i=eF([r&&'nonce="'.concat(r,'"'),"".concat(W,'="true"'),"".concat(H,'="').concat(B,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Q(2);return e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)throw Q(2);var t,a=e.instance.toString();if(!a)return[];var o=((t={})[W]="",t[H]=B,t.dangerouslySetInnerHTML={__html:a},t),s=n.nc;return s&&(o.nonce=s),[i.createElement("style",(0,r.pi)({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new e0({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw Q(2);return i.createElement(te,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Q(3)},e}(),tP={StyleSheet:e0,mainSheet:e3}},38416:function(e,t,n){var r=n(64062);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},10434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},70215:function(e,t,n){var r=n(7071);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,n){var r=n(18698).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,n){var r=n(18698).default,i=n(95036);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1277:function(e,t,n){"use strict";let r,i,a;var o=Object.create,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))d.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=u(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(h,{Animated:()=>w,AnimatedArray:()=>k,AnimatedObject:()=>I,AnimatedString:()=>O,AnimatedValue:()=>_,createHost:()=>V,getAnimated:()=>m,getAnimatedType:()=>T,getPayload:()=>b,isAnimated:()=>g,setAnimated:()=>y}),e.exports=f(s({},"__esModule",{value:!0}),h);var p=n(64873),v=Symbol.for("Animated:node"),g=e=>!!e&&e[v]===e,m=e=>e&&e[v],y=(e,t)=>(0,p.defineHidden)(e,v,t),b=e=>e&&e[v]&&e[v].getPayload(),w=class{constructor(){y(this,this)}getPayload(){return this.payload||[]}},S=n(64873),_=class extends w{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,S.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new _(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return S.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,S.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},x=n(64873),O=class extends _{constructor(e){super(0),this._string=null,this._toString=(0,x.createInterpolator)({output:[e,e]})}static create(e){return new O(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(x.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,x.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},P=n(64873),E=n(64873),C={dependencies:null},I=class extends w{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,E.eachProp)(this.source,(n,r)=>{g(n)?t[r]=n.getValue(e):(0,E.hasFluidValue)(n)?t[r]=(0,E.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,E.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,E.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){C.dependencies&&(0,E.hasFluidValue)(e)&&C.dependencies.add(e);let t=b(e);t&&(0,E.each)(t,e=>this.add(e))}},k=class extends I{constructor(e){super(e)}static create(e){return new k(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(A)),!0)}};function A(e){return((0,P.isAnimatedString)(e)?O:_).create(e)}var M=n(64873);function T(e){let t=m(e);return t?t.constructor:M.is.arr(e)?k:(0,M.isAnimatedString)(e)?O:_}var j=n(64873),R=(a=null!=(r=n(67294))?o(c(r)):{},f(!i&&r&&r.__esModule?a:s(a,"default",{value:r,enumerable:!0}),r)),D=n(67294),G=n(64873),F=(e,t)=>{let n=!G.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,D.forwardRef)((r,i)=>{var a;let o;let s=(0,D.useRef)(null),u=n&&(0,D.useCallback)(e=>{s.current=(i&&(G.is.fun(i)?i(e):i.current=e),e)},[i]),[l,c]=(a=r,o=new Set,C.dependencies=o,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new I(a),C.dependencies=null,[a,o]),d=(0,G.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))===!1&&d()},h=new $(f,c),p=(0,D.useRef)();(0,G.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,G.each)(c,e=>(0,G.addFluidObserver)(e,h)),()=>{p.current&&((0,G.each)(p.current.deps,e=>(0,G.removeFluidObserver)(e,p.current)),G.raf.cancel(p.current.update))})),(0,D.useEffect)(f,[]),(0,G.useOnce)(()=>()=>{let e=p.current;(0,G.each)(e.deps,t=>(0,G.removeFluidObserver)(t,e))});let v=t.getComponentProps(l.getValue());return R.createElement(e,{...v,ref:u})})},$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&G.raf.write(this.update)}},N=Symbol.for("AnimatedComponent"),V=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new I(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=L(e)||"Anonymous";return(e=j.is.str(e)?a[e]||(a[e]=F(e,i)):e[N]||(e[N]=F(e,i))).displayName=`Animated(${t})`,e};return(0,j.eachProp)(e,(t,n)=>{j.is.arr(e)&&(n=L(t)),a[n]=a(t)}),{animated:a}},L=e=>j.is.str(e)?e:e&&j.is.str(e.displayName)?e.displayName:j.is.fun(e)&&e.name||null},32261:function(e,t,n){"use strict";let r,i;var a,o=Object.create,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))d.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=u(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?o(c(e)):{},f(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),p={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(p,{BailSignal:()=>J,Controller:()=>ex,FrameValue:()=>ea,Globals:()=>tl.Globals,Interpolation:()=>tr,Spring:()=>e7,SpringContext:()=>eR,SpringRef:()=>eF,SpringValue:()=>ef,Trail:()=>e6,Transition:()=>e8,config:()=>$,createInterpolator:()=>td.createInterpolator,easings:()=>td.easings,inferTo:()=>P,interpolate:()=>tu,to:()=>ts,update:()=>tc,useChain:()=>M,useInView:()=>e4,useIsomorphicLayoutEffect:()=>td.useIsomorphicLayoutEffect,useReducedMotion:()=>td.useReducedMotion,useResize:()=>e1,useScroll:()=>eJ,useSpring:()=>eN,useSpringRef:()=>ez,useSpringValue:()=>eq,useSprings:()=>e$,useTrail:()=>eB,useTransition:()=>eX}),e.exports=f(s({},"__esModule",{value:!0}),p);var v=n(64873),g=n(64873);function m(e,...t){return g.is.fun(e)?e(...t):e}var y=(e,t)=>!0===e||!!(t&&e&&(g.is.fun(e)?e(t):(0,g.toArray)(e).includes(t))),b=(e,t)=>g.is.obj(e)?t&&e[t]:e,w=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,S=e=>e,_=(e,t=S)=>{let n=x;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);g.is.und(n)||(r[i]=n)}return r},x=["config","onProps","onStart","onChange","onPause","onResume","onRest"],O={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function P(e){let t=function(e){let t={},n=0;if((0,g.eachProp)(e,(e,r)=>{O[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,g.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function E(e){return e=(0,g.getFluidValue)(e),g.is.arr(e)?e.map(E):(0,g.isAnimatedString)(e)?g.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function C(e){for(let t in e)return!0;return!1}function I(e){return g.is.fun(e)||g.is.arr(e)&&g.is.obj(e[0])}function k(e,t){e.ref?.delete(e),t?.delete(e)}function A(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function M(e,t,n=1e3){(0,v.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,v.each)(e,(e,i)=>{let a=e.current;if(a.length){let o=n*t[i];isNaN(o)?o=r:r=o,(0,v.each)(a,e=>{(0,v.each)(e.queue,e=>{let t=e.delay;e.delay=e=>o+m(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,v.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,v.each)(n,(e,t)=>(0,v.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var T=n(64873),j=n(67294),R=n(64873),D=n(64873),G=n(10130),F=n(64873),$={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},N={...$.default,mass:1,damping:1,easing:F.easings.linear,clamp:!1},V=class{constructor(){this.velocity=0,Object.assign(this,N)}};function L(e,t){if(F.is.und(t.decay)){let n=!F.is.und(t.tension)||!F.is.und(t.friction);!n&&F.is.und(t.frequency)&&F.is.und(t.damping)&&F.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var z=[],W=class{constructor(){this.changed=!1,this.values=z,this.toValues=null,this.fromValues=z,this.config=new V,this.immediate=!1}},q=n(64873);function H(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let u,l,c=y(n.cancel??r?.cancel,t);if(c)h();else{q.is.und(n.pause)||(i.paused=y(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||y(e,t)),u=m(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),u=l.time-q.raf.now()}function f(){u>0&&!q.Globals.skipAnimation?(i.delayed=!0,l=q.raf.setTimeout(h,u),i.pauseQueue.add(d),i.timeouts.add(l)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var B=n(64873),K=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?X(e.get()):t.every(e=>e.noop)?Y(e.get()):U(e.get(),t.every(e=>e.finished)),Y=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),U=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),X=e=>({value:e,cancelled:!0,finished:!1});function Q(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:u}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let l=_(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&X(r)||i!==n.asyncId&&U(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let a=new J,o=new ee;return(async()=>{if(B.Globals.skipAnimation)throw Z(n),o.result=U(r,!1),d(o),o;h(a);let s=B.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,B.eachProp)(l,(e,t)=>{B.is.und(s[t])&&(s[t]=e)});let u=await r.start(s);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()},v;if(B.Globals.skipAnimation)return Z(n),U(r,!1);try{let t;t=B.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),v=U(r.get(),!0,!1)}catch(e){if(e instanceof J)v=e.result;else if(e instanceof ee)v=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?u:void 0)}return B.is.fun(o)&&B.raf.batchedUpdates(()=>{o(v,r,r.item)}),v})():u}function Z(e,t){(0,B.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var J=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ee=class extends Error{constructor(){super("SkipAnimationSignal")}},et=n(64873),en=n(10130),er=e=>e instanceof ea,ei=1,ea=class extends et.FluidValue{constructor(){super(...arguments),this.id=ei++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,en.getAnimated)(this);return e&&e.getValue()}to(...e){return et.Globals.to(this,e)}interpolate(...e){return(0,et.deprecateInterpolate)(),et.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,et.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||et.frameLoop.sort(this),(0,et.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),es=e=>(1&e[eo])>0,eu=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,ec=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ed=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ef=class extends ea{constructor(e,t){if(super(),this.animation=new W,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!D.is.und(e)||!D.is.und(t)){let n=D.is.obj(e)?{...e}:{...t,from:e};D.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(eu(this)||this._state.asyncTo)||el(this)}get goal(){return(0,D.getFluidValue)(this.animation.to)}get velocity(){let e=(0,G.getAnimated)(this);return e instanceof G.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return es(this)}get isAnimating(){return eu(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=(0,G.getPayload)(r.to);!o&&(0,D.hasFluidValue)(r.to)&&(i=(0,D.toArray)((0,D.getFluidValue)(r.to))),r.values.forEach((s,u)=>{if(s.done)return;let l=s.constructor==G.AnimatedString?1:o?o[u].lastPosition:i[u],c=r.immediate,d=l;if(!c){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[u],i=null!=s.v0?s.v0:s.v0=D.is.arr(a.velocity)?a.velocity[u]:a.velocity,o,f=a.precision||(n==l?.005:Math.min(1,.001*Math.abs(l-n)));if(D.is.und(a.duration)){if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,o=i*r}else{o=null==s.lastVelocity?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,u=!D.is.und(r),h=n==l?s.v0>0:n<l,p=Math.ceil(e/1);for(let e=0;e<p&&!(!(Math.abs(o)>t)&&(c=Math.abs(l-d)<=f));++e){u&&(d==l||d>l==h)&&(o=-o*r,d=l);let e=(-(1e-6*a.tension)*(d-l)+-(.001*a.friction)*o)/a.mass;o+=1*e,d+=1*o}}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(a.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),o=((d=n+a.easing(r)*(l-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[u].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=(0,G.getAnimated)(this),u=s.getValue();if(t){let e=(0,D.getFluidValue)(r.to);(u!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return D.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(eu(this)){let{to:e,config:t}=this.animation;D.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return D.is.und(e)?(n=this.queue||[],this.queue=[]):n=[D.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>K(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),Z(this._state,e&&this._lastCallId),D.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=D.is.obj(n)?n[t]:n)||I(n))&&(n=void 0),null==(r=D.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return es(this)||(e.reverse&&([n,r]=[r,n]),r=(0,D.getFluidValue)(r),D.is.und(r)?(0,G.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_(e,(e,t)=>/^on/.test(t)?b(e,n):e)),ey(this,e,"onProps"),eb(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return H(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{el(this)||(ed(this,!0),(0,D.flushCalls)(a.pauseQueue),eb(this,"onPause",U(this,eh(this,this.animation.to)),this))},resume:()=>{el(this)&&(ed(this,!1),eu(this)&&this._resume(),(0,D.flushCalls)(a.resumeQueue),eb(this,"onResume",U(this,eh(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=ep(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(X(this));let r=!D.is.und(e.to),i=!D.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(X(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:u,from:l}=s,{to:c=u,from:d=l}=e;i&&!r&&(!t.default||D.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,D.isEqual)(d,l);f&&(s.from=d),d=(0,D.getFluidValue)(d);let h=!(0,D.isEqual)(c,u);h&&this._focus(c);let p=I(t.to),{config:v}=s,{decay:g,velocity:b}=v;(r||i)&&(v.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(L(n={...n},t),t={...n,...t}),L(e,t),Object.assign(e,t),N)null==e[r]&&(e[r]=N[r]);let{frequency:r,damping:i}=e,{mass:a}=e;F.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(v,m(t.config,a),t.config!==o.config?m(o.config,a):void 0);let w=(0,G.getAnimated)(this);if(!w||D.is.und(c))return n(U(this,!0));let S=D.is.und(t.reset)?i&&!t.default:!D.is.und(d)&&y(t.reset,a),_=S?d:this.get(),x=E(c),O=D.is.num(x)||D.is.arr(x)||(0,D.isAnimatedString)(x),P=!p&&(!O||y(o.immediate||t.immediate,a));if(h){let e=(0,G.getAnimatedType)(c);if(e!==w.constructor){if(P)w=this._set(x);else throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=w.constructor,k=(0,D.hasFluidValue)(c),A=!1;if(!k){let e=S||!es(this)&&f;(h||e)&&(k=!(A=(0,D.isEqual)(E(_),x))),((0,D.isEqual)(s.immediate,P)||P)&&(0,D.isEqual)(v.decay,g)&&(0,D.isEqual)(v.velocity,b)||(k=!0)}if(A&&eu(this)&&(s.changed&&!S?k=!0:k||this._stop(u)),!p&&((k||(0,D.hasFluidValue)(u))&&(s.values=w.getPayload(),s.toValues=(0,D.hasFluidValue)(c)?null:C==G.AnimatedString?[1]:(0,D.toArray)(x)),s.immediate==P||(s.immediate=P,P||S||this._set(u)),k)){let{onRest:e}=s;(0,D.each)(em,e=>ey(this,t,e));let r=U(this,eh(this,u));(0,D.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&D.raf.batchedUpdates(()=>{s.changed=!S,e?.(r,this),S?m(o.onRest,r):s.onStart?.(r,this)})}S&&this._set(_),p?n(Q(t.to,t,this._state,this)):k?this._start():eu(this)&&!h?this._pendingCalls.add(n):n(Y(_))}_focus(e){let t=this.animation;e!==t.to&&((0,D.getFluidObservers)(this)&&this._detach(),t.to=e,(0,D.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,D.hasFluidValue)(t)&&((0,D.addFluidObserver)(t,this),er(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,D.hasFluidValue)(e)&&(0,D.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,D.getFluidValue)(e);if(!D.is.und(n)){let e=(0,G.getAnimated)(this);if(!e||!(0,D.isEqual)(n,e.getValue())){let r=(0,G.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,G.setAnimated)(this,r.create(n)),e&&D.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,G.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,eb(this,"onStart",U(this,eh(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),m(this.animation.onChange,e,this)),m(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,G.getAnimated)(this).reset((0,D.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),eu(this)||(ec(this,!0),el(this)||this._resume())}_resume(){D.Globals.skipAnimation?this.finish():D.frameLoop.start(this)}_stop(e,t){if(eu(this)){ec(this,!1);let n=this.animation;(0,D.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,D.callFluidObservers)(this,{type:"idle",parent:this});let r=t?X(this.get()):U(this.get(),eh(this,e??n.to));(0,D.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,eb(this,"onRest",r,this))}}};function eh(e,t){let n=E(t),r=E(e.get());return(0,D.isEqual)(r,n)}function ep(e,t=e.loop,n=e.to){let r=m(t);if(r){let i=!0!==r&&P(r),a=(i||e).reverse,o=!i||i.reset;return ev({...e,loop:t,default:!1,pause:void 0,to:!a||I(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function ev(e){let{to:t,from:n}=e=P(e),r=new Set;return D.is.obj(t)&&eg(t,r),D.is.obj(n)&&eg(n,r),e.keys=r.size?Array.from(r):null,e}function eg(e,t){(0,D.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var em=["onStart","onRest","onChange","onPause","onResume"];function ey(e,t,n){e.animation[n]=t[n]!==w(t,n)?b(t[n],e.key):void 0}function eb(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ew=n(64873),eS=["onStart","onChange","onRest"],e_=1,ex=class{constructor(e,t){this.id=e_++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];ew.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ev(e)),this}start(e){let{queue:t}=this;return e?t=(0,ew.toArray)(e).map(ev):this.queue=[],this._flush?this._flush(this,t):(eA(this,t),eO(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ew.each)((0,ew.toArray)(t),t=>n[t].stop(!!e))}else Z(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ew.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ew.each)((0,ew.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ew.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ew.each)((0,ew.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ew.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,ew.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&(0,ew.flush)(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,(0,ew.flush)(n,([e,t])=>{t.value=o,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ew.raf.onFrame(this._onFrame)}};function eO(e,t){return Promise.all(t.map(t=>eP(e,t))).then(t=>K(e,t))}async function eP(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:u}=t,l=ew.is.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=ew.is.arr(i)||ew.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):(0,ew.each)(eS,n=>{let r=t[n];if(ew.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,ew.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===w(t,"cancel");(c||h&&d.asyncId)&&f.push(H(++e._lastAsyncId,{props:t,state:d,actions:{pause:ew.noop,resume:ew.noop,start(t,n){h?(Z(d,e._lastAsyncId),n(X(e))):(t.onRest=s,n(Q(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=K(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=ep(t,o,i);if(n)return eA(e,[n]),eP(e,n,!0)}return u&&ew.raf.batchedUpdates(()=>u(p,e,e.item)),p}function eE(e,t){let n={...e.springs};return t&&(0,ew.each)((0,ew.toArray)(t),e=>{ew.is.und(e.keys)&&(e=ev(e)),ew.is.obj(e.to)||(e={...e,to:void 0}),ek(n,e,e=>eI(e))}),eC(e,n),n}function eC(e,t){(0,ew.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ew.addFluidObserver)(t,e))})}function eI(e,t){let n=new ef;return n.key=e,t&&(0,ew.addFluidObserver)(n,t),n}function ek(e,t,n){t.keys&&(0,ew.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eA(e,t){(0,ew.each)(t,t=>{ek(e.springs,t,t=>eI(t,e))})}var eM=h(n(67294)),eT=n(67294),ej=n(64873),eR=({children:e,...t})=>{let n=(0,eT.useContext)(eD),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,ej.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=eD;return eM.createElement(a,{value:t},e)},eD=(a={},Object.assign(eR,eM.createContext(a)),eR.Provider._context=eR,eR.Consumer._context=eR,eR);eR.Provider=eD.Provider,eR.Consumer=eD.Consumer;var eG=n(64873),eF=()=>{let e=[],t=function(t){(0,eG.deprecateDirectCall)();let r=[];return(0,eG.each)(e,(e,i)=>{if(eG.is.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eG.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eG.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eG.each)(e,(e,n)=>{let r=eG.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eG.each)(e,(e,r)=>{if(eG.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eG.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eG.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eG.is.fun(e)?e(n,t):e};return t._getProps=n,t};function e$(e,t,n){let r=R.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,j.useMemo)(()=>r||3==arguments.length?eF():void 0,[]),a=(0,j.useRef)(0),o=(0,R.useForceUpdate)(),s=(0,j.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eE(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eC(e,n),s.queue.push(()=>{r(eO(e,t))}),o()}):eO(e,t)}}),[]),u=(0,j.useRef)([...s.ctrls]),l=[],c=(0,R.usePrev)(e)||0;function d(e,n){for(let i=e;i<n;i++){let e=u.current[i]||(u.current[i]=new ex(null,s.flush)),n=r?r(i,e):t[i];n&&(l[i]=function(e){let t=ev(e);return D.is.und(t.default)&&(t.default=_(t)),t}(n))}}(0,j.useMemo)(()=>{(0,R.each)(u.current.slice(e,c),e=>{k(e,i),e.stop(!0)}),u.current.length=e,d(c,e)},[e]),(0,j.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=u.current.map((e,t)=>eE(e,l[t])),h=(0,j.useContext)(eR),p=(0,R.usePrev)(h),v=h!==p&&C(h);(0,R.useIsomorphicLayoutEffect)(()=>{a.current++,s.ctrls=u.current;let{queue:e}=s;e.length&&(s.queue=[],(0,R.each)(e,e=>e())),(0,R.each)(u.current,(e,t)=>{i?.add(e),v&&e.start({default:h});let n=l[t];n&&(A(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,R.useOnce)(()=>()=>{(0,R.each)(s.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}function eN(e,t){let n=T.is.fun(e),[[r],i]=e$(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eV=n(67294),eL=()=>eF(),ez=()=>(0,eV.useState)(eL)[0],eW=n(64873),eq=(e,t)=>{let n=(0,eW.useConstant)(()=>new ef(e,t));return(0,eW.useOnce)(()=>()=>{n.stop()}),n},eH=n(64873);function eB(e,t,n){let r=eH.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,a,o=e$(e,(e,n)=>{let o=r?r(e,n):t;return a=o.ref,i=i&&o.reverse,o},n||[{}]);if((0,eH.useIsomorphicLayoutEffect)(()=>{(0,eH.each)(o[1].current,(e,t)=>{let n=o[1].current[t+(i?1:-1)];if(A(e,a),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=a??o[1];return e._getProps=(t,n,r)=>{let i=eH.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},o}return o[0]}var eK=h(n(67294)),eY=n(67294),eU=n(64873);function eX(e,t,n){let r=eU.is.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:u=!1,onDestroyed:l,ref:c,config:d}=r?r():t,f=(0,eY.useMemo)(()=>r||3==arguments.length?eF():void 0,[]),h=(0,eU.toArray)(e),p=[],v=(0,eY.useRef)(null),g=i?null:v.current;(0,eU.useIsomorphicLayoutEffect)(()=>{v.current=p}),(0,eU.useOnce)(()=>((0,eU.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eU.each)(v.current,e=>{e.expired&&clearTimeout(e.expirationId),k(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eQ++})}return eU.is.und(n)?e:eU.is.fun(n)?e.map(n):(0,eU.toArray)(n)}(h,r?r():t,g),b=i&&v.current||[];(0,eU.useIsomorphicLayoutEffect)(()=>(0,eU.each)(b,({ctrl:e,item:t,key:n})=>{k(e,f),m(l,t,n)}));let w=[];if(g&&(0,eU.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=w[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eU.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ex},p[t].ctrl.item=e)}),w.length){let e=-1,{leave:n}=r?r():t;(0,eU.each)(w,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eU.is.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let S=-o,x=(0,eU.useForceUpdate)(),O=_(t),E=new Map,I=(0,eY.useRef)(new Map),M=(0,eY.useRef)(!1);(0,eU.each)(p,(e,n)=>{let i=e.key,a=e.phase,l=r?r():t,f,h,p=m(l.delay||0,i);if("mount"==a)f=l.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=a){if(e)f=l.leave,h="leave";else{if(!(f=l.update))return;h="update"}}else{if(e)return;f=l.enter,h="enter"}}if(f=m(f,e.item,n),!(f=eU.is.obj(f)?P(f):{to:f}).config){let t=d||O.config;f.config=m(t,e.item,n,h)}S+=o;let b={...O,delay:p+S,ref:c,immediate:l.immediate,reset:!1,...f};if("enter"==h&&eU.is.und(b.from)){let i=r?r():t,a=eU.is.und(i.initial)||g?i.from:i.initial;b.from=m(a,e.item,n)}let{onResolve:w}=b;b.onResolve=e=>{m(w,e);let t=v.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=m(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(x,r));return}}}e&&t.some(e=>e.expired)&&(I.current.delete(n),u&&(M.current=!0),x())}};let _=eE(e.ctrl,b);"leave"===h&&u?I.current.set(e,{phase:h,springs:_,payload:b}):E.set(e,{phase:h,springs:_,payload:b})});let T=(0,eY.useContext)(eR),j=(0,eU.usePrev)(T),R=T!==j&&C(T);(0,eU.useIsomorphicLayoutEffect)(()=>{R&&(0,eU.each)(p,e=>{e.ctrl.start({default:T})})},[T]),(0,eU.each)(E,(e,t)=>{if(I.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(I.current.size?I.current:E,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:T}),t&&(A(r,t.ref),(r.ref||f)&&!M.current?r.update(t):(r.start(t),M.current&&(M.current=!1)))})},i?void 0:n);let D=e=>eK.createElement(eK.Fragment,null,p.map((t,n)=>{let{springs:r}=E.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eK.createElement(i.type,{...i.props,key:eU.is.str(t.key)||eU.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eQ=1,eZ=n(64873),eJ=({container:e,...t}={})=>{let[n,r]=eN(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eZ.useIsomorphicLayoutEffect)(()=>{let t=(0,eZ.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eZ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e0=n(64873),e1=({container:e,...t})=>{let[n,r]=eN(()=>({width:0,height:0,...t}),[]);return(0,e0.useIsomorphicLayoutEffect)(()=>{let t=(0,e0.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,e0.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e2=n(67294),e5=n(64873),e3={any:0,all:1};function e4(e,t){let[n,r]=(0,e2.useState)(!1),i=(0,e2.useRef)(),a=e5.is.fun(e)&&e,{to:o={},from:s={},...u}=a?a():{},l=a?t:e,[c,d]=eN(()=>({from:s,...u}),[]);return(0,e5.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:a,amount:u="any",...c}=l??{};if(!e||a&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(o&&d.start(o),r(!0),a?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e5.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof u||Array.isArray(u)?u:e3[u],...c});return p.observe(e),()=>p.unobserve(e)},[l]),a?[i,c]:[i,n]}function e7({children:e,...t}){return e(eN(t))}var e9=n(64873);function e6({items:e,children:t,...n}){let r=eB(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e9.is.fun(i)?i(r[n]):i})}function e8({items:e,children:t,...n}){return eX(e,n)(t)}var te=n(64873),tt=n(64873),tn=n(10130),tr=class extends ea{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,tt.createInterpolator)(...t);let n=this._get(),r=(0,tn.getAnimatedType)(n);(0,tn.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,tt.isEqual)(t,n)||((0,tn.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ta(this._active)&&to(this)}_get(){let e=tt.is.arr(this.source)?this.source.map(tt.getFluidValue):(0,tt.toArray)((0,tt.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ta(this._active)&&(this.idle=!1,(0,tt.each)((0,tn.getPayload)(this),e=>{e.done=!1}),tt.Globals.skipAnimation?(tt.raf.batchedUpdates(()=>this.advance()),to(this)):tt.frameLoop.start(this))}_attach(){let e=1;(0,tt.each)((0,tt.toArray)(this.source),t=>{(0,tt.hasFluidValue)(t)&&(0,tt.addFluidObserver)(t,this),er(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,tt.each)((0,tt.toArray)(this.source),e=>{(0,tt.hasFluidValue)(e)&&(0,tt.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,tt.toArray)(this.source).reduce((e,t)=>Math.max(e,(er(t)?t.priority:0)+1),0))}};function ti(e){return!1!==e.idle}function ta(e){return!e.size||Array.from(e).every(ti)}function to(e){e.idle||(e.idle=!0,(0,tt.each)((0,tn.getPayload)(e),e=>{e.done=!0}),(0,tt.callFluidObservers)(e,{type:"idle",parent:e}))}var ts=(e,...t)=>new tr(e,t),tu=(e,...t)=>((0,te.deprecateInterpolate)(),new tr(e,t)),tl=n(64873);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tr(e,t)});var tc=tl.frameLoop.advance,td=n(64873);r=n(41315),i=e.exports,f(p,r,"default"),i&&f(i,r,"default")},84104:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(a,{__raf:()=>O,raf:()=>s}),e.exports=((e,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let u of r(a))i.call(e,u)||u===o||t(e,u,{get:()=>a[u],enumerable:!(s=n(a,u))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=_(),s=e=>y(e,o),u=_();s.write=e=>y(e,u);var l=_();s.onStart=e=>y(e,l);var c=_();s.onFrame=e=>y(e,c);var d=_();s.onFinish=e=>y(e,d);var f=[];s.setTimeout=(e,t)=>{let n=s.now()+t,r=()=>{let e=f.findIndex(e=>e.cancel==r);~e&&f.splice(e,1),g-=~e?1:0},i={time:n,handler:e,cancel:r};return f.splice(h(n),0,i),g+=1,b(),i};var h=e=>~(~f.findIndex(t=>t.time>e)||~f.length);s.cancel=e=>{l.delete(e),c.delete(e),d.delete(e),o.delete(e),u.delete(e)},s.sync=e=>{m=!0,s.batchedUpdates(e),m=!1},s.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,s.onStart(n)}return r.handler=e,r.cancel=()=>{l.delete(n),t=null},r};var p="u">typeof window?window.requestAnimationFrame:()=>{};s.use=e=>p=e,s.now="u">typeof performance?()=>performance.now():Date.now,s.batchedUpdates=e=>e(),s.catch=console.error,s.frameLoop="always",s.advance=()=>{"demand"!==s.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var v=-1,g=0,m=!1;function y(e,t){m?(t.delete(e),e(0)):(t.add(e),b())}function b(){v<0&&(v=0,"demand"!==s.frameLoop&&p(w))}function w(){~v&&(p(w),s.batchedUpdates(S))}function S(){let e=v,t=h(v=s.now());if(t&&(x(f.splice(0,t),e=>e.handler()),g-=t),!g){v=-1;return}l.flush(),o.flush(e?Math.min(64,v-e):16.667),c.flush(),u.flush(),d.flush()}function _(){let e=new Set,t=e;return{add(n){g+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(g-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,g-=t.size,x(t,t=>t(n)&&e.add(t)),g+=e.size,t=e)}}}function x(e,t){e.forEach(e=>{try{t(e)}catch(e){s.catch(e)}})}var O={count:()=>g,isRunning:()=>v>=0,clear(){v=-1,f=[],l=_(),o=_(),c=_(),u=_(),d=_(),g=0}}},3022:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},u={};s(u,{FluidValue:()=>ev,Globals:()=>l,addFluidObserver:()=>em,callFluidObserver:()=>eh,callFluidObservers:()=>ep,clamp:()=>F,colorToRgba:()=>en,colors:()=>$,createInterpolator:()=>er,createStringInterpolator:()=>ek,defineHidden:()=>f,deprecateDirectCall:()=>eD,deprecateInterpolate:()=>ej,each:()=>v,eachProp:()=>g,easings:()=>es,flush:()=>y,flushCalls:()=>S,frameLoop:()=>T,getFluidObservers:()=>ef,getFluidValue:()=>ed,hasFluidValue:()=>ec,hex3:()=>B,hex4:()=>K,hex6:()=>Y,hex8:()=>U,hsl:()=>q,hsla:()=>H,is:()=>h,isAnimatedString:()=>eG,isEqual:()=>p,isSSR:()=>_,noop:()=>d,onResize:()=>eH,onScroll:()=>eJ,once:()=>eM,prefix:()=>eA,raf:()=>ts.raf,removeFluidObserver:()=>ey,rgb:()=>z,rgba:()=>W,setFluidGetter:()=>eg,toArray:()=>m,useConstant:()=>e1,useForceUpdate:()=>e9,useIsomorphicLayoutEffect:()=>e4,useMemoOne:()=>e8,useOnce:()=>tt,usePrev:()=>ti,useReducedMotion:()=>to}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of a(t))o.call(e,u)||u===n||r(e,u,{get:()=>t[u],enumerable:!(s=i(t,u))||s.enumerable});return e})(r({},"__esModule",{value:!0}),u);var l={};s(l,{assign:()=>E,colors:()=>x,createStringInterpolator:()=>b,skipAnimation:()=>O,to:()=>w,willAdvance:()=>P});var c=n(68008);function d(){}var f=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),h={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function p(e,t){if(h.arr(e)){if(!h.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var v=(e,t)=>e.forEach(t);function g(e,t,n){if(h.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var m=e=>h.und(e)?[]:h.arr(e)?e:[e];function y(e,t){if(e.size){let n=Array.from(e);e.clear(),v(n,t)}}var b,w,S=(e,...t)=>y(e,e=>e(...t)),_=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),x=null,O=!1,P=d,E=e=>{e.to&&(w=e.to),e.now&&(c.raf.now=e.now),void 0!==e.colors&&(x=e.colors),null!=e.skipAnimation&&(O=e.skipAnimation),e.createStringInterpolator&&(b=e.createStringInterpolator),e.requestAnimationFrame&&c.raf.use(e.requestAnimationFrame),e.batchedUpdates&&(c.raf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(P=e.willAdvance),e.frameLoop&&(c.raf.frameLoop=e.frameLoop)},C=n(68008),I=new Set,k=[],A=[],M=0,T={get idle(){return!I.size&&!k.length},start(e){M>e.priority?(I.add(e),C.raf.onStart(j)):(R(e),(0,C.raf)(G))},advance:G,sort(e){if(M)C.raf.onFrame(()=>T.sort(e));else{let t=k.indexOf(e);~t&&(k.splice(t,1),D(e))}},clear(){k=[],I.clear()}};function j(){I.forEach(R),I.clear(),(0,C.raf)(G)}function R(e){k.includes(e)||D(e)}function D(e){var t,n;let r;k.splice((t=k,n=t=>t.priority>e.priority,(r=t.findIndex(n))<0?t.length:r),0,e)}function G(e){let t=A;for(let n=0;n<k.length;n++){let r=k[n];M=r.priority,r.idle||(P(r),r.advance(e),r.idle||t.push(r))}return M=0,(A=k).length=0,(k=t).length>0}var F=(e,t,n)=>Math.min(Math.max(n,e),t),$={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},N="[-+]?\\d*\\.?\\d+",V=N+"%";function L(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var z=RegExp("rgb"+L(N,N,N)),W=RegExp("rgba"+L(N,N,N,N)),q=RegExp("hsl"+L(N,V,V)),H=RegExp("hsla"+L(N,V,V,N)),B=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,K=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Y=/^#([0-9a-fA-F]{6})$/,U=/^#([0-9a-fA-F]{8})$/;function X(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Q(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*X(i,r,e+1/3))<<24|Math.round(255*X(i,r,e))<<16|Math.round(255*X(i,r,e-1/3))<<8}function Z(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function J(e){return(parseFloat(e)%360+360)%360/360}function ee(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function et(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function en(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Y.exec(e))?parseInt(t[1]+"ff",16)>>>0:x&&void 0!==x[e]?x[e]:(t=z.exec(e))?(Z(t[1])<<24|Z(t[2])<<16|Z(t[3])<<8|255)>>>0:(t=W.exec(e))?(Z(t[1])<<24|Z(t[2])<<16|Z(t[3])<<8|ee(t[4]))>>>0:(t=B.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=U.exec(e))?parseInt(t[1],16)>>>0:(t=K.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=q.exec(e))?(255|Q(J(t[1]),et(t[2]),et(t[3])))>>>0:(t=H.exec(e))?(Q(J(t[1]),et(t[2]),et(t[3]))|ee(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,a=(65280&n)>>>8,o=(255&n)/255;return`rgba(${r}, ${i}, ${a}, ${o})`}var er=(e,t,n)=>{if(h.fun(e))return e;if(h.arr(e))return er({range:e,output:t,extrapolate:n});if(h.str(e.output[0]))return b(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,u){let l=u?u(e):e;if(l<t){if("identity"===o)return l;"clamp"===o&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(t,i[n],i[n+1],r[n],r[n+1],s,a,o,e.map)}},ei=2*Math.PI/3,ea=2*Math.PI/4.5,eo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,es={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ei),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ei)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ea))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ea)/2+1,easeInBounce:e=>1-eo(1-e),easeOutBounce:eo,easeInOutBounce:e=>e<.5?(1-eo(1-2*e))/2:(1+eo(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return F(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},eu=Symbol.for("FluidValue.get"),el=Symbol.for("FluidValue.observers"),ec=e=>!!(e&&e[eu]),ed=e=>e&&e[eu]?e[eu]():e,ef=e=>e[el]||null;function eh(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ep(e,t){let n=e[el];n&&n.forEach(e=>{eh(e,t)})}var ev=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eg(this,e)}},eg=(e,t)=>ew(e,eu,t);function em(e,t){if(e[eu]){let n=e[el];n||ew(e,el,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ey(e,t){let n=e[el];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[el]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eb,ew=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eS=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,e_=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ex=RegExp(`(${eS.source})(%|[a-z]+)`,"i"),eO=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eE=e=>{let[t,n]=eC(e);if(!t||_())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eP.test(n)?eE(n):n||e},eC=e=>{let t=eP.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eI=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ek=e=>{eb||(eb=x?RegExp(`(${Object.keys(x).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>ed(e).replace(eP,eE).replace(e_,en).replace(eb,en)),n=t.map(e=>e.match(eS).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>er({...e,output:t}));return e=>{let n=!ex.test(t[0])&&t.find(e=>ex.test(e))?.replace(eS,""),i=0;return t[0].replace(eS,()=>`${r[i++](e)}${n||""}`).replace(eO,eI)}},eA="react-spring: ",eM=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eA}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eT=eM(console.warn);function ej(){eT(`${eA}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eR=eM(console.warn);function eD(){eR(`${eA}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eG(e){return h.str(e)&&("#"==e[0]||/\d/.test(e)||!_()&&eP.test(e)||e in(x||{}))}var eF,e$,eN=n(68008),eV=new WeakMap,eL=e=>e.forEach(({target:e,contentRect:t})=>eV.get(e)?.forEach(e=>e(t))),ez=new Set,eW=()=>{let e=()=>{ez.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},eq=e=>(ez.add(e),e$||(e$=eW()),()=>{ez.delete(e),!ez.size&&e$&&(e$(),e$=void 0)}),eH=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?eq(e):(eF||"u">typeof ResizeObserver&&(eF=new ResizeObserver(eL)),(n=eV.get(t))||(n=new Set,eV.set(t,n)),n.add(e),eF&&eF.observe(t),()=>{let n=eV.get(t);n&&(n.delete(e),!n.size&&eF&&eF.unobserve(t))})},eB=(e,t,n)=>t-e==0?1:(n-e)/(t-e),eK={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},eY=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=eK[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container[`scroll${n}`]-this.container[`client${n}`],t.progress=eB(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},eU=new WeakMap,eX=new WeakMap,eQ=new WeakMap,eZ=e=>e===document.documentElement?window:e,eJ=(e,{container:t=document.documentElement}={})=>{let n=eQ.get(t);n||(n=new Set,eQ.set(t,n));let r=new eY(e,t);if(n.add(r),!eU.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);eU.set(t,e);let r=eZ(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&eX.set(t,eH(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=eU.get(t);return(0,eN.raf)(i),()=>{eN.raf.cancel(i);let e=eQ.get(t);if(!e||(e.delete(r),e.size))return;let n=eU.get(t);eU.delete(t),n&&(eZ(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),eX.get(t)?.())}},e0=n(67294);function e1(e){let t=(0,e0.useRef)(null);return null===t.current&&(t.current=e()),t.current}var e2=n(67294),e5=n(67294),e3=n(67294),e4=_()?e3.useEffect:e3.useLayoutEffect,e7=()=>{let e=(0,e5.useRef)(!1);return e4(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function e9(){let e=(0,e2.useState)()[1],t=e7();return()=>{t.current&&e(Math.random())}}var e6=n(67294);function e8(e,t){let[n]=(0,e6.useState)(()=>({inputs:t,result:e()})),r=(0,e6.useRef)(),i=r.current,a=i;return a?t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs)||(a={inputs:t,result:e()}):a=n,(0,e6.useEffect)(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}var te=n(67294),tt=e=>(0,te.useEffect)(e,tn),tn=[],tr=n(67294);function ti(e){let t=(0,tr.useRef)();return(0,tr.useEffect)(()=>{t.current=e}),t.current}var ta=n(67294),to=()=>{let[e,t]=(0,ta.useState)(null);return e4(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),E({skipAnimation:e.matches})};return n(e),e.addEventListener?e.addEventListener("change",n):e.addListener(n),()=>{e.removeEventListener?e.removeEventListener("change",n):e.removeListener(n)}},[]),e},ts=n(68008)},19032:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(a,{Any:()=>o}),e.exports=((e,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let u of r(a))i.call(e,u)||u===o||t(e,u,{get:()=>a[u],enumerable:!(s=n(a,u))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=class{}},65609:function(e,t,n){"use strict";let r,i;var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))u.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>k,animated:()=>k}),e.exports=l(a({},"__esModule",{value:!0}),c);var d=n(24158),f=n(73935),h=n(64873),p=n(10130),v=/^--/,g={},m={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),b=["Webkit","Ms","Moz","O"];m=Object.keys(m).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),m);var w=n(10130),S=n(64873),_=/^(matrix|translate|scale|rotate|skew)/,x=/^(translate)/,O=/^(rotate|skew)/,P=(e,t)=>S.is.num(e)&&0!==e?e+t:e,E=(e,t)=>S.is.arr(e)?e.every(e=>E(e,t)):S.is.num(e)?e===t:parseFloat(e)===t,C=class extends w.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>P(e,"px")).join(",")})`,E(e,0)])),(0,S.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(_.test(t)){if(delete r[t],S.is.und(e))return;let n=x.test(t)?"px":O.test(t)?"deg":"";i.push((0,S.toArray)(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${P(i,n)})`,E(i,0)]:e=>[`${t}(${e.map(e=>P(e,n)).join(",")})`,E(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new I(i,a)),super(r)}},I=class extends S.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,S.each)(this.inputs,(n,r)=>{let i=(0,S.getFluidValue)(n[0]),[a,o]=this.transforms[r](S.is.arr(i)?i:n.map(S.getFluidValue));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&(0,S.each)(this.inputs,e=>(0,S.each)(e,e=>(0,S.hasFluidValue)(e)&&(0,S.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,S.each)(this.inputs,e=>(0,S.each)(e,e=>(0,S.hasFluidValue)(e)&&(0,S.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,S.callFluidObservers)(this,e)}};r=n(24158),i=e.exports,l(c,r,"default"),i&&l(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var k=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:u,...l}=t,c=Object.values(l),d=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:g[t]||(g[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==a&&(e.textContent=a),i)if(i.hasOwnProperty(t)){var f;let n=null==(f=i[t])||"boolean"==typeof f||""===f?"":"number"!=typeof f||0===f||v.test(t)||m.hasOwnProperty(t)&&m[t]?(""+f).trim():f+"px";v.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach((t,n)=>{e.setAttribute(t,c[n])}),void 0!==r&&(e.className=r),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s),void 0!==u&&e.setAttribute("viewBox",u)},createAnimatedStyle:e=>new C(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated}}]);