1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7905],{7329:function(){},9655:function(t,e,n){"use strict";var i,s;n.d(e,{OL:function(){return A},aj:function(){return p},pG:function(){return T},rU:function(){return C}});var r=n(7294),o=n(3935),a=n(9250),l=n(2599);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},u.apply(this,arguments)}function c(t,e){if(null==t)return{};var n,i,s={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(s[n]=t[n]);return s}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const h=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],d=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(M){}function p(t,e){return(0,l.p7)({basename:null==e?void 0:e.basename,future:u({},null==e?void 0:e.future,{v7_prependBasename:!0}),history:(0,l.lX)({window:null==e?void 0:e.window}),hydrationData:(null==e?void 0:e.hydrationData)||m(),routes:t,mapRouteProperties:a.us,unstable_dataStrategy:null==e?void 0:e.unstable_dataStrategy,window:null==e?void 0:e.window}).initialize()}function m(){var t;let e=null==(t=window)?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=u({},e,{errors:f(e.errors)})),e}function f(t){if(!t)return null;let e=Object.entries(t),n={};for(let[i,s]of e)if(s&&"RouteErrorResponse"===s.__type)n[i]=new l.OF(s.status,s.statusText,s.data,!0===s.internal);else if(s&&"Error"===s.__type){if(s.__subType){let t=window[s.__subType];if("function"===typeof t)try{let e=new t(s.message);e.stack="",n[i]=e}catch(M){}}if(null==n[i]){let t=new Error(s.message);t.stack="",n[i]=t}}else n[i]=s;return n}const v=r.createContext({isTransitioning:!1});const g=r.createContext(new Map);const y=(i||(i=n.t(r,2))).startTransition,x=(s||(s=n.t(o,2))).flushSync;(i||(i=n.t(r,2))).useId;function w(t){x?x(t):t()}class P{constructor(){this.status="pending",this.promise=new Promise(((t,e)=>{this.resolve=e=>{"pending"===this.status&&(this.status="resolved",t(e))},this.reject=t=>{"pending"===this.status&&(this.status="rejected",e(t))}}))}}function T(t){let{fallbackElement:e,router:n,future:i}=t,[s,o]=r.useState(n.state),[l,u]=r.useState(),[c,h]=r.useState({isTransitioning:!1}),[d,p]=r.useState(),[m,f]=r.useState(),[x,T]=r.useState(),S=r.useRef(new Map),{v7_startTransition:E}=i||{},C=r.useCallback((t=>{E?function(t){y?y(t):t()}(t):t()}),[E]),A=r.useCallback(((t,e)=>{let{deletedFetchers:i,unstable_flushSync:s,unstable_viewTransitionOpts:r}=e;i.forEach((t=>S.current.delete(t))),t.fetchers.forEach(((t,e)=>{void 0!==t.data&&S.current.set(e,t.data)}));let a=null==n.window||null==n.window.document||"function"!==typeof n.window.document.startViewTransition;if(r&&!a){if(s){w((()=>{m&&(d&&d.resolve(),m.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:r.currentLocation,nextLocation:r.nextLocation})}));let e=n.window.document.startViewTransition((()=>{w((()=>o(t)))}));return e.finished.finally((()=>{w((()=>{p(void 0),f(void 0),u(void 0),h({isTransitioning:!1})}
1))})),void w((()=>f(e)))}m?(d&&d.resolve(),m.skipTransition(),T({state:t,currentLocation:r.currentLocation,nextLocation:r.nextLocation})):(u(t),h({isTransitioning:!0,flushSync:!1,currentLocation:r.currentLocation,nextLocation:r.nextLocation}))}else s?w((()=>o(t))):C((()=>o(t)))}),[n.window,m,d,S,C]);r.useLayoutEffect((()=>n.subscribe(A)),[n,A]),r.useEffect((()=>{c.isTransitioning&&!c.flushSync&&p(new P)}),[c]),r.useEffect((()=>{if(d&&l&&n.window){let t=l,e=d.promise,i=n.window.document.startViewTransition((async()=>{C((()=>o(t))),await e}));i.finished.finally((()=>{p(void 0),f(void 0),u(void 0),h({isTransitioning:!1})})),f(i)}}),[C,l,d,n.window]),r.useEffect((()=>{d&&l&&s.location.key===l.location.key&&d.resolve()}),[d,m,s.location,l]),r.useEffect((()=>{!c.isTransitioning&&x&&(u(x.state),h({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),T(void 0))}),[c.isTransitioning,x]),r.useEffect((()=>{}),[]);let R=r.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:t=>n.navigate(t),push:(t,e,i)=>n.navigate(t,{state:e,preventScrollReset:null==i?void 0:i.preventScrollReset}),replace:(t,e,i)=>n.navigate(t,{replace:!0,state:e,preventScrollReset:null==i?void 0:i.preventScrollReset})})),[n]),V=n.basename||"/",k=r.useMemo((()=>({router:n,navigator:R,static:!1,basename:V})),[n,R,V]);return r.createElement(r.Fragment,null,r.createElement(a.w3.Provider,{value:k},r.createElement(a.FR.Provider,{value:s},r.createElement(g.Provider,{value:S.current},r.createElement(v.Provider,{value:c},r.createElement(a.F0,{basename:V,location:s.location,navigationType:s.historyAction,navigator:R,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},s.initialized||n.future.v7_partialHydration?r.createElement(b,{routes:n.routes,future:n.future,state:s}):e))))),null)}function b(t){let{routes:e,future:n,state:i}=t;return(0,a.DY)(e,void 0,i,n)}const S="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,E=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C=r.forwardRef((function(t,e){let n,{onClick:i,relative:s,reloadDocument:o,replace:d,state:p,target:m,to:f,preventScrollReset:v,unstable_viewTransition:g}=t,y=c(t,h),{basename:x}=r.useContext(a.Us),w=!1;if("string"===typeof f&&E.test(f)&&(n=f,S))try{let t=new URL(window.location.href),e=f.startsWith("//")?new URL(t.protocol+f):new URL(f),n=(0,l.Zn)(e.pathname,x);e.origin===t.origin&&null!=n?f=n+e.search+e.hash:w=!0}catch(M){}let P=(0,a.oQ)(f,{relative:s}),T=function(t,e){let{target:n,replace:i,state:s,preventScrollReset:o,relative:u,unstable_viewTransition:c}=void 0===e?{}:e,h=(0,a.s0)(),d=(0,a.TH)(),p=(0,a.WU)(t,{relative:u});return r.useCallback((e=>{if(function(t,e){return 0===t.button&&(!e||"_self"===e)&&!function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)}(e,n)){e.preventDefault();let n=void 0!==i?i:(0,l.Ep)(d)===(0,l.Ep)(p);h(t,{replace:n,state:s,preventScrollReset:o,relative:u,unstable_viewTransition:c})}}),[d,h,p,i,s,n,t,o,u,c])}(f,{replace:d,state:p,target:m,preventScrollReset:v,relative:s,unstable_viewTransition:g});return r.createElement("a",u({},y,{href:n||P,onClick:w||o?i:function(t){i&&i(t),t.defaultPrevented||T(t)},ref:e,target:m}))}));const A=r.forwardRef((function(t,e){let{"aria-current":n="page",caseSensitive:i=!1,className:s="",end:o=!1,style:h,to:p,unstable_viewTransition:m,children:f}=t,g=c(t,d),y=(0,a.WU)(p,{relative:g.relative}),x=(0,a.TH)(),w=r.useContext(a.FR),{navigator:P,basename:T}=r.useContext(a.Us),b=null!=w&&function(t,e){void 0===e&&(e={});let n=r.useContext(v);null==n&&(0,l.J0)(!1);let{basename:i}=k(R.useViewTransitionState),s=(0,a.WU)(t,{relative:e.relative});if(!n.isTransitioning)return!1;let o=(0,l.Zn)(n.currentLocation.pathname,i)||n.currentLocation.pathname,u=(0,l.Zn)(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=(0,l.LX)(s.pathname,u)||null!=(0,l.LX)(s.pathname,o)}(y)&&!0===m,S=P.encodeLocation?P.encodeLocation(y).pathname:y.pathname,E=x.pathname,A=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(E=E.toLowerCase(),A=A?A.toLowerCase():null,S=S.toLowerCase()),A&&T&&(A=(0,l.Zn)(A,T)||A);const V="/"!==S&&S.endsWith("/")?S.length-1:S.length;let M,D=E===S||!o&&E.startsWith(S)&&"/"===E.charAt(V),L=null!=A&&(A===S||!o&&A.startsWith(S)&&"/"===A.charAt(S.length)),j={isActive:D,isPending:L,isTransitioning:b},F=D?n:void 0;M="function"===typeof s?s(j):[s,D?"active":null,L?"pending":null,b?"transitioning":null].filter(
1Boolean).join(" ");let B="function"===typeof h?h(j):h;return r.createElement(C,u({},g,{"aria-current":F,className:M,ref:e,style:B,to:p,unstable_viewTransition:m}),"function"===typeof f?f(j):f)}));var R,V;function k(t){let e=r.useContext(a.w3);return e||(0,l.J0)(!1),e}(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(R||(R={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(V||(V={}))},9250:function(t,e,n){"use strict";var i;n.d(e,{DY:function(){return P},F0:function(){return j},FR:function(){return l},TH:function(){return f},UO:function(){return x},Us:function(){return u},WU:function(){return w},j3:function(){return L},oQ:function(){return p},s0:function(){return g},us:function(){return F},w3:function(){return a}});var s=n(7294),r=n(2599);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}const a=s.createContext(null);const l=s.createContext(null);const u=s.createContext(null);const c=s.createContext(null);const h=s.createContext({outlet:null,matches:[],isDataRoute:!1});const d=s.createContext(null);function p(t,e){let{relative:n}=void 0===e?{}:e;m()||(0,r.J0)(!1);let{basename:i,navigator:o}=s.useContext(u),{hash:a,pathname:l,search:c}=w(t,{relative:n}),h=l;return"/"!==i&&(h="/"===l?i:(0,r.RQ)([i,l])),o.createHref({pathname:h,search:c,hash:a})}function m(){return null!=s.useContext(c)}function f(){return m()||(0,r.J0)(!1),s.useContext(c).location}function v(t){s.useContext(u).static||s.useLayoutEffect(t)}function g(){let{isDataRoute:t}=s.useContext(h);return t?function(){let{router:t}=V(A.UseNavigateStable),e=M(R.UseNavigateStable),n=s.useRef(!1);return v((()=>{n.current=!0})),s.useCallback((function(i,s){void 0===s&&(s={}),n.current&&("number"===typeof i?t.navigate(i):t.navigate(i,o({fromRouteId:e},s)))}),[t,e])}():function(){m()||(0,r.J0)(!1);let t=s.useContext(a),{basename:e,future:n,navigator:i}=s.useContext(u),{matches:o}=s.useContext(h),{pathname:l}=f(),c=JSON.stringify((0,r.cm)(o,n.v7_relativeSplatPath)),d=s.useRef(!1);return v((()=>{d.current=!0})),s.useCallback((function(n,s){if(void 0===s&&(s={}),!d.current)return;if("number"===typeof n)return void i.go(n);let o=(0,r.pC)(n,JSON.parse(c),l,"path"===s.relative);null==t&&"/"!==e&&(o.pathname="/"===o.pathname?e:(0,r.RQ)([e,o.pathname])),(s.replace?i.replace:i.push)(o,s.state,s)}),[e,i,c,l,t])}()}const y=s.createContext(null);function x(){let{matches:t}=s.useContext(h),e=t[t.length-1];return e?e.params:{}}function w(t,e){let{relative:n}=void 0===e?{}:e,{future:i}=s.useContext(u),{matches:o}=s.useContext(h),{pathname:a}=f(),l=JSON.stringify((0,r.cm)(o,i.v7_relativeSplatPath));return s.useMemo((()=>(0,r.pC)(t,JSON.parse(l),a,"path"===n)),[t,l,a,n])}function P(t,e,n,i){m()||(0,r.J0)(!1);let{navigator:a}=s.useContext(u),{matches:l}=s.useContext(h),d=l[l.length-1],p=d?d.params:{},v=(d&&d.pathname,d?d.pathnameBase:"/");d&&d.route;let g,y=f();if(e){var x;let t="string"===typeof e?(0,r.cP)(e):e;"/"===v||(null==(x=t.pathname)?void 0:x.startsWith(v))||(0,r.J0)(!1),g=t}else g=y;let w=g.pathname||"/",P=w;if("/"!==v){let t=v.replace(/^\//,"").split("/");P="/"+w.replace(/^\//,"").split("/").slice(t.length).join("/")}let T=(0,r.fp)(t,{pathname:P});let b=C(T&&T.map((t=>Object.assign({},t,{params:Object.assign({},p,t.params),pathname:(0,r.RQ)([v,a.encodeLocation?a.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?v:(0,r.RQ)([v,a.encodeLocation?a.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),l,n,i);return e&&b?s.createElement(c.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:r.aU.Pop}},b):b}function T(){let t=function(){var t;let e=s.useContext(d),n=k(R.UseRouteError),i=M(R.UseRouteError);if(void 0!==e)return e;return null==(t=n.errors)?void 0:t[i]}(),e=(0,r.WK)(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application
1Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},e),n?s.createElement("pre",{style:o},n):null,null)}const b=s.createElement(T,null);class S extends s.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?s.createElement(h.Provider,{value:this.props.routeContext},s.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E(t){let{routeContext:e,match:n,children:i}=t,r=s.useContext(a);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),s.createElement(h.Provider,{value:e},i)}function C(t,e,n,i){var o;if(void 0===e&&(e=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==t){var a;if(null==(a=n)||!a.errors)return null;t=n.matches}let l=t,u=null==(o=n)?void 0:o.errors;if(null!=u){let t=l.findIndex((t=>t.route.id&&void 0!==(null==u?void 0:u[t.route.id])));t>=0||(0,r.J0)(!1),l=l.slice(0,Math.min(l.length,t+1))}let c=!1,h=-1;if(n&&i&&i.v7_partialHydration)for(let s=0;s<l.length;s++){let t=l[s];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(h=s),t.route.id){let{loaderData:e,errors:i}=n,s=t.route.loader&&void 0===e[t.route.id]&&(!i||void 0===i[t.route.id]);if(t.route.lazy||s){c=!0,l=h>=0?l.slice(0,h+1):[l[0]];break}}}return l.reduceRight(((t,i,r)=>{let o,a=!1,d=null,p=null;var m;n&&(o=u&&i.route.id?u[i.route.id]:void 0,d=i.route.errorElement||b,c&&(h<0&&0===r?(m="route-fallback",!1||D[m]||(D[m]=!0),a=!0,p=null):h===r&&(a=!0,p=i.route.hydrateFallbackElement||null)));let f=e.concat(l.slice(0,r+1)),v=()=>{let e;return e=o?d:a?p:i.route.Component?s.createElement(i.route.Component,null):i.route.element?i.route.element:t,s.createElement(E,{match:i,routeContext:{outlet:t,matches:f,isDataRoute:null!=n},children:e})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?s.createElement(S,{location:n.location,revalidation:n.revalidation,component:d,error:o,children:v(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):v()}),null)}var A=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(A||{}),R=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(R||{});function V(t){let e=s.useContext(a);return e||(0,r.J0)(!1),e}function k(t){let e=s.useContext(l);return e||(0,r.J0)(!1),e}function M(t){let e=function(t){let e=s.useContext(h);return e||(0,r.J0)(!1),e}(),n=e.matches[e.matches.length-1];return n.route.id||(0,r.J0)(!1),n.route.id}const D={};(i||(i=n.t(s,2))).startTransition;function L(t){return function(t){let e=s.useContext(h).outlet;return e?s.createElement(y.Provider,{value:t},e):e}(t.context)}function j(t){let{basename:e="/",children:n=null,location:i,navigationType:a=r.aU.Pop,navigator:l,static:h=!1,future:d}=t;m()&&(0,r.J0)(!1);let p=e.replace(/^\/*/,"/"),f=s.useMemo((()=>({basename:p,navigator:l,static:h,future:o({v7_relativeSplatPath:!1},d)})),[p,d,l,h]);"string"===typeof i&&(i=(0,r.cP)(i));let{pathname:v="/",search:g="",hash:y="",state:x=null,key:w="default"}=i,P=s.useMemo((()=>{let t=(0,r.Zn)(v,p);return null==t?null:{location:{pathname:t,search:g,hash:y,state:x,key:w},navigationType:a}}),[p,v,g,y,x,w,a]);return null==P?null:s.createElement(u.Provider,{value:f},s.createElement(c.Provider,{children:n,value:P}))}new Promise((()=>{}));s.Component;function F(t){let e={hasErrorBoundary:null!=t.ErrorBoundary||null!=t.errorElement};return t.Component&&Object.assign(e,{element:s.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:s.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:s.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}}
1,1526:function(t,e,n){"use strict";n.d(e,{M:function(){return y}});var i=n(5893),s=n(7294),r=n(8868);function o(){const t=(0,s.useRef)(!1);return(0,r.L)((()=>(t.current=!0,()=>{t.current=!1})),[]),t}var a=n(6166);var l=n(240),u=n(6681),c=n(6014);class h extends s.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:e}){const n=(0,s.useId)(),r=(0,s.useRef)(null),o=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,s.useContext)(c._);return(0,s.useInsertionEffect)((()=>{const{width:t,height:i,top:s,left:l}=o.current;if(e||!r.current||!t||!i)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${i}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(u)}}),[e]),(0,i.jsx)(h,{isPresent:e,childRef:r,sizeRef:o,children:s.cloneElement(t,{ref:r})})}const p=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:c})=>{const h=(0,u.h)(m),p=(0,s.useId)(),f=(0,s.useMemo)((()=>({id:p,initial:e,isPresent:n,custom:o,onExitComplete:t=>{h.set(t,!0);for(const e of h.values())if(!e)return;r&&r()},register:t=>(h.set(t,!1),()=>h.delete(t))})),a?[Math.random()]:[n]);return(0,s.useMemo)((()=>{h.forEach(((t,e)=>h.set(e,!1)))}),[n]),s.useEffect((()=>{!n&&!h.size&&r&&r()}),[n]),"popLayout"===c&&(t=(0,i.jsx)(d,{isPresent:n,children:t})),(0,i.jsx)(l.O.Provider,{value:f,children:t})};function m(){return new Map}var f=n(5364);var v=n(5487);const g=t=>t.key||"";const y=({children:t,custom:e,initial:n=!0,onExitComplete:l,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:h="sync"})=>{(0,v.k)(!u,"Replace exitBeforeEnter with mode='wait'");const d=(0,s.useContext)(f.p).forceRender||function(){const t=o(),[e,n]=(0,s.useState)(0),i=(0,s.useCallback)((()=>{t.current&&n(e+1)}),[e]);return[(0,s.useCallback)((()=>a.Wi.postRender(i)),[i]),e]}()[0],m=o(),y=function(t){const e=[];return s.Children.forEach(t,(t=>{(0,s.isValidElement)(t)&&e.push(t)})),e}(t);let x=y;const w=(0,s.useRef)(new Map).current,P=(0,s.useRef)(x),T=(0,s.useRef)(new Map).current,b=(0,s.useRef)(!0);var S;if((0,r.L)((()=>{b.current=!1,function(t,e){t.forEach((t=>{const n=g(t);e.set(n,t)}))}(y,T),P.current=x})),S=()=>{b.current=!0,T.clear(),w.clear()},(0,s.useEffect)((()=>()=>S()),[]),b.current)return(0,i.jsx)(i.Fragment,{children:x.map((t=>(0,i.jsx)(p,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:c,mode:h,children:t},g(t))))});x=[...x];const E=P.current.map(g),C=y.map(g),A=E.length;for(let i=0;i<A;i++){const t=E[i];-1!==C.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===h&&w.size&&(x=[]),w.forEach(((t,n)=>{if(-1!==C.indexOf(n))return;const s=T.get(n);if(!s)return;const r=E.indexOf(n);let o=t;if(!o){const t=()=>{w.delete(n);const t=Array.from(T.keys()).filter((t=>!C.includes(t)));if(t.forEach((t=>T.delete(t))),P.current=y.filter((e=>{const i=g(e);return i===n||t.includes(i)})),!w.size){if(!1===m.current)return;d(),l&&l()}};o=(0,i.jsx)(p,{isPresent:!1,onExitComplete:t,custom:e,presenceAffectsLayout:c,mode:h,children:s},g(s)),w.set(n,o)}x.splice(r,0,o)})),x=x.map((t=>{const e=t.key;return w.has(e)?t:(0,i.jsx)(p,{isPresent:!0,presenceAffectsLayout:c,mode:h,children:t},g(t))})),(0,i.jsx)(i.Fragment,{children:w.size?x:x.map((t=>(0,s.cloneElement)(t)))})}},5364:function(t,e,n){"use strict";n.d(e,{p:function(){return i}});const i=(0,n(7294).createContext)({})},6014:function(t,e,n){"use strict";n.d(e,{_:function(){return i}});const i=(0,n(7294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,n){"use strict";n.d(e,{O:function(){return i}});const i=(0,n(7294).createContext)(null)},9727:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(2081);class s{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const r=["read","resolveKeyframes","update","preRender","render","postRender"];function o(t,e){let n=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=r.reduce(((t,e)=>(t[e]=function(t){let e=new s,n=new s,i=0,r=!1,o=!1;const a=new WeakSet,l={schedule:(t,s=!1,o=!1)=>{const l=o&&r,u=l?e:n;return s&&a.add(t),u.add(t)&&l&&r&&(i=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:s=>
1{if(r)o=!0;else{if(r=!0,[e,n]=[n,e],n.clear(),i=e.order.length,i)for(let n=0;n<i;n++){const i=e.order[n];a.has(i)&&(l.schedule(i),t()),i(s)}r=!1,o&&(o=!1,l.process(s))}}};return l}((()=>n=!0)),t)),{}),u=t=>{l[t].process(a)},c=()=>{const s=i.c.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=o?1e3/60:Math.max(Math.min(s-a.timestamp,40),1),a.timestamp=s,a.isProcessing=!0,r.forEach(u),a.isProcessing=!1,n&&e&&(o=!1,t(c))};return{schedule:r.reduce(((e,i)=>{const s=l[i];return e[i]=(e,i=!1,r=!1)=>(n||(n=!0,o=!0,a.isProcessing||t(c)),s.schedule(e,i,r)),e}),{}),cancel:t=>r.forEach((e=>l[e].cancel(t))),state:a,steps:l}}},6166:function(t,e,n){"use strict";n.d(e,{Pn:function(){return o},S6:function(){return l},Wi:function(){return r},w0:function(){return a}});var i=n(1662),s=n(9727);const{schedule:r,cancel:o,state:a,steps:l}=(0,s.Z)("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},1610:function(t,e,n){"use strict";n.d(e,{E:function(){return lo}});var i=n(5893),s=n(7294),r=n(6014);const o=(0,s.createContext)({});var a=n(240),l=n(8868);const u=(0,s.createContext)({strict:!1}),c=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),h="data-"+c("framerAppearId");var d=n(9727);const{schedule:p,cancel:m}=(0,d.Z)(queueMicrotask,!1);function f(t){return t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function v(t,e,n){return(0,s.useCallback)((i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"===typeof n?n(i):f(n)&&(n.current=i))}),[e])}function g(t){return"string"===typeof t||Array.isArray(t)}function y(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}const x=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],w=["initial",...x];function P(t){return y(t.animate)||w.some((e=>g(t[e])))}function T(t){return Boolean(P(t)||t.variants)}function b(t){const{initial:e,animate:n}=function(t,e){if(P(t)){const{initial:e,animate:n}=t;return{initial:!1===e||g(e)?e:void 0,animate:g(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(o));return(0,s.useMemo)((()=>({initial:e,animate:n})),[S(e),S(n)])}function S(t){return Array.isArray(t)?t.join(" "):t}const E={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},C={};for(const co in E)C[co]={isEnabled:t=>E[co].some((e=>!!t[e]))};var A=n(1741),R=n(5364);const V=(0,s.createContext)({}),k=Symbol.for("motionComponentSymbol");function M({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:c,Component:d}){t&&function(t){for(const e in t)C[e]={...C[e],...t[e]}}(t);const m=(0,s.forwardRef)((function(m,f){let g;const y={...(0,s.useContext)(r._),...m,layoutId:D(m)},{isStatic:x}=y,w=b(m),P=c(m,x);if(!x&&A.j){w.visualElement=function(t,e,n,i){const{visualElement:c}=(0,s.useContext)(o),d=(0,s.useContext)(u),m=(0,s.useContext)(a.O),f=(0,s.useContext)(r._).reducedMotion,v=(0,s.useRef)();i=i||d.renderer,!v.current&&i&&(v.current=i(t,{visualState:e,parent:c,props:n,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:f}));const g=v.current;(0,s.useInsertionEffect)((()=>{g&&g.update(n,m)}));const y=(0,s.useRef)(Boolean(n[h]&&!window.HandoffComplete));return(0,l.L)((()=>{g&&(p.render(g.render),y.current&&g.animationState&&g.animationState.animateChanges())})),(0,s.useEffect)((()=>{g&&(g.updateFeatures(),!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))})),g}(d,P,y,e);const n=(0,s.useContext)(V),i=(0,s.useContext)(u).strict;w.visualElement&&(g=w.visualElement.loadFeatures(y,i,t,n))}return(0,i.jsxs)(o.Provider,{value:w,children:[g&&w.visualElement?(0,i.jsx)(g,{visualElement:w.visualElement,...y}):null,n(d,m,v(P,w.visualElement,f),P,x,w.visualElement)]})}));return m[k]=d,m}function D({layoutId:t}){const e=(0,s.useContext)(R.p).id;return e&&void 0!==t?e+"-"+t:t}function L(t){function e(e,n={}){return M(t(e,n))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const j=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function F(t){return"string"===typeof t&&!t.includes("-")&&!!(j.indexOf(t)>-1||/[A-Z]/u.test(t))}const B={};const O=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set(O);function I(t,{layout:e,layoutId:n}){return U.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!B[t]||"opacity"===t)}const W=t=>Boolean(t&&t.getVelocity),N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$=O.length;const H=t=>e=>"string"===typeof e&&e.startsWith(t),_=H("--"),K=H("var(--"),z=t=>!!K(t)&&Z.test(t.split("/*")[0].trim()),Z=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Y=(t,e)=>e&&"number"===typeof t?e.transform(t):t,X=(t,e,n)=>n>e?e:n<t?t:n,G={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},q={...G,transform:t=>X(0,1,t)},J={...G,default:1},Q=t=>Math.round(1e5*t)/1e5,tt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,et=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,nt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function it(t){return"string"===typeof t}const st=t=>({test:e=>it(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),rt=st("deg"),ot=st("%"),at=st("px"),lt=st("vh"),ut=st("vw"),ct={...ot,parse:t=>ot.parse(t)/100,transform:t=>ot.transform(100*t)},ht={...G,transform:Math.round},dt={borderWidth:at,borderTopWidth:at,borderRightWidth:at,borderBottomWidth:at,borderLeftWidth:at,borderRadius:at,radius:at,borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomRightRadius:at,borderBottomLeftRadius:at,width:at,maxWidth:at,height:at,maxHeight:at,size:at,top:at,right:at,bottom:at,left:at,padding:at,paddingTop:at,paddingRight:at,paddingBottom:at,paddingLeft:at,margin:at,marginTop:at,marginRight:at,marginBottom:at,marginLeft:at,rotate:rt,rotateX:rt,rotateY:rt,rotateZ:rt,scale:J,scaleX:J,scaleY:J,scaleZ:J,skew:rt,skewX:rt,skewY:rt,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:q,originX:ct,originY:ct,originZ:at,zIndex:ht,backgroundPositionX:at,backgroundPositionY:at,fillOpacity:q,strokeOpacity:q,numOctaves:ht};function pt(t,e,n,i){const{style:s,vars:r,transform:o,transformOrigin:a}=t;
1let l=!1,u=!1,c=!0;for(const h in e){const t=e[h];if(_(h)){r[h]=t;continue}const n=dt[h],i=Y(t,n);if(U.has(h)){if(l=!0,o[h]=i,!c)continue;t!==(n.default||0)&&(c=!1)}else h.startsWith("origin")?(u=!0,a[h]=i):s[h]=i}if(e.transform||(l||i?s.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},i,s){let r="";for(let o=0;o<$;o++){const e=O[o];void 0!==t[e]&&(r+=`${N[e]||e}(${t[e]}) `)}return e&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,i?"":r):n&&i&&(r="none"),r}(t.transform,n,c,i):s.transform&&(s.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;s.transformOrigin=`${t} ${e} ${n}`}}const mt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ft(t,e,n){for(const i in e)W(e[i])||I(i,n)||(t[i]=e[i])}function vt(t,e,n){const i={};return ft(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},e,n){return(0,s.useMemo)((()=>{const i={style:{},transform:{},transformOrigin:{},vars:{}};return pt(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)}),[e])}(t,e,n)),i}function gt(t,e,n){const i={},s=vt(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const yt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||yt.has(t)}let wt=t=>!xt(t);try{(Pt=require("@emotion/is-prop-valid").default)&&(wt=t=>t.startsWith("on")?!xt(t):Pt(t))}catch(uo){}var Pt;function Tt(t,e,n){return"string"===typeof t?t:at.transform(e+n*t)}const bt={offset:"stroke-dashoffset",array:"stroke-dasharray"},St={offset:"strokeDashoffset",array:"strokeDasharray"};function Et(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h,d){if(pt(t,u,c,d),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==s||void 0!==r||m.transform)&&(m.transformOrigin=function(t,e,n){return`${Tt(e,t.x,t.width)} ${Tt(n,t.y,t.height)}`}(f,void 0!==s?s:.5,void 0!==r?r:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==i&&(p.scale=i),void 0!==o&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const r=s?bt:St;t[r.offset]=at.transform(-i);const o=at.transform(e),a=at.transform(n);t[r.array]=`${o} ${a}`}(p,o,a,l,!1)}const Ct=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),At=t=>"string"===typeof t&&"svg"===t.toLowerCase();function Rt(t,e,n,i){const r=(0,s.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Et(n,e,{enableHardwareAcceleration:!1},At(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};ft(e,t.style,t),r.style={...e,...r.style}}return r}function Vt(t=!1){return(e,n,i,{latestValues:r},o)=>{const a=(F(e)?Rt:gt)(n,r,o,e),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"===typeof t.values||(wt(s)||!0===n&&xt(s)||!e&&!xt(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"===typeof e,t),u=e!==s.Fragment?{...l,...a,ref:i}
1:{},{children:c}=n,h=(0,s.useMemo)((()=>W(c)?c.get():c),[c]);return(0,s.createElement)(e,{...u,children:h})}}function kt(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const r in n)t.style.setProperty(r,n[r])}const Mt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Dt(t,e,n,i){kt(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Mt.has(s)?s:c(s),e.attrs[s])}function Lt(t,e,n){var i;const{style:s}=t,r={};for(const o in s)(W(s[o])||e.style&&W(e.style[o])||I(o,t)||void 0!==(null===(i=null===n||void 0===n?void 0:n.getValue(o))||void 0===i?void 0:i.liveStyle))&&(r[o]=s[o]);return r}function jt(t,e,n){const i=Lt(t,e,n);for(const s in t)if(W(t[s])||W(e[s])){i[-1!==O.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}function Ft(t){const e=[{},{}];return null===t||void 0===t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function Bt(t,e,n,i){if("function"===typeof e){const[s,r]=Ft(i);e=e(void 0!==n?n:t.custom,s,r)}if("string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e){const[s,r]=Ft(i);e=e(void 0!==n?n:t.custom,s,r)}return e}var Ot=n(6681);const Ut=t=>Array.isArray(t);function It(t){const e=W(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const Wt=t=>(e,n)=>{const i=(0,s.useContext)(o),r=(0,s.useContext)(a.O),l=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,s,r){const o={latestValues:Nt(i,s,r,t),renderState:e()};return n&&(o.mount=t=>n(i,t,o)),o}(t,e,i,r);return n?l():(0,Ot.h)(l)};function Nt(t,e,n,i){const s={},r=i(t,{});for(const d in r)s[d]=It(r[d]);let{initial:o,animate:a}=t;const l=P(t),u=T(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===o;const h=c?a:o;if(h&&"boolean"!==typeof h&&!y(h)){(Array.isArray(h)?h:[h]).forEach((e=>{const n=Bt(t,e);if(!n)return;const{transitionEnd:i,transition:r,...o}=n;for(const t in o){let e=o[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(s[t]=e)}for(const t in i)s[t]=i[t]}))}return s}var $t=n(6166);const Ht={useVisualState:Wt({scrapeMotionValuesFromProps:jt,createRenderState:Ct,onMount:(t,e,{renderState:n,latestValues:i})=>{$t.Wi.read((()=>{try{n.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),$t.Wi.render((()=>{Et(n,i,{enableHardwareAcceleration:!1},At(e.tagName),t.transformTemplate),Dt(e,n)}))}})},_t={useVisualState:Wt({scrapeMotionValuesFromProps:Lt,createRenderState:mt})};function Kt(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const zt=t=>"mouse"===t.pointerType?"number"!==typeof t.button||t.button<=0:!1!==t.isPrimary;function Zt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Yt(t,e,n,i){return Kt(t,e,(t=>e=>zt(e)&&t(e,Zt(e)))(n),i)}const Xt=(t,e)=>n=>e(t(n)),Gt=(...t)=>t.reduce(Xt);function qt(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Jt=qt("dragHorizontal"),Qt=qt("dragVertical");function te(t){let e=!1;if("y"===t)e=Qt();else if("x"===t)e=Jt();else{const t=Jt(),n=Qt();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function ee(){const t=te(!0);return!t||(t(),!1)}class ne{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ie(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd";return Yt(t.current,n,((n,s)=>{if("touch"===n.pointerType||ee())return;const r=t.getProps();t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",e);const o=r[i];o&&$t.Wi.postRender((()=>o(n,s)))}),{passive:!t.getProps()[i]})}const se=(t,e)=>!!e&&(t===e||se(t,e.parentElement));var re=n(1662);function oe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Zt(n))}const ae=new WeakMap,le=new WeakMap,ue=t=>{const e=ae.get(t.target);e&&e(t)}
vendor: 9,020 bytes, line 1
1,ce=t=>{t.forEach(ue)};function he(t,e,n){const i=function({root:t,...e}){const n=t||document;le.has(n)||le.set(n,{});const i=le.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ce,{root:t,...e})),i[s]}(e);return ae.set(t,n),i.observe(t),()=>{ae.delete(t),i.unobserve(t)}}const de={some:0,all:1};const pe={inView:{Feature:class extends ne{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:n,threshold:"number"===typeof i?i:de[i]};return he(this.node.current,r,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=e?n:i;r&&r(t)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ne{constructor(){super(...arguments),this.removeStartListeners=re.Z,this.removeEndListeners=re.Z,this.removeAccessibleListeners=re.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=Yt(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:s}=this.node.getProps(),r=s||se(this.node.current,t.target)?n:i;r&&$t.Wi.update((()=>r(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),s=Yt(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Gt(i,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Kt(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Kt(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&oe("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&$t.Wi.postRender((()=>n(t,e)))}))})),oe("down",((t,e)=>{this.startPress(t,e)}))})),e=Kt(this.node.current,"blur",(()=>{this.isPressing&&oe("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=Gt(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&$t.Wi.postRender((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ee()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&$t.Wi.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Yt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Gt(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ne{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gt(Kt(this.node.current,"focus",(()=>this.onFocus())),Kt(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ne{mount(){this.unmount=Gt(ie(this.node,!0),ie(this.node,!1))}unmount(){}}}};function me(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function fe(t,e,n){const i=t.getProps();return Bt(i,e,void 0!==n?n:i.custom,t)}const ve=t=>1e3*t,ge=t=>t/1e3,ye={type:"spring",stiffness:500,damping:25,restSpeed:10},xe={type:"keyframes",duration:.8},we={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pe=(t,{keyframes:e})=>e.length>2?xe:U.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ye:we;function Te(t,e){return t[e]||t.default||t}var be=n(2081);const Se=!1,Ee=t=>null!==t;function Ce(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Ee),r=e&&"loop"!==n&&e%2===1?0:s.length-1;return r&&void 0!==i?i:s[r]}let Ae;function Re(){Ae=void 0}const Ve={now:()=>(void 0===Ae&&Ve.set($t.w0.isProcessing||be.c.useManualTiming?$t.w0.timestamp:performance.now()),Ae),set:t=>{Ae=t,queueMicrotask(Re)}},ke=t=>/^0[^.\s]+$/u.test(t);var Me=n(5487);const De=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Le=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function je(t,e,n=1){(0,Me.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=Le.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!==n&&void 0!==n?n:i}`,s]}(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const t=r.trim();return De(t)?parseFloat(t):t}return z(s)?je(s,e,n+1):s}const Fe=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Be=t=>t===G||t===at,Oe=(t,e)=>parseFloat(t.split(", ")[e]),Ue=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Oe(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Oe(e[1],t):0}},Ie=new Set(["x","y","z"]),We=O.filter((t=>!Ie.has(t)));const Ne={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ue(4,13),y:Ue(5,14)};Ne.translateX=Ne.x,Ne.translateY=Ne.y;const $e=t=>e=>e.test(t),He=[G,at,ot,rt,ut,lt,{test:t=>"auto"===t,parse:t=>t}],_e=t=>He.find($e(t)),Ke=new Set;let ze=!1,Ze=!1;function Ye(){if(Ze){const t=Array.from(Ke).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return We.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Ze=!1,ze=!1,Ke.forEach((t=>t.complete())),Ke.clear()}function Xe(){Ke.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Ze=!0)}))}class Ge{constructor(t,e,n,i,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ke.add(this),ze||(ze=!0,$t.Wi.read(Xe),$t.Wi.resolveKeyframes(Ye))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null===i||void 0===i?void 0:i.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,r);void 0!==i&&null!==i&&(t[0]=i)}void 0===t[0]&&(t[0]=r),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ke.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ke.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const qe=(t,e)=>n=>Boolean(it(n)&&nt.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Je=(t,e,n)=>i=>{if(!it(i))return i;const[s,r,o,a]=i.match(tt);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},Qe={...G,transform:t=>Math.round((t=>X(0,255,t))(t))},tn={test:qe("rgb","red"),parse:Je("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Qe.transform(t)+", "+Qe.transform(e)+", "+Qe.transform(n)+", "+Q(q.transform(i))+")"};const en={test:qe("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alph
1a:s?parseInt(s,16)/255:1}},transform:tn.transform},nn={test:qe("hsl","hue"),parse:Je("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+ot.transform(Q(e))+", "+ot.transform(Q(n))+", "+Q(q.transform(i))+")"},sn={test:t=>tn.test(t)||en.test(t)||nn.test(t),parse:t=>tn.test(t)?tn.parse(t):nn.test(t)?nn.parse(t):en.parse(t),transform:t=>it(t)?t:t.hasOwnProperty("red")?tn.transform(t):nn.transform(t)};const rn="number",on="color",an=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ln(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let r=0;const o=e.replace(an,(t=>(sn.test(t)?(i.color.push(r),s.push(on),n.push(sn.parse(t))):t.startsWith("var(")?(i.var.push(r),s.push("var"),n.push(t)):(i.number.push(r),s.push(rn),n.push(parseFloat(t))),++r,"${}"))).split("${}");return{values:n,split:o,indexes:i,types:s}}function un(t){return ln(t).values}function cn(t){const{split:e,types:n}=ln(t),i=e.length;return t=>{let s="";for(let r=0;r<i;r++)if(s+=e[r],void 0!==t[r]){const e=n[r];s+=e===rn?Q(t[r]):e===on?sn.transform(t[r]):t[r]}return s}}const hn=t=>"number"===typeof t?0:t;const dn={test:function(t){var e,n;return isNaN(t)&&it(t)&&((null===(e=t.match(tt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(et))||void 0===n?void 0:n.length)||0)>0},parse:un,createTransformer:cn,getAnimatableNone:function(t){const e=un(t);return cn(t)(e.map(hn))}},pn=new Set(["brightness","contrast","saturate","opacity"]);function mn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(tt)||[];if(!i)return t;const s=n.replace(i,"");let r=pn.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+s+")"}const fn=/\b([a-z-]*)\(.*?\)/gu,vn={...dn,getAnimatableNone:t=>{const e=t.match(fn);return e?e.map(mn).join(" "):t}},gn={...dt,color:sn,backgroundColor:sn,outlineColor:sn,fill:sn,stroke:sn,borderColor:sn,borderTopColor:sn,borderRightColor:sn,borderBottomColor:sn,borderLeftColor:sn,filter:vn,WebkitFilter:vn},yn=t=>gn[t];function xn(t,e){let n=yn(t);return n!==vn&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const wn=new Set(["auto","none","0"]);class Pn extends Ge{constructor(t,e,n,i){super(t,e,n,i,null===i||void 0===i?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"===typeof n&&(n=n.trim(),z(n))){const i=je(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Fe.has(n)||2!==t.length)return;const[i,s]=t,r=_e(i),o=_e(s);if(r!==o)if(Be(r)&&Be(o))for(let a=0;a<t.length;a++){const e=t[a];"string"===typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let s=0;s<t.length;s++)("number"===typeof(i=t[s])?0===i:null===i||"none"===i||"0"===i||ke(i))&&n.push(s);var i;n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"===typeof e&&!wn.has(e)&&ln(e).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=xn(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ne[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const r=i.length-1,o=i[r];i[r]=Ne[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function Tn(t){let e;return()=>(void 0===e&&(e=t()),e)}const bn=(t,e)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!dn.test(t)&&"0"!==t||t.startsWith("url(")));class Sn{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(Xe(),Ye()),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],o=bn(s,e),a=bn(r,e);return(0,Me.K)(o===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!(!o||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||"spring"===n&&i)}(t,n,i,s)){if(Se||!r)return null===a||void 0===a||a(Ce(t,this.options,e)),null===o||void 0===o||o(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}function En(t,e){return e?t*(1e3/e):0}function Cn(t,e,n){const i=Math.max(e-5,0);return En(n-t(i),e-i)}const An=.001;function Rn({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let s,r;(0,Me.K)(t<=ve(10),"Spring duration must be 10 seconds or less");let o=1-e;o=X(.05,1,o),t=X(.01,10,ge(t)),o<1?(s=e=>{const i=e*o,s=i*t,r=i-n,a=Vn(e,o),l=Math.exp(-s);return An-r/a*l},r=e=>{const i=e*o*t,r=i*n+n,a=Math.pow(o,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Vn(Math.pow(e,2),o);return(-s(e)+An>0?-1:1)*((r-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<12;s++)i-=t(i)/e(i);return i}(s,r,5/t);if(t=ve(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*o*Math.sqrt(i*e),duration:t}}}function Vn(t,e){return t*Math.sqrt(1-e*e)}const kn=["duration","bounce"],Mn=["stiffness","damping","mass"];function Dn(t,e){return e.some((e=>void 0!==t[e]))}function Ln({keyframes:t,restDelta:e,restSpeed:n,...i}){const s=t[0],r=t[t.length-1],o={done:!1,value:s},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Dn(t,Mn)&&Dn(t,kn)){const n=Rn(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...i,velocity:-ge(i.velocity||0)}),p=h||0,m=l/(2*Math.sqrt(a*u)),f=r-s,v=ge(Math.sqrt(a/u)),g=Math.abs(f)<5;let y;if(n||(n=g?.01:2),e||(e=g?.005:.5),m<1){const t=Vn(v,m);y=e=>{const n=Math.exp(-m*v*e);return r-n*((p+m*v*f)/t*Math.sin(t*e)+f*Math.cos(t*e))}}else if(1===m)y=t=>r-Math.exp(-v*t)*(f+(p+v*f)*t);else{const t=v*Math.sqrt(m*m-1);y=e=>{const n=Math.exp(-m*v*e),i=Math.min(t*e,300);return r-n*((p+m*v*f)*Math.sinh(i)+t*f*Math.cosh(i))/t}}return{calculatedDuration:d&&c||null,next:t=>{const i=y(t);if(d)o.done=t>=c;else{let s=p;0!==t&&(s=m<1?Cn(y,t,i):0);const a=Math.abs(s)<=n,l=Math.abs(r-i)<=e;o.done=a&&l}return o.value=o.done?r:i,o}}}function jn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=h+m,v=void 0===o?f:o(f);v!==f&&(m=v-h);const g=t=>-m*Math.exp(-t/i),y=t=>v+g(t),x=t=>{const e=g(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?v:n};let w,P;const T=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,P=Ln({keyframes:[d.value,p(d.value)],velocity:Cn(y,t,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return P||void 0!==w||(e=!0,x(t),T(t)),void 0!==w&&t>=w?P.next(t-w):(!e&&x(t),d)}}}const Fn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Bn(t,e,n,i){if(t===e&&n===i)return re.Z;const s=e=>function(t,e,n,i,s){let r,o,a=0;do{o=e+(n-e)/2,r=Fn(o,i,s)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:Fn(s(t),e,i)}
1const On=Bn(.42,0,1,1),Un=Bn(0,0,.58,1),In=Bn(.42,0,.58,1),Wn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Nn=t=>e=>1-t(1-e),$n=t=>1-Math.sin(Math.acos(t)),Hn=Nn($n),_n=Wn($n),Kn=Bn(.33,1.53,.69,.99),zn=Nn(Kn),Zn=Wn(zn),Yn={linear:re.Z,easeIn:On,easeInOut:In,easeOut:Un,circIn:$n,circInOut:_n,circOut:Hn,backIn:zn,backInOut:Zn,backOut:Kn,anticipate:t=>(t*=2)<1?.5*zn(t):.5*(2-Math.pow(2,-10*(t-1)))},Xn=t=>{if(Array.isArray(t)){(0,Me.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return Bn(e,n,i,s)}return"string"===typeof t?((0,Me.k)(void 0!==Yn[t],`Invalid easing type '${t}'`),Yn[t]):t},Gn=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},qn=(t,e,n)=>t+(e-t)*n;function Jn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qn(t,e){return n=>n>0?e:t}const ti=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},ei=[en,tn,nn];function ni(t){const e=(n=t,ei.find((t=>t.test(n))));var n;if((0,Me.K)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===nn&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,r=0,o=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Jn(a,i,t+1/3),r=Jn(a,i,t),o=Jn(a,i,t-1/3)}else s=r=o=n;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:i}}(i)),i}const ii=(t,e)=>{const n=ni(t),i=ni(e);if(!n||!i)return Qn(t,e);const s={...n};return t=>(s.red=ti(n.red,i.red,t),s.green=ti(n.green,i.green,t),s.blue=ti(n.blue,i.blue,t),s.alpha=qn(n.alpha,i.alpha,t),tn.transform(s))},si=new Set(["none","hidden"]);function ri(t,e){return n=>qn(t,e,n)}function oi(t){return"number"===typeof t?ri:"string"===typeof t?z(t)?Qn:sn.test(t)?ii:ui:Array.isArray(t)?ai:"object"===typeof t?sn.test(t)?ii:li:Qn}function ai(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>oi(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function li(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=oi(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const ui=(t,e)=>{const n=dn.createTransformer(e),i=ln(t),s=ln(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?si.has(t)&&!s.values.length||si.has(e)&&!i.values.length?function(t,e){return si.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Gt(ai(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][s[o]],l=null!==(n=t.values[a])&&void 0!==n?n:0;i[r]=l,s[o]++}return i}(i,s),s.values),n):((0,Me.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Qn(t,e))};function ci(t,e,n){if("number"===typeof t&&"number"===typeof e&&"number"===typeof n)return qn(t,e,n);return oi(t)(t,e)}function hi(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const r=t.length;if((0,Me.k)(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=function(t,e,n){const i=[],s=n||ci,r=t.length-1;for(let o=0;o<r;o++){let n=s(t[o],t[o+1]);if(e){const t=Array.isArray(e)?e[o]||re.Z:e;n=Gt(t,n)}i.push(n)}return i}(e,i,s),a=o.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=Gn(t[n],t[n+1],e);return o[n](i)};return n?e=>l(X(t[0],t[r-1],e)):l}function di(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Gn(0,e,i);t.push(qn(n,1,s))}}(e,t.length-1),e}function pi({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!==typeof t[0])(i)?i.map(Xn):Xn(i),r={done:!1,value:e[0]},o=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:di(e),t),a=hi(o,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||In)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}const mi=t=>{const e=({timestamp:e})=>t(e);return{start:()=>$t.Wi.update(e,!0),stop:()=>(0,$t.Pn)(e),now:()=>$t.w0.isProcessing?$t.w0.timestamp:Ve.now()}},fi={decay:jn,inertia:jn,tween:pi,keyframes:pi,spring:Ln},vi=t=>t/100;class gi extends Sn{constructor({KeyframeResolver:t=Ge,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:n,motionValue:i,keyframes:s}=this.options,r=(t,e)=>this.onKeyframesResolved(t,e);n&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(s,r,n,i):this.resolver=new t(s,r,n,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=this.options,o=fi[e]||pi;let a,l;o!==pi&&"number"!==typeof t[0]&&(a=Gt(vi,ci(t[0],t[1])),t=[0,100]);const u=o({...this.options,keyframes:t});"mirror"===s&&(l=o({...this.options,keyframes:[...t].reverse(),velocity:-r})),null===u.calculatedDuration&&(u.calculatedDuration=function(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}(u));const{calculatedDuration:c}=u,h=c+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return s.next(0);const{delay:h,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/c)):"mirror"===p&&(x=r)),y=X(0,1,n)*c}const w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return T&&void 0!==i&&(w.value=Ce(a,this.options,i)),f&&f(w.value),T&&this.finish(),w}get duration(){const{resolved:t}=this;return t?ge(t.calculatedDuration):0}get time(){return ge(this.currentTime)}set time(t){t=ve(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=ge(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=mi,onPlay:e}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const yi=t=>Array.isArray(t)&&"number"===typeof t[0];function xi(t){return Boolean(!t||"string"===typeof t&&t in Pi||yi(t)||Array.isArray(t)&&t.every(xi))}const wi=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Pi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wi([0,.65,.55,1]),circOut:wi([.55,0,1,.45]),backIn:wi([.31,.01,.66,-.59]),backOut:wi([.33,1.53,.69,.99])};function Ti(t){return bi(t)||Pi.easeOut}function bi(t){return t?yi(t)?wi(t):Array.isArray(t)?t.map(Ti):Pi[t]:void 0}const Si=Tn((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Ei=new Set(["opacity","clipPath","filter","transform"]);class Ci extends Sn{constructor(t){super(t);const{name:e,motionValue:n,keyframes:i}=this.options;
1this.resolver=new Pn(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:i=300,times:s,ease:r,type:o,motionValue:a,name:l}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||"backgroundColor"===u.name||!xi(u.ease)){const{onComplete:e,onUpdate:n,motionValue:a,...l}=this.options,u=function(t,e){const n=new gi({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let r=0;for(;!i.done&&r<2e4;)i=n.sample(r),s.push(i.value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(t,l);1===(t=u.keyframes).length&&(t[1]=t[0]),i=u.duration,s=u.times,r=u.ease,o="keyframes"}var u;const c=function(t,e,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=bi(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:i,times:s,ease:r});return c.startTime=Ve.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(Ce(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:o,ease:r,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return ge(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return ge(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=ve(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return re.Z;const{animation:n}=e;n.timeline=t,n.onfinish=null}else this.pendingTimeline=t;return re.Z}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:r,times:o}=t;if("idle"!==e.playState&&"finished"!==e.playState){if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,...l}=this.options,u=new gi({...l,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),c=ve(this.time);t.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:r,type:o}=t;return Si()&&n&&Ei.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==s&&0!==r&&"inertia"!==o}}const Ai=Tn((()=>void 0!==window.ScrollTimeline));class Ri{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map((e=>{if(!Ai()||!e.attachTimeline)return e.pause(),function(t,e){let n;const i=()=>{const{currentTime:i}=e,s=(null===i?0:i.value)/100;n!==s&&t(s),n=s};return $t.Wi.update(i,!0),()=>(0,$t.Pn)(i)}((t=>{e.time=e.duration*t}),t);e.attachTimeline(t)}));return()=>{e.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Vi=(t,e,n,i={},s,r)=>o=>{const a=Te(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=ve(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:
1o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||(c={...c,...Pe(t,c)}),c.duration&&(c.duration=ve(c.duration)),c.repeatDelay&&(c.repeatDelay=ve(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(h=!0)),(Se||be.c.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),h&&!r&&void 0!==e.get()){const t=Ce(c.keyframes,a);if(void 0!==t)return $t.Wi.update((()=>{c.onUpdate(t),c.onComplete()})),new Ri([])}return!r&&Ci.supports(c)?new Ci(c):new gi(c)};function ki(t){return Boolean(W(t)&&t.add)}function Mi(t,e){-1===t.indexOf(e)&&t.push(e)}function Di(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Li{constructor(){this.subscriptions=[]}add(t){return Mi(this.subscriptions,t),()=>Di(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ji={current:void 0};class Fi{constructor(t,e={}){this.version="11.2.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Ve.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Ve.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Li);const n=this.events[t].add(e);return"change"===t?()=>{n(),$t.Wi.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ji.current&&ji.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Ve.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return En(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bi(t,e){return new Fi(t,e)}function Oi(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Bi(n))}function Ui(t){return t.getProps()[h]}function Ii({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Wi(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;const u=t.getValue("willChange");i&&(o=i);const c=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const d in l){const e=t.getValue(d,null!==(r=t.latestValues[d])&&void 0!==r?r:null),i=l[d];if(void 0===i||h&&Ii(h,d))continue;const s={delay:n,elapsed:0,...Te(o||{},d)};let a=!1;if(window.HandoffAppearAnimations){const n=Ui(t);if(n){const t=window.HandoffAppearAnimations(n,d,e,$t.Wi);null!==t&&(s.elapsed=t,a=!0)}}e.start(Vi(d,e,i,t.shouldReduceMotion&&U.has(d)?{type:!1}:s,t,a));const p=e.animation;p&&(ki(u)&&(u.add(d),p.then((()=>u.remove(d)))),c.push(p))}return a&&Promise.all(c).then((()=>{$t.Wi.update((()=>{a&&function(t,e){const n=fe(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const a in r)Oi(t,a,(o=r[a],Ut(o)?o[o.length-1]||0:o));var o}(t,a)}))})),c}function Ni(t,e,n={}){var i;const s=fe(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=s||{};
1n.transitionOverride&&(r=n.transitionOverride);const o=s?()=>Promise.all(Wi(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,n=0,i=0,s=1,r){const o=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort($i).forEach(((t,i)=>{t.notify("AnimationStart",e),o.push(Ni(t,e,{...r,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(o)}(t,e,s+i,o,a,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then((()=>e()))}return Promise.all([o(),a(n.delay)])}function $i(t,e){return t.sortNodePosition(e)}const Hi=[...x].reverse(),_i=x.length;function Ki(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Ni(t,e,n)));i=Promise.all(s)}else if("string"===typeof e)i=Ni(t,e,n);else{const s="function"===typeof e?fe(t,e,n.custom):e;i=Promise.all(Wi(t,s,n))}return i.then((()=>{$t.Wi.postRender((()=>{t.notify("AnimationComplete",e)}))}))}(t,e,n))))}function zi(t){let e=Ki(t);const n={animate:Yi(!0),whileInView:Yi(),whileHover:Yi(),whileTap:Yi(),whileDrag:Yi(),whileFocus:Yi(),exit:Yi()};let i=!0;const s=e=>(n,i)=>{var s;const r=fe(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(r){const{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function r(r){const o=t.getProps(),a=t.getVariantContext(!0)||{},l=[],u=new Set;let c={},h=1/0;for(let e=0;e<_i;e++){const d=Hi[e],p=n[d],m=void 0!==o[d]?o[d]:a[d],f=g(m),v=d===r?p.isActive:null;!1===v&&(h=e);let x=m===a[d]&&m!==o[d]&&f;if(x&&i&&t.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...c},!p.isActive&&null===v||!m&&!p.prevProp||y(m)||"boolean"===typeof m)continue;let w=Zi(p.prevProp,m)||d===r&&p.isActive&&!x&&f||e>h&&f,P=!1;const T=Array.isArray(m)?m:[m];let b=T.reduce(s(d),{});!1===v&&(b={});const{prevResolvedValues:S={}}=p,E={...S,...b},C=e=>{w=!0,u.has(e)&&(P=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in E){const e=b[t],n=S[t];if(c.hasOwnProperty(t))continue;let i=!1;i=Ut(e)&&Ut(n)?!me(e,n):e!==n,i?void 0!==e&&null!==e?C(t):u.add(t):void 0!==e&&u.has(t)?C(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=b,p.isActive&&(c={...c,...b}),i&&t.blockInitialAnimation&&(w=!1),!w||x&&!P||l.push(...T.map((t=>({animation:t,options:{type:d}}))))}if(u.size){const e={};u.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!==i&&void 0!==i?i:null})),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==o.initial&&o.initial!==o.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const o=r(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function Zi(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!me(e,t)}function Yi(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Xi=0;const Gi={animation:{Feature:class extends ne{constructor(t){super(t),t.animationState||(t.animationState=zi(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),y(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ne{constructor(){super(...arguments),this.id=Xi++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>
1e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},qi=(t,e)=>Math.abs(t-e);class Ji{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=es(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=qi(t.x,e.x),i=qi(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=$t.w0;this.history.push({...i,timestamp:s});const{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Qi(e,this.transformPagePoint),$t.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const r=es("pointercancel"===t.type?this.lastMoveEventInfo:Qi(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,r),i&&i(t,r)},!zt(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const r=Qi(Zt(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=$t.w0;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,es(r,this.history)),this.removeListeners=Gt(Yt(this.contextWindow,"pointermove",this.handlePointerMove),Yt(this.contextWindow,"pointerup",this.handlePointerUp),Yt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,$t.Pn)(this.updatePoint)}}function Qi(t,e){return e?{point:e(t.point)}:t}function ts(t,e){return{x:t.x-e.x,y:t.y-e.y}}function es({point:t},e){return{point:t,delta:ts(t,is(e)),offset:ts(t,ns(e)),velocity:ss(e,.1)}}function ns(t){return t[0]}function is(t){return t[t.length-1]}function ss(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=is(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>ve(e)));)n--;if(!i)return{x:0,y:0};const r=ge(s.timestamp-i.timestamp);if(0===r)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rs(t){return t.max-t.min}function os(t,e=0,n=.01){return Math.abs(t-e)<=n}function as(t,e,n,i=.5){t.origin=i,t.originPoint=qn(e.min,e.max,t.origin),t.scale=rs(n)/rs(e),(os(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=qn(n.min,n.max,t.origin)-t.originPoint,(os(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ls(t,e,n,i){as(t.x,e.x,n.x,i?i.originX:void 0),as(t.y,e.y,n.y,i?i.originY:void 0)}function us(t,e,n){t.min=n.min+e.min,t.max=t.min+rs(e)}function cs(t,e,n){t.min=e.min-n.min,t.max=t.min+rs(e)}function hs(t,e,n){cs(t.x,e.x,n.x),cs(t.y,e.y,n.y)}function ds(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function ps(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const ms=.35;function fs(t,e,n){return{min:vs(t,e),max:vs(t,n)}}function vs(t,e){return"number"===typeof t?t:t[e]||0}function gs(t){return[t("x"),t("y")]}function ys({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function xs(t){return void 0===t||1===t}function ws({scale:t,scaleX:e,scaleY:n}){return!xs(t)||!xs(e)||!xs(n)}function Ps(t){return ws(t)||Ts(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ts(t){return bs(t.x)||bs(t.y)}function bs(t){return t&&"0%"!==t}function Ss(t,e,n){return n+e*(t-n)}function Es(t,e,n,i,s){return void 0!==s&&(t=Ss(t,s,i)),Ss(t,n,i)+e}function Cs(t,e=0,n=1,i,s){t.min=Es(t.min,e,n,i,s),t.max=Es(t.max,e,n,i,s)}function As(t,{x:e,y:n}){Cs(t.x,e.translate,e.scale,e.originPoint),Cs(t.y,n.translate,n.scale,n.originPoint)}function Rs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Vs(t,e){t.min=t.min+e,t.max=t.max+e}function ks(t,e,[n,i,s]){const r=void 0!==e[s]?e[s]:.5,o=qn(t.min,t.max,r);Cs(t,e[n],e[i],o,e.scale)}const Ms=["x","scaleX","originX"],Ds=["y","scaleY","originY"];function Ls(t,e){ks(t.x,e,Ms),ks(t.y,e,Ds)}function js(t,e){return ys(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const Fs=({current:t})=>t?t.ownerDocument.defaultView:null,Bs=new WeakMap;class Os{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new Ji(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Zt(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=te(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gs((t=>{let e=this.getAxisMotionValue(t).get()||0;if(ot.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=rs(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&$t.Wi.postRender((()=>s(t,e)));const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:r}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:o}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(o),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>gs((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:Fs(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&$t.Wi.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Us(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?qn(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?qn(n,t,i.max):Math.min(t,n)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&f(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:ds(t.x,n,s),y:ds(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=ms){return!1===t?t=0:!0===t&&(t=ms),{x:fs(t,"left","right"),y:fs(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&gs((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!f(t))return!1;const n=t.current;(0,Me.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=js(t,n),{scroll:s}=e;return s&&(Vs(i.x,s.offset.x),Vs(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:ps(t.x,e.x),y:ps(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=ys(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=gs((o=>
1{if(!Us(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[o]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)}));return Promise.all(l).then(o)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Vi(t,n,0,e,this.visualElement))}stopAnimation(){gs((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){gs((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){gs((e=>{const{drag:n}=this.getProps();if(!Us(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:r}=i.layout.layoutBox[e];s.set(t[e]-qn(n,r,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!f(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};gs((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=rs(t),s=rs(e);return s>i?n=Gn(e.min,e.max-i,t.min):i>s&&(n=Gn(t.min,t.max-s,e.min)),X(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),gs((e=>{if(!Us(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];n.set(qn(s,r,i[e]))}))}addListeners(){if(!this.visualElement.current)return;Bs.set(this.visualElement,this);const t=Yt(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();f(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const s=Kt(window,"resize",(()=>this.scalePositionWithinConstraints())),r=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(gs((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:r=ms,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function Us(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const Is=t=>(e,n)=>{t&&$t.Wi.postRender((()=>t(e,n)))};const Ws={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ns(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const $s={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!at.test(t))return t;t=parseFloat(t)}return`${Ns(t,e.target.x)}% ${Ns(t,e.target.y)}%`}},Hs={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=dn.parse(t);if(s.length>5)return i;const r=dn.createTransformer(t),o="number"!==typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const u=qn(a,l,.5);return"number"===typeof s[2+o]&&(s[2+o]/=u),"number"===typeof s[3+o]&&(s[3+o]/=u),r(s)}};class _s extends s.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var r;r=zs,Object.assign(B,r),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ws.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,r=n.projection;return r?(r.isPresent=s,i||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||$t.Wi.postRender((()=>{const t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),p.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ks(t){const[e,n]=function(){const t=(0,s.useContext)(a.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,r=(0,s.useId)();return(0,s.useEffect)((()=>i(r)),[]),!e&&n?[!1,()=>n&&n(r)]:[!0]}(),r=(0,s.useContext)(R.p);return(0,i.jsx)(_s,{...t,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(V),isPresent:e,safeToRemove:n})}const zs={borderRadius:{...$s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$s,borderTopRightRadius:$s,borderBottomLeftRadius:$s,borderBottomRightRadius:$s,boxShadow:Hs},Zs=["TopLeft","TopRight","BottomLeft","BottomRight"],Ys=Zs.length,Xs=t=>"string"===typeof t?parseFloat(t):t,Gs=t=>"number"===typeof t||at.test(t);function qs(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Js=tr(0,.5,Hn),Qs=tr(.5,.95,re.Z);function tr(t,e,n){return i=>i<t?0:i>e?1:n(Gn(t,e,i))}function er(t,e){t.min=e.min,t.max=e.max}function nr(t,e){er(t.x,e.x),er(t.y,e.y)}function ir(t,e,n,i,s){return t=Ss(t-=e,1/n,i),void 0!==s&&(t=Ss(t,1/s,i)),t}function sr(t,e,[n,i,s],r,o){!function(t,e=0,n=1,i=.5,s,r=t,o=t){ot.test(e)&&(e=parseFloat(e),e=qn(o.min,o.max,e/100)-o.min);if("number"!==typeof e)return;let a=qn(r.min,r.max,i);
1t===r&&(a-=e),t.min=ir(t.min,e,n,a,s),t.max=ir(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,r,o)}const rr=["x","scaleX","originX"],or=["y","scaleY","originY"];function ar(t,e,n,i){sr(t.x,e,rr,n?n.x:void 0,i?i.x:void 0),sr(t.y,e,or,n?n.y:void 0,i?i.y:void 0)}function lr(t){return 0===t.translate&&1===t.scale}function ur(t){return lr(t.x)&&lr(t.y)}function cr(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function hr(t){return rs(t.x)/rs(t.y)}class dr{constructor(){this.members=[]}add(t){Mi(this.members,t),t.scheduleRender()}remove(t){if(Di(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pr(t,e,n){let i="";const s=t.x.translate/e.x,r=t.y.translate/e.y,o=(null===n||void 0===n?void 0:n.z)||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),r&&(i+=`rotateY(${r}deg) `),o&&(i+=`skewX(${o}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}const mr=(t,e)=>t.depth-e.depth;class fr{constructor(){this.children=[],this.isDirty=!1}add(t){Mi(this.children,t),this.isDirty=!0}remove(t){Di(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mr),this.isDirty=!1,this.children.forEach(t)}}const vr=["","X","Y","Z"],gr={visibility:"hidden"};let yr=0;const xr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function wr(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Pr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return!!e&&(!!Ui(e)||!(!t.parent||t.parent.hasCheckedOptimisedAppear)&&Pr(t.parent))}function Tr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null===e||void 0===e?void 0:e())){this.id=yr++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,xr.totalNodes=xr.resolvedTargetDeltas=xr.recalculatedProjection=0,this.nodes.forEach(Er),this.nodes.forEach(Dr),this.nodes.forEach(Lr),this.nodes.forEach(Cr),t=xr,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new fr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Li),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Ve.now(),i=({timestamp:s})=>{const r=s-n;r>=e&&((0,$t.Pn)(i),t(r-e))};return $t.Wi.read(i,!0),()=>(0,$t.Pn)(i)}(i,250),Ws.hasAnimatedSinceResize&&(Ws.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(Mr))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||r)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||o.getDefaultTransition()||Ir,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!cr(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Te(s,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Mr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,$t.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jr),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.HandoffCancelAllAnimations&&Pr(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Rr);this.isUpdating||this.nodes.forEach(Vr),this.isUpdating=!1,this.nodes.forEach(kr),this.nodes.forEach(br),this.nodes.forEach(Sr),this.clearAllSnapshots();const t=Ve.now();$t.w0.delta=X(0,1e3/60,t-$t.w0.timestamp),$t.w0.timestamp=t,$t.w0.isProcessing=!0,$t.S6.update.process($t.w0),$t.S6.preRender.process($t.w0),$t.S6.render.process($t.w0),$t.w0.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Ar),this.sharedNodes.forEach(Fr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$t.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$t.Wi.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!ur(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,r=i!==this.prevTransformTemplateValue;t&&(e||Ps(this.latestValues)||r)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),$r((i=n).x),$r(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Vs(e.x,n.offset.x),Vs(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};nr(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:s,options:r}=i;if(i!==this.root&&s&&r.layoutScroll){if(s.isRoot){nr(e,t);const{scroll:n}=this.root;n&&(Vs(e.x,-n.offset.x),Vs(e.y,-n.offset.y))}Vs(e.x,s.offset.x),Vs(e.y,s.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};nr(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Ls(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Ps(t.latestValues)&&Ls(n,t.latestValues)}return Ps(this.latestValues)&&Ls(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};nr(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!Ps(t.latestValues))continue;ws(t.latestValues)&&t.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};nr(i,t.measurePageBox()),ar(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return Ps(this.latestValues)&&ar(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$t.w0.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:s,layoutId:r}=this.options;if(this.layout&&(s||r)){if(this.resolvedRelativeTargetAt=$t.w0.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},hs(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,us(o.x,a.x,l.x),us(o.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):nr(this.target,this.layout.layoutBox),As(this.target,this.targetDelta)):nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},hs(this.relativeTargetOrigin,this.target,t.target),nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ws(this.parent.latestValues)&&!Ts(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===$t.w0.timestamp&&(i=!1),i)return;const{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!r)return;nr(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let r,o;e.x=e.y=1;for(let a=0;a<s;a++){r=n[a],o=r.projectionDelta;const s=r.instance;s&&s.style&&"contents"===s.style.display||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ls(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,As(t,o)),i&&Ps(r.latestValues)&&Ls(t,r.latestValues))}e.x=Rs(e.x),e.y=Rs(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.projectionTransform;ls(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=pr(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),xr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const o={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Ur));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,v;Br(r.x,t.x,n),Br(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hs(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,v=n,Or(p.x,m.x,f.x,v),Or(p.y,m.y,f.y,v),h&&(l=this.relativeTarget,d=h,l.x.min===d.x.min&&l.x.max===d.x.max&&l.y.min===d.y.min&&l.y.max===d.y.max)&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),nr(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,r){s?(t.opacity=qn(0,void 0!==n.opacity?n.opacity:1,Js(i)),t.opacityExit=qn(void 0!==e.opacity?e.opacity:1,0,Qs(i))):r&&(t.opacity=qn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o<Ys;o++){const s=`border${Zs[o]}Radius`;let r=qs(e,s),a=qs(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Gs(r)===Gs(a)?(t[s]=Math.max(qn(Xs(r),Xs(a),i),0),(ot.test(a)||ot.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=qn(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,$t.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$t.Wi.update((()=>{Ws.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=W(t)?t:Bi(t);return i.start(Vi("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&Hr(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=rs(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=rs(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}nr(e,n),Ls(e,s),ls(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new dr);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&wr("z",t,i,this.animationValues);for(let s=0;s<vr.length;s++)wr(`rotate${vr[s]}`,t,i,this.animationValues),wr(`skew${vr[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return gr;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=It(null===t||void 0===t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=It(null===t||void 0===t?void 0:t.pointerEvents)||""),this.hasProjected&&!Ps(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const o=r.animationValues||r.latestValues;this.applyTransformsToTarget(),i.transform=pr(this.projectionDeltaWithTransform,this.treeScale,o),s&&(i.transform=s(o,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,r.animationValues?i.opacity=r===this?null!==(n=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:i.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const u in B){if(void 0===o[u])continue;const{correct:t,applyTo:e}=B[u],n="none"===i.transform?o[u]:t(o[u],r);if(e){const t=e.length;for(let s=0;s<t;s++)i[e[s]]=n}else i[u]=n}return this.options.layoutId&&(i.pointerEvents=r===this?It(null===t||void 0===t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Rr),this.root.sharedNodes.clear()}}}function br(t){t.updateLayout()}function Sr(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,r=n.source!==t.layout.source;"size"===s?gs((t=>{const i=r?n.measuredBox[t]:n.layoutBox[t],s=rs(i);i.min=e[t].min,i.max=i.min+s})):Hr(s,n.layoutBox,e)&&gs((i=>{const s=r?n.measuredBox[i]:n.layoutBox[i],o=rs(e[i]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+o)}));const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ls(o,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?ls(a,t.applyTransform(i,!0),n.measuredBox):ls(a,e,n.layoutBox);const l=!ur(o);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:r}=i;if(s&&r){const o={x:{min:0,max:0},y:{min:0,max:0}};hs(o,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};hs(a,e,r.layoutBox),cr(o,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Er(t){xr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Cr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ar(t){t.clearSnapshot()}function Rr(t){t.clearMeasurements()}function Vr(t){t.isLayoutDirty=!1}function kr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Mr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Dr(t){t.resolveTargetDelta()}function Lr(t){t.calcProjection()}
1function jr(t){t.resetSkewAndRotation()}function Fr(t){t.removeLeadSnapshot()}function Br(t,e,n){t.translate=qn(e.translate,0,n),t.scale=qn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Or(t,e,n,i){t.min=qn(e.min,n.min,i),t.max=qn(e.max,n.max,i)}function Ur(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ir={duration:.45,ease:[.4,0,.1,1]},Wr=t=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Nr=Wr("applewebkit/")&&!Wr("chrome/")?Math.round:re.Z;function $r(t){t.min=Nr(t.min),t.max=Nr(t.max)}function Hr(t,e,n){return"position"===t||"preserve-aspect"===t&&!os(hr(e),hr(n),.2)}const _r=Tr({attachResizeListener:(t,e)=>Kt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Kr={current:void 0},zr=Tr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Kr.current){const t=new _r({});t.mount(window),t.setOptions({layoutScroll:!0}),Kr.current=t}return Kr.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Zr={pan:{Feature:class extends ne{constructor(){super(...arguments),this.removePointerDownListener=re.Z}onPointerDown(t){this.session=new Ji(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fs(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Is(t),onStart:Is(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&$t.Wi.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Yt(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ne{constructor(t){super(t),this.removeGroupControls=re.Z,this.removeListeners=re.Z,this.controls=new Os(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||re.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:zr,MeasureLayout:Ks}},Yr={current:null},Xr={current:!1};const Gr=new WeakMap,qr=[...He,sn,dn],Jr=Object.keys(C),Qr=Jr.length,to=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eo=w.length;function no(t){if(t)return!1!==t.options.allowProjection?t.projection:no(t.parent)}class io extends class{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:r},o={}){this.resolveKeyframes=(t,e,n,i)=>new this.KeyframeResolver(t,e,n,i,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ge,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>$t.Wi.render(this.render,!1,!0);const{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=P(e),this.isVariantNode=T(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const h in c){const t=c[h];void 0!==a[h]&&W(t)&&(t.set(a[h],!1),ki(u)&&u.add(h))}}mount(t){this.current=t,Gr.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h(((t,e)=>this.bindToMotionValue(e,t))),Xr.current||function(){if(Xr.current=!0,A.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Yr.current=t.matches;t.addListener(e),e()}else Yr.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Yr.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;Gr.delete(this.current),this.projection&&this.projection.unmount(),(0,$t.Pn)(this.notifyUpdate),(0,$t.Pn)(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)null===(t=this.features[e])||void 0===t||t.unmount();this.current=null}bindToMotionValue(t,e){const n=U.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&$t.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),s(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,i,s){let r,o;for(let a=0;a<Qr;a++){const t=Jr[a],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:l}=C[t];s&&(r=s),n(e)&&(!this.features[t]&&i&&(this.features[t]=new i(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&r){const{layoutId:t,layout:n,drag:i,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection=new r(this.latestValues,e["data-framer-portal-id"]?void 0:no(this.parent)),this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(i)||o&&f(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:s,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<to.length;n++){const e=to[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const s in e){const r=e[s],o=n[s];if(W(r))t.addValue(s,r),ki(i)&&i.add(s);else if(W(o))t.addValue(s,Bi(r,{owner:t})),ki(i)&&i.remove(s);else if(o!==r)if(t.hasValue(s)){const e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{const e=t.getStaticValue(s);t.addValue(s,Bi(void 0!==e?e:r,{owner:t}))}}for(const s in n)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let n=0;n<eo;n++){const t=w[n],i=this.props[t];(g(i)||!1===i)&&(e[t]=i)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Bi(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return void 0!==i&&null!==i&&("string"===typeof i&&(De(i)||ke(i))?i=parseFloat(i):(s=i,!qr.find($e(s))&&dn.test(e)&&(i=xn(t,e))),this.setBaseTarget(t,W(i)?i.get():i)),W(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;
1if("string"===typeof n||"object"===typeof n){const s=Bt(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||W(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Li),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}{constructor(){super(...arguments),this.KeyframeResolver=Pn}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}}class so extends io{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(U.has(e)){const t=yn(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(_(e)?i.getPropertyValue(e):i[e])||0;return"string"===typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return js(t,e)}build(t,e,n,i){pt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Lt(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;W(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,i){kt(t,e,n,i)}}class ro extends io{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(U.has(e)){const t=yn(e);return t&&t.default||0}return e=Mt.has(e)?e:c(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e,n){return jt(t,e,n)}build(t,e,n,i){Et(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){Dt(t,e,0,i)}mount(t){this.isSVGTag=At(t.tagName),super.mount(t)}}const oo=(t,e)=>F(t)?new ro(e,{enableHardwareAcceleration:!1}):new so(e,{allowProjection:t!==s.Fragment,enableHardwareAcceleration:!0}),ao={...Gi,...pe,...Zr,...{layout:{ProjectionNode:zr,MeasureLayout:Ks}}},lo=L(((t,e)=>function(t,{forwardMotionProps:e=!1},n,i){return{...F(t)?Ht:_t,preloadedFeatures:n,useRender:Vt(e),createVisualElement:i,Component:t}}(t,e,ao,oo)))},2081:function(t,e,n){"use strict";n.d(e,{c:function(){return i}});const i={skipAnimations:!1,useManualTiming:!1}},5487:function(t,e,n){"use strict";n.d(e,{K:function(){return s},k:function(){return r}});var i=n(1662);let s=i.Z,r=i.Z},1741:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});const i="undefined"!==typeof document},1662:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});const i=t=>t},6681:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var i=n(7294);function s(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8868:function(t,e,n){"use strict";n.d(e,{L:function(){return s}});var i=n(7294);const s=n(1741).j?i.useLayoutEffect:i.useEffect},6864:function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(this,arguments)}n.d(e,{Z:function(){return i}})},7812:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(2587);var s=n(2937);function r(t){return function(t){if(Array.isArray(t))return(0,i.Z)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,s.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.