"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[281],{5449:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return i}}),n(8521);let i=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return t};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6958:function(t,e,n){function i(t,e,n,i){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return i}}),n(8521),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2972:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return P}});let i=n(7043),r=n(7437),s=i._(n(2265)),o=n(5246),a=n(3552),l=n(7497),u=n(3987),h=n(5449),c=n(5523),d=n(1956),p=n(6081),f=n(6958),m=n(1634),g=n(4673),y=new Set;function v(t,e,n,i,r,s){if("undefined"!=typeof window&&(s||(0,a.isLocalURL)(e))){if(!i.bypassPrefetchedCheck){let r=e+"%"+n+"%"+(void 0!==i.locale?i.locale:"locale"in t?t.locale:void 0);if(y.has(r))return;y.add(r)}(async()=>s?t.prefetch(e,r):t.prefetch(e,n,i))().catch(t=>{})}}function x(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let P=s.default.forwardRef(function(t,e){let n,i;let{href:l,as:y,children:P,prefetch:b=null,passHref:w,replace:S,shallow:A,scroll:T,locale:C,onClick:E,onMouseEnter:R,onTouchStart:M,legacyBehavior:V=!1,...j}=t;n=P,V&&("string"==typeof n||"number"==typeof n)&&(n=(0,r.jsx)("a",{children:n}));let k=s.default.useContext(c.RouterContext),D=s.default.useContext(d.AppRouterContext),L=null!=k?k:D,O=!k,F=!1!==b,B=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:N,as:I}=s.default.useMemo(()=>{if(!k){let t=x(l);return{href:t,as:y?x(y):t}}let[t,e]=(0,o.resolveHref)(k,l,!0);return{href:t,as:y?(0,o.resolveHref)(k,y):e||t}},[k,l,y]),W=s.default.useRef(N),U=s.default.useRef(I);V&&(i=s.default.Children.only(n));let _=V?i&&"object"==typeof i&&i.ref:e,[$,z,H]=(0,p.useIntersection)({rootMargin:"200px"}),Y=s.default.useCallback(t=>{(U.current!==I||W.current!==N)&&(H(),U.current=I,W.current=N),$(t),_&&("function"==typeof _?_(t):"object"==typeof _&&(_.current=t))},[I,_,N,H,$]);s.default.useEffect(()=>{L&&z&&F&&v(L,N,I,{locale:C},{kind:B},O)},[I,N,z,C,F,null==k?void 0:k.locale,L,O,B]);let Z={ref:Y,onClick(t){V||"function"!=typeof E||E(t),V&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),L&&!t.defaultPrevented&&function(t,e,n,i,r,o,l,u,h){let{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&(function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,a.isLocalURL)(n)))return;t.preventDefault();let d=()=>{let t=null==l||l;"beforePopState"in e?e[r?"replace":"push"](n,i,{shallow:o,locale:u,scroll:t}):e[r?"replace":"push"](i||n,{scroll:t})};h?s.default.startTransition(d):d()}(t,L,N,I,S,A,T,C,O)},onMouseEnter(t){V||"function"!=typeof R||R(t),V&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(t),L&&(F||!O)&&v(L,N,I,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:B},O)},onTouchStart:function(t){V||"function"!=typeof M||M(t),V&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(t),L&&(F||!O)&&v(L,N,I,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:B},O)}};if((0,u.isAbsoluteUrl)(I))Z.href=I;else if(!V||w||"a"===i.type&&!("href"in i.props)){let t=void 0!==C?C:null==k?void 0:k.locale,e=(null==k?void 0:k.isLocaleDomain)&&(0,f.getDomainLocale)(I,t,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);Z.href=e||(0,m.addBasePath)((0,h.addLocale)(I,t,null==k?void 0:k.defaultLocale))}return V?s.default.cloneElement(i,Z):(0,r.jsx)("a",{...j,...Z,children:n})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},3515:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},i="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5246:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return c}});let i=n(8637),r=n(7497),s=n(7053),o=n(3987),a=n(8521),l=n(3552),u=n(6279),h=n(7205);function c(t,e,n){let c;let d="string"==typeof e?e:(0,r.formatWithValidation)(e),p=d.match(/^[a-zA-Z]{1,}:\/\//),f=p?d.slice(p[0].length):d;if((f.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+t.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let e=(0,o.normalizeRepeatedSlashes)(f);d=(p?p[0]:"")+e}if(!(0,l.isLocalURL)(d))return n?[d]:d;try{c=new URL(d.startsWith("#")?t.asPath:t.pathname,"http://n")}catch(t){c=new URL("/","http://n")}try{let t=new URL(d,c);t.pathname=(0,a.normalizePathTrailingSlash)(t.pathname);let e="";if((0,u.isDynamicRoute)(t.pathname)&&t.searchParams&&n){let n=(0,i.searchParamsToUrlQuery)(t.searchParams),{result:o,params:a}=(0,h.interpolateAs)(t.pathname,t.pathname,n);o&&(e=(0,r.formatWithValidation)({pathname:o,hash:t.hash,query:(0,s.omit)(n,a)}))}let o=t.origin===c.origin?t.href.slice(t.origin.length):t.href;return n?[o,e||o]:o}catch(t){return n?[d]:d}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6081:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let i=n(2265),r=n(3515),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(t){let{rootRef:e,rootMargin:n,disabled:l}=t,u=l||!s,[h,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),p=(0,i.useCallback)(t=>{d.current=t},[]);return(0,i.useEffect)(()=>{if(s){if(u||h)return;let t=d.current;if(t&&t.tagName)return function(t,e,n){let{id:i,observer:r,elements:s}=function(t){let e;let n={root:t.root||null,margin:t.rootMargin||""},i=a.find(t=>t.root===n.root&&t.margin===n.margin);if(i&&(e=o.get(i)))return e;let r=new Map;return e={id:n,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=r.get(t.target),n=t.isIntersecting||t.intersectionRatio>0;e&&n&&e(n)})},t),elements:r},a.push(n),o.set(n,e),e}(n);return s.set(t,e),r.observe(t),function(){if(s.delete(t),r.unobserve(t),0===s.size){r.disconnect(),o.delete(i);let t=a.findIndex(t=>t.root===i.root&&t.margin===i.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&c(t),{root:null==e?void 0:e.current,rootMargin:n})}else if(!h){let t=(0,r.requestIdleCallback)(()=>c(!0));return()=>(0,r.cancelIdleCallback)(t)}},[u,n,e,h,d.current]),[p,h,(0,i.useCallback)(()=>{c(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},42:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});let n=/[|\\{}()[\]^$+*?.-]/,i=/[|\\{}()[\]^$+*?.-]/g;function r(t){return n.test(t)?t.replace(i,"\\$&"):t}},5523:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return i}});let i=n(7043)._(n(2265)).default.createContext(null)},7497:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{formatUrl:function(){return s},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});let i=n(3099)._(n(8637)),r=/https?|ftp|gopher|file/;function s(t){let{auth:e,hostname:n}=t,s=t.protocol||"",o=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:n&&(u=e+(~n.indexOf(":")?"["+n+"]":n),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let h=t.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),t.slashes||(!s||r.test(s))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),""+s+u+(o=o.replace(/[?#]/g,encodeURIComponent))+(h=h.replace("#","%23"))+a}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(t){return s(t)}},6279:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});let i=n(4777),r=n(8104)},7205:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return s}});let i=n(4199),r=n(9964);function s(t,e,n){let s="",o=(0,r.getRouteRegex)(t),a=o.groups,l=(e!==t?(0,i.getRouteMatcher)(o)(e):"")||n;s=t;let u=Object.keys(a);return u.every(t=>{let e=l[t]||"",{repeat:n,optional:i}=a[t],r="["+(n?"...":"")+t+"]";return i&&(r=(e?"":"/")+"["+r+"]"),n&&!Array.isArray(e)&&(e=[e]),(i||t in l)&&(s=s.replace(r,n?e.map(t=>encodeURIComponent(t)).join("/"):encodeURIComponent(e))||"/")})||(s=""),{params:u,result:s}}},8104:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let i=n(1182),r=/\/\[[^/]+?\](?=\/|$)/;function s(t){return(0,i.isInterceptionRouteAppPath)(t)&&(t=(0,i.extractInterceptionRouteInformation)(t).interceptedRoute),r.test(t)}},3552:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return s}});let i=n(3987),r=n(1283);function s(t){if(!(0,i.isAbsoluteUrl)(t))return!0;try{let e=(0,i.getLocationOrigin)(),n=new URL(t,e);return n.origin===e&&(0,r.hasBasePath)(n.pathname)}catch(t){return!1}}},7053:function(t,e){function n(t,e){let n={};return Object.keys(t).forEach(i=>{e.includes(i)||(n[i]=t[i])}),n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return n}})},8637:function(t,e){function n(t){let e={};return t.forEach((t,n)=>{void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]}),e}function i(t){return"string"!=typeof t&&("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function r(t){let e=new URLSearchParams;return Object.entries(t).forEach(t=>{let[n,r]=t;Array.isArray(r)?r.forEach(t=>e.append(n,i(t))):e.set(n,i(r))}),e}function s(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.forEach(e=>{Array.from(e.keys()).forEach(e=>t.delete(e)),e.forEach((e,n)=>t.append(n,e))}),t}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{assign:function(){return s},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return r}})},4199:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});let i=n(3987);function r(t){let{re:e,groups:n}=t;return t=>{let r=e.exec(t);if(!r)return!1;let s=t=>{try{return decodeURIComponent(t)}catch(t){throw new i.DecodeError("failed to decode param")}},o={};return Object.keys(n).forEach(t=>{let e=n[t],i=r[e.pos];void 0!==i&&(o[t]=~i.indexOf("/")?i.split("/").map(t=>s(t)):e.repeat?[s(i)]:s(i))}),o}}},9964:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return c},getRouteRegex:function(){return l},parseParameter:function(){return o}});let i=n(1182),r=n(42),s=n(6674);function o(t){let e=t.startsWith("[")&&t.endsWith("]");e&&(t=t.slice(1,-1));let n=t.startsWith("...");return n&&(t=t.slice(3)),{key:t,repeat:n,optional:e}}function a(t){let e=(0,s.removeTrailingSlash)(t).slice(1).split("/"),n={},a=1;return{parameterizedRoute:e.map(t=>{let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e)),s=t.match(/\[((?:\[.*\])|.+)\]/);if(e&&s){let{key:t,optional:i,repeat:l}=o(s[1]);return n[t]={pos:a++,repeat:l,optional:i},"/"+(0,r.escapeStringRegexp)(e)+"([^/]+?)"}if(!s)return"/"+(0,r.escapeStringRegexp)(t);{let{key:t,repeat:e,optional:i}=o(s[1]);return n[t]={pos:a++,repeat:e,optional:i},e?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(t){let{parameterizedRoute:e,groups:n}=a(t);return{re:RegExp("^"+e+"(?:/)?$"),groups:n}}function u(t){let{interceptionMarker:e,getSafeRouteKey:n,segment:i,routeKeys:s,keyPrefix:a}=t,{key:l,optional:u,repeat:h}=o(i),c=l.replace(/\W/g,"");a&&(c=""+a+c);let d=!1;(0===c.length||c.length>30)&&(d=!0),isNaN(parseInt(c.slice(0,1)))||(d=!0),d&&(c=n()),a?s[c]=""+a+l:s[c]=l;let p=e?(0,r.escapeStringRegexp)(e):"";return h?u?"(?:/"+p+"(?<"+c+">.+?))?":"/"+p+"(?<"+c+">.+?)":"/"+p+"(?<"+c+">[^/]+?)"}function h(t,e){let n;let o=(0,s.removeTrailingSlash)(t).slice(1).split("/"),a=(n=0,()=>{let t="",e=++n;for(;e>0;)t+=String.fromCharCode(97+(e-1)%26),e=Math.floor((e-1)/26);return t}),l={};return{namedParameterizedRoute:o.map(t=>{let n=i.INTERCEPTION_ROUTE_MARKERS.some(e=>t.startsWith(e)),s=t.match(/\[((?:\[.*\])|.+)\]/);if(n&&s){let[n]=t.split(s[0]);return u({getSafeRouteKey:a,interceptionMarker:n,segment:s[1],routeKeys:l,keyPrefix:e?"nxtI":void 0})}return s?u({getSafeRouteKey:a,segment:s[1],routeKeys:l,keyPrefix:e?"nxtP":void 0}):"/"+(0,r.escapeStringRegexp)(t)}).join(""),routeKeys:l}}function c(t,e){let n=h(t,e);return{...l(t),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(t,e){let{parameterizedRoute:n}=a(t),{catchAll:i=!0}=e;if("/"===n)return{namedRegex:"^/"+(i?".*":"")+"$"};let{namedParameterizedRoute:r}=h(t,!1);return{namedRegex:"^"+r+(i?"(?:(/.*)?)":"")+"$"}}},4777:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return i}});class n{insert(t){this._insert(t.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(t){void 0===t&&(t="/");let e=[...this.children.keys()].sort();null!==this.slugName&&e.splice(e.indexOf("[]"),1),null!==this.restSlugName&&e.splice(e.indexOf("[...]"),1),null!==this.optionalRestSlugName&&e.splice(e.indexOf("[[...]]"),1);let n=e.map(e=>this.children.get(e)._smoosh(""+t+e+"/")).reduce((t,e)=>[...t,...e],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(t+"["+this.slugName+"]/")),!this.placeholder){let e="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+e+'" and "'+e+"[[..."+this.optionalRestSlugName+']]").');n.unshift(e)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(t,e,i){if(0===t.length){this.placeholder=!1;return}if(i)throw Error("Catch-all must be the last part of the URL.");let r=t[0];if(r.startsWith("[")&&r.endsWith("]")){let n=r.slice(1,-1),o=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),o=!0),n.startsWith("...")&&(n=n.substring(3),i=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function s(t,n){if(null!==t&&t!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+t+"' !== '"+n+"').");e.forEach(t=>{if(t===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(t.replace(/\W/g,"")===r.replace(/\W/g,""))throw Error('You cannot have the slug names "'+t+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),e.push(n)}if(i){if(o){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+t[0]+'" ).');s(this.optionalRestSlugName,n),this.optionalRestSlugName=n,r="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+t[0]+'").');s(this.restSlugName,n),this.restSlugName=n,r="[...]"}}else{if(o)throw Error('Optional route parameters are not yet supported ("'+t[0]+'").');s(this.slugName,n),this.slugName=n,r="[]"}}this.children.has(r)||this.children.set(r,new n),this.children.get(r)._insert(t.slice(1),e,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function i(t){let e=new n;return t.forEach(t=>e.insert(t)),e.smoosh()}},3987:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return i},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return a},isAbsoluteUrl:function(){return s},isResSent:function(){return u},loadGetInitialProps:function(){return c},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return x}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function i(t){let e,n=!1;return function(){for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n||(n=!0,e=t(...r)),e}}let r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=t=>r.test(t);function o(){let{protocol:t,hostname:e,port:n}=window.location;return t+"//"+e+(n?":"+n:"")}function a(){let{href:t}=window.location,e=o();return t.substring(e.length)}function l(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function u(t){return t.finished||t.headersSent}function h(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function c(t,e){let n=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await c(e.Component,e.ctx)}:{};let i=await t.getInitialProps(e);if(n&&u(n))return i;if(!i)throw Error('"'+l(t)+'.getInitialProps()" should resolve to an object. But found "'+i+'" instead.');return i}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class f extends Error{}class m extends Error{}class g extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class y extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(t){return JSON.stringify({message:t.message,stack:t.stack})}},5750:function(t,e,n){n.d(e,{_:function(){return i}});let i=(0,n(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},8345:function(t,e,n){n.d(e,{Pn:function(){return a},Wi:function(){return o},frameData:function(){return l},S6:function(){return u}});var i=n(4439);class r{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){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let s=["prepare","read","update","preRender","render","postRender"],{schedule:o,cancel:a,state:l,steps:u}=function(t,e){let n=!1,i=!0,o={delta:0,timestamp:0,isProcessing:!1},a=s.reduce((t,e)=>(t[e]=function(t){let e=new r,n=new r,i=0,s=!1,o=!1,a=new WeakSet,l={schedule:(t,r=!1,o=!1)=>{let l=o&&s,u=l?e:n;return r&&a.add(t),u.add(t)&&l&&s&&(i=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:r=>{if(s){o=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),i=e.order.length)for(let n=0;n<i;n++){let i=e.order[n];i(r),a.has(i)&&(l.schedule(i),t())}s=!1,o&&(o=!1,l.process(r))}};return l}(()=>n=!0),t),{}),l=t=>a[t].process(o),u=()=>{let r=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,s.forEach(l),o.isProcessing=!1,n&&e&&(i=!1,t(u))},h=()=>{n=!0,i=!0,o.isProcessing||t(u)};return{schedule:s.reduce((t,e)=>{let i=a[e];return t[e]=(t,e=!1,r=!1)=>(n||h(),i.schedule(t,e,r)),t},{}),cancel:t=>s.forEach(e=>a[e].cancel(t)),state:o,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},1609:function(t,e,n){let i;n.d(e,{E:function(){return i6}});var r,s=n(2265),o=n(5750);let a=(0,s.createContext)({}),l=(0,s.createContext)(null);var u=n(1534);let h=(0,s.createContext)({strict:!1}),c=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d="data-"+c("framerAppearId");function p(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function f(t){return"string"==typeof t||Array.isArray(t)}function m(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function v(t){return m(t.animate)||y.some(e=>f(t[e]))}function x(t){return!!(v(t)||t.variants)}function P(t){return Array.isArray(t)?t.join(" "):t}let b={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"]},w={};for(let t in b)w[t]={isEnabled:e=>b[t].some(t=>!!e[t])};var S=n(4563);let A=(0,s.createContext)({}),T=(0,s.createContext)({}),C=Symbol.for("motionComponentSymbol"),E=["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 R(t){if("string"!=typeof t||t.includes("-"));else if(E.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let M={},V=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(V);function k(t,{layout:e,layoutId:n}){return j.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!M[t]||"opacity"===t)}var D=n(3999);let L={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=V.length;var F=n(7249);let B=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var N=n(4305),I=n(7492);let W={...N.Rx,transform:Math.round},U={borderWidth:I.px,borderTopWidth:I.px,borderRightWidth:I.px,borderBottomWidth:I.px,borderLeftWidth:I.px,borderRadius:I.px,radius:I.px,borderTopLeftRadius:I.px,borderTopRightRadius:I.px,borderBottomRightRadius:I.px,borderBottomLeftRadius:I.px,width:I.px,maxWidth:I.px,height:I.px,maxHeight:I.px,size:I.px,top:I.px,right:I.px,bottom:I.px,left:I.px,padding:I.px,paddingTop:I.px,paddingRight:I.px,paddingBottom:I.px,paddingLeft:I.px,margin:I.px,marginTop:I.px,marginRight:I.px,marginBottom:I.px,marginLeft:I.px,rotate:I.RW,rotateX:I.RW,rotateY:I.RW,rotateZ:I.RW,scale:N.bA,scaleX:N.bA,scaleY:N.bA,scaleZ:N.bA,skew:I.RW,skewX:I.RW,skewY:I.RW,distance:I.px,translateX:I.px,translateY:I.px,translateZ:I.px,x:I.px,y:I.px,z:I.px,perspective:I.px,transformPerspective:I.px,opacity:N.Fq,originX:I.$C,originY:I.$C,originZ:I.px,zIndex:W,fillOpacity:N.Fq,strokeOpacity:N.Fq,numOctaves:W};function _(t,e,n,i){let{style:r,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let n=e[t];if((0,F.f9)(t)){s[t]=n;continue}let i=U[t],c=B(n,i);if(j.has(t)){if(l=!0,o[t]=c,!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):r[t]=c}if(!e.transform&&(l||i?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},i,r){let s="";for(let e=0;e<O;e++){let n=V[e];if(void 0!==t[n]){let e=L[n]||n;s+=`${e}(${t[n]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,i?"":s):n&&i&&(s="none"),s}(t.transform,n,h,i):r.transform&&(r.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;r.transformOrigin=`${t} ${e} ${n}`}}let $=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function z(t,e,n){for(let i in e)(0,D.i)(e[i])||k(i,n)||(t[i]=e[i])}var H=n(6257);function Y(t,e,n){return"string"==typeof t?t:I.px.transform(e+n*t)}let Z={offset:"stroke-dashoffset",array:"stroke-dasharray"},q={offset:"strokeDashoffset",array:"strokeDasharray"};function X(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){if(_(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==r||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,n){let i=Y(e,t.x,t.width),r=Y(n,t.y,t.height);return`${i} ${r}`}(m,void 0!==r?r:.5,void 0!==s?s:.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,r=!0){t.pathLength=1;let s=r?Z:q;t[s.offset]=I.px.transform(-i);let o=I.px.transform(e),a=I.px.transform(n);t[s.array]=`${o} ${a}`}(p,o,a,l,!1)}let K=()=>({...$(),attrs:{}}),G=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Q(t,{style:e,vars:n},i,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(i)),n)t.style.setProperty(s,n[s])}let J=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 tt(t,e,n,i){for(let n in Q(t,e,void 0,i),e.attrs)t.setAttribute(J.has(n)?n:c(n),e.attrs[n])}function te(t,e){let{style:n}=t,i={};for(let r in n)((0,D.i)(n[r])||e.style&&(0,D.i)(e.style[r])||k(r,t))&&(i[r]=n[r]);return i}function tn(t,e){let n=te(t,e);for(let i in t)((0,D.i)(t[i])||(0,D.i)(e[i]))&&(n[-1!==V.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}function ti(t,e,n,i={},r={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,r)),e}var tr=n(3576);let ts=t=>Array.isArray(t),to=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),ta=t=>ts(t)?t[t.length-1]||0:t;function tl(t){let e=(0,D.i)(t)?t.get():t;return to(e)?e.toValue():e}let tu=t=>(e,n)=>{let i=(0,s.useContext)(a),r=(0,s.useContext)(l),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,r,s){let o={latestValues:function(t,e,n,i){let r={},s=i(t,{});for(let t in s)r[t]=tl(s[t]);let{initial:o,animate:a}=t,l=v(t),u=x(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!m(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let n=ti(t,e);if(!n)return;let{transitionEnd:i,transition:s,...o}=n;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in i)r[t]=i[t]}),r}(i,r,s,t),renderState:e()};return n&&(o.mount=t=>n(i,t,o)),o})(t,e,i,r);return n?o():(0,tr.h)(o)};var th=n(8345);let tc={useVisualState:tu({scrapeMotionValuesFromProps:tn,createRenderState:K,onMount:(t,e,{renderState:n,latestValues:i})=>{th.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}}}),th.Wi.render(()=>{X(n,i,{enableHardwareAcceleration:!1},G(e.tagName),t.transformTemplate),tt(e,n)})}})},td={useVisualState:tu({scrapeMotionValuesFromProps:te,createRenderState:$})};function tp(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}let tf=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tm(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tg=t=>e=>tf(e)&&t(e,tm(e));function ty(t,e,n,i){return tp(t,e,tg(n),i)}var tv=n(332);function tx(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tP=tx("dragHorizontal"),tb=tx("dragVertical");function tw(t){let e=!1;if("y"===t)e=tb();else if("x"===t)e=tP();else{let t=tP(),n=tb();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tS(){let t=tw(!0);return!t||(t(),!1)}class tA{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tT(t,e){let n="onHover"+(e?"Start":"End");return ty(t.current,"pointer"+(e?"enter":"leave"),(i,r)=>{if("touch"===i.pointerType||tS())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[n]&&th.Wi.update(()=>s[n](i,r))},{passive:!t.getProps()[n]})}class tC extends tA{mount(){this.unmount=(0,tv.z)(tT(this.node,!0),tT(this.node,!1))}unmount(){}}class tE extends tA{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=(0,tv.z)(tp(this.node.current,"focus",()=>this.onFocus()),tp(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tR=(t,e)=>!!e&&(t===e||tR(t,e.parentElement));var tM=n(4439);function tV(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,tm(n))}class tj extends tA{constructor(){super(...arguments),this.removeStartListeners=tM.Z,this.removeEndListeners=tM.Z,this.removeAccessibleListeners=tM.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=ty(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i,globalTapTarget:r}=this.node.getProps();th.Wi.update(()=>{r||tR(this.node.current,t.target)?n&&n(t,e):i&&i(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),r=ty(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,tv.z)(i,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tp(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tp(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tV("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&th.Wi.update(()=>n(t,e))})}),tV("down",(t,e)=>{this.startPress(t,e)}))}),e=tp(this.node.current,"blur",()=>{this.isPressing&&tV("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,tv.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&th.Wi.update(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tS()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&th.Wi.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=ty(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tp(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tv.z)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tk=new WeakMap,tD=new WeakMap,tL=t=>{let e=tk.get(t.target);e&&e(t)},tO=t=>{t.forEach(tL)},tF={some:0,all:1};class tB extends tA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:tF[i]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;tD.has(n)||tD.set(n,{});let i=tD.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(tO,{root:t,...e})),i[r]}(e);return tk.set(t,n),i.observe(t),()=>{tk.delete(t),i.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=e?n:i;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{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(){}}function tN(t,e){if(!Array.isArray(e))return!1;let 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 tI(t,e,n){let i=t.getProps();return ti(i,e,void 0!==n?n:i.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}var tW=n(3223);let tU=t=>1e3*t,t_=t=>t/1e3,t$={current:!1},tz=t=>Array.isArray(t)&&"number"==typeof t[0],tH=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,tY={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tH([0,.65,.55,1]),circOut:tH([.55,0,1,.45]),backIn:tH([.31,.01,.66,-.59]),backOut:tH([.33,1.53,.69,.99])},tZ=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function tq(t,e,n,i){if(t===e&&n===i)return tM.Z;let r=e=>(function(t,e,n,i,r){let s,o;let a=0;do(s=tZ(o=e+(n-e)/2,i,r)-t)>0?n=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,n);return t=>0===t||1===t?t:tZ(r(t),e,i)}let tX=tq(.42,0,1,1),tK=tq(0,0,.58,1),tG=tq(.42,0,.58,1),tQ=t=>Array.isArray(t)&&"number"!=typeof t[0],tJ=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t0=t=>e=>1-t(1-e),t1=t=>1-Math.sin(Math.acos(t)),t5=t0(t1),t2=tJ(t1),t3=tq(.33,1.53,.69,.99),t9=t0(t3),t4=tJ(t9),t7={linear:tM.Z,easeIn:tX,easeInOut:tG,easeOut:tK,circIn:t1,circInOut:t2,circOut:t5,backIn:t9,backInOut:t4,backOut:t3,anticipate:t=>(t*=2)<1?.5*t9(t):.5*(2-Math.pow(2,-10*(t-1)))},t6=t=>{if(Array.isArray(t)){(0,tW.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,i,r]=t;return tq(e,n,i,r)}return"string"==typeof t?((0,tW.k)(void 0!==t7[t],`Invalid easing type '${t}'`),t7[t]):t};var t8=n(2888),et=n(8913);function ee({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){let r=tQ(i)?i.map(t6):t6(i),s={done:!1,value:e[0]},o=(n&&n.length===e.length?n:(0,et.Y)(e)).map(e=>e*t),a=(0,t8.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||tG).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var en=n(4438);function ei(t,e,n){let i=Math.max(e-5,0);return(0,en.R)(n-t(i),e-i)}var er=n(9111);function es(t,e){return t*Math.sqrt(1-e*e)}let eo=["duration","bounce"],ea=["stiffness","damping","mass"];function el(t,e){return e.some(e=>void 0!==t[e])}function eu({keyframes:t,restDelta:e,restSpeed:n,...i}){let r;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!el(t,ea)&&el(t,eo)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,s;(0,tW.K)(t<=tU(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,er.u)(.05,1,o),t=(0,er.u)(.01,10,t_(t)),o<1?(r=e=>{let i=e*o,r=i*t;return .001-(i-n)/es(e,o)*Math.exp(-r)},s=e=>{let i=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=es(Math.pow(e,2),o);return(i*n+n-s)*Math.exp(-i)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),s=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(r,s,5/t);if(t=tU(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*i;return{stiffness:e,damping:2*o*Math.sqrt(i*e),duration:t}}}(t);(e={...e,...n,mass:1}).isResolvedFromDuration=!0}return e}({...i,velocity:-t_(i.velocity||0)}),f=d||0,m=u/(2*Math.sqrt(l*h)),g=o-s,y=t_(Math.sqrt(l/h)),v=5>Math.abs(g);if(n||(n=v?.01:2),e||(e=v?.005:.5),m<1){let t=es(y,m);r=e=>o-Math.exp(-m*y*e)*((f+m*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===m)r=t=>o-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(m*m-1);r=e=>{let n=Math.exp(-m*y*e),i=Math.min(t*e,300);return o-n*((f+m*y*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}return{calculatedDuration:p&&c||null,next:t=>{let i=r(t);if(p)a.done=t>=c;else{let s=f;0!==t&&(s=m<1?ei(r,t,i):0);let l=Math.abs(s)<=n,u=Math.abs(o-i)<=e;a.done=l&&u}return a.value=a.done?o:i,a}}}function eh({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,y=n*e,v=p+y,x=void 0===o?v:o(v);x!==v&&(y=x-p);let P=t=>-y*Math.exp(-t/i),b=t=>x+P(t),w=t=>{let e=P(t),n=b(t);f.done=Math.abs(e)<=u,f.value=f.done?x:n},S=t=>{m(f.value)&&(c=t,d=eu({keyframes:[f.value,g(f.value)],velocity:ei(b,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),S(t)),void 0!==c&&t>c)?d.next(t-c):(e||w(t),f)}}}let ec=t=>{let e=({timestamp:e})=>t(e);return{start:()=>th.Wi.update(e,!0),stop:()=>(0,th.Pn)(e),now:()=>th.frameData.isProcessing?th.frameData.timestamp:performance.now()}};function ed(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}let ep={decay:eh,inertia:eh,tween:ee,keyframes:ee,spring:eu};function ef({autoplay:t=!0,delay:e=0,driver:n=ec,keyframes:i,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let p,f,m,g,y,v=1,x=!1,P=()=>{f=new Promise(t=>{p=t})};P();let b=ep[r]||ee;b!==ee&&"number"!=typeof i[0]&&(g=(0,t8.s)([0,100],i,{clamp:!1}),i=[0,100]);let w=b({...d,keyframes:i});"mirror"===a&&(y=b({...d,keyframes:[...i].reverse(),velocity:-(d.velocity||0)}));let S="idle",A=null,T=null,C=null;null===w.calculatedDuration&&s&&(w.calculatedDuration=ed(w));let{calculatedDuration:E}=w,R=1/0,M=1/0;null!==E&&(M=(R=E+o)*(s+1)-o);let V=0,j=t=>{if(null===T)return;v>0&&(T=Math.min(T,t)),v<0&&(T=Math.min(t-M/v,T));let n=(V=null!==A?A:Math.round(t-T)*v)-e*(v>=0?1:-1),r=v>=0?n<0:n>M;V=Math.max(n,0),"finished"===S&&null===A&&(V=M);let l=V,u=w;if(s){let t=Math.min(V,M)/R,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,s+1))%2&&("reverse"===a?(n=1-n,o&&(n-=o/R)):"mirror"===a&&(u=y)),l=(0,er.u)(0,1,n)*R}let h=r?{done:!1,value:i[0]}:u.next(l);g&&(h.value=g(h.value));let{done:d}=h;r||null===E||(d=v>=0?V>=M:V<=0);let p=null===A&&("finished"===S||"running"===S&&d);return c&&c(h.value),p&&L(),h},k=()=>{m&&m.stop(),m=void 0},D=()=>{S="idle",k(),p(),P(),T=C=null},L=()=>{S="finished",h&&h(),k(),p()},O=()=>{if(x)return;m||(m=n(j));let t=m.now();l&&l(),null!==A?T=t-A:T&&"finished"!==S||(T=t),"finished"===S&&P(),C=T,A=null,S="running",m.start()};t&&O();let F={then:(t,e)=>f.then(t,e),get time(){return t_(V)},set time(newTime){V=newTime=tU(newTime),null===A&&m&&0!==v?T=m.now()-newTime/v:A=newTime},get duration(){return t_(null===w.calculatedDuration?ed(w):w.calculatedDuration)},get speed(){return v},set speed(newSpeed){if(newSpeed===v||!m)return;v=newSpeed,F.time=t_(V)},get state(){return S},play:O,pause:()=>{S="paused",A=V},stop:()=>{x=!0,"idle"!==S&&(S="idle",u&&u(),D())},cancel:()=>{null!==C&&j(C),D()},complete:()=>{S="finished"},sample:t=>(T=0,j(t))};return F}let em=(r=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=r()),i)),eg=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ey=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&tY[e]||tz(e)||Array.isArray(e)&&e.every(t))}(e.ease),ev={type:"spring",stiffness:500,damping:25,restSpeed:10},ex=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eP={type:"keyframes",duration:.8},eb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ew=(t,{keyframes:e})=>e.length>2?eP:j.has(t)?t.startsWith("scale")?ex(e[1]):ev:eb;var eS=n(5636);let eA=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eS.P.test(e)||"0"===e)&&!e.startsWith("url("));var eT=n(796);let eC=new Set(["brightness","contrast","saturate","opacity"]);function eE(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(eT.KP)||[];if(!i)return t;let r=n.replace(i,""),s=eC.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+r+")"}let eR=/([a-z-]*)\(.*?\)/g,eM={...eS.P,getAnimatableNone:t=>{let e=t.match(eR);return e?e.map(eE).join(" "):t}};var eV=n(7720);let ej={...U,color:eV.$,backgroundColor:eV.$,outlineColor:eV.$,fill:eV.$,stroke:eV.$,borderColor:eV.$,borderTopColor:eV.$,borderRightColor:eV.$,borderBottomColor:eV.$,borderLeftColor:eV.$,filter:eM,WebkitFilter:eM},ek=t=>ej[t];function eD(t,e){let n=ek(t);return n!==eM&&(n=eS.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let eL=t=>/^0[^.\s]+$/.test(t);function eO(t,e){return t[e]||t.default||t}let eF={skipAnimations:!1},eB=(t,e,n,i={})=>r=>{let s=eO(i,t)||{},o=s.delay||i.delay||0,{elapsed:a=0}=i;a-=tU(o);let l=function(t,e,n,i){let r,s;let o=eA(e,n);r=Array.isArray(n)?[...n]:[null,n];let a=void 0!==i.from?i.from:t.get(),l=[];for(let t=0;t<r.length;t++){var u;null===r[t]&&(r[t]=0===t?a:r[t-1]),("number"==typeof(u=r[t])?0===u:null!==u?"none"===u||"0"===u||eL(u):void 0)&&l.push(t),"string"==typeof r[t]&&"none"!==r[t]&&"0"!==r[t]&&(s=r[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)r[l[t]]=eD(e,s);return r}(e,t,n,s),u=l[0],h=l[l.length-1],c=eA(t,u),d=eA(t,h);(0,tW.K)(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(p={...p,...ew(t,p)}),p.duration&&(p.duration=tU(p.duration)),p.repeatDelay&&(p.repeatDelay=tU(p.repeatDelay)),!c||!d||t$.current||!1===s.type||eF.skipAnimations)return function({keyframes:t,delay:e,onUpdate:n,onComplete:i}){let r=()=>(n&&n(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:tM.Z,pause:tM.Z,stop:tM.Z,then:t=>(t(),Promise.resolve()),cancel:tM.Z,complete:tM.Z});return e?ef({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(t$.current?{...p,delay:0}:p);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let n=function(t,e,{onUpdate:n,onComplete:i,...r}){let s,o;if(!(em()&&eg.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let a=!1,l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:c=300,ease:d,times:p}=r;if(ey(e,r)){let t=ef({...r,repeat:0,delay:0}),e={done:!1,value:h[0]},n=[],i=0;for(;!e.done&&i<2e4;)e=t.sample(i),n.push(e.value),i+=10;p=void 0,h=n,c=i-10,d="linear"}let f=function(t,e,n,{delay:i=0,duration:r,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:n};l&&(u.offset=l);let h=function t(e){if(e)return tz(e)?tH(e):Array.isArray(e)?e.map(t):tY[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...r,duration:c,ease:d,times:p}),m=()=>{l=!1,f.cancel()},g=()=>{l=!0,th.Wi.update(m),s(),u()};return f.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){let i=e&&"loop"!==n&&e%2==1?0:t.length-1;return t[i]}(h,r)),i&&i(),g())},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(f.timeline=t,f.onfinish=null,tM.Z),get time(){return t_(f.currentTime||0)},set time(newTime){f.currentTime=tU(newTime)},get speed(){return f.playbackRate},set speed(newSpeed){f.playbackRate=newSpeed},get duration(){return t_(c)},play:()=>{a||(f.play(),(0,th.Pn)(m))},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;let{currentTime:e}=f;if(e){let n=ef({...r,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||f.finish()},cancel:g}}(e,t,p);if(n)return n}return ef(p)};function eN(t){return!!((0,D.i)(t)&&t.add)}let eI=t=>/^\-?\d*\.?\d+$/.test(t);var eW=n(3078);let eU=t=>e=>e.test(t),e_=[N.Rx,I.px,I.aQ,I.RW,I.vw,I.vh,{test:t=>"auto"===t,parse:t=>t}],e$=t=>e_.find(eU(t)),ez=[...e_,eV.$,eS.P],eH=t=>ez.find(eU(t));function eY(t,e,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");i&&(s=i);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let i=t.getValue(e),r=a[e];if(!i||void 0===r||h&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(h,e))continue;let o={delay:n,elapsed:0,...eO(s||{},e)};if(window.HandoffAppearAnimations){let n=t.getProps()[d];if(n){let t=window.HandoffAppearAnimations(n,e,i,th.Wi);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let c=!o.isHandoff&&!function(t,e){let n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}(i,r);if("spring"===o.type&&(i.getVelocity()||o.velocity)&&(c=!1),i.animation&&(c=!1),c)continue;i.start(eB(e,i,r,t.shouldReduceMotion&&j.has(e)?{type:!1}:o));let p=i.animation;eN(l)&&(l.add(e),p.then(()=>l.remove(e))),u.push(p)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let n=tI(t,e),{transitionEnd:i={},transition:r={},...s}=n?t.makeTargetAnimatable(n,!1):{};for(let e in s={...s,...i}){let n=ta(s[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,eW.BX)(n))}}(t,o)}),u}function eZ(t,e,n={}){let i=tI(t,e,n.custom),{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let s=i?()=>Promise.all(eY(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,n=0,i=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*i,l=1===r?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(eq).forEach((t,i)=>{t.notify("AnimationStart",e),o.push(eZ(t,e,{...s,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+i,o,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(n.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function eq(t,e){return t.sortNodePosition(e)}let eX=[...g].reverse(),eK=g.length;function eG(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class eQ extends tA{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>eZ(t,e,n)));else if("string"==typeof e)i=eZ(t,e,n);else{let r="function"==typeof e?tI(t,e,n.custom):e;i=Promise.all(eY(t,r,n))}return i.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={animate:eG(!0),whileInView:eG(),whileHover:eG(),whileTap:eG(),whileDrag:eG(),whileFocus:eG(),exit:eG()},i=!0,r=(e,n)=>{let i=tI(t,n);if(i){let{transition:t,transitionEnd:n,...r}=i;e={...e,...r,...n}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<eK;e++){var p;let g=eX[e],y=n[g],v=void 0!==a[g]?a[g]:l[g],x=f(v),P=g===o?y.isActive:null;!1===P&&(d=e);let b=v===l[g]&&v!==a[g]&&x;if(b&&i&&t.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...c},!y.isActive&&null===P||!v&&!y.prevProp||m(v)||"boolean"==typeof v)continue;let w=(p=y.prevProp,("string"==typeof v?v!==p:!!Array.isArray(v)&&!tN(v,p))||g===o&&y.isActive&&!b&&x||e>d&&x),S=!1,A=Array.isArray(v)?v:[v],T=A.reduce(r,{});!1===P&&(T={});let{prevResolvedValues:C={}}=y,E={...C,...T},R=t=>{w=!0,h.has(t)&&(S=!0,h.delete(t)),y.needsAnimating[t]=!0};for(let t in E){let e=T[t],n=C[t];if(!c.hasOwnProperty(t))(ts(e)&&ts(n)?tN(e,n):e===n)?void 0!==e&&h.has(t)?R(t):y.protectedKeys[t]=!0:void 0!==e?R(t):h.add(t)}y.prevProp=v,y.prevResolvedValues=T,y.isActive&&(c={...c,...T}),i&&t.blockInitialAnimation&&(w=!1),w&&(!b||S)&&u.push(...A.map(t=>({animation:t,options:{type:g,...s}})))}if(h.size){let e={};h.forEach(n=>{let i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)}),u.push({animation:e})}let g=!!u.length;return i&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,i,r){var o;if(n[e].isActive===i)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;let a=s(r,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),m(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let eJ=0;class e0 extends tA{constructor(){super(...arguments),this.id=eJ++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let e1=(t,e)=>Math.abs(t-e);class e5{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=e9(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(t=n.offset,e={x:0,y:0},Math.sqrt(e1(t.x,e.x)**2+e1(t.y,e.y)**2)>=3);if(!i&&!r)return;let{point:s}=n,{timestamp:o}=th.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=e2(e,this.transformPagePoint),th.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=e9("pointercancel"===t.type?this.lastMoveEventInfo:e2(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,s),i&&i(t,s)},!tf(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;let s=e2(tm(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=th.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,e9(s,this.history)),this.removeListeners=(0,tv.z)(ty(this.contextWindow,"pointermove",this.handlePointerMove),ty(this.contextWindow,"pointerup",this.handlePointerUp),ty(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,th.Pn)(this.updatePoint)}}function e2(t,e){return e?{point:e(t.point)}:t}function e3(t,e){return{x:t.x-e.x,y:t.y-e.y}}function e9({point:t},e){return{point:t,delta:e3(t,e4(e)),offset:e3(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=e4(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>tU(.1)));)n--;if(!i)return{x:0,y:0};let s=t_(r.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function e4(t){return t[t.length-1]}var e7=n(6376),e6=n(8090);function e8(t){return t.max-t.min}function nt(t,e=0,n=.01){return Math.abs(t-e)<=n}function ne(t,e,n,i=.5){t.origin=i,t.originPoint=(0,e6.C)(e.min,e.max,t.origin),t.scale=e8(n)/e8(e),(nt(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,e6.C)(n.min,n.max,t.origin)-t.originPoint,(nt(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nn(t,e,n,i){ne(t.x,e.x,n.x,i?i.originX:void 0),ne(t.y,e.y,n.y,i?i.originY:void 0)}function ni(t,e,n){t.min=n.min+e.min,t.max=t.min+e8(e)}function nr(t,e,n){t.min=e.min-n.min,t.max=t.min+e8(e)}function ns(t,e,n){nr(t.x,e.x,n.x),nr(t.y,e.y,n.y)}function no(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 na(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}}function nl(t,e,n){return{min:nu(t,e),max:nu(t,n)}}function nu(t,e){return"number"==typeof t?t:t[e]||0}let nh=()=>({translate:0,scale:1,origin:0,originPoint:0}),nc=()=>({x:nh(),y:nh()}),nd=()=>({min:0,max:0}),np=()=>({x:nd(),y:nd()});function nf(t){return[t("x"),t("y")]}function nm({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ng(t){return void 0===t||1===t}function ny({scale:t,scaleX:e,scaleY:n}){return!ng(t)||!ng(e)||!ng(n)}function nv(t){return ny(t)||nx(t)||t.z||t.rotate||t.rotateX||t.rotateY}function nx(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function nP(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function nb(t,e=0,n=1,i,r){t.min=nP(t.min,e,n,i,r),t.max=nP(t.max,e,n,i,r)}function nw(t,{x:e,y:n}){nb(t.x,e.translate,e.scale,e.originPoint),nb(t.y,n.translate,n.scale,n.originPoint)}function nS(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function nA(t,e){t.min=t.min+e,t.max=t.max+e}function nT(t,e,[n,i,r]){let s=void 0!==e[r]?e[r]:.5,o=(0,e6.C)(t.min,t.max,s);nb(t,e[n],e[i],o,e.scale)}let nC=["x","scaleX","originX"],nE=["y","scaleY","originY"];function nR(t,e){nT(t.x,e,nC),nT(t.y,e,nE)}function nM(t,e){return nm(function(t,e){if(!e)return t;let 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))}let nV=({current:t})=>t?t.ownerDocument.defaultView:null,nj=new WeakMap;class nk{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=np(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new e5(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tm(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tw(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),nf(t=>{let e=this.getAxisMotionValue(t).get()||0;if(I.aQ.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];if(i){let t=e8(i);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&th.Wi.update(()=>r(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>nf(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:nV(this.visualElement)})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=e;this.startAnimation(i);let{onDragEnd:r}=this.getProps();r&&th.Wi.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!nD(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,e6.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,e6.C)(n,t,i.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{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,r=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:no(t.x,n,r),y:no(t.y,e,i)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nl(t,"left","right"),y:nl(t,"top","bottom")}}(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nf(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let 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(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!p(e))return!1;let i=e.current;(0,tW.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,n){let i=nM(t,n),{scroll:r}=e;return r&&(nA(i.x,r.offset.x),nA(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),o={x:na((t=r.layout.layoutBox).x,s.x),y:na(t.y,s.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=nm(t))}return o}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nf(o=>{if(!nD(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[o]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(eB(t,n,0,e))}stopAnimation(){nf(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nf(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){let e="_drag"+t.toUpperCase(),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){nf(e=>{let{drag:n}=this.getProps();if(!nD(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:s}=i.layout.layoutBox[e];r.set(t[e]-(0,e6.C)(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!p(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};nf(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();i[t]=function(t,e){let n=.5,i=e8(t),r=e8(e);return r>i?n=(0,e7.Y)(e.min,e.max-i,t.min):i>r&&(n=(0,e7.Y)(t.min,t.max-r,e.min)),(0,er.u)(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nf(e=>{if(!nD(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];n.set((0,e6.C)(r,s,i[e]))})}addListeners(){if(!this.visualElement.current)return;nj.set(this.visualElement,this);let t=ty(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(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();let r=tp(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nf(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),i(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function nD(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class nL extends tA{constructor(t){super(t),this.removeGroupControls=tM.Z,this.removeListeners=tM.Z,this.controls=new nk(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tM.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let nO=t=>(e,n)=>{t&&th.Wi.update(()=>t(e,n))};class nF extends tA{constructor(){super(...arguments),this.removePointerDownListener=tM.Z}onPointerDown(t){this.session=new e5(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nV(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:nO(t),onStart:nO(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&th.Wi.update(()=>i(t,e))}}}mount(){this.removePointerDownListener=ty(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nB={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nN(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nI={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!I.px.test(t))return t;t=parseFloat(t)}let n=nN(t,e.target.x),i=nN(t,e.target.y);return`${n}% ${i}%`}};class nW extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;Object.assign(M,n_),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),nB.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,s=n.projection;return s&&(s.isPresent=r,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||th.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{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(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nU(t){let[e,n]=function(){let t=(0,s.useContext)(l);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:i}=t,r=(0,s.useId)();return(0,s.useEffect)(()=>i(r),[]),!e&&n?[!1,()=>n&&n(r)]:[!0]}(),i=(0,s.useContext)(A);return s.createElement(nW,{...t,layoutGroup:i,switchLayoutGroup:(0,s.useContext)(T),isPresent:e,safeToRemove:n})}let n_={borderRadius:{...nI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nI,borderTopRightRadius:nI,borderBottomLeftRadius:nI,borderBottomRightRadius:nI,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let i=eS.P.parse(t);if(i.length>5)return t;let r=eS.P.createTransformer(t),s="number"!=typeof i[0]?1:0,o=n.x.scale*e.x,a=n.y.scale*e.y;i[0+s]/=o,i[1+s]/=a;let l=(0,e6.C)(o,a,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),r(i)}}};var n$=n(4081);let nz=["TopLeft","TopRight","BottomLeft","BottomRight"],nH=nz.length,nY=t=>"string"==typeof t?parseFloat(t):t,nZ=t=>"number"==typeof t||I.px.test(t);function nq(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nX=nG(0,.5,t5),nK=nG(.5,.95,tM.Z);function nG(t,e,n){return i=>i<t?0:i>e?1:n((0,e7.Y)(t,e,i))}function nQ(t,e){t.min=e.min,t.max=e.max}function nJ(t,e){nQ(t.x,e.x),nQ(t.y,e.y)}function n0(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function n1(t,e,[n,i,r],s,o){!function(t,e=0,n=1,i=.5,r,s=t,o=t){if(I.aQ.test(e)&&(e=parseFloat(e),e=(0,e6.C)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,e6.C)(s.min,s.max,i);t===s&&(a-=e),t.min=n0(t.min,e,n,a,r),t.max=n0(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,s,o)}let n5=["x","scaleX","originX"],n2=["y","scaleY","originY"];function n3(t,e,n,i){n1(t.x,e,n5,n?n.x:void 0,i?i.x:void 0),n1(t.y,e,n2,n?n.y:void 0,i?i.y:void 0)}function n9(t){return 0===t.translate&&1===t.scale}function n4(t){return n9(t.x)&&n9(t.y)}function n7(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 n6(t){return e8(t.x)/e8(t.y)}var n8=n(9013);class it{constructor(){this.members=[]}add(t){(0,n8.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,n8.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let 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);let{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{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 ie(t,e,n){let i="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(i=`translate3d(${r}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:t,rotateX:e,rotateY:r}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),r&&(i+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(i+=`scale(${o}, ${a})`),i||"none"}let ii=(t,e)=>t.depth-e.depth;class ir{constructor(){this.children=[],this.isDirty=!1}add(t){(0,n8.y4)(this.children,t),this.isDirty=!0}remove(t){(0,n8.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ii),this.isDirty=!1,this.children.forEach(t)}}let is=["","X","Y","Z"],io={visibility:"hidden"},ia=0,il={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iu({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=null==e?void 0:e()){this.id=ia++,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.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=()=>{this.projectionUpdateScheduled=!1,il.totalNodes=il.resolvedTargetDeltas=il.recalculatedProjection=0,this.nodes.forEach(id),this.nodes.forEach(iP),this.nodes.forEach(ib),this.nodes.forEach(ip),window.MotionDebug&&window.MotionDebug.record(il)},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 t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ir)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new n$.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let 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;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:i,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||i)&&(this.isLayoutDirty=!0),t){let n;let i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),i=({timestamp:e})=>{let r=e-n;r>=250&&((0,th.Pn)(i),t(r-250))};return th.Wi.read(i,!0),()=>(0,th.Pn)(i)}(i,0),nB.hasAnimatedSinceResize&&(nB.hasAnimatedSinceResize=!1,this.nodes.forEach(ix))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||iE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!n7(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);let e={...eO(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ix(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,th.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(iw),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ig);return}this.isUpdating||this.nodes.forEach(iy),this.isUpdating=!1,this.nodes.forEach(iv),this.nodes.forEach(ih),this.nodes.forEach(ic),this.clearAllSnapshots();let t=performance.now();th.frameData.delta=(0,er.u)(0,1e3/60,t-th.frameData.timestamp),th.frameData.timestamp=t,th.frameData.isProcessing=!0,th.S6.update.process(th.frameData),th.S6.preRender.process(th.frameData),th.S6.render.process(th.frameData),th.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(im),this.sharedNodes.forEach(iS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,th.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){th.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=np(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!n4(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&(e||nv(this.latestValues)||s)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);return t&&(i=this.removeTransform(i)),iV((e=i).x),iV(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return np();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(nA(e.x,n.offset.x),nA(e.y,n.offset.y)),e}removeElementScroll(t){let e=np();nJ(e,t);for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:s}=i;if(i!==this.root&&r&&s.layoutScroll){if(r.isRoot){nJ(e,t);let{scroll:n}=this.root;n&&(nA(e.x,-n.offset.x),nA(e.y,-n.offset.y))}nA(e.x,r.offset.x),nA(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let n=np();nJ(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nR(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),nv(i.latestValues)&&nR(n,i.latestValues)}return nv(this.latestValues)&&nR(n,this.latestValues),n}removeTransform(t){let e=np();nJ(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!nv(n.latestValues))continue;ny(n.latestValues)&&n.updateSnapshot();let i=np();nJ(i,n.measurePageBox()),n3(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return nv(this.latestValues)&&n3(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!==th.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,n,i,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=th.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=np(),this.relativeTargetOrigin=np(),ns(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nJ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=np(),this.targetWithTransforms=np()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,i=this.relativeTarget,r=this.relativeParent.target,ni(n.x,i.x,r.x),ni(n.y,i.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nJ(this.target,this.layout.layoutBox),nw(this.target,this.targetDelta)):nJ(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=np(),this.relativeTargetOrigin=np(),ns(this.relativeTargetOrigin,this.target,t.target),nJ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}il.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ny(this.parent.latestValues)||nx(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),n=!!this.resumingFrom||this!==e,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===th.frameData.timestamp&&(i=!1),i)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nJ(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){let r,s;let o=n.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=n[a]).projectionDelta;let o=r.instance;(!o||!o.style||"contents"!==o.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nR(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,nw(t,s)),i&&nv(r.latestValues)&&nR(t,r.latestValues))}e.x=nS(e.x),e.y=nS(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);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=nc(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nc(),this.projectionDeltaWithTransform=nc());let u=this.projectionTransform;nn(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ie(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),il.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},s={...this.latestValues},o=nc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=np(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(iC));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(iA(o.x,t.x,i),iA(o.y,t.y,i),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;ns(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,iT(p.x,f.x,a.x,i),iT(p.y,f.y,a.y,i),n&&(u=this.relativeTarget,d=n,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),n||(n=np()),nJ(n,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,n,i,r,s){r?(t.opacity=(0,e6.C)(0,void 0!==n.opacity?n.opacity:1,nX(i)),t.opacityExit=(0,e6.C)(void 0!==e.opacity?e.opacity:1,0,nK(i))):s&&(t.opacity=(0,e6.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<nH;r++){let s=`border${nz[r]}Radius`,o=nq(e,s),a=nq(n,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nZ(o)===nZ(a)?(t[s]=Math.max((0,e6.C)(nY(o),nY(a),i),0),(I.aQ.test(a)||I.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,e6.C)(e.rotate||0,n.rotate||0,i))}(s,r,this.latestValues,i,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},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,th.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=th.Wi.update(()=>{nB.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let i=(0,D.i)(0)?0:(0,eW.BX)(0);return i.start(eB("",i,1e3,n)),i.animation}(0,0,{...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);let 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(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&ij(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||np();let e=e8(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=e8(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}nJ(e,n),nR(e,r),nn(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new it),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let i={};for(let e=0;e<is.length;e++){let r="rotate"+is[e];n[r]&&(i[r]=n[r],t.setStaticValue(r,0))}for(let e in t.render(),i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return io;let i={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=tl(null==t?void 0:t.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tl(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!nv(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=ie(this.projectionDeltaWithTransform,this.treeScale,o),r&&(i.transform=r(o,i.transform));let{x:a,y:l}=this.projectionDelta;for(let t in i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?i.opacity=s===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=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,M){if(void 0===o[t])continue;let{correct:e,applyTo:n}=M[t],r="none"===i.transform?o[t]:e(o[t],s);if(n){let t=n.length;for(let e=0;e<t;e++)i[n[e]]=r}else i[t]=r}return this.options.layoutId&&(i.pointerEvents=s===this?tl(null==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(ig),this.root.sharedNodes.clear()}}}function ih(t){t.updateLayout()}function ic(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:i}=t.layout,{animationType:r}=t.options,s=n.source!==t.layout.source;"size"===r?nf(t=>{let i=s?n.measuredBox[t]:n.layoutBox[t],r=e8(i);i.min=e[t].min,i.max=i.min+r}):ij(r,n.layoutBox,e)&&nf(i=>{let r=s?n.measuredBox[i]:n.layoutBox[i],o=e8(e[i]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+o)});let o=nc();nn(o,e,n.layoutBox);let a=nc();s?nn(a,t.applyTransform(i,!0),n.measuredBox):nn(a,e,n.layoutBox);let l=!n4(o),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:s}=i;if(r&&s){let o=np();ns(o,n.layoutBox,r.layoutBox);let a=np();ns(a,e,s.layoutBox),n7(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()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function id(t){il.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ip(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function im(t){t.clearSnapshot()}function ig(t){t.clearMeasurements()}function iy(t){t.isLayoutDirty=!1}function iv(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ix(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iP(t){t.resolveTargetDelta()}function ib(t){t.calcProjection()}function iw(t){t.resetRotation()}function iS(t){t.removeLeadSnapshot()}function iA(t,e,n){t.translate=(0,e6.C)(e.translate,0,n),t.scale=(0,e6.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function iT(t,e,n,i){t.min=(0,e6.C)(e.min,n.min,i),t.max=(0,e6.C)(e.max,n.max,i)}function iC(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iE={duration:.45,ease:[.4,0,.1,1]},iR=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),iM=iR("applewebkit/")&&!iR("chrome/")?Math.round:tM.Z;function iV(t){t.min=iM(t.min),t.max=iM(t.max)}function ij(t,e,n){return"position"===t||"preserve-aspect"===t&&!nt(n6(e),n6(n),.2)}let ik=iu({attachResizeListener:(t,e)=>tp(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iD={current:void 0},iL=iu({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iD.current){let t=new ik({});t.mount(window),t.setOptions({layoutScroll:!0}),iD.current=t}return iD.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),iO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iF(t,e,n=1){(0,tW.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,r]=function(t){let e=iO.exec(t);if(!e)return[,];let[,n,i]=e;return[n,i]}(t);if(!i)return;let s=window.getComputedStyle(e).getPropertyValue(i);if(s){let t=s.trim();return eI(t)?parseFloat(t):t}return(0,F.tm)(r)?iF(r,e,n+1):r}let iB=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iN=t=>iB.has(t),iI=t=>Object.keys(t).some(iN),iW=t=>t===N.Rx||t===I.px,iU=(t,e)=>parseFloat(t.split(", ")[e]),i_=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/);if(r)return iU(r[1],e);{let e=i.match(/^matrix\((.+)\)$/);return e?iU(e[1],t):0}},i$=new Set(["x","y","z"]),iz=V.filter(t=>!i$.has(t)),iH={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:i_(4,13),y:i_(5,14)};iH.translateX=iH.x,iH.translateY=iH.y;let iY=(t,e,n)=>{let i=e.measureViewportBox(),r=getComputedStyle(e.current),{display:s}=r,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{o[t]=iH[t](i,r)}),e.render();let a=e.measureViewportBox();return n.forEach(n=>{let i=e.getValue(n);i&&i.jump(o[n]),t[n]=iH[n](a,r)}),t},iZ=(t,e,n={},i={})=>{e={...e},i={...i};let r=Object.keys(e).filter(iN),s=[],o=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=n[r],c=e$(h),d=e[r];if(ts(d)){let t=d.length,e=null===d[0]?1:0;c=e$(h=d[e]);for(let n=e;n<t&&null!==d[n];n++)l?(0,tW.k)(e$(d[n])===l,"All keyframes must be of the same type"):(l=e$(d[n]),(0,tW.k)(l===c||iW(c)&&iW(l),"Keyframes must be of the same dimension as the current value"))}else l=e$(d);if(c!==l){if(iW(c)&&iW(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===I.px&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[r]=c.transform(d):(o||(s=function(t){let e=[];return iz.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(r),i[r]=void 0!==i[r]?i[r]:e[r],u.jump(d))}}),!a.length)return{target:e,transitionEnd:i};{let n=a.indexOf("height")>=0?window.pageYOffset:null,r=iY(e,t,a);return s.length&&s.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),S.j&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:i}}},iq=(t,e,n,i)=>{var r,s;let o=function(t,{...e},n){let i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};for(let r in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!(0,F.tm)(e))return;let n=iF(e,i);n&&t.set(n)}),e){let t=e[r];if(!(0,F.tm)(t))continue;let s=iF(t,i);s&&(e[r]=s,n||(n={}),void 0===n[r]&&(n[r]=t))}return{target:e,transitionEnd:n}}(t,e,i);return e=o.target,i=o.transitionEnd,r=e,s=i,iI(r)?iZ(t,r,n,s):{target:r,transitionEnd:s}};var iX=n(5957),iK=n(4004);let iG=new WeakMap,iQ=Object.keys(w),iJ=iQ.length,i0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i1=y.length;class i5{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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=()=>th.Wi.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=v(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&(0,D.i)(e)&&(e.set(o[t],!1),eN(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,iG.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.forEach((t,e)=>this.bindToMotionValue(e,t)),iK.O.current||(0,iX.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iK.n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iG.delete(this.current),this.projection&&this.projection.unmount(),(0,th.Pn)(this.notifyUpdate),(0,th.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let n=j.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&th.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,i,r){let s,o;for(let t=0;t<iJ;t++){let n=iQ[t],{isEnabled:i,Feature:r,ProjectionNode:a,MeasureLayout:l}=w[n];a&&(s=a),i(e)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:i,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!i||o&&p(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let 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):np()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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 e=0;e<i0.length;e++){let n=i0[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){let{willChange:i}=e;for(let r in e){let s=e[r],o=n[r];if((0,D.i)(s))t.addValue(r,s),eN(i)&&i.add(r);else if((0,D.i)(o))t.addValue(r,(0,eW.BX)(s,{owner:t})),eN(i)&&i.remove(r);else if(o!==s){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,(0,eW.BX)(void 0!==e?e:s,{owner:t}))}}}for(let i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<i1;t++){let n=y[t],i=this.props[n];(f(i)||!1===i)&&(e[n]=i)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let 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=(0,eW.BX)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=ti(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,D.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new n$.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class i2 extends i5{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},r){let s=function(t,e,n){let i={};for(let r in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(r,e);if(void 0!==t)i[r]=t;else{let t=n.getValue(r);t&&(i[r]=t.get())}}return i}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),r){!function(t,e,n){var i,r;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(i=n[o])&&void 0!==i?i:t.readValue(o))&&void 0!==r?r:e[o]),null!=u&&("string"==typeof u&&(eI(u)||eL(u))?u=parseFloat(u):!eH(u)&&eS.P.test(l)&&(u=eD(o,l)),t.addValue(o,(0,eW.BX)(u,{owner:t})),void 0===n[o]&&(n[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,n,s);let t=iq(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class i3 extends i2{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(j.has(e)){let t=ek(e);return t&&t.default||0}{let n=window.getComputedStyle(t),i=((0,F.f9)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return nM(t,e)}build(t,e,n,i){_(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return te(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,D.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,i){Q(t,e,n,i)}}class i9 extends i2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(j.has(e)){let t=ek(e);return t&&t.default||0}return e=J.has(e)?e:c(e),t.getAttribute(e)}measureInstanceViewportBox(){return np()}scrapeMotionValuesFromProps(t,e){return tn(t,e)}build(t,e,n,i){X(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){tt(t,e,n,i)}mount(t){this.isSVGTag=G(t.tagName),super.mount(t)}}let i4=(t,e)=>R(t)?new i9(e,{enableHardwareAcceleration:!1}):new i3(e,{enableHardwareAcceleration:!0}),i7={animation:{Feature:eQ},exit:{Feature:e0},inView:{Feature:tB},tap:{Feature:tj},focus:{Feature:tE},hover:{Feature:tC},pan:{Feature:nF},drag:{Feature:nL,ProjectionNode:iL,MeasureLayout:nU},layout:{ProjectionNode:iL,MeasureLayout:nU}},i6=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){t&&function(t){for(let e in t)w[e]={...w[e],...t[e]}}(t);let c=(0,s.forwardRef)(function(c,m){var g;let y;let x={...(0,s.useContext)(o._),...c,layoutId:function({layoutId:t}){let e=(0,s.useContext)(A).id;return e&&void 0!==t?e+"-"+t:t}(c)},{isStatic:b}=x,w=function(t){let{initial:e,animate:n}=function(t,e){if(v(t)){let{initial:e,animate:n}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(a));return(0,s.useMemo)(()=>({initial:e,animate:n}),[P(e),P(n)])}(c),C=i(c,b);if(!b&&S.j){w.visualElement=function(t,e,n,i){let{visualElement:r}=(0,s.useContext)(a),c=(0,s.useContext)(h),p=(0,s.useContext)(l),f=(0,s.useContext)(o._).reducedMotion,m=(0,s.useRef)();i=i||c.renderer,!m.current&&i&&(m.current=i(t,{visualState:e,parent:r,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:f}));let g=m.current;(0,s.useInsertionEffect)(()=>{g&&g.update(n,p)});let y=(0,s.useRef)(!!(n[d]&&!window.HandoffComplete));return(0,u.L)(()=>{g&&(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}(r,C,x,e);let n=(0,s.useContext)(T),i=(0,s.useContext)(h).strict;w.visualElement&&(y=w.visualElement.loadFeatures(x,i,t,n))}return s.createElement(a.Provider,{value:w},y&&w.visualElement?s.createElement(y,{visualElement:w.visualElement,...x}):null,n(r,c,(g=w.visualElement,(0,s.useCallback)(t=>{t&&C.mount&&C.mount(t),g&&(t?g.mount(t):g.unmount()),m&&("function"==typeof m?m(t):p(m)&&(m.current=t))},[g])),C,b,w.visualElement))});return c[C]=r,c}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,i){return{...R(t)?tc:td,preloadedFeatures:n,useRender:function(t=!1){return(e,n,i,{latestValues:r},o)=>{let a=(R(e)?function(t,e,n,i){let r=(0,s.useMemo)(()=>{let n=K();return X(n,e,{enableHardwareAcceleration:!1},G(i),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};z(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e,n){let i={},r=function(t,e,n){let i=t.style||{},r={};return z(r,i,t),Object.assign(r,function({transformTemplate:t},e,n){return(0,s.useMemo)(()=>{let i=$();return _(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(r):r}(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,i})(n,r,o,e),l={...(0,H.L)(n,"string"==typeof e,t),...a,ref:i},{children:u}=n,h=(0,s.useMemo)(()=>(0,D.i)(u)?u.get():u,[u]);return(0,s.createElement)(e,{...l,children:h})}}(e),createVisualElement:i,Component:t}})(t,e,i7,i4))},6257:function(t,e,n){n.d(e,{L:function(){return a},K:function(){return o}});let i=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function r(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||i.has(t)}let s=t=>!r(t);function o(t){t&&(s=e=>e.startsWith("on")?!r(e):t(e))}try{o(require("@emotion/is-prop-valid").default)}catch(t){}function a(t,e,n){let i={};for(let o in t)("values"!==o||"object"!=typeof t.values)&&(s(o)||!0===n&&r(o)||!e&&!r(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}},7249:function(t,e,n){n.d(e,{Xp:function(){return o},f9:function(){return r},tm:function(){return s}});let i=t=>e=>"string"==typeof e&&e.startsWith(t),r=i("--"),s=i("var(--"),o=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},9013:function(t,e,n){function i(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return r},y4:function(){return i}})},9111:function(t,e,n){n.d(e,{u:function(){return i}});let i=(t,e,n)=>Math.min(Math.max(n,t),e)},3223:function(t,e,n){n.d(e,{K:function(){return r},k:function(){return s}});var i=n(4439);let r=i.Z,s=i.Z},2888:function(t,e,n){n.d(e,{s:function(){return C}});var i=n(3223),r=n(7720),s=n(9111),o=n(8090);function a(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var l=n(7325),u=n(8859),h=n(2943);let c=(t,e,n)=>{let i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},d=[l.$,u.m,h.J],p=t=>d.find(e=>e.test(t));function f(t){let e=p(t);(0,i.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===h.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,s=0,o=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,l=2*n-i;r=a(l,i,t+1/3),s=a(l,i,t),o=a(l,i,t-1/3)}else r=s=o=n;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:i}}(n)),n}let m=(t,e)=>{let n=f(t),i=f(e),r={...n};return t=>(r.red=c(n.red,i.red,t),r.green=c(n.green,i.green,t),r.blue=c(n.blue,i.blue,t),r.alpha=(0,o.C)(n.alpha,i.alpha,t),u.m.transform(r))};var g=n(332),y=n(5636);let v=(t,e)=>n=>`${n>0?e:t}`;function x(t,e){return"number"==typeof t?n=>(0,o.C)(t,e,n):r.$.test(t)?m(t,e):t.startsWith("var(")?v(t,e):w(t,e)}let P=(t,e)=>{let n=[...t],i=n.length,r=t.map((t,n)=>x(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}},b=(t,e)=>{let n={...t,...e},i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=x(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}},w=(t,e)=>{let n=y.P.createTransformer(e),r=(0,y.V)(t),s=(0,y.V)(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?(0,g.z)(P(r.values,s.values),n):((0,i.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.`),v(t,e))};var S=n(6376),A=n(4439);let T=(t,e)=>n=>(0,o.C)(t,e,n);function C(t,e,{clamp:n=!0,ease:o,mixer:a}={}){let l=t.length;if((0,i.k)(l===e.length,"Both input and output ranges must be the same length"),1===l)return()=>e[0];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,n){let i=[],s=n||function(t){if("number"==typeof t);else if("string"==typeof t)return r.$.test(t)?m:w;else if(Array.isArray(t))return P;else if("object"==typeof t)return b;return T}(t[0]),o=t.length-1;for(let n=0;n<o;n++){let r=s(t[n],t[n+1]);if(e){let t=Array.isArray(e)?e[n]||A.Z:e;r=(0,g.z)(t,r)}i.push(r)}return i}(e,o,a),h=u.length,c=e=>{let n=0;if(h>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let i=(0,S.Y)(t[n],t[n+1],e);return u[n](i)};return n?e=>c((0,s.u)(t[0],t[l-1],e)):c}},4563:function(t,e,n){n.d(e,{j:function(){return i}});let i="undefined"!=typeof document},8090:function(t,e,n){n.d(e,{C:function(){return i}});let i=(t,e,n)=>-n*t+n*e+t},4439:function(t,e,n){n.d(e,{Z:function(){return i}});let i=t=>t},8913:function(t,e,n){n.d(e,{Y:function(){return s}});var i=n(8090),r=n(6376);function s(t){let e=[0];return!function(t,e){let n=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,r.Y)(0,e,s);t.push((0,i.C)(n,1,o))}}(e,t.length-1),e}},332:function(t,e,n){n.d(e,{z:function(){return r}});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},6376:function(t,e,n){n.d(e,{Y:function(){return i}});let i=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i}},5957:function(t,e,n){n.d(e,{A:function(){return s}});var i=n(4563),r=n(4004);function s(){if(r.O.current=!0,i.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r.n.current=t.matches;t.addListener(e),e()}else r.n.current=!1}}},4004:function(t,e,n){n.d(e,{O:function(){return r},n:function(){return i}});let i={current:null},r={current:!1}},2345:function(t,e,n){n.d(e,{J:function(){return o}});var i=n(2265),r=n(5957),s=n(4004);function o(){s.O.current||(0,r.A)();let[t]=(0,i.useState)(s.n.current);return t}},4081:function(t,e,n){n.d(e,{L:function(){return r}});var i=n(9013);class r{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},3576:function(t,e,n){n.d(e,{h:function(){return r}});var i=n(2265);function r(t){let e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1534:function(t,e,n){n.d(e,{L:function(){return r}});var i=n(2265);let r=n(4563).j?i.useLayoutEffect:i.useEffect},4438:function(t,e,n){n.d(e,{R:function(){return i}});function i(t,e){return e?1e3/e*t:0}},3078:function(t,e,n){n.d(e,{BX:function(){return u},S1:function(){return a}});var i=n(4081),r=n(4438),s=n(8345);let o=t=>!isNaN(parseFloat(t)),a={current:void 0};class l{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:i}=s.frameData;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,s.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=o(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i.L);let n=this.events[t].add(e);return"change"===t?()=>{n(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let 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=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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 u(t,e){return new l(t,e)}},7325:function(t,e,n){n.d(e,{$:function(){return r}});var i=n(8859);let r={test:(0,n(2702).i)("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:i.m.transform}},2943:function(t,e,n){n.d(e,{J:function(){return a}});var i=n(4305),r=n(7492),s=n(796),o=n(2702);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.Nw)(e))+", "+r.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(i.Fq.transform(o))+")"}},7720:function(t,e,n){n.d(e,{$:function(){return a}});var i=n(796),r=n(7325),s=n(2943),o=n(8859);let a={test:t=>o.m.test(t)||r.$.test(t)||s.J.test(t),parse:t=>o.m.test(t)?o.m.parse(t):s.J.test(t)?s.J.parse(t):r.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?o.m.transform(t):s.J.transform(t)}},8859:function(t,e,n){n.d(e,{m:function(){return u}});var i=n(9111),r=n(4305),s=n(796),o=n(2702);let a=t=>(0,i.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(n)+", "+(0,s.Nw)(r.Fq.transform(i))+")"}},2702:function(t,e,n){n.d(e,{d:function(){return s},i:function(){return r}});var i=n(796);let r=(t,e)=>n=>!!((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>r=>{if(!(0,i.HD)(r))return r;let[s,o,a,l]=r.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},5636:function(t,e,n){n.d(e,{P:function(){return g},V:function(){return d}});var i=n(7249),r=n(4439),s=n(7720),o=n(4305),a=n(796);let l={regex:i.Xp,countKey:"Vars",token:"${v}",parse:r.Z},u={regex:a.dA,countKey:"Colors",token:"${c}",parse:s.$.parse},h={regex:a.KP,countKey:"Numbers",token:"${n}",parse:o.Rx.parse};function c(t,{regex:e,countKey:n,token:i,parse:r}){let s=t.tokenised.match(e);s&&(t["num"+n]=s.length,t.tokenised=t.tokenised.replace(e,i),t.values.push(...s.map(r)))}function d(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&c(n,l),c(n,u),c(n,h),n}function p(t){return d(t).values}function f(t){let{values:e,numColors:n,numVars:i,tokenised:r}=d(t),o=e.length;return t=>{let e=r;for(let r=0;r<o;r++)e=r<i?e.replace(l.token,t[r]):r<i+n?e.replace(u.token,s.$.transform(t[r])):e.replace(h.token,(0,a.Nw)(t[r]));return e}}let m=t=>"number"==typeof t?0:t,g={test:function(t){var e,n;return isNaN(t)&&(0,a.HD)(t)&&((null===(e=t.match(a.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(a.dA))||void 0===n?void 0:n.length)||0)>0},parse:p,createTransformer:f,getAnimatableNone:function(t){let e=p(t);return f(t)(e.map(m))}}},4305:function(t,e,n){n.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var i=n(9111);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,i.u)(0,1,t)},o={...r,default:1}},7492:function(t,e,n){n.d(e,{$C:function(){return h},RW:function(){return s},aQ:function(){return o},px:function(){return a},vh:function(){return l},vw:function(){return u}});var i=n(796);let r=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=r("deg"),o=r("%"),a=r("px"),l=r("vh"),u=r("vw"),h={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},796:function(t,e,n){n.d(e,{HD:function(){return a},KP:function(){return r},Nw:function(){return i},dA:function(){return s},mj:function(){return o}});let i=t=>Math.round(1e5*t)/1e5,r=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,o=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},3999:function(t,e,n){n.d(e,{i:function(){return i}});let i=t=>!!(t&&t.getVelocity)}}]);