@noxsoft/anima 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/control-ui/assets/{index-D8YC8Sgw.js → index-Cof-3KpT.js} +15 -13
- package/dist/control-ui/assets/{index-D8YC8Sgw.js.map → index-Cof-3KpT.js.map} +1 -1
- package/dist/control-ui/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function gg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Iu={exports:{}},bl={};var Bp;function kx(){if(Bp)return bl;Bp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:f}}return bl.Fragment=i,bl.jsx=s,bl.jsxs=s,bl}var Up;function Jx(){return Up||(Up=1,Iu.exports=kx()),Iu.exports}var g=Jx(),tc={exports:{}},ut={};var Lp;function Fx(){if(Lp)return ut;Lp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),b=Symbol.iterator;function R(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function U(A,B,k){this.props=A,this.context=B,this.refs=w,this.updater=k||D}U.prototype.isReactComponent={},U.prototype.setState=function(A,B){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,B,"setState")},U.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function X(){}X.prototype=U.prototype;function H(A,B,k){this.props=A,this.context=B,this.refs=w,this.updater=k||D}var P=H.prototype=new X;P.constructor=H,_(P,U.prototype),P.isPureReactComponent=!0;var K=Array.isArray;function et(){}var J={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ot(A,B,k){var Q=k.ref;return{$$typeof:a,type:A,key:B,ref:Q!==void 0?Q:null,props:k}}function yt(A,B){return ot(A.type,B,A.props)}function St(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function gt(A){var B={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(k){return B[k]})}var Ht=/\/+/g;function qt(A,B){return typeof A=="object"&&A!==null&&A.key!=null?gt(""+A.key):B.toString(36)}function xt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(et,et):(A.status="pending",A.then(function(B){A.status==="pending"&&(A.status="fulfilled",A.value=B)},function(B){A.status==="pending"&&(A.status="rejected",A.reason=B)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function L(A,B,k,Q,F){var nt=typeof A;(nt==="undefined"||nt==="boolean")&&(A=null);var rt=!1;if(A===null)rt=!0;else switch(nt){case"bigint":case"string":case"number":rt=!0;break;case"object":switch(A.$$typeof){case a:case i:rt=!0;break;case v:return rt=A._init,L(rt(A._payload),B,k,Q,F)}}if(rt)return F=F(A),rt=Q===""?"."+qt(A,0):Q,K(F)?(k="",rt!=null&&(k=rt.replace(Ht,"$&/")+"/"),L(F,B,k,"",function(Di){return Di})):F!=null&&(St(F)&&(F=yt(F,k+(F.key==null||A&&A.key===F.key?"":(""+F.key).replace(Ht,"$&/")+"/")+rt)),B.push(F)),1;rt=0;var Yt=Q===""?".":Q+":";if(K(A))for(var Gt=0;Gt<A.length;Gt++)Q=A[Gt],nt=Yt+qt(Q,Gt),rt+=L(Q,B,k,nt,F);else if(Gt=R(A),typeof Gt=="function")for(A=Gt.call(A),Gt=0;!(Q=A.next()).done;)Q=Q.value,nt=Yt+qt(Q,Gt++),rt+=L(Q,B,k,nt,F);else if(nt==="object"){if(typeof A.then=="function")return L(xt(A),B,k,Q,F);throw B=String(A),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return rt}function O(A,B,k){if(A==null)return A;var Q=[],F=0;return L(A,Q,"","",function(nt){return B.call(k,nt,F++)}),Q}function Z(A){if(A._status===-1){var B=A._result;B=B(),B.then(function(k){(A._status===0||A._status===-1)&&(A._status=1,A._result=k)},function(k){(A._status===0||A._status===-1)&&(A._status=2,A._result=k)}),A._status===-1&&(A._status=0,A._result=B)}if(A._status===1)return A._result.default;throw A._result}var it=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},lt={map:O,forEach:function(A,B,k){O(A,function(){B.apply(this,arguments)},k)},count:function(A){var B=0;return O(A,function(){B++}),B},toArray:function(A){return O(A,function(B){return B})||[]},only:function(A){if(!St(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ut.Activity=x,ut.Children=lt,ut.Component=U,ut.Fragment=s,ut.Profiler=c,ut.PureComponent=H,ut.StrictMode=r,ut.Suspense=y,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,ut.__COMPILER_RUNTIME={__proto__:null,c:function(A){return J.H.useMemoCache(A)}},ut.cache=function(A){return function(){return A.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(A,B,k){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var Q=_({},A.props),F=A.key;if(B!=null)for(nt in B.key!==void 0&&(F=""+B.key),B)!W.call(B,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&B.ref===void 0||(Q[nt]=B[nt]);var nt=arguments.length-2;if(nt===1)Q.children=k;else if(1<nt){for(var rt=Array(nt),Yt=0;Yt<nt;Yt++)rt[Yt]=arguments[Yt+2];Q.children=rt}return ot(A.type,F,Q)},ut.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},ut.createElement=function(A,B,k){var Q,F={},nt=null;if(B!=null)for(Q in B.key!==void 0&&(nt=""+B.key),B)W.call(B,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(F[Q]=B[Q]);var rt=arguments.length-2;if(rt===1)F.children=k;else if(1<rt){for(var Yt=Array(rt),Gt=0;Gt<rt;Gt++)Yt[Gt]=arguments[Gt+2];F.children=Yt}if(A&&A.defaultProps)for(Q in rt=A.defaultProps,rt)F[Q]===void 0&&(F[Q]=rt[Q]);return ot(A,nt,F)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(A){return{$$typeof:m,render:A}},ut.isValidElement=St,ut.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:Z}},ut.memo=function(A,B){return{$$typeof:p,type:A,compare:B===void 0?null:B}},ut.startTransition=function(A){var B=J.T,k={};J.T=k;try{var Q=A(),F=J.S;F!==null&&F(k,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(et,it)}catch(nt){it(nt)}finally{B!==null&&k.types!==null&&(B.types=k.types),J.T=B}},ut.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},ut.use=function(A){return J.H.use(A)},ut.useActionState=function(A,B,k){return J.H.useActionState(A,B,k)},ut.useCallback=function(A,B){return J.H.useCallback(A,B)},ut.useContext=function(A){return J.H.useContext(A)},ut.useDebugValue=function(){},ut.useDeferredValue=function(A,B){return J.H.useDeferredValue(A,B)},ut.useEffect=function(A,B){return J.H.useEffect(A,B)},ut.useEffectEvent=function(A){return J.H.useEffectEvent(A)},ut.useId=function(){return J.H.useId()},ut.useImperativeHandle=function(A,B,k){return J.H.useImperativeHandle(A,B,k)},ut.useInsertionEffect=function(A,B){return J.H.useInsertionEffect(A,B)},ut.useLayoutEffect=function(A,B){return J.H.useLayoutEffect(A,B)},ut.useMemo=function(A,B){return J.H.useMemo(A,B)},ut.useOptimistic=function(A,B){return J.H.useOptimistic(A,B)},ut.useReducer=function(A,B,k){return J.H.useReducer(A,B,k)},ut.useRef=function(A){return J.H.useRef(A)},ut.useState=function(A){return J.H.useState(A)},ut.useSyncExternalStore=function(A,B,k){return J.H.useSyncExternalStore(A,B,k)},ut.useTransition=function(){return J.H.useTransition()},ut.version="19.2.4",ut}var Hp;function $c(){return Hp||(Hp=1,tc.exports=Fx()),tc.exports}var E=$c();const Px=gg(E);var ec={exports:{}},Tl={},nc={exports:{}},ac={};var qp;function Wx(){return qp||(qp=1,(function(a){function i(L,O){var Z=L.length;L.push(O);t:for(;0<Z;){var it=Z-1>>>1,lt=L[it];if(0<c(lt,O))L[it]=O,L[Z]=lt,Z=it;else break t}}function s(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var O=L[0],Z=L.pop();if(Z!==O){L[0]=Z;t:for(var it=0,lt=L.length,A=lt>>>1;it<A;){var B=2*(it+1)-1,k=L[B],Q=B+1,F=L[Q];if(0>c(k,Z))Q<lt&&0>c(F,k)?(L[it]=F,L[Q]=Z,it=Q):(L[it]=k,L[B]=Z,it=B);else if(Q<lt&&0>c(F,Z))L[it]=F,L[Q]=Z,it=Q;else break t}}return O}function c(L,O){var Z=L.sortIndex-O.sortIndex;return Z!==0?Z:L.id-O.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();a.unstable_now=function(){return d.now()-m}}var y=[],p=[],v=1,x=null,b=3,R=!1,D=!1,_=!1,w=!1,U=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function P(L){for(var O=s(p);O!==null;){if(O.callback===null)r(p);else if(O.startTime<=L)r(p),O.sortIndex=O.expirationTime,i(y,O);else break;O=s(p)}}function K(L){if(_=!1,P(L),!D)if(s(y)!==null)D=!0,et||(et=!0,gt());else{var O=s(p);O!==null&&xt(K,O.startTime-L)}}var et=!1,J=-1,W=5,ot=-1;function yt(){return w?!0:!(a.unstable_now()-ot<W)}function St(){if(w=!1,et){var L=a.unstable_now();ot=L;var O=!0;try{t:{D=!1,_&&(_=!1,X(J),J=-1),R=!0;var Z=b;try{e:{for(P(L),x=s(y);x!==null&&!(x.expirationTime>L&&yt());){var it=x.callback;if(typeof it=="function"){x.callback=null,b=x.priorityLevel;var lt=it(x.expirationTime<=L);if(L=a.unstable_now(),typeof lt=="function"){x.callback=lt,P(L),O=!0;break e}x===s(y)&&r(y),P(L)}else r(y);x=s(y)}if(x!==null)O=!0;else{var A=s(p);A!==null&&xt(K,A.startTime-L),O=!1}}break t}finally{x=null,b=Z,R=!1}O=void 0}}finally{O?gt():et=!1}}}var gt;if(typeof H=="function")gt=function(){H(St)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,qt=Ht.port2;Ht.port1.onmessage=St,gt=function(){qt.postMessage(null)}}else gt=function(){U(St,0)};function xt(L,O){J=U(function(){L(a.unstable_now())},O)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(L){L.callback=null},a.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<L?Math.floor(1e3/L):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(L){switch(b){case 1:case 2:case 3:var O=3;break;default:O=b}var Z=b;b=O;try{return L()}finally{b=Z}},a.unstable_requestPaint=function(){w=!0},a.unstable_runWithPriority=function(L,O){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Z=b;b=L;try{return O()}finally{b=Z}},a.unstable_scheduleCallback=function(L,O,Z){var it=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?it+Z:it):Z=it,L){case 1:var lt=-1;break;case 2:lt=250;break;case 5:lt=1073741823;break;case 4:lt=1e4;break;default:lt=5e3}return lt=Z+lt,L={id:v++,callback:O,priorityLevel:L,startTime:Z,expirationTime:lt,sortIndex:-1},Z>it?(L.sortIndex=Z,i(p,L),s(y)===null&&L===s(p)&&(_?(X(J),J=-1):_=!0,xt(K,Z-it))):(L.sortIndex=lt,i(y,L),D||R||(D=!0,et||(et=!0,gt()))),L},a.unstable_shouldYield=yt,a.unstable_wrapCallback=function(L){var O=b;return function(){var Z=b;b=O;try{return L.apply(this,arguments)}finally{b=Z}}}})(ac)),ac}var Yp;function $x(){return Yp||(Yp=1,nc.exports=Wx()),nc.exports}var ic={exports:{}},se={};var Gp;function Ix(){if(Gp)return se;Gp=1;var a=$c();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,p,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:y,containerInfo:p,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,se.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(y,p,null,v)},se.flushSync=function(y){var p=d.T,v=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=p,r.p=v,r.d.f()}},se.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},se.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},se.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,R=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:R}):v==="script"&&r.d.X(y,{crossOrigin:x,integrity:b,fetchPriority:R,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},se.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},se.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin);r.d.L(y,v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},se.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=m(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},se.requestFormReset=function(y){r.d.r(y)},se.unstable_batchedUpdates=function(y,p){return y(p)},se.useFormState=function(y,p,v){return d.H.useFormState(y,p,v)},se.useFormStatus=function(){return d.H.useHostTransitionStatus()},se.version="19.2.4",se}var Xp;function t1(){if(Xp)return ic.exports;Xp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ic.exports=Ix(),ic.exports}var Qp;function e1(){if(Qp)return Tl;Qp=1;var a=$x(),i=$c(),s=t1();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return y(o),t;if(u===l)return y(o),e;u=u.sibling}throw Error(r(188))}if(n.return!==l.return)n=o,l=u;else{for(var h=!1,S=o.child;S;){if(S===n){h=!0,n=o,l=u;break}if(S===l){h=!0,l=o,n=u;break}S=S.sibling}if(!h){for(S=u.child;S;){if(S===n){h=!0,n=u,l=o;break}if(S===l){h=!0,l=u,n=o;break}S=S.sibling}if(!h)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ot=Symbol.for("react.activity"),yt=Symbol.for("react.memo_cache_sentinel"),St=Symbol.iterator;function gt(t){return t===null||typeof t!="object"?null:(t=St&&t[St]||t["@@iterator"],typeof t=="function"?t:null)}var Ht=Symbol.for("react.client.reference");function qt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case U:return"Profiler";case w:return"StrictMode";case K:return"Suspense";case et:return"SuspenseList";case ot:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case D:return"Portal";case H:return t.displayName||"Context";case X:return(t._context.displayName||"Context")+".Consumer";case P:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return e=t.displayName||null,e!==null?e:qt(t.type)||"Memo";case W:e=t._payload,t=t._init;try{return qt(t(e))}catch{}}return null}var xt=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},it=[],lt=-1;function A(t){return{current:t}}function B(t){0>lt||(t.current=it[lt],it[lt]=null,lt--)}function k(t,e){lt++,it[lt]=t.current,t.current=e}var Q=A(null),F=A(null),nt=A(null),rt=A(null);function Yt(t,e){switch(k(nt,e),k(F,t),k(Q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?lp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=lp(e),t=sp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(Q),k(Q,t)}function Gt(){B(Q),B(F),B(nt)}function Di(t){t.memoizedState!==null&&k(rt,t);var e=Q.current,n=sp(e,t.type);e!==n&&(k(F,t),k(Q,n))}function Gl(t){F.current===t&&(B(Q),B(F)),rt.current===t&&(B(rt),gl._currentValue=Z)}var Vr,_f;function aa(t){if(Vr===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Vr=e&&e[1]||"",_f=-1<n.stack.indexOf(`
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function bg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var nc={exports:{}},bl={};var Hp;function Wx(){if(Hp)return bl;Hp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:f}}return bl.Fragment=i,bl.jsx=s,bl.jsxs=s,bl}var qp;function $x(){return qp||(qp=1,nc.exports=Wx()),nc.exports}var g=$x(),ac={exports:{}},ut={};var Gp;function Ix(){if(Gp)return ut;Gp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),b=Symbol.iterator;function R(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,D={};function B(A,U,k){this.props=A,this.context=U,this.refs=D,this.updater=k||w}B.prototype.isReactComponent={},B.prototype.setState=function(A,U){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,U,"setState")},B.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function G(){}G.prototype=B.prototype;function H(A,U,k){this.props=A,this.context=U,this.refs=D,this.updater=k||w}var F=H.prototype=new G;F.constructor=H,_(F,B.prototype),F.isPureReactComponent=!0;var Q=Array.isArray;function et(){}var J={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ot(A,U,k){var K=k.ref;return{$$typeof:a,type:A,key:U,ref:K!==void 0?K:null,props:k}}function yt(A,U){return ot(A.type,U,A.props)}function St(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function gt(A){var U={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(k){return U[k]})}var Ht=/\/+/g;function qt(A,U){return typeof A=="object"&&A!==null&&A.key!=null?gt(""+A.key):U.toString(36)}function xt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(et,et):(A.status="pending",A.then(function(U){A.status==="pending"&&(A.status="fulfilled",A.value=U)},function(U){A.status==="pending"&&(A.status="rejected",A.reason=U)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function L(A,U,k,K,P){var nt=typeof A;(nt==="undefined"||nt==="boolean")&&(A=null);var rt=!1;if(A===null)rt=!0;else switch(nt){case"bigint":case"string":case"number":rt=!0;break;case"object":switch(A.$$typeof){case a:case i:rt=!0;break;case v:return rt=A._init,L(rt(A._payload),U,k,K,P)}}if(rt)return P=P(A),rt=K===""?"."+qt(A,0):K,Q(P)?(k="",rt!=null&&(k=rt.replace(Ht,"$&/")+"/"),L(P,U,k,"",function(Di){return Di})):P!=null&&(St(P)&&(P=yt(P,k+(P.key==null||A&&A.key===P.key?"":(""+P.key).replace(Ht,"$&/")+"/")+rt)),U.push(P)),1;rt=0;var Gt=K===""?".":K+":";if(Q(A))for(var Yt=0;Yt<A.length;Yt++)K=A[Yt],nt=Gt+qt(K,Yt),rt+=L(K,U,k,nt,P);else if(Yt=R(A),typeof Yt=="function")for(A=Yt.call(A),Yt=0;!(K=A.next()).done;)K=K.value,nt=Gt+qt(K,Yt++),rt+=L(K,U,k,nt,P);else if(nt==="object"){if(typeof A.then=="function")return L(xt(A),U,k,K,P);throw U=String(A),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return rt}function O(A,U,k){if(A==null)return A;var K=[],P=0;return L(A,K,"","",function(nt){return U.call(k,nt,P++)}),K}function Z(A){if(A._status===-1){var U=A._result;U=U(),U.then(function(k){(A._status===0||A._status===-1)&&(A._status=1,A._result=k)},function(k){(A._status===0||A._status===-1)&&(A._status=2,A._result=k)}),A._status===-1&&(A._status=0,A._result=U)}if(A._status===1)return A._result.default;throw A._result}var it=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},lt={map:O,forEach:function(A,U,k){O(A,function(){U.apply(this,arguments)},k)},count:function(A){var U=0;return O(A,function(){U++}),U},toArray:function(A){return O(A,function(U){return U})||[]},only:function(A){if(!St(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ut.Activity=x,ut.Children=lt,ut.Component=B,ut.Fragment=s,ut.Profiler=c,ut.PureComponent=H,ut.StrictMode=r,ut.Suspense=y,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,ut.__COMPILER_RUNTIME={__proto__:null,c:function(A){return J.H.useMemoCache(A)}},ut.cache=function(A){return function(){return A.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(A,U,k){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var K=_({},A.props),P=A.key;if(U!=null)for(nt in U.key!==void 0&&(P=""+U.key),U)!W.call(U,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&U.ref===void 0||(K[nt]=U[nt]);var nt=arguments.length-2;if(nt===1)K.children=k;else if(1<nt){for(var rt=Array(nt),Gt=0;Gt<nt;Gt++)rt[Gt]=arguments[Gt+2];K.children=rt}return ot(A.type,P,K)},ut.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},ut.createElement=function(A,U,k){var K,P={},nt=null;if(U!=null)for(K in U.key!==void 0&&(nt=""+U.key),U)W.call(U,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(P[K]=U[K]);var rt=arguments.length-2;if(rt===1)P.children=k;else if(1<rt){for(var Gt=Array(rt),Yt=0;Yt<rt;Yt++)Gt[Yt]=arguments[Yt+2];P.children=Gt}if(A&&A.defaultProps)for(K in rt=A.defaultProps,rt)P[K]===void 0&&(P[K]=rt[K]);return ot(A,nt,P)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(A){return{$$typeof:m,render:A}},ut.isValidElement=St,ut.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:Z}},ut.memo=function(A,U){return{$$typeof:p,type:A,compare:U===void 0?null:U}},ut.startTransition=function(A){var U=J.T,k={};J.T=k;try{var K=A(),P=J.S;P!==null&&P(k,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(et,it)}catch(nt){it(nt)}finally{U!==null&&k.types!==null&&(U.types=k.types),J.T=U}},ut.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},ut.use=function(A){return J.H.use(A)},ut.useActionState=function(A,U,k){return J.H.useActionState(A,U,k)},ut.useCallback=function(A,U){return J.H.useCallback(A,U)},ut.useContext=function(A){return J.H.useContext(A)},ut.useDebugValue=function(){},ut.useDeferredValue=function(A,U){return J.H.useDeferredValue(A,U)},ut.useEffect=function(A,U){return J.H.useEffect(A,U)},ut.useEffectEvent=function(A){return J.H.useEffectEvent(A)},ut.useId=function(){return J.H.useId()},ut.useImperativeHandle=function(A,U,k){return J.H.useImperativeHandle(A,U,k)},ut.useInsertionEffect=function(A,U){return J.H.useInsertionEffect(A,U)},ut.useLayoutEffect=function(A,U){return J.H.useLayoutEffect(A,U)},ut.useMemo=function(A,U){return J.H.useMemo(A,U)},ut.useOptimistic=function(A,U){return J.H.useOptimistic(A,U)},ut.useReducer=function(A,U,k){return J.H.useReducer(A,U,k)},ut.useRef=function(A){return J.H.useRef(A)},ut.useState=function(A){return J.H.useState(A)},ut.useSyncExternalStore=function(A,U,k){return J.H.useSyncExternalStore(A,U,k)},ut.useTransition=function(){return J.H.useTransition()},ut.version="19.2.4",ut}var Yp;function ef(){return Yp||(Yp=1,ac.exports=Ix()),ac.exports}var E=ef();const t1=bg(E);var ic={exports:{}},Tl={},lc={exports:{}},sc={};var Xp;function e1(){return Xp||(Xp=1,(function(a){function i(L,O){var Z=L.length;L.push(O);t:for(;0<Z;){var it=Z-1>>>1,lt=L[it];if(0<c(lt,O))L[it]=O,L[Z]=lt,Z=it;else break t}}function s(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var O=L[0],Z=L.pop();if(Z!==O){L[0]=Z;t:for(var it=0,lt=L.length,A=lt>>>1;it<A;){var U=2*(it+1)-1,k=L[U],K=U+1,P=L[K];if(0>c(k,Z))K<lt&&0>c(P,k)?(L[it]=P,L[K]=Z,it=K):(L[it]=k,L[U]=Z,it=U);else if(K<lt&&0>c(P,Z))L[it]=P,L[K]=Z,it=K;else break t}}return O}function c(L,O){var Z=L.sortIndex-O.sortIndex;return Z!==0?Z:L.id-O.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();a.unstable_now=function(){return d.now()-m}}var y=[],p=[],v=1,x=null,b=3,R=!1,w=!1,_=!1,D=!1,B=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function F(L){for(var O=s(p);O!==null;){if(O.callback===null)r(p);else if(O.startTime<=L)r(p),O.sortIndex=O.expirationTime,i(y,O);else break;O=s(p)}}function Q(L){if(_=!1,F(L),!w)if(s(y)!==null)w=!0,et||(et=!0,gt());else{var O=s(p);O!==null&&xt(Q,O.startTime-L)}}var et=!1,J=-1,W=5,ot=-1;function yt(){return D?!0:!(a.unstable_now()-ot<W)}function St(){if(D=!1,et){var L=a.unstable_now();ot=L;var O=!0;try{t:{w=!1,_&&(_=!1,G(J),J=-1),R=!0;var Z=b;try{e:{for(F(L),x=s(y);x!==null&&!(x.expirationTime>L&&yt());){var it=x.callback;if(typeof it=="function"){x.callback=null,b=x.priorityLevel;var lt=it(x.expirationTime<=L);if(L=a.unstable_now(),typeof lt=="function"){x.callback=lt,F(L),O=!0;break e}x===s(y)&&r(y),F(L)}else r(y);x=s(y)}if(x!==null)O=!0;else{var A=s(p);A!==null&&xt(Q,A.startTime-L),O=!1}}break t}finally{x=null,b=Z,R=!1}O=void 0}}finally{O?gt():et=!1}}}var gt;if(typeof H=="function")gt=function(){H(St)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,qt=Ht.port2;Ht.port1.onmessage=St,gt=function(){qt.postMessage(null)}}else gt=function(){B(St,0)};function xt(L,O){J=B(function(){L(a.unstable_now())},O)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(L){L.callback=null},a.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<L?Math.floor(1e3/L):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(L){switch(b){case 1:case 2:case 3:var O=3;break;default:O=b}var Z=b;b=O;try{return L()}finally{b=Z}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(L,O){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Z=b;b=L;try{return O()}finally{b=Z}},a.unstable_scheduleCallback=function(L,O,Z){var it=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?it+Z:it):Z=it,L){case 1:var lt=-1;break;case 2:lt=250;break;case 5:lt=1073741823;break;case 4:lt=1e4;break;default:lt=5e3}return lt=Z+lt,L={id:v++,callback:O,priorityLevel:L,startTime:Z,expirationTime:lt,sortIndex:-1},Z>it?(L.sortIndex=Z,i(p,L),s(y)===null&&L===s(p)&&(_?(G(J),J=-1):_=!0,xt(Q,Z-it))):(L.sortIndex=lt,i(y,L),w||R||(w=!0,et||(et=!0,gt()))),L},a.unstable_shouldYield=yt,a.unstable_wrapCallback=function(L){var O=b;return function(){var Z=b;b=O;try{return L.apply(this,arguments)}finally{b=Z}}}})(sc)),sc}var Kp;function n1(){return Kp||(Kp=1,lc.exports=e1()),lc.exports}var rc={exports:{}},se={};var Qp;function a1(){if(Qp)return se;Qp=1;var a=ef();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,p,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:y,containerInfo:p,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,se.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(y,p,null,v)},se.flushSync=function(y){var p=d.T,v=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=p,r.p=v,r.d.f()}},se.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},se.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},se.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,R=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:R}):v==="script"&&r.d.X(y,{crossOrigin:x,integrity:b,fetchPriority:R,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},se.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},se.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin);r.d.L(y,v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},se.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=m(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},se.requestFormReset=function(y){r.d.r(y)},se.unstable_batchedUpdates=function(y,p){return y(p)},se.useFormState=function(y,p,v){return d.H.useFormState(y,p,v)},se.useFormStatus=function(){return d.H.useHostTransitionStatus()},se.version="19.2.4",se}var Zp;function i1(){if(Zp)return rc.exports;Zp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),rc.exports=a1(),rc.exports}var kp;function l1(){if(kp)return Tl;kp=1;var a=n1(),i=ef(),s=i1();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return y(o),t;if(u===l)return y(o),e;u=u.sibling}throw Error(r(188))}if(n.return!==l.return)n=o,l=u;else{for(var h=!1,S=o.child;S;){if(S===n){h=!0,n=o,l=u;break}if(S===l){h=!0,l=o,n=u;break}S=S.sibling}if(!h){for(S=u.child;S;){if(S===n){h=!0,n=u,l=o;break}if(S===l){h=!0,l=u,n=o;break}S=S.sibling}if(!h)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),H=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ot=Symbol.for("react.activity"),yt=Symbol.for("react.memo_cache_sentinel"),St=Symbol.iterator;function gt(t){return t===null||typeof t!="object"?null:(t=St&&t[St]||t["@@iterator"],typeof t=="function"?t:null)}var Ht=Symbol.for("react.client.reference");function qt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case B:return"Profiler";case D:return"StrictMode";case Q:return"Suspense";case et:return"SuspenseList";case ot:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case H:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case F:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return e=t.displayName||null,e!==null?e:qt(t.type)||"Memo";case W:e=t._payload,t=t._init;try{return qt(t(e))}catch{}}return null}var xt=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},it=[],lt=-1;function A(t){return{current:t}}function U(t){0>lt||(t.current=it[lt],it[lt]=null,lt--)}function k(t,e){lt++,it[lt]=t.current,t.current=e}var K=A(null),P=A(null),nt=A(null),rt=A(null);function Gt(t,e){switch(k(nt,e),k(P,t),k(K,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?op(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=op(e),t=up(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(K),k(K,t)}function Yt(){U(K),U(P),U(nt)}function Di(t){t.memoizedState!==null&&k(rt,t);var e=K.current,n=up(e,t.type);e!==n&&(k(P,t),k(K,n))}function Xl(t){P.current===t&&(U(K),U(P)),rt.current===t&&(U(rt),gl._currentValue=Z)}var Ur,Lf;function aa(t){if(Ur===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ur=e&&e[1]||"",Lf=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
3
|
+
`+Ur+t+Lf}var Lr=!1;function Hr(t,e){if(!t||Lr)return"";Lr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(V){var z=V}Reflect.construct(t,[],X)}else{try{X.call()}catch(V){z=V}t.call(X.prototype)}}else{try{throw Error()}catch(V){z=V}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(V){if(V&&z&&typeof V.stack=="string")return[V.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),h=u[0],S=u[1];if(h&&S){var T=h.split(`
|
|
4
4
|
`),N=S.split(`
|
|
5
5
|
`);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===N.length)for(l=T.length-1,o=N.length-1;1<=l&&0<=o&&T[l]!==N[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==N[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==N[o]){var q=`
|
|
6
|
-
`+T[l].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=l&&0<=o);break}}}finally{
|
|
6
|
+
`+T[l].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=l&&0<=o);break}}}finally{Lr=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?aa(n):""}function D0(t,e){switch(t.tag){case 26:case 27:case 5:return aa(t.type);case 16:return aa("Lazy");case 13:return t.child!==e&&e!==null?aa("Suspense Fallback"):aa("Suspense");case 19:return aa("SuspenseList");case 0:case 15:return Hr(t.type,!1);case 11:return Hr(t.type.render,!1);case 1:return Hr(t.type,!0);case 31:return aa("Activity");default:return""}}function Hf(t){try{var e="",n=null;do e+=D0(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var Ur=Object.prototype.hasOwnProperty,Lr=a.unstable_scheduleCallback,Hr=a.unstable_cancelCallback,C0=a.unstable_shouldYield,M0=a.unstable_requestPaint,ve=a.unstable_now,R0=a.unstable_getCurrentPriorityLevel,Uf=a.unstable_ImmediatePriority,Lf=a.unstable_UserBlockingPriority,Xl=a.unstable_NormalPriority,D0=a.unstable_LowPriority,Hf=a.unstable_IdlePriority,j0=a.log,w0=a.unstable_setDisableYieldValue,ji=null,Se=null;function Dn(t){if(typeof j0=="function"&&w0(t),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(ji,t)}catch{}}var xe=Math.clz32?Math.clz32:O0,N0=Math.log,z0=Math.LN2;function O0(t){return t>>>=0,t===0?32:31-(N0(t)/z0|0)|0}var Ql=256,Kl=262144,Zl=4194304;function ia(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function kl(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var o=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var S=l&134217727;return S!==0?(l=S&~u,l!==0?o=ia(l):(h&=S,h!==0?o=ia(h):n||(n=S&~t,n!==0&&(o=ia(n))))):(S=l&~u,S!==0?o=ia(S):h!==0?o=ia(h):n||(n=l&~t,n!==0&&(o=ia(n)))),o===0?0:e!==0&&e!==o&&(e&u)===0&&(u=o&-o,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:o}function wi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function V0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qf(){var t=Zl;return Zl<<=1,(Zl&62914560)===0&&(Zl=4194304),t}function qr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ni(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _0(t,e,n,l,o,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var S=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=h&~n;0<n;){var q=31-xe(n),G=1<<q;S[q]=0,T[q]=-1;var z=N[q];if(z!==null)for(N[q]=null,q=0;q<z.length;q++){var V=z[q];V!==null&&(V.lane&=-536870913)}n&=~G}l!==0&&Yf(t,l,0),u!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function Yf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-xe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Gf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-xe(n),o=1<<l;o&e|t[l]&e&&(t[l]|=e),n&=~o}}function Xf(t,e){var n=e&-e;return n=(n&42)!==0?1:Yr(n),(n&(t.suspendedLanes|e))!==0?0:n}function Yr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Gr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Qf(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:jp(t.type))}function Kf(t,e){var n=O.p;try{return O.p=t,e()}finally{O.p=n}}var jn=Math.random().toString(36).slice(2),te="__reactFiber$"+jn,fe="__reactProps$"+jn,Da="__reactContainer$"+jn,Xr="__reactEvents$"+jn,B0="__reactListeners$"+jn,U0="__reactHandles$"+jn,Zf="__reactResources$"+jn,zi="__reactMarker$"+jn;function Qr(t){delete t[te],delete t[fe],delete t[Xr],delete t[B0],delete t[U0]}function ja(t){var e=t[te];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[te]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=hp(t);t!==null;){if(n=t[te])return n;t=hp(t)}return e}t=n,n=t.parentNode}return null}function wa(t){if(t=t[te]||t[Da]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Oi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Na(t){var e=t[Zf];return e||(e=t[Zf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function $t(t){t[zi]=!0}var kf=new Set,Jf={};function la(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(Jf[t]=e,t=0;t<e.length;t++)kf.add(e[t])}var L0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ff={},Pf={};function H0(t){return Ur.call(Pf,t)?!0:Ur.call(Ff,t)?!1:L0.test(t)?Pf[t]=!0:(Ff[t]=!0,!1)}function Jl(t,e,n){if(H0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Fl(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function rn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Wf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function q0(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Kr(t){if(!t._valueTracker){var e=Wf(t)?"checked":"value";t._valueTracker=q0(t,e,""+t[e])}}function $f(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Wf(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Pl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Y0=/[\n"\\]/g;function we(t){return t.replace(Y0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Zr(t,e,n,l,o,u,h,S){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?kr(t,h,je(e)):n!=null?kr(t,h,je(n)):l!=null&&t.removeAttribute("value"),o==null&&u!=null&&(t.defaultChecked=!!u),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+je(S):t.removeAttribute("name")}function If(t,e,n,l,o,u,h,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Kr(t);return}n=n!=null?""+je(n):"",e=e!=null?""+je(e):n,S||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=S?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Kr(t)}function kr(t,e,n){e==="number"&&Pl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Oa(t,e,n,l){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&l&&(t[n].defaultSelected=!0)}else{for(n=""+je(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function td(t,e,n){if(e!=null&&(e=""+je(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+je(n):""}function ed(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(r(92));if(xt(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=je(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Kr(t)}function Va(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var G0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function nd(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||G0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function ad(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&n[o]!==l&&nd(t,o,l)}else for(var u in e)e.hasOwnProperty(u)&&nd(t,u,e[u])}function Jr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var X0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Q0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wl(t){return Q0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function on(){}var Fr=null;function Pr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var _a=null,Ba=null;function id(t){var e=wa(t);if(e&&(t=e.stateNode)){var n=t[fe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Zr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+we(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var o=l[fe]||null;if(!o)throw Error(r(90));Zr(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&$f(l)}break t;case"textarea":td(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Oa(t,!!n.multiple,e,!1)}}}var Wr=!1;function ld(t,e,n){if(Wr)return t(e,n);Wr=!0;try{var l=t(e);return l}finally{if(Wr=!1,(_a!==null||Ba!==null)&&(Ls(),_a&&(e=_a,t=Ba,Ba=_a=null,id(e),t)))for(e=0;e<t.length;e++)id(t[e])}}function Vi(t,e){var n=t.stateNode;if(n===null)return null;var l=n[fe]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$r=!1;if(un)try{var _i={};Object.defineProperty(_i,"passive",{get:function(){$r=!0}}),window.addEventListener("test",_i,_i),window.removeEventListener("test",_i,_i)}catch{$r=!1}var wn=null,Ir=null,$l=null;function sd(){if($l)return $l;var t,e=Ir,n=e.length,l,o="value"in wn?wn.value:wn.textContent,u=o.length;for(t=0;t<n&&e[t]===o[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===o[u-l];l++);return $l=o.slice(t,1<l?1-l:void 0)}function Il(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ts(){return!0}function rd(){return!1}function de(t){function e(n,l,o,u,h){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(n=t[S],this[S]=n?n(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ts:rd,this.isPropagationStopped=rd,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ts)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ts)},persist:function(){},isPersistent:ts}),e}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=de(sa),Bi=x({},sa,{view:0,detail:0}),K0=de(Bi),to,eo,Ui,ns=x({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ao,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ui&&(Ui&&t.type==="mousemove"?(to=t.screenX-Ui.screenX,eo=t.screenY-Ui.screenY):eo=to=0,Ui=t),to)},movementY:function(t){return"movementY"in t?t.movementY:eo}}),od=de(ns),Z0=x({},ns,{dataTransfer:0}),k0=de(Z0),J0=x({},Bi,{relatedTarget:0}),no=de(J0),F0=x({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),P0=de(F0),W0=x({},sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$0=de(W0),I0=x({},sa,{data:0}),ud=de(I0),tS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aS(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nS[t])?!!e[t]:!1}function ao(){return aS}var iS=x({},Bi,{key:function(t){if(t.key){var e=tS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Il(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?eS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ao,charCode:function(t){return t.type==="keypress"?Il(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Il(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lS=de(iS),sS=x({},ns,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cd=de(sS),rS=x({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ao}),oS=de(rS),uS=x({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),cS=de(uS),fS=x({},ns,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),dS=de(fS),hS=x({},sa,{newState:0,oldState:0}),mS=de(hS),pS=[9,13,27,32],io=un&&"CompositionEvent"in window,Li=null;un&&"documentMode"in document&&(Li=document.documentMode);var yS=un&&"TextEvent"in window&&!Li,fd=un&&(!io||Li&&8<Li&&11>=Li),dd=" ",hd=!1;function md(t,e){switch(t){case"keyup":return pS.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ua=!1;function gS(t,e){switch(t){case"compositionend":return pd(e);case"keypress":return e.which!==32?null:(hd=!0,dd);case"textInput":return t=e.data,t===dd&&hd?null:t;default:return null}}function vS(t,e){if(Ua)return t==="compositionend"||!io&&md(t,e)?(t=sd(),$l=Ir=wn=null,Ua=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return fd&&e.locale!=="ko"?null:e.data;default:return null}}var SS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!SS[t.type]:e==="textarea"}function gd(t,e,n,l){_a?Ba?Ba.push(l):Ba=[l]:_a=l,e=Ks(e,"onChange"),0<e.length&&(n=new es("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Hi=null,qi=null;function xS(t){Im(t,0)}function as(t){var e=Oi(t);if($f(e))return t}function vd(t,e){if(t==="change")return e}var Sd=!1;if(un){var lo;if(un){var so="oninput"in document;if(!so){var xd=document.createElement("div");xd.setAttribute("oninput","return;"),so=typeof xd.oninput=="function"}lo=so}else lo=!1;Sd=lo&&(!document.documentMode||9<document.documentMode)}function bd(){Hi&&(Hi.detachEvent("onpropertychange",Td),qi=Hi=null)}function Td(t){if(t.propertyName==="value"&&as(qi)){var e=[];gd(e,qi,t,Pr(t)),ld(xS,e)}}function bS(t,e,n){t==="focusin"?(bd(),Hi=e,qi=n,Hi.attachEvent("onpropertychange",Td)):t==="focusout"&&bd()}function TS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return as(qi)}function ES(t,e){if(t==="click")return as(e)}function AS(t,e){if(t==="input"||t==="change")return as(e)}function CS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:CS;function Yi(t,e){if(be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!Ur.call(e,o)||!be(t[o],e[o]))return!1}return!0}function Ed(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ad(t,e){var n=Ed(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Ed(n)}}function Cd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Cd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Md(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Pl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Pl(t.document)}return e}function ro(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var MS=un&&"documentMode"in document&&11>=document.documentMode,La=null,oo=null,Gi=null,uo=!1;function Rd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uo||La==null||La!==Pl(l)||(l=La,"selectionStart"in l&&ro(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Gi&&Yi(Gi,l)||(Gi=l,l=Ks(oo,"onSelect"),0<l.length&&(e=new es("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=La)))}function ra(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ha={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionrun:ra("Transition","TransitionRun"),transitionstart:ra("Transition","TransitionStart"),transitioncancel:ra("Transition","TransitionCancel"),transitionend:ra("Transition","TransitionEnd")},co={},Dd={};un&&(Dd=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function oa(t){if(co[t])return co[t];if(!Ha[t])return t;var e=Ha[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Dd)return co[t]=e[n];return t}var jd=oa("animationend"),wd=oa("animationiteration"),Nd=oa("animationstart"),RS=oa("transitionrun"),DS=oa("transitionstart"),jS=oa("transitioncancel"),zd=oa("transitionend"),Od=new Map,fo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");fo.push("scrollEnd");function Ye(t,e){Od.set(t,e),la(e,[t])}var is=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ne=[],qa=0,ho=0;function ls(){for(var t=qa,e=ho=qa=0;e<t;){var n=Ne[e];Ne[e++]=null;var l=Ne[e];Ne[e++]=null;var o=Ne[e];Ne[e++]=null;var u=Ne[e];if(Ne[e++]=null,l!==null&&o!==null){var h=l.pending;h===null?o.next=o:(o.next=h.next,h.next=o),l.pending=o}u!==0&&Vd(n,o,u)}}function ss(t,e,n,l){Ne[qa++]=t,Ne[qa++]=e,Ne[qa++]=n,Ne[qa++]=l,ho|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function mo(t,e,n,l){return ss(t,e,n,l),rs(t)}function ua(t,e){return ss(t,null,null,e),rs(t)}function Vd(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(o=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,o&&e!==null&&(o=31-xe(n),t=u.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=n|536870912),u):null}function rs(t){if(50<cl)throw cl=0,Eu=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ya={};function wS(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,n,l){return new wS(t,e,n,l)}function po(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cn(t,e){var n=t.alternate;return n===null?(n=Te(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function _d(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function os(t,e,n,l,o,u){var h=0;if(l=t,typeof t=="function")po(t)&&(h=1);else if(typeof t=="string")h=_x(t,n,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ot:return t=Te(31,n,e,o),t.elementType=ot,t.lanes=u,t;case _:return ca(n.children,o,u,e);case w:h=8,o|=24;break;case U:return t=Te(12,n,e,o|2),t.elementType=U,t.lanes=u,t;case K:return t=Te(13,n,e,o),t.elementType=K,t.lanes=u,t;case et:return t=Te(19,n,e,o),t.elementType=et,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:h=10;break t;case X:h=9;break t;case P:h=11;break t;case J:h=14;break t;case W:h=16,l=null;break t}h=29,n=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Te(h,n,e,o),e.elementType=t,e.type=l,e.lanes=u,e}function ca(t,e,n,l){return t=Te(7,t,l,e),t.lanes=n,t}function yo(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function Bd(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function go(t,e,n){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ud=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var n=Ud.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Bf(e)},Ud.set(t,e),e)}return{value:t,source:e,stack:Bf(e)}}var Ga=[],Xa=0,us=null,Xi=0,Oe=[],Ve=0,Nn=null,Pe=1,We="";function fn(t,e){Ga[Xa++]=Xi,Ga[Xa++]=us,us=t,Xi=e}function Ld(t,e,n){Oe[Ve++]=Pe,Oe[Ve++]=We,Oe[Ve++]=Nn,Nn=t;var l=Pe;t=We;var o=32-xe(l)-1;l&=~(1<<o),n+=1;var u=32-xe(e)+o;if(30<u){var h=o-o%5;u=(l&(1<<h)-1).toString(32),l>>=h,o-=h,Pe=1<<32-xe(e)+o|n<<o|l,We=u+t}else Pe=1<<u|n<<o|l,We=t}function vo(t){t.return!==null&&(fn(t,1),Ld(t,1,0))}function So(t){for(;t===us;)us=Ga[--Xa],Ga[Xa]=null,Xi=Ga[--Xa],Ga[Xa]=null;for(;t===Nn;)Nn=Oe[--Ve],Oe[Ve]=null,We=Oe[--Ve],Oe[Ve]=null,Pe=Oe[--Ve],Oe[Ve]=null}function Hd(t,e){Oe[Ve++]=Pe,Oe[Ve++]=We,Oe[Ve++]=Nn,Pe=e.id,We=e.overflow,Nn=t}var ee=null,Nt=null,vt=!1,zn=null,_e=!1,xo=Error(r(519));function On(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(ze(e,t)),xo}function qd(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[te]=t,e[fe]=l,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<dl.length;n++)ht(dl[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),If(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),ed(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||ap(e.textContent,n)?(l.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),l.onScroll!=null&&ht("scroll",e),l.onScrollEnd!=null&&ht("scrollend",e),l.onClick!=null&&(e.onclick=on),e=!0):e=!1,e||On(t,!0)}function Yd(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:_e=!1;return;case 27:case 3:_e=!0;return;default:ee=ee.return}}function Qa(t){if(t!==ee)return!1;if(!vt)return Yd(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Lu(t.type,t.memoizedProps)),n=!n),n&&Nt&&On(t),Yd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Nt=dp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Nt=dp(t)}else e===27?(e=Nt,kn(t.type)?(t=Xu,Xu=null,Nt=t):Nt=e):Nt=ee?Ue(t.stateNode.nextSibling):null;return!0}function fa(){Nt=ee=null,vt=!1}function bo(){var t=zn;return t!==null&&(ye===null?ye=t:ye.push.apply(ye,t),zn=null),t}function Qi(t){zn===null?zn=[t]:zn.push(t)}var To=A(null),da=null,dn=null;function Vn(t,e,n){k(To,e._currentValue),e._currentValue=n}function hn(t){t._currentValue=To.current,B(To)}function Eo(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Ao(t,e,n,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;t:for(;u!==null;){var S=u;u=o;for(var T=0;T<e.length;T++)if(S.context===e[T]){u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),Eo(u.return,n,t),l||(h=null);break t}u=S.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(r(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Eo(h,n,t),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===t){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function Ka(t,e,n,l){t=null;for(var o=e,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(r(387));if(h=h.memoizedProps,h!==null){var S=o.type;be(o.pendingProps.value,h.value)||(t!==null?t.push(S):t=[S])}}else if(o===rt.current){if(h=o.alternate,h===null)throw Error(r(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(gl):t=[gl])}o=o.return}t!==null&&Ao(e,t,n,l),e.flags|=262144}function cs(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return Gd(da,t)}function fs(t,e){return da===null&&ha(t),Gd(t,e)}function Gd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(r(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var NS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},zS=a.unstable_scheduleCallback,OS=a.unstable_NormalPriority,Kt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Co(){return{controller:new NS,data:new Map,refCount:0}}function Ki(t){t.refCount--,t.refCount===0&&zS(OS,function(){t.controller.abort()})}var Zi=null,Mo=0,Za=0,ka=null;function VS(t,e){if(Zi===null){var n=Zi=[];Mo=0,Za=ju(),ka={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Mo++,e.then(Xd,Xd),e}function Xd(){if(--Mo===0&&Zi!==null){ka!==null&&(ka.status="fulfilled");var t=Zi;Zi=null,Za=0,ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _S(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var Qd=L.S;L.S=function(t,e){Rm=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&VS(t,e),Qd!==null&&Qd(t,e)};var ma=A(null);function Ro(){var t=ma.current;return t!==null?t:jt.pooledCache}function ds(t,e){e===null?k(ma,ma.current):k(ma,e.pool)}function Kd(){var t=Ro();return t===null?null:{parent:Kt._currentValue,pool:t}}var Ja=Error(r(460)),Do=Error(r(474)),hs=Error(r(542)),ms={then:function(){}};function Zd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(on,on),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Fd(t),t;default:if(typeof e.status=="string")e.then(on,on);else{if(t=jt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Fd(t),t}throw ya=e,Ja}}function pa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ya=n,Ja):n}}var ya=null;function Jd(){if(ya===null)throw Error(r(459));var t=ya;return ya=null,t}function Fd(t){if(t===Ja||t===hs)throw Error(r(483))}var Fa=null,ki=0;function ps(t){var e=ki;return ki+=1,Fa===null&&(Fa=[]),kd(Fa,t,e)}function Ji(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ys(t,e){throw e.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Pd(t){function e(M,C){if(t){var j=M.deletions;j===null?(M.deletions=[C],M.flags|=16):j.push(C)}}function n(M,C){if(!t)return null;for(;C!==null;)e(M,C),C=C.sibling;return null}function l(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=cn(M,C),M.index=0,M.sibling=null,M}function u(M,C,j){return M.index=j,t?(j=M.alternate,j!==null?(j=j.index,j<C?(M.flags|=67108866,C):j):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function h(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function S(M,C,j,Y){return C===null||C.tag!==6?(C=yo(j,M.mode,Y),C.return=M,C):(C=o(C,j),C.return=M,C)}function T(M,C,j,Y){var at=j.type;return at===_?q(M,C,j.props.children,Y,j.key):C!==null&&(C.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===W&&pa(at)===C.type)?(C=o(C,j.props),Ji(C,j),C.return=M,C):(C=os(j.type,j.key,j.props,null,M.mode,Y),Ji(C,j),C.return=M,C)}function N(M,C,j,Y){return C===null||C.tag!==4||C.stateNode.containerInfo!==j.containerInfo||C.stateNode.implementation!==j.implementation?(C=go(j,M.mode,Y),C.return=M,C):(C=o(C,j.children||[]),C.return=M,C)}function q(M,C,j,Y,at){return C===null||C.tag!==7?(C=ca(j,M.mode,Y,at),C.return=M,C):(C=o(C,j),C.return=M,C)}function G(M,C,j){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=yo(""+C,M.mode,j),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case R:return j=os(C.type,C.key,C.props,null,M.mode,j),Ji(j,C),j.return=M,j;case D:return C=go(C,M.mode,j),C.return=M,C;case W:return C=pa(C),G(M,C,j)}if(xt(C)||gt(C))return C=ca(C,M.mode,j,null),C.return=M,C;if(typeof C.then=="function")return G(M,ps(C),j);if(C.$$typeof===H)return G(M,fs(M,C),j);ys(M,C)}return null}function z(M,C,j,Y){var at=C!==null?C.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return at!==null?null:S(M,C,""+j,Y);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case R:return j.key===at?T(M,C,j,Y):null;case D:return j.key===at?N(M,C,j,Y):null;case W:return j=pa(j),z(M,C,j,Y)}if(xt(j)||gt(j))return at!==null?null:q(M,C,j,Y,null);if(typeof j.then=="function")return z(M,C,ps(j),Y);if(j.$$typeof===H)return z(M,C,fs(M,j),Y);ys(M,j)}return null}function V(M,C,j,Y,at){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return M=M.get(j)||null,S(C,M,""+Y,at);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case R:return M=M.get(Y.key===null?j:Y.key)||null,T(C,M,Y,at);case D:return M=M.get(Y.key===null?j:Y.key)||null,N(C,M,Y,at);case W:return Y=pa(Y),V(M,C,j,Y,at)}if(xt(Y)||gt(Y))return M=M.get(j)||null,q(C,M,Y,at,null);if(typeof Y.then=="function")return V(M,C,j,ps(Y),at);if(Y.$$typeof===H)return V(M,C,j,fs(C,Y),at);ys(C,Y)}return null}function $(M,C,j,Y){for(var at=null,bt=null,tt=C,ft=C=0,pt=null;tt!==null&&ft<j.length;ft++){tt.index>ft?(pt=tt,tt=null):pt=tt.sibling;var Tt=z(M,tt,j[ft],Y);if(Tt===null){tt===null&&(tt=pt);break}t&&tt&&Tt.alternate===null&&e(M,tt),C=u(Tt,C,ft),bt===null?at=Tt:bt.sibling=Tt,bt=Tt,tt=pt}if(ft===j.length)return n(M,tt),vt&&fn(M,ft),at;if(tt===null){for(;ft<j.length;ft++)tt=G(M,j[ft],Y),tt!==null&&(C=u(tt,C,ft),bt===null?at=tt:bt.sibling=tt,bt=tt);return vt&&fn(M,ft),at}for(tt=l(tt);ft<j.length;ft++)pt=V(tt,M,ft,j[ft],Y),pt!==null&&(t&&pt.alternate!==null&&tt.delete(pt.key===null?ft:pt.key),C=u(pt,C,ft),bt===null?at=pt:bt.sibling=pt,bt=pt);return t&&tt.forEach(function($n){return e(M,$n)}),vt&&fn(M,ft),at}function st(M,C,j,Y){if(j==null)throw Error(r(151));for(var at=null,bt=null,tt=C,ft=C=0,pt=null,Tt=j.next();tt!==null&&!Tt.done;ft++,Tt=j.next()){tt.index>ft?(pt=tt,tt=null):pt=tt.sibling;var $n=z(M,tt,Tt.value,Y);if($n===null){tt===null&&(tt=pt);break}t&&tt&&$n.alternate===null&&e(M,tt),C=u($n,C,ft),bt===null?at=$n:bt.sibling=$n,bt=$n,tt=pt}if(Tt.done)return n(M,tt),vt&&fn(M,ft),at;if(tt===null){for(;!Tt.done;ft++,Tt=j.next())Tt=G(M,Tt.value,Y),Tt!==null&&(C=u(Tt,C,ft),bt===null?at=Tt:bt.sibling=Tt,bt=Tt);return vt&&fn(M,ft),at}for(tt=l(tt);!Tt.done;ft++,Tt=j.next())Tt=V(tt,M,ft,Tt.value,Y),Tt!==null&&(t&&Tt.alternate!==null&&tt.delete(Tt.key===null?ft:Tt.key),C=u(Tt,C,ft),bt===null?at=Tt:bt.sibling=Tt,bt=Tt);return t&&tt.forEach(function(Zx){return e(M,Zx)}),vt&&fn(M,ft),at}function Dt(M,C,j,Y){if(typeof j=="object"&&j!==null&&j.type===_&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case R:t:{for(var at=j.key;C!==null;){if(C.key===at){if(at=j.type,at===_){if(C.tag===7){n(M,C.sibling),Y=o(C,j.props.children),Y.return=M,M=Y;break t}}else if(C.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===W&&pa(at)===C.type){n(M,C.sibling),Y=o(C,j.props),Ji(Y,j),Y.return=M,M=Y;break t}n(M,C);break}else e(M,C);C=C.sibling}j.type===_?(Y=ca(j.props.children,M.mode,Y,j.key),Y.return=M,M=Y):(Y=os(j.type,j.key,j.props,null,M.mode,Y),Ji(Y,j),Y.return=M,M=Y)}return h(M);case D:t:{for(at=j.key;C!==null;){if(C.key===at)if(C.tag===4&&C.stateNode.containerInfo===j.containerInfo&&C.stateNode.implementation===j.implementation){n(M,C.sibling),Y=o(C,j.children||[]),Y.return=M,M=Y;break t}else{n(M,C);break}else e(M,C);C=C.sibling}Y=go(j,M.mode,Y),Y.return=M,M=Y}return h(M);case W:return j=pa(j),Dt(M,C,j,Y)}if(xt(j))return $(M,C,j,Y);if(gt(j)){if(at=gt(j),typeof at!="function")throw Error(r(150));return j=at.call(j),st(M,C,j,Y)}if(typeof j.then=="function")return Dt(M,C,ps(j),Y);if(j.$$typeof===H)return Dt(M,C,fs(M,j),Y);ys(M,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,C!==null&&C.tag===6?(n(M,C.sibling),Y=o(C,j),Y.return=M,M=Y):(n(M,C),Y=yo(j,M.mode,Y),Y.return=M,M=Y),h(M)):n(M,C)}return function(M,C,j,Y){try{ki=0;var at=Dt(M,C,j,Y);return Fa=null,at}catch(tt){if(tt===Ja||tt===hs)throw tt;var bt=Te(29,tt,null,M.mode);return bt.lanes=Y,bt.return=M,bt}}}var ga=Pd(!0),Wd=Pd(!1),_n=!1;function jo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Un(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=rs(t),Vd(t,null,n),e}return ss(t,l,e,n),rs(t)}function Fi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Gf(t,n)}}function No(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?o=u=e:u=u.next=e}else o=u=e;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var zo=!1;function Pi(){if(zo){var t=ka;if(t!==null)throw t}}function Wi(t,e,n,l){zo=!1;var o=t.updateQueue;_n=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var T=S,N=T.next;T.next=null,h===null?u=N:h.next=N,h=T;var q=t.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==h&&(S===null?q.firstBaseUpdate=N:S.next=N,q.lastBaseUpdate=T))}if(u!==null){var G=o.baseState;h=0,q=N=T=null,S=u;do{var z=S.lane&-536870913,V=z!==S.lane;if(V?(mt&z)===z:(l&z)===z){z!==0&&z===Za&&(zo=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var $=t,st=S;z=e;var Dt=n;switch(st.tag){case 1:if($=st.payload,typeof $=="function"){G=$.call(Dt,G,z);break t}G=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=st.payload,z=typeof $=="function"?$.call(Dt,G,z):$,z==null)break t;G=x({},G,z);break t;case 2:_n=!0}}z=S.callback,z!==null&&(t.flags|=64,V&&(t.flags|=8192),V=o.callbacks,V===null?o.callbacks=[z]:V.push(z))}else V={lane:z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(N=q=V,T=G):q=q.next=V,h|=z;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;V=S,S=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);q===null&&(T=G),o.baseState=T,o.firstBaseUpdate=N,o.lastBaseUpdate=q,u===null&&(o.shared.lanes=0),Gn|=h,t.lanes=h,t.memoizedState=G}}function $d(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Id(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)$d(n[t],e)}var Pa=A(null),gs=A(0);function th(t,e){t=Tn,k(gs,t),k(Pa,e),Tn=t|e.baseLanes}function Oo(){k(gs,Tn),k(Pa,Pa.current)}function Vo(){Tn=gs.current,B(Pa),B(gs)}var Ee=A(null),Be=null;function Ln(t){var e=t.alternate;k(Xt,Xt.current&1),k(Ee,t),Be===null&&(e===null||Pa.current!==null||e.memoizedState!==null)&&(Be=t)}function _o(t){k(Xt,Xt.current),k(Ee,t),Be===null&&(Be=t)}function eh(t){t.tag===22?(k(Xt,Xt.current),k(Ee,t),Be===null&&(Be=t)):Hn()}function Hn(){k(Xt,Xt.current),k(Ee,Ee.current)}function Ae(t){B(Ee),Be===t&&(Be=null),B(Xt)}var Xt=A(0);function vs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yu(n)||Gu(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var mn=0,ct=null,Mt=null,Zt=null,Ss=!1,Wa=!1,va=!1,xs=0,$i=0,$a=null,BS=0;function Bt(){throw Error(r(321))}function Bo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!be(t[n],e[n]))return!1;return!0}function Uo(t,e,n,l,o,u){return mn=u,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,L.H=t===null||t.memoizedState===null?Lh:$o,va=!1,u=n(l,o),va=!1,Wa&&(u=ah(e,n,l,o)),nh(t),u}function nh(t){L.H=el;var e=Mt!==null&&Mt.next!==null;if(mn=0,Zt=Mt=ct=null,Ss=!1,$i=0,$a=null,e)throw Error(r(300));t===null||kt||(t=t.dependencies,t!==null&&cs(t)&&(kt=!0))}function ah(t,e,n,l){ct=t;var o=0;do{if(Wa&&($a=null),$i=0,Wa=!1,25<=o)throw Error(r(301));if(o+=1,Zt=Mt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}L.H=Hh,u=e(n,l)}while(Wa);return u}function US(){var t=L.H,e=t.useState()[0];return e=typeof e.then=="function"?Ii(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Lo(){var t=xs!==0;return xs=0,t}function Ho(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function qo(t){if(Ss){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ss=!1}mn=0,Zt=Mt=ct=null,Wa=!1,$i=xs=0,$a=null}function oe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Qt(){if(Mt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Zt===null?ct.memoizedState:Zt.next;if(e!==null)Zt=e,Mt=t;else{if(t===null)throw ct.alternate===null?Error(r(467)):Error(r(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function bs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(t){var e=$i;return $i+=1,$a===null&&($a=[]),t=kd($a,t,e),e=ct,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,L.H=e===null||e.memoizedState===null?Lh:$o),t}function Ts(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ii(t);if(t.$$typeof===H)return ne(t)}throw Error(r(438,String(t)))}function Yo(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=bs(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=yt;return e.index++,n}function pn(t,e){return typeof e=="function"?e(t):e}function Es(t){var e=Qt();return Go(e,Mt,t)}function Go(t,e,n){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=t.baseQueue,u=l.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}e.baseQueue=o=u,l.pending=null}if(u=t.baseState,o===null)t.memoizedState=u;else{e=o.next;var S=h=null,T=null,N=e,q=!1;do{var G=N.lane&-536870913;if(G!==N.lane?(mt&G)===G:(mn&G)===G){var z=N.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),G===Za&&(q=!0);else if((mn&z)===z){N=N.next,z===Za&&(q=!0);continue}else G={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(S=T=G,h=u):T=T.next=G,ct.lanes|=z,Gn|=z;G=N.action,va&&n(u,G),u=N.hasEagerState?N.eagerState:n(u,G)}else z={lane:G,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(S=T=z,h=u):T=T.next=z,ct.lanes|=G,Gn|=G;N=N.next}while(N!==null&&N!==e);if(T===null?h=u:T.next=S,!be(u,t.memoizedState)&&(kt=!0,q&&(n=ka,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,l.lastRenderedState=u}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Xo(t){var e=Qt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var l=n.dispatch,o=n.pending,u=e.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do u=t(u,h.action),h=h.next;while(h!==o);be(u,e.memoizedState)||(kt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function ih(t,e,n){var l=ct,o=Qt(),u=vt;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var h=!be((Mt||o).memoizedState,n);if(h&&(o.memoizedState=n,kt=!0),o=o.queue,Zo(rh.bind(null,l,o,t),[t]),o.getSnapshot!==e||h||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,Ia(9,{destroy:void 0},sh.bind(null,l,o,n,e),null),jt===null)throw Error(r(349));u||(mn&127)!==0||lh(l,e,n)}return n}function lh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=bs(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function sh(t,e,n,l){e.value=n,e.getSnapshot=l,oh(e)&&uh(t)}function rh(t,e,n){return n(function(){oh(e)&&uh(t)})}function oh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!be(t,n)}catch{return!0}}function uh(t){var e=ua(t,2);e!==null&&ge(e,t,2)}function Qo(t){var e=oe();if(typeof t=="function"){var n=t;if(t=n(),va){Dn(!0);try{n()}finally{Dn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:t},e}function ch(t,e,n,l){return t.baseState=n,Go(t,Mt,typeof l=="function"?l:pn)}function LS(t,e,n,l,o){if(Ms(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};L.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,fh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function fh(t,e){var n=e.action,l=e.payload,o=t.state;if(e.isTransition){var u=L.T,h={};L.T=h;try{var S=n(o,l),T=L.S;T!==null&&T(h,S),dh(t,e,S)}catch(N){Ko(t,e,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),L.T=u}}else try{u=n(o,l),dh(t,e,u)}catch(N){Ko(t,e,N)}}function dh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){hh(t,e,l)},function(l){return Ko(t,e,l)}):hh(t,e,n)}function hh(t,e,n){e.status="fulfilled",e.value=n,mh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,fh(t,n)))}function Ko(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,mh(e),e=e.next;while(e!==l)}t.action=null}function mh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ph(t,e){return e}function yh(t,e){if(vt){var n=jt.formState;if(n!==null){t:{var l=ct;if(vt){if(Nt){e:{for(var o=Nt,u=_e;o.nodeType!==8;){if(!u){o=null;break e}if(o=Ue(o.nextSibling),o===null){o=null;break e}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){Nt=Ue(o.nextSibling),l=o.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=oe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ph,lastRenderedState:e},n.queue=l,n=_h.bind(null,ct,l),l.dispatch=n,l=Qo(!1),u=Wo.bind(null,ct,!1,l.queue),l=oe(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,n=LS.bind(null,ct,o,u,n),o.dispatch=n,l.memoizedState=t,[e,n,!1]}function gh(t){var e=Qt();return vh(e,Mt,t)}function vh(t,e,n){if(e=Go(t,e,ph)[0],t=Es(pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ii(e)}catch(h){throw h===Ja?hs:h}else l=e;e=Qt();var o=e.queue,u=o.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Ia(9,{destroy:void 0},HS.bind(null,o,n),null)),[l,u,t]}function HS(t,e){t.action=e}function Sh(t){var e=Qt(),n=Mt;if(n!==null)return vh(e,n,t);Qt(),e=e.memoizedState,n=Qt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ia(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=bs(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function xh(){return Qt().memoizedState}function As(t,e,n,l){var o=oe();ct.flags|=t,o.memoizedState=Ia(1|e,{destroy:void 0},n,l===void 0?null:l)}function Cs(t,e,n,l){var o=Qt();l=l===void 0?null:l;var u=o.memoizedState.inst;Mt!==null&&l!==null&&Bo(l,Mt.memoizedState.deps)?o.memoizedState=Ia(e,u,n,l):(ct.flags|=t,o.memoizedState=Ia(1|e,u,n,l))}function bh(t,e){As(8390656,8,t,e)}function Zo(t,e){Cs(2048,8,t,e)}function qS(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=bs(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Th(t){var e=Qt().memoizedState;return qS({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Eh(t,e){return Cs(4,2,t,e)}function Ah(t,e){return Cs(4,4,t,e)}function Ch(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Mh(t,e,n){n=n!=null?n.concat([t]):null,Cs(4,4,Ch.bind(null,e,t),n)}function ko(){}function Rh(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Bo(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Dh(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Bo(e,l[1]))return l[0];if(l=t(),va){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l}function Jo(t,e,n){return n===void 0||(mn&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=jm(),ct.lanes|=t,Gn|=t,n)}function jh(t,e,n,l){return be(n,e)?n:Pa.current!==null?(t=Jo(t,n,l),be(t,e)||(kt=!0),t):(mn&42)===0||(mn&1073741824)!==0&&(mt&261930)===0?(kt=!0,t.memoizedState=n):(t=jm(),ct.lanes|=t,Gn|=t,e)}function wh(t,e,n,l,o){var u=O.p;O.p=u!==0&&8>u?u:8;var h=L.T,S={};L.T=S,Wo(t,!1,e,n);try{var T=o(),N=L.S;if(N!==null&&N(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=_S(T,l);tl(t,e,q,Re(t))}else tl(t,e,l,Re(t))}catch(G){tl(t,e,{then:function(){},status:"rejected",reason:G},Re())}finally{O.p=u,h!==null&&S.types!==null&&(h.types=S.types),L.T=h}}function YS(){}function Fo(t,e,n,l){if(t.tag!==5)throw Error(r(476));var o=Nh(t).queue;wh(t,o,e,Z,n===null?YS:function(){return zh(t),n(l)})}function Nh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function zh(t){var e=Nh(t);e.next===null&&(e=t.alternate.memoizedState),tl(t,e.next.queue,{},Re())}function Po(){return ne(gl)}function Oh(){return Qt().memoizedState}function Vh(){return Qt().memoizedState}function GS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Re();t=Bn(n);var l=Un(e,t,n);l!==null&&(ge(l,e,n),Fi(l,e,n)),e={cache:Co()},t.payload=e;return}e=e.return}}function XS(t,e,n){var l=Re();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(t)?Bh(e,n):(n=mo(t,e,n,l),n!==null&&(ge(n,t,l),Uh(n,e,l)))}function _h(t,e,n){var l=Re();tl(t,e,n,l)}function tl(t,e,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(t))Bh(e,o);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,S=u(h,n);if(o.hasEagerState=!0,o.eagerState=S,be(S,h))return ss(t,e,o,0),jt===null&&ls(),!1}catch{}if(n=mo(t,e,o,l),n!==null)return ge(n,t,l),Uh(n,e,l),!0}return!1}function Wo(t,e,n,l){if(l={lane:2,revertLane:ju(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ms(t)){if(e)throw Error(r(479))}else e=mo(t,n,l,2),e!==null&&ge(e,t,2)}function Ms(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Bh(t,e){Wa=Ss=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Uh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Gf(t,n)}}var el={readContext:ne,use:Ts,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};el.useEffectEvent=Bt;var Lh={readContext:ne,use:Ts,useCallback:function(t,e){return oe().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:bh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,As(4194308,4,Ch.bind(null,e,t),n)},useLayoutEffect:function(t,e){return As(4194308,4,t,e)},useInsertionEffect:function(t,e){As(4,2,t,e)},useMemo:function(t,e){var n=oe();e=e===void 0?null:e;var l=t();if(va){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=oe();if(n!==void 0){var o=n(e);if(va){Dn(!0);try{n(e)}finally{Dn(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=XS.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=oe();return t={current:t},e.memoizedState=t},useState:function(t){t=Qo(t);var e=t.queue,n=_h.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:ko,useDeferredValue:function(t,e){var n=oe();return Jo(n,t,e)},useTransition:function(){var t=Qo(!1);return t=wh.bind(null,ct,t.queue,!0,!1),oe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,o=oe();if(vt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),jt===null)throw Error(r(349));(mt&127)!==0||lh(l,e,n)}o.memoizedState=n;var u={value:n,getSnapshot:e};return o.queue=u,bh(rh.bind(null,l,u,t),[t]),l.flags|=2048,Ia(9,{destroy:void 0},sh.bind(null,l,u,n,e),null),n},useId:function(){var t=oe(),e=jt.identifierPrefix;if(vt){var n=We,l=Pe;n=(l&~(1<<32-xe(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=xs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=BS++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Po,useFormState:yh,useActionState:yh,useOptimistic:function(t){var e=oe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Wo.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Yo,useCacheRefresh:function(){return oe().memoizedState=GS.bind(null,ct)},useEffectEvent:function(t){var e=oe(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},$o={readContext:ne,use:Ts,useCallback:Rh,useContext:ne,useEffect:Zo,useImperativeHandle:Mh,useInsertionEffect:Eh,useLayoutEffect:Ah,useMemo:Dh,useReducer:Es,useRef:xh,useState:function(){return Es(pn)},useDebugValue:ko,useDeferredValue:function(t,e){var n=Qt();return jh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Es(pn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:ih,useId:Oh,useHostTransitionStatus:Po,useFormState:gh,useActionState:gh,useOptimistic:function(t,e){var n=Qt();return ch(n,Mt,t,e)},useMemoCache:Yo,useCacheRefresh:Vh};$o.useEffectEvent=Th;var Hh={readContext:ne,use:Ts,useCallback:Rh,useContext:ne,useEffect:Zo,useImperativeHandle:Mh,useInsertionEffect:Eh,useLayoutEffect:Ah,useMemo:Dh,useReducer:Xo,useRef:xh,useState:function(){return Xo(pn)},useDebugValue:ko,useDeferredValue:function(t,e){var n=Qt();return Mt===null?Jo(n,t,e):jh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Xo(pn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:ih,useId:Oh,useHostTransitionStatus:Po,useFormState:Sh,useActionState:Sh,useOptimistic:function(t,e){var n=Qt();return Mt!==null?ch(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Yo,useCacheRefresh:Vh};Hh.useEffectEvent=Th;function Io(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var tu={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Re(),o=Bn(l);o.payload=e,n!=null&&(o.callback=n),e=Un(t,o,l),e!==null&&(ge(e,t,l),Fi(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Re(),o=Bn(l);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Un(t,o,l),e!==null&&(ge(e,t,l),Fi(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Re(),l=Bn(n);l.tag=2,e!=null&&(l.callback=e),e=Un(t,l,n),e!==null&&(ge(e,t,n),Fi(e,t,n))}};function qh(t,e,n,l,o,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,h):e.prototype&&e.prototype.isPureReactComponent?!Yi(n,l)||!Yi(o,u):!0}function Yh(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&tu.enqueueReplaceState(e,e.state,null)}function Sa(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var o in t)n[o]===void 0&&(n[o]=t[o])}return n}function Gh(t){is(t)}function Xh(t){console.error(t)}function Qh(t){is(t)}function Rs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Kh(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function eu(t,e,n){return n=Bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Rs(t,e)},n}function Zh(t){return t=Bn(t),t.tag=3,t}function kh(t,e,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;t.payload=function(){return o(u)},t.callback=function(){Kh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Kh(e,n,l),typeof o!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function QS(t,e,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ka(e,n,o,!0),n=Ee.current,n!==null){switch(n.tag){case 31:case 13:return Be===null?Hs():n.alternate===null&&Ut===0&&(Ut=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===ms?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Mu(t,l,o)),!1;case 22:return n.flags|=65536,l===ms?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Mu(t,l,o)),!1}throw Error(r(435,n.tag))}return Mu(t,l,o),Hs(),!1}if(vt)return e=Ee.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==xo&&(t=Error(r(422),{cause:l}),Qi(ze(t,n)))):(l!==xo&&(e=Error(r(423),{cause:l}),Qi(ze(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=ze(l,n),o=eu(t.stateNode,l,o),No(t,o),Ut!==4&&(Ut=2)),!1;var u=Error(r(520),{cause:l});if(u=ze(u,n),ul===null?ul=[u]:ul.push(u),Ut!==4&&(Ut=2),e===null)return!0;l=ze(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=eu(n.stateNode,l,t),No(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Xn===null||!Xn.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Zh(o),kh(o,t,n,l),No(n,o),!1}n=n.return}while(n!==null);return!1}var nu=Error(r(461)),kt=!1;function ae(t,e,n,l){e.child=t===null?Wd(e,null,n,l):ga(e,t.child,n,l)}function Jh(t,e,n,l,o){n=n.render;var u=e.ref;if("ref"in l){var h={};for(var S in l)S!=="ref"&&(h[S]=l[S])}else h=l;return ha(e),l=Uo(t,e,n,h,u,o),S=Lo(),t!==null&&!kt?(Ho(t,e,o),yn(t,e,o)):(vt&&S&&vo(e),e.flags|=1,ae(t,e,l,o),e.child)}function Fh(t,e,n,l,o){if(t===null){var u=n.type;return typeof u=="function"&&!po(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Ph(t,e,u,l,o)):(t=os(n.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!cu(t,o)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Yi,n(h,l)&&t.ref===e.ref)return yn(t,e,o)}return e.flags|=1,t=cn(u,l),t.ref=e.ref,t.return=e,e.child=t}function Ph(t,e,n,l,o){if(t!==null){var u=t.memoizedProps;if(Yi(u,l)&&t.ref===e.ref)if(kt=!1,e.pendingProps=l=u,cu(t,o))(t.flags&131072)!==0&&(kt=!0);else return e.lanes=t.lanes,yn(t,e,o)}return au(t,e,n,l,o)}function Wh(t,e,n,l){var o=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,e.child=null;return $h(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ds(e,u!==null?u.cachePool:null),u!==null?th(e,u):Oo(),eh(e);else return l=e.lanes=536870912,$h(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(ds(e,u.cachePool),th(e,u),Hn(),e.memoizedState=null):(t!==null&&ds(e,null),Oo(),Hn());return ae(t,e,o,n),e.child}function nl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function $h(t,e,n,l,o){var u=Ro();return u=u===null?null:{parent:Kt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&ds(e,null),Oo(),eh(e),t!==null&&Ka(t,e,l,!0),e.childLanes=o,null}function Ds(t,e){return e=ws({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ih(t,e,n){return ga(e,t.child,null,n),t=Ds(e,e.pendingProps),t.flags|=2,Ae(e),e.memoizedState=null,t}function KS(t,e,n){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(l.mode==="hidden")return t=Ds(e,l),e.lanes=536870912,nl(null,t);if(_o(e),(t=Nt)?(t=fp(t,_e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Pe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Bd(t),n.return=e,e.child=n,ee=e,Nt=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return Ds(e,l)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(_o(e),o)if(e.flags&256)e.flags&=-257,e=Ih(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(kt||Ka(t,e,n,!1),o=(n&t.childLanes)!==0,kt||o){if(l=jt,l!==null&&(h=Xf(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,ua(t,h),ge(l,t,h),nu;Hs(),e=Ih(t,e,n)}else t=u.treeContext,Nt=Ue(h.nextSibling),ee=e,vt=!0,zn=null,_e=!1,t!==null&&Hd(e,t),e=Ds(e,l),e.flags|=4096;return e}return t=cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function js(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function au(t,e,n,l,o){return ha(e),n=Uo(t,e,n,l,void 0,o),l=Lo(),t!==null&&!kt?(Ho(t,e,o),yn(t,e,o)):(vt&&l&&vo(e),e.flags|=1,ae(t,e,n,o),e.child)}function tm(t,e,n,l,o,u){return ha(e),e.updateQueue=null,n=ah(e,l,n,o),nh(t),l=Lo(),t!==null&&!kt?(Ho(t,e,u),yn(t,e,u)):(vt&&l&&vo(e),e.flags|=1,ae(t,e,n,u),e.child)}function em(t,e,n,l,o){if(ha(e),e.stateNode===null){var u=Ya,h=n.contextType;typeof h=="object"&&h!==null&&(u=ne(h)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=tu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},jo(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?ne(h):Ya,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Io(e,n,h,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&tu.enqueueReplaceState(u,u.state,null),Wi(e,l,u,o),Pi(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var S=e.memoizedProps,T=Sa(n,S);u.props=T;var N=u.context,q=n.contextType;h=Ya,typeof q=="object"&&q!==null&&(h=ne(q));var G=n.getDerivedStateFromProps;q=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||N!==h)&&Yh(e,u,l,h),_n=!1;var z=e.memoizedState;u.state=z,Wi(e,l,u,o),Pi(),N=e.memoizedState,S||z!==N||_n?(typeof G=="function"&&(Io(e,n,G,l),N=e.memoizedState),(T=_n||qh(e,n,T,l,z,N,h))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=N),u.props=l,u.state=N,u.context=h,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,wo(t,e),h=e.memoizedProps,q=Sa(n,h),u.props=q,G=e.pendingProps,z=u.context,N=n.contextType,T=Ya,typeof N=="object"&&N!==null&&(T=ne(N)),S=n.getDerivedStateFromProps,(N=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==G||z!==T)&&Yh(e,u,l,T),_n=!1,z=e.memoizedState,u.state=z,Wi(e,l,u,o),Pi();var V=e.memoizedState;h!==G||z!==V||_n||t!==null&&t.dependencies!==null&&cs(t.dependencies)?(typeof S=="function"&&(Io(e,n,S,l),V=e.memoizedState),(q=_n||qh(e,n,q,l,z,V,T)||t!==null&&t.dependencies!==null&&cs(t.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,V,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,V,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=V),u.props=l,u.state=V,u.context=T,l=q):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,js(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=ga(e,t.child,null,o),e.child=ga(e,null,n,o)):ae(t,e,n,o),e.memoizedState=u.state,t=e.child):t=yn(t,e,o),t}function nm(t,e,n,l){return fa(),e.flags|=256,ae(t,e,n,l),e.child}var iu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lu(t){return{baseLanes:t,cachePool:Kd()}}function su(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Me),t}function am(t,e,n){var l=e.pendingProps,o=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),h&&(o=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(o?Ln(e):Hn(),(t=Nt)?(t=fp(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Pe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Bd(t),n.return=e,e.child=n,ee=e,Nt=null)):t=null,t===null)throw On(e);return Gu(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,o?(Hn(),o=e.mode,S=ws({mode:"hidden",children:S},o),l=ca(l,o,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=lu(n),l.childLanes=su(t,h,n),e.memoizedState=iu,nl(null,l)):(Ln(e),ru(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(u)e.flags&256?(Ln(e),e.flags&=-257,e=ou(t,e,n)):e.memoizedState!==null?(Hn(),e.child=t.child,e.flags|=128,e=null):(Hn(),S=l.fallback,o=e.mode,l=ws({mode:"visible",children:l.children},o),S=ca(S,o,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,ga(e,t.child,null,n),l=e.child,l.memoizedState=lu(n),l.childLanes=su(t,h,n),e.memoizedState=iu,e=nl(null,l));else if(Ln(e),Gu(S)){if(h=S.nextSibling&&S.nextSibling.dataset,h)var N=h.dgst;h=N,l=Error(r(419)),l.stack="",l.digest=h,Qi({value:l,source:null,stack:null}),e=ou(t,e,n)}else if(kt||Ka(t,e,n,!1),h=(n&t.childLanes)!==0,kt||h){if(h=jt,h!==null&&(l=Xf(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ua(t,l),ge(h,t,l),nu;Yu(S)||Hs(),e=ou(t,e,n)}else Yu(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Nt=Ue(S.nextSibling),ee=e,vt=!0,zn=null,_e=!1,t!==null&&Hd(e,t),e=ru(e,l.children),e.flags|=4096);return e}return o?(Hn(),S=l.fallback,o=e.mode,T=t.child,N=T.sibling,l=cn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,N!==null?S=cn(N,S):(S=ca(S,o,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,nl(null,l),l=e.child,S=t.child.memoizedState,S===null?S=lu(n):(o=S.cachePool,o!==null?(T=Kt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Kd(),S={baseLanes:S.baseLanes|n,cachePool:o}),l.memoizedState=S,l.childLanes=su(t,h,n),e.memoizedState=iu,nl(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function ru(t,e){return e=ws({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ws(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function ou(t,e,n){return ga(e,t.child,null,n),t=ru(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function im(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Eo(t.return,e,n)}function uu(t,e,n,l,o,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=o,h.treeForkCount=u)}function lm(t,e,n){var l=e.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var h=Xt.current,S=(h&2)!==0;if(S?(h=h&1|2,e.flags|=128):h&=1,k(Xt,h),ae(t,e,l,n),l=vt?Xi:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&im(t,n,e);else if(t.tag===19)im(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&vs(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),uu(e,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&vs(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}uu(e,!0,n,null,u,l);break;case"together":uu(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function yn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Gn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ka(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function cu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&cs(t)))}function ZS(t,e,n){switch(e.tag){case 3:Yt(e,e.stateNode.containerInfo),Vn(e,Kt,t.memoizedState.cache),fa();break;case 27:case 5:Di(e);break;case 4:Yt(e,e.stateNode.containerInfo);break;case 10:Vn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,_o(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?am(t,e,n):(Ln(e),t=yn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var o=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ka(t,e,n,!1),l=(n&e.childLanes)!==0),o){if(l)return lm(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(Xt,Xt.current),l)break;return null;case 22:return e.lanes=0,Wh(t,e,n,e.pendingProps);case 24:Vn(e,Kt,t.memoizedState.cache)}return yn(t,e,n)}function sm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)kt=!0;else{if(!cu(t,n)&&(e.flags&128)===0)return kt=!1,ZS(t,e,n);kt=(t.flags&131072)!==0}else kt=!1,vt&&(e.flags&1048576)!==0&&Ld(e,Xi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=pa(e.elementType),e.type=t,typeof t=="function")po(t)?(l=Sa(t,l),e.tag=1,e=em(null,e,t,l,n)):(e.tag=0,e=au(null,e,t,l,n));else{if(t!=null){var o=t.$$typeof;if(o===P){e.tag=11,e=Jh(null,e,t,l,n);break t}else if(o===J){e.tag=14,e=Fh(null,e,t,l,n);break t}}throw e=qt(t)||t,Error(r(306,e,""))}}return e;case 0:return au(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,o=Sa(l,e.pendingProps),em(t,e,l,o,n);case 3:t:{if(Yt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var u=e.memoizedState;o=u.element,wo(t,e),Wi(e,l,null,n);var h=e.memoizedState;if(l=h.cache,Vn(e,Kt,l),l!==u.cache&&Ao(e,[Kt],n,!0),Pi(),l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=nm(t,e,l,n);break t}else if(l!==o){o=ze(Error(r(424)),e),Qi(o),e=nm(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Nt=Ue(t.firstChild),ee=e,vt=!0,zn=null,_e=!0,n=Wd(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),l===o){e=yn(t,e,n);break t}ae(t,e,l,n)}e=e.child}return e;case 26:return js(t,e),t===null?(n=gp(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,l=Zs(nt.current).createElement(n),l[te]=e,l[fe]=t,ie(l,n,t),$t(l),e.stateNode=l):e.memoizedState=gp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Di(e),t===null&&vt&&(l=e.stateNode=mp(e.type,e.pendingProps,nt.current),ee=e,_e=!0,o=Nt,kn(e.type)?(Xu=o,Nt=Ue(l.firstChild)):Nt=o),ae(t,e,e.pendingProps.children,n),js(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((o=l=Nt)&&(l=Tx(l,e.type,e.pendingProps,_e),l!==null?(e.stateNode=l,ee=e,Nt=Ue(l.firstChild),_e=!1,o=!0):o=!1),o||On(e)),Di(e),o=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,l=u.children,Lu(o,u)?l=null:h!==null&&Lu(o,h)&&(e.flags|=32),e.memoizedState!==null&&(o=Uo(t,e,US,null,null,n),gl._currentValue=o),js(t,e),ae(t,e,l,n),e.child;case 6:return t===null&&vt&&((t=n=Nt)&&(n=Ex(n,e.pendingProps,_e),n!==null?(e.stateNode=n,ee=e,Nt=null,t=!0):t=!1),t||On(e)),null;case 13:return am(t,e,n);case 4:return Yt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ga(e,null,l,n):ae(t,e,l,n),e.child;case 11:return Jh(t,e,e.type,e.pendingProps,n);case 7:return ae(t,e,e.pendingProps,n),e.child;case 8:return ae(t,e,e.pendingProps.children,n),e.child;case 12:return ae(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Vn(e,e.type,l.value),ae(t,e,l.children,n),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,ha(e),o=ne(o),l=l(o),e.flags|=1,ae(t,e,l,n),e.child;case 14:return Fh(t,e,e.type,e.pendingProps,n);case 15:return Ph(t,e,e.type,e.pendingProps,n);case 19:return lm(t,e,n);case 31:return KS(t,e,n);case 22:return Wh(t,e,n,e.pendingProps);case 24:return ha(e),l=ne(Kt),t===null?(o=Ro(),o===null&&(o=jt,u=Co(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),e.memoizedState={parent:l,cache:o},jo(e),Vn(e,Kt,o)):((t.lanes&n)!==0&&(wo(t,e),Wi(e,null,null,n),Pi()),o=t.memoizedState,u=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Vn(e,Kt,l)):(l=u.cache,Vn(e,Kt,l),l!==o.cache&&Ao(e,[Kt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function gn(t){t.flags|=4}function fu(t,e,n,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Om())t.flags|=8192;else throw ya=ms,Do}else t.flags&=-16777217}function rm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Tp(e))if(Om())t.flags|=8192;else throw ya=ms,Do}function Ns(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?qf():536870912,t.lanes|=e,ai|=e)}function al(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function kS(t,e,n){var l=e.pendingProps;switch(So(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),hn(Kt),Gt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Qa(e)?gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,bo())),zt(e),null;case 26:var o=e.type,u=e.memoizedState;return t===null?(gn(e),u!==null?(zt(e),rm(e,u)):(zt(e),fu(e,o,null,l,n))):u?u!==t.memoizedState?(gn(e),zt(e),rm(e,u)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&gn(e),zt(e),fu(e,o,t,l,n)),null;case 27:if(Gl(e),n=nt.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return zt(e),null}t=Q.current,Qa(e)?qd(e):(t=mp(o,l,n),e.stateNode=t,gn(e))}return zt(e),null;case 5:if(Gl(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return zt(e),null}if(u=Q.current,Qa(e))qd(e);else{var h=Zs(nt.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}u[te]=e,u[fe]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(ie(u,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&gn(e)}}return zt(e),fu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=nt.current,Qa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,o=ee,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[te]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ap(t.nodeValue,n)),t||On(e,!0)}else t=Zs(t).createTextNode(l),t[te]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Qa(e),n!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[te]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=bo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(r(558))}return zt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Qa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[te]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),o=!1}else o=bo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ns(e,e.updateQueue),zt(e),null);case 4:return Gt(),t===null&&Ou(e.stateNode.containerInfo),zt(e),null;case 10:return hn(e.type),zt(e),null;case 19:if(B(Xt),l=e.memoizedState,l===null)return zt(e),null;if(o=(e.flags&128)!==0,u=l.rendering,u===null)if(o)al(l,!1);else{if(Ut!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=vs(t),u!==null){for(e.flags|=128,al(l,!1),t=u.updateQueue,e.updateQueue=t,Ns(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)_d(n,t),n=n.sibling;return k(Xt,Xt.current&1|2),vt&&fn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ve()>Bs&&(e.flags|=128,o=!0,al(l,!1),e.lanes=4194304)}else{if(!o)if(t=vs(u),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Ns(e,t),al(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!vt)return zt(e),null}else 2*ve()-l.renderingStartTime>Bs&&n!==536870912&&(e.flags|=128,o=!0,al(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,n=Xt.current,k(Xt,o?n&1|2:n&1),vt&&fn(e,l.treeForkCount),t):(zt(e),null);case 22:case 23:return Ae(e),Vo(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&Ns(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&B(ma),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),hn(Kt),zt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function JS(t,e){switch(So(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hn(Kt),Gt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Gl(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(r(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(Xt),null;case 4:return Gt(),null;case 10:return hn(e.type),null;case 22:case 23:return Ae(e),Vo(),t!==null&&B(ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return hn(Kt),null;case 25:return null;default:return null}}function om(t,e){switch(So(e),e.tag){case 3:hn(Kt),Gt();break;case 26:case 27:case 5:Gl(e);break;case 4:Gt();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:B(Xt);break;case 10:hn(e.type);break;case 22:case 23:Ae(e),Vo(),t!==null&&B(ma);break;case 24:hn(Kt)}}function il(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&t)===t){l=void 0;var u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==o)}}catch(S){Ct(e,e.return,S)}}function qn(t,e,n){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&t)===t){var h=l.inst,S=h.destroy;if(S!==void 0){h.destroy=void 0,o=e;var T=n,N=S;try{N()}catch(q){Ct(o,T,q)}}}l=l.next}while(l!==u)}}catch(q){Ct(e,e.return,q)}}function um(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Id(e,n)}catch(l){Ct(t,t.return,l)}}}function cm(t,e,n){n.props=Sa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ct(t,e,l)}}function ll(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(o){Ct(t,e,o)}}function $e(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){Ct(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ct(t,e,o)}else n.current=null}function fm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){Ct(t,t.return,o)}}function du(t,e,n){try{var l=t.stateNode;yx(l,t.type,n,e),l[fe]=e}catch(o){Ct(t,t.return,o)}}function dm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&kn(t.type)||t.tag===4}function hu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||dm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&kn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function mu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=on));else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(mu(t,e,n),t=t.sibling;t!==null;)mu(t,e,n),t=t.sibling}function zs(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(zs(t,e,n),t=t.sibling;t!==null;)zs(t,e,n),t=t.sibling}function hm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);ie(e,l,n),e[te]=t,e[fe]=n}catch(u){Ct(t,t.return,u)}}var vn=!1,Jt=!1,pu=!1,mm=typeof WeakSet=="function"?WeakSet:Set,It=null;function FS(t,e){if(t=t.containerInfo,Bu=Is,t=Md(t),ro(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,S=-1,T=-1,N=0,q=0,G=t,z=null;e:for(;;){for(var V;G!==n||o!==0&&G.nodeType!==3||(S=h+o),G!==u||l!==0&&G.nodeType!==3||(T=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(V=G.firstChild)!==null;)z=G,G=V;for(;;){if(G===t)break e;if(z===n&&++N===o&&(S=h),z===u&&++q===l&&(T=h),(V=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=V}n=S===-1||T===-1?null:{start:S,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uu={focusedElem:t,selectionRange:n},Is=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)o=t[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var $=Sa(n.type,o);t=l.getSnapshotBeforeUpdate($,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Ct(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)qu(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":qu(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,It=t;break}It=e.return}}function pm(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:xn(t,n),l&4&&il(5,n);break;case 1:if(xn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Ct(n,n.return,h)}else{var o=Sa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Ct(n,n.return,h)}}l&64&&um(n),l&512&&ll(n,n.return);break;case 3:if(xn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Id(t,e)}catch(h){Ct(n,n.return,h)}}break;case 27:e===null&&l&4&&hm(n);case 26:case 5:xn(t,n),e===null&&l&4&&fm(n),l&512&&ll(n,n.return);break;case 12:xn(t,n);break;case 31:xn(t,n),l&4&&vm(t,n);break;case 13:xn(t,n),l&4&&Sm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=ix.bind(null,n),Ax(t,n))));break;case 22:if(l=n.memoizedState!==null||vn,!l){e=e!==null&&e.memoizedState!==null||Jt,o=vn;var u=Jt;vn=l,(Jt=e)&&!u?bn(t,n,(n.subtreeFlags&8772)!==0):xn(t,n),vn=o,Jt=u}break;case 30:break;default:xn(t,n)}}function ym(t){var e=t.alternate;e!==null&&(t.alternate=null,ym(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Qr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ot=null,he=!1;function Sn(t,e,n){for(n=n.child;n!==null;)gm(t,e,n),n=n.sibling}function gm(t,e,n){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(ji,n)}catch{}switch(n.tag){case 26:Jt||$e(n,e),Sn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||$e(n,e);var l=Ot,o=he;kn(n.type)&&(Ot=n.stateNode,he=!1),Sn(t,e,n),ml(n.stateNode),Ot=l,he=o;break;case 5:Jt||$e(n,e);case 6:if(l=Ot,o=he,Ot=null,Sn(t,e,n),Ot=l,he=o,Ot!==null)if(he)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(n.stateNode)}catch(u){Ct(n,e,u)}else try{Ot.removeChild(n.stateNode)}catch(u){Ct(n,e,u)}break;case 18:Ot!==null&&(he?(t=Ot,up(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),fi(t)):up(Ot,n.stateNode));break;case 4:l=Ot,o=he,Ot=n.stateNode.containerInfo,he=!0,Sn(t,e,n),Ot=l,he=o;break;case 0:case 11:case 14:case 15:qn(2,n,e),Jt||qn(4,n,e),Sn(t,e,n);break;case 1:Jt||($e(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&cm(n,e,l)),Sn(t,e,n);break;case 21:Sn(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,Sn(t,e,n),Jt=l;break;default:Sn(t,e,n)}}function vm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{fi(t)}catch(n){Ct(e,e.return,n)}}}function Sm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{fi(t)}catch(n){Ct(e,e.return,n)}}function PS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new mm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new mm),e;default:throw Error(r(435,t.tag))}}function Os(t,e){var n=PS(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var o=lx.bind(null,t,l);l.then(o,o)}})}function me(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=t,h=e,S=h;t:for(;S!==null;){switch(S.tag){case 27:if(kn(S.type)){Ot=S.stateNode,he=!1;break t}break;case 5:Ot=S.stateNode,he=!1;break t;case 3:case 4:Ot=S.stateNode.containerInfo,he=!0;break t}S=S.return}if(Ot===null)throw Error(r(160));gm(u,h,o),Ot=null,he=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)xm(e,t),e=e.sibling}var Ge=null;function xm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:me(e,t),pe(t),l&4&&(qn(3,t,t.return),il(3,t),qn(5,t,t.return));break;case 1:me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),l&64&&vn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=Ge;if(me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[zi]||u[te]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),ie(u,l,n),u[te]=t,$t(u),l=u;break t;case"link":var h=xp("link","href",o).get(l+(n.href||""));if(h){for(var S=0;S<h.length;S++)if(u=h[S],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(S,1);break e}}u=o.createElement(l),ie(u,l,n),o.head.appendChild(u);break;case"meta":if(h=xp("meta","content",o).get(l+(n.content||""))){for(S=0;S<h.length;S++)if(u=h[S],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(S,1);break e}}u=o.createElement(l),ie(u,l,n),o.head.appendChild(u);break;default:throw Error(r(468,l))}u[te]=t,$t(u),l=u}t.stateNode=l}else bp(o,t.type,t.stateNode);else t.stateNode=Sp(o,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?bp(o,t.type,t.stateNode):Sp(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&du(t,t.memoizedProps,n.memoizedProps)}break;case 27:me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),n!==null&&l&4&&du(t,t.memoizedProps,n.memoizedProps);break;case 5:if(me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),t.flags&32){o=t.stateNode;try{Va(o,"")}catch($){Ct(t,t.return,$)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,du(t,o,n!==null?n.memoizedProps:o)),l&1024&&(pu=!0);break;case 6:if(me(e,t),pe(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){Ct(t,t.return,$)}}break;case 3:if(Fs=null,o=Ge,Ge=ks(e.containerInfo),me(e,t),Ge=o,pe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{fi(e.containerInfo)}catch($){Ct(t,t.return,$)}pu&&(pu=!1,bm(t));break;case 4:l=Ge,Ge=ks(t.stateNode.containerInfo),me(e,t),pe(t),Ge=l;break;case 12:me(e,t),pe(t);break;case 31:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Os(t,l)));break;case 13:me(e,t),pe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_s=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Os(t,l)));break;case 22:o=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,N=vn,q=Jt;if(vn=N||o,Jt=q||T,me(e,t),Jt=q,vn=N,pe(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(n===null||T||vn||Jt||xa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{S=T.stateNode;var G=T.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch($){Ct(T,T.return,$)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch($){Ct(T,T.return,$)}}}else if(e.tag===18){if(n===null){T=e;try{var V=T.stateNode;o?cp(V,!0):cp(T.stateNode,!1)}catch($){Ct(T,T.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Os(t,n))));break;case 19:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Os(t,l)));break;case 30:break;case 21:break;default:me(e,t),pe(t)}}function pe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(dm(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=hu(t);zs(t,u,o);break;case 5:var h=n.stateNode;n.flags&32&&(Va(h,""),n.flags&=-33);var S=hu(t);zs(t,S,h);break;case 3:case 4:var T=n.stateNode.containerInfo,N=hu(t);mu(t,N,T);break;default:throw Error(r(161))}}catch(q){Ct(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function bm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;bm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function xn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)pm(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:qn(4,e,e.return),xa(e);break;case 1:$e(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&cm(e,e.return,n),xa(e);break;case 27:ml(e.stateNode);case 26:case 5:$e(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function bn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:bn(o,u,n),il(4,u);break;case 1:if(bn(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Ct(l,l.return,N)}if(l=u,o=l.updateQueue,o!==null){var S=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)$d(T[o],S)}catch(N){Ct(l,l.return,N)}}n&&h&64&&um(u),ll(u,u.return);break;case 27:hm(u);case 26:case 5:bn(o,u,n),n&&l===null&&h&4&&fm(u),ll(u,u.return);break;case 12:bn(o,u,n);break;case 31:bn(o,u,n),n&&h&4&&vm(o,u);break;case 13:bn(o,u,n),n&&h&4&&Sm(o,u);break;case 22:u.memoizedState===null&&bn(o,u,n),ll(u,u.return);break;case 30:break;default:bn(o,u,n)}e=e.sibling}}function yu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Ki(n))}function gu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ki(t))}function Xe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tm(t,e,n,l),e=e.sibling}function Tm(t,e,n,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,l),o&2048&&il(9,e);break;case 1:Xe(t,e,n,l);break;case 3:Xe(t,e,n,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ki(t)));break;case 12:if(o&2048){Xe(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,S=u.onPostCommit;typeof S=="function"&&S(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Ct(e,e.return,T)}}else Xe(t,e,n,l);break;case 31:Xe(t,e,n,l);break;case 13:Xe(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?Xe(t,e,n,l):sl(t,e):u._visibility&2?Xe(t,e,n,l):(u._visibility|=2,ti(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&yu(h,e);break;case 24:Xe(t,e,n,l),o&2048&&gu(e.alternate,e);break;default:Xe(t,e,n,l)}}function ti(t,e,n,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,S=n,T=l,N=h.flags;switch(h.tag){case 0:case 11:case 15:ti(u,h,S,T,o),il(8,h);break;case 23:break;case 22:var q=h.stateNode;h.memoizedState!==null?q._visibility&2?ti(u,h,S,T,o):sl(u,h):(q._visibility|=2,ti(u,h,S,T,o)),o&&N&2048&&yu(h.alternate,h);break;case 24:ti(u,h,S,T,o),o&&N&2048&&gu(h.alternate,h);break;default:ti(u,h,S,T,o)}e=e.sibling}}function sl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,o=l.flags;switch(l.tag){case 22:sl(n,l),o&2048&&yu(l.alternate,l);break;case 24:sl(n,l),o&2048&&gu(l.alternate,l);break;default:sl(n,l)}e=e.sibling}}var rl=8192;function ei(t,e,n){if(t.subtreeFlags&rl)for(t=t.child;t!==null;)Em(t,e,n),t=t.sibling}function Em(t,e,n){switch(t.tag){case 26:ei(t,e,n),t.flags&rl&&t.memoizedState!==null&&Bx(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:ei(t,e,n);break;case 3:case 4:var l=Ge;Ge=ks(t.stateNode.containerInfo),ei(t,e,n),Ge=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=rl,rl=16777216,ei(t,e,n),rl=l):ei(t,e,n));break;default:ei(t,e,n)}}function Am(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ol(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];It=l,Mm(l,t)}Am(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cm(t),t=t.sibling}function Cm(t){switch(t.tag){case 0:case 11:case 15:ol(t),t.flags&2048&&qn(9,t,t.return);break;case 3:ol(t);break;case 12:ol(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Vs(t)):ol(t);break;default:ol(t)}}function Vs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];It=l,Mm(l,t)}Am(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:qn(8,e,e.return),Vs(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Vs(e));break;default:Vs(e)}t=t.sibling}}function Mm(t,e){for(;It!==null;){var n=It;switch(n.tag){case 0:case 11:case 15:qn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ki(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,It=l;else t:for(n=t;It!==null;){l=It;var o=l.sibling,u=l.return;if(ym(l),l===n){It=null;break t}if(o!==null){o.return=u,It=o;break t}It=u}}}var WS={getCacheForType:function(t){var e=ne(Kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ne(Kt).controller.signal}},$S=typeof WeakMap=="function"?WeakMap:Map,Et=0,jt=null,dt=null,mt=0,At=0,Ce=null,Yn=!1,ni=!1,vu=!1,Tn=0,Ut=0,Gn=0,ba=0,Su=0,Me=0,ai=0,ul=null,ye=null,xu=!1,_s=0,Rm=0,Bs=1/0,Us=null,Xn=null,Pt=0,Qn=null,ii=null,En=0,bu=0,Tu=null,Dm=null,cl=0,Eu=null;function Re(){return(Et&2)!==0&&mt!==0?mt&-mt:L.T!==null?ju():Qf()}function jm(){if(Me===0)if((mt&536870912)===0||vt){var t=Kl;Kl<<=1,(Kl&3932160)===0&&(Kl=262144),Me=t}else Me=536870912;return t=Ee.current,t!==null&&(t.flags|=32),Me}function ge(t,e,n){(t===jt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(li(t,0),Kn(t,mt,Me,!1)),Ni(t,n),((Et&2)===0||t!==jt)&&(t===jt&&((Et&2)===0&&(ba|=n),Ut===4&&Kn(t,mt,Me,!1)),Ie(t))}function wm(t,e,n){if((Et&6)!==0)throw Error(r(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||wi(t,e),o=l?ex(t,e):Cu(t,e,!0),u=l;do{if(o===0){ni&&!l&&Kn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!IS(n)){o=Cu(t,e,!1),u=!1;continue}if(o===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var S=t;o=ul;var T=S.current.memoizedState.isDehydrated;if(T&&(li(S,h).flags|=256),h=Cu(S,h,!1),h!==2){if(vu&&!T){S.errorRecoveryDisabledLanes|=u,ba|=u,o=4;break t}u=ye,ye=o,u!==null&&(ye===null?ye=u:ye.push.apply(ye,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){li(t,0),Kn(t,e,0,!0);break}t:{switch(l=t,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Kn(l,e,Me,!Yn);break t;case 2:ye=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=_s+300-ve(),10<o)){if(Kn(l,e,Me,!Yn),kl(l,0,!0)!==0)break t;En=e,l.timeoutHandle=rp(Nm.bind(null,l,n,ye,Us,xu,e,Me,ba,ai,Yn,u,"Throttled",-0,0),o);break t}Nm(l,n,ye,Us,xu,e,Me,ba,ai,Yn,u,null,-0,0)}}break}while(!0);Ie(t)}function Nm(t,e,n,l,o,u,h,S,T,N,q,G,z,V){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Em(e,u,G);var $=(u&62914560)===u?_s-ve():(u&4194048)===u?Rm-ve():0;if($=Ux(G,$),$!==null){En=u,t.cancelPendingCommit=$(Hm.bind(null,t,e,u,n,l,o,h,S,T,q,G,null,z,V)),Kn(t,u,h,!N);return}}Hm(t,e,u,n,l,o,h,S,T)}function IS(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!be(u(),o))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Kn(t,e,n,l){e&=~Su,e&=~ba,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var u=31-xe(o),h=1<<u;l[u]=-1,o&=~h}n!==0&&Yf(t,n,e)}function Ls(){return(Et&6)===0?(fl(0),!1):!0}function Au(){if(dt!==null){if(At===0)var t=dt.return;else t=dt,dn=da=null,qo(t),Fa=null,ki=0,t=dt;for(;t!==null;)om(t.alternate,t),t=t.return;dt=null}}function li(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Sx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),En=0,Au(),jt=t,dt=n=cn(t.current,null),mt=e,At=0,Ce=null,Yn=!1,ni=wi(t,e),vu=!1,ai=Me=Su=ba=Gn=Ut=0,ye=ul=null,xu=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-xe(l),u=1<<o;e|=t[o],l&=~u}return Tn=e,ls(),n}function zm(t,e){ct=null,L.H=el,e===Ja||e===hs?(e=Jd(),At=3):e===Do?(e=Jd(),At=4):At=e===nu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ce=e,dt===null&&(Ut=1,Rs(t,ze(e,t.current)))}function Om(){var t=Ee.current;return t===null?!0:(mt&4194048)===mt?Be===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Be:!1}function Vm(){var t=L.H;return L.H=el,t===null?el:t}function _m(){var t=L.A;return L.A=WS,t}function Hs(){Ut=4,Yn||(mt&4194048)!==mt&&Ee.current!==null||(ni=!0),(Gn&134217727)===0&&(ba&134217727)===0||jt===null||Kn(jt,mt,Me,!1)}function Cu(t,e,n){var l=Et;Et|=2;var o=Vm(),u=_m();(jt!==t||mt!==e)&&(Us=null,li(t,e)),e=!1;var h=Ut;t:do try{if(At!==0&&dt!==null){var S=dt,T=Ce;switch(At){case 8:Au(),h=6;break t;case 3:case 2:case 9:case 6:Ee.current===null&&(e=!0);var N=At;if(At=0,Ce=null,si(t,S,T,N),n&&ni){h=0;break t}break;default:N=At,At=0,Ce=null,si(t,S,T,N)}}tx(),h=Ut;break}catch(q){zm(t,q)}while(!0);return e&&t.shellSuspendCounter++,dn=da=null,Et=l,L.H=o,L.A=u,dt===null&&(jt=null,mt=0,ls()),h}function tx(){for(;dt!==null;)Bm(dt)}function ex(t,e){var n=Et;Et|=2;var l=Vm(),o=_m();jt!==t||mt!==e?(Us=null,Bs=ve()+500,li(t,e)):ni=wi(t,e);t:do try{if(At!==0&&dt!==null){e=dt;var u=Ce;e:switch(At){case 1:At=0,Ce=null,si(t,e,u,1);break;case 2:case 9:if(Zd(u)){At=0,Ce=null,Um(e);break}e=function(){At!==2&&At!==9||jt!==t||(At=7),Ie(t)},u.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Zd(u)?(At=0,Ce=null,Um(e)):(At=0,Ce=null,si(t,e,u,7));break;case 5:var h=null;switch(dt.tag){case 26:h=dt.memoizedState;case 5:case 27:var S=dt;if(h?Tp(h):S.stateNode.complete){At=0,Ce=null;var T=S.sibling;if(T!==null)dt=T;else{var N=S.return;N!==null?(dt=N,qs(N)):dt=null}break e}}At=0,Ce=null,si(t,e,u,5);break;case 6:At=0,Ce=null,si(t,e,u,6);break;case 8:Au(),Ut=6;break t;default:throw Error(r(462))}}nx();break}catch(q){zm(t,q)}while(!0);return dn=da=null,L.H=l,L.A=o,Et=n,dt!==null?0:(jt=null,mt=0,ls(),Ut)}function nx(){for(;dt!==null&&!C0();)Bm(dt)}function Bm(t){var e=sm(t.alternate,t,Tn);t.memoizedProps=t.pendingProps,e===null?qs(t):dt=e}function Um(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=tm(n,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=tm(n,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:qo(e);default:om(n,e),e=dt=_d(e,Tn),e=sm(n,e,Tn)}t.memoizedProps=t.pendingProps,e===null?qs(t):dt=e}function si(t,e,n,l){dn=da=null,qo(e),Fa=null,ki=0;var o=e.return;try{if(QS(t,o,e,n,mt)){Ut=1,Rs(t,ze(n,t.current)),dt=null;return}}catch(u){if(o!==null)throw dt=o,u;Ut=1,Rs(t,ze(n,t.current)),dt=null;return}e.flags&32768?(vt||l===1?t=!0:ni||(mt&536870912)!==0?t=!1:(Yn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ee.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lm(e,t)):qs(e)}function qs(t){var e=t;do{if((e.flags&32768)!==0){Lm(e,Yn);return}t=e.return;var n=kS(e.alternate,e,Tn);if(n!==null){dt=n;return}if(e=e.sibling,e!==null){dt=e;return}dt=e=t}while(e!==null);Ut===0&&(Ut=5)}function Lm(t,e){do{var n=JS(t.alternate,t);if(n!==null){n.flags&=32767,dt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){dt=t;return}dt=t=n}while(t!==null);Ut=6,dt=null}function Hm(t,e,n,l,o,u,h,S,T){t.cancelPendingCommit=null;do Ys();while(Pt!==0);if((Et&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=ho,_0(t,n,u,h,S,T),t===jt&&(dt=jt=null,mt=0),ii=e,Qn=t,En=n,bu=u,Tu=o,Dm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,sx(Xl,function(){return Qm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,o=O.p,O.p=2,h=Et,Et|=4;try{FS(t,e,n)}finally{Et=h,O.p=o,L.T=l}}Pt=1,qm(),Ym(),Gm()}}function qm(){if(Pt===1){Pt=0;var t=Qn,e=ii,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var l=O.p;O.p=2;var o=Et;Et|=4;try{xm(e,t);var u=Uu,h=Md(t.containerInfo),S=u.focusedElem,T=u.selectionRange;if(h!==S&&S&&S.ownerDocument&&Cd(S.ownerDocument.documentElement,S)){if(T!==null&&ro(S)){var N=T.start,q=T.end;if(q===void 0&&(q=N),"selectionStart"in S)S.selectionStart=N,S.selectionEnd=Math.min(q,S.value.length);else{var G=S.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var V=z.getSelection(),$=S.textContent.length,st=Math.min(T.start,$),Dt=T.end===void 0?st:Math.min(T.end,$);!V.extend&&st>Dt&&(h=Dt,Dt=st,st=h);var M=Ad(S,st),C=Ad(S,Dt);if(M&&C&&(V.rangeCount!==1||V.anchorNode!==M.node||V.anchorOffset!==M.offset||V.focusNode!==C.node||V.focusOffset!==C.offset)){var j=G.createRange();j.setStart(M.node,M.offset),V.removeAllRanges(),st>Dt?(V.addRange(j),V.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),V.addRange(j))}}}}for(G=[],V=S;V=V.parentNode;)V.nodeType===1&&G.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var Y=G[S];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Is=!!Bu,Uu=Bu=null}finally{Et=o,O.p=l,L.T=n}}t.current=e,Pt=2}}function Ym(){if(Pt===2){Pt=0;var t=Qn,e=ii,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var l=O.p;O.p=2;var o=Et;Et|=4;try{pm(t,e.alternate,e)}finally{Et=o,O.p=l,L.T=n}}Pt=3}}function Gm(){if(Pt===4||Pt===3){Pt=0,M0();var t=Qn,e=ii,n=En,l=Dm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,ii=Qn=null,Xm(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Xn=null),Gr(n),e=e.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(ji,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=L.T,o=O.p,O.p=2,L.T=null;try{for(var u=t.onRecoverableError,h=0;h<l.length;h++){var S=l[h];u(S.value,{componentStack:S.stack})}}finally{L.T=e,O.p=o}}(En&3)!==0&&Ys(),Ie(t),o=t.pendingLanes,(n&261930)!==0&&(o&42)!==0?t===Eu?cl++:(cl=0,Eu=t):cl=0,fl(0)}}function Xm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ki(e)))}function Ys(){return qm(),Ym(),Gm(),Qm()}function Qm(){if(Pt!==5)return!1;var t=Qn,e=bu;bu=0;var n=Gr(En),l=L.T,o=O.p;try{O.p=32>n?32:n,L.T=null,n=Tu,Tu=null;var u=Qn,h=En;if(Pt=0,ii=Qn=null,En=0,(Et&6)!==0)throw Error(r(331));var S=Et;if(Et|=4,Cm(u.current),Tm(u,u.current,h,n),Et=S,fl(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(ji,u)}catch{}return!0}finally{O.p=o,L.T=l,Xm(t,e)}}function Km(t,e,n){e=ze(n,e),e=eu(t.stateNode,e,2),t=Un(t,e,2),t!==null&&(Ni(t,2),Ie(t))}function Ct(t,e,n){if(t.tag===3)Km(t,t,n);else for(;e!==null;){if(e.tag===3){Km(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xn===null||!Xn.has(l))){t=ze(n,t),n=Zh(2),l=Un(e,n,2),l!==null&&(kh(n,l,e,t),Ni(l,2),Ie(l));break}}e=e.return}}function Mu(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new $S;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(n)||(vu=!0,o.add(n),t=ax.bind(null,t,e,n),e.then(t,t))}function ax(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,jt===t&&(mt&n)===n&&(Ut===4||Ut===3&&(mt&62914560)===mt&&300>ve()-_s?(Et&2)===0&&li(t,0):Su|=n,ai===mt&&(ai=0)),Ie(t)}function Zm(t,e){e===0&&(e=qf()),t=ua(t,e),t!==null&&(Ni(t,e),Ie(t))}function ix(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Zm(t,n)}function lx(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Zm(t,n)}function sx(t,e){return Lr(t,e)}var Gs=null,ri=null,Ru=!1,Xs=!1,Du=!1,Zn=0;function Ie(t){t!==ri&&t.next===null&&(ri===null?Gs=ri=t:ri=ri.next=t),Xs=!0,Ru||(Ru=!0,ox())}function fl(t,e){if(!Du&&Xs){Du=!0;do for(var n=!1,l=Gs;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var h=l.suspendedLanes,S=l.pingedLanes;u=(1<<31-xe(42|t)+1)-1,u&=o&~(h&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Pm(l,u))}else u=mt,u=kl(l,l===jt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||wi(l,u)||(n=!0,Pm(l,u));l=l.next}while(n);Du=!1}}function rx(){km()}function km(){Xs=Ru=!1;var t=0;Zn!==0&&vx()&&(t=Zn);for(var e=ve(),n=null,l=Gs;l!==null;){var o=l.next,u=Jm(l,e);u===0?(l.next=null,n===null?Gs=o:n.next=o,o===null&&(ri=n)):(n=l,(t!==0||(u&3)!==0)&&(Xs=!0)),l=o}Pt!==0&&Pt!==5||fl(t),Zn!==0&&(Zn=0)}function Jm(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-xe(u),S=1<<h,T=o[h];T===-1?((S&n)===0||(S&l)!==0)&&(o[h]=V0(S,e)):T<=e&&(t.expiredLanes|=S),u&=~S}if(e=jt,n=mt,n=kl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Hr(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||wi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Hr(l),Gr(n)){case 2:case 8:n=Lf;break;case 32:n=Xl;break;case 268435456:n=Hf;break;default:n=Xl}return l=Fm.bind(null,t),n=Lr(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Hr(l),t.callbackPriority=2,t.callbackNode=null,2}function Fm(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ys()&&t.callbackNode!==n)return null;var l=mt;return l=kl(t,t===jt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(wm(t,l,e),Jm(t,ve()),t.callbackNode!=null&&t.callbackNode===n?Fm.bind(null,t):null)}function Pm(t,e){if(Ys())return null;wm(t,e,!0)}function ox(){xx(function(){(Et&6)!==0?Lr(Uf,rx):km()})}function ju(){if(Zn===0){var t=Za;t===0&&(t=Ql,Ql<<=1,(Ql&261888)===0&&(Ql=256)),Zn=t}return Zn}function Wm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Wl(""+t)}function $m(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function ux(t,e,n,l,o){if(e==="submit"&&n&&n.stateNode===o){var u=Wm((o[fe]||null).action),h=l.submitter;h&&(e=(e=h[fe]||null)?Wm(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var S=new es("action","action",null,l,o);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Zn!==0){var T=h?$m(o,h):new FormData(o);Fo(n,{pending:!0,data:T,method:o.method,action:u},null,T)}}else typeof u=="function"&&(S.preventDefault(),T=h?$m(o,h):new FormData(o),Fo(n,{pending:!0,data:T,method:o.method,action:u},u,T))},currentTarget:o}]})}}for(var wu=0;wu<fo.length;wu++){var Nu=fo[wu],cx=Nu.toLowerCase(),fx=Nu[0].toUpperCase()+Nu.slice(1);Ye(cx,"on"+fx)}Ye(jd,"onAnimationEnd"),Ye(wd,"onAnimationIteration"),Ye(Nd,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(RS,"onTransitionRun"),Ye(DS,"onTransitionStart"),Ye(jS,"onTransitionCancel"),Ye(zd,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),dx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dl));function Im(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],o=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var h=l.length-1;0<=h;h--){var S=l[h],T=S.instance,N=S.currentTarget;if(S=S.listener,T!==u&&o.isPropagationStopped())break t;u=S,o.currentTarget=N;try{u(o)}catch(q){is(q)}o.currentTarget=null,u=T}else for(h=0;h<l.length;h++){if(S=l[h],T=S.instance,N=S.currentTarget,S=S.listener,T!==u&&o.isPropagationStopped())break t;u=S,o.currentTarget=N;try{u(o)}catch(q){is(q)}o.currentTarget=null,u=T}}}}function ht(t,e){var n=e[Xr];n===void 0&&(n=e[Xr]=new Set);var l=t+"__bubble";n.has(l)||(tp(e,t,2,!1),n.add(l))}function zu(t,e,n){var l=0;e&&(l|=4),tp(n,t,l,e)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Ou(t){if(!t[Qs]){t[Qs]=!0,kf.forEach(function(n){n!=="selectionchange"&&(dx.has(n)||zu(n,!1,t),zu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qs]||(e[Qs]=!0,zu("selectionchange",!1,e))}}function tp(t,e,n,l){switch(jp(e)){case 2:var o=qx;break;case 8:o=Yx;break;default:o=Ju}n=o.bind(null,e,n,t),o=void 0,!$r||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function Vu(t,e,n,l,o){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var S=l.stateNode.containerInfo;if(S===o)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;S!==null;){if(h=ja(S),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=u=h;continue t}S=S.parentNode}}l=l.return}ld(function(){var N=u,q=Pr(n),G=[];t:{var z=Od.get(t);if(z!==void 0){var V=es,$=t;switch(t){case"keypress":if(Il(n)===0)break t;case"keydown":case"keyup":V=lS;break;case"focusin":$="focus",V=no;break;case"focusout":$="blur",V=no;break;case"beforeblur":case"afterblur":V=no;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=k0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=oS;break;case jd:case wd:case Nd:V=P0;break;case zd:V=cS;break;case"scroll":case"scrollend":V=K0;break;case"wheel":V=dS;break;case"copy":case"cut":case"paste":V=$0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=cd;break;case"toggle":case"beforetoggle":V=mS}var st=(e&4)!==0,Dt=!st&&(t==="scroll"||t==="scrollend"),M=st?z!==null?z+"Capture":null:z;st=[];for(var C=N,j;C!==null;){var Y=C;if(j=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||j===null||M===null||(Y=Vi(C,M),Y!=null&&st.push(hl(C,Y,j))),Dt)break;C=C.return}0<st.length&&(z=new V(z,$,null,n,q),G.push({event:z,listeners:st}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",V=t==="mouseout"||t==="pointerout",z&&n!==Fr&&($=n.relatedTarget||n.fromElement)&&(ja($)||$[Da]))break t;if((V||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,V?($=n.relatedTarget||n.toElement,V=N,$=$?ja($):null,$!==null&&(Dt=f($),st=$.tag,$!==Dt||st!==5&&st!==27&&st!==6)&&($=null)):(V=null,$=N),V!==$)){if(st=od,Y="onMouseLeave",M="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(st=cd,Y="onPointerLeave",M="onPointerEnter",C="pointer"),Dt=V==null?z:Oi(V),j=$==null?z:Oi($),z=new st(Y,C+"leave",V,n,q),z.target=Dt,z.relatedTarget=j,Y=null,ja(q)===N&&(st=new st(M,C+"enter",$,n,q),st.target=j,st.relatedTarget=Dt,Y=st),Dt=Y,V&&$)e:{for(st=hx,M=V,C=$,j=0,Y=M;Y;Y=st(Y))j++;Y=0;for(var at=C;at;at=st(at))Y++;for(;0<j-Y;)M=st(M),j--;for(;0<Y-j;)C=st(C),Y--;for(;j--;){if(M===C||C!==null&&M===C.alternate){st=M;break e}M=st(M),C=st(C)}st=null}else st=null;V!==null&&ep(G,z,V,st,!1),$!==null&&Dt!==null&&ep(G,Dt,$,st,!0)}}t:{if(z=N?Oi(N):window,V=z.nodeName&&z.nodeName.toLowerCase(),V==="select"||V==="input"&&z.type==="file")var bt=vd;else if(yd(z))if(Sd)bt=AS;else{bt=TS;var tt=bS}else V=z.nodeName,!V||V.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&Jr(N.elementType)&&(bt=vd):bt=ES;if(bt&&(bt=bt(t,N))){gd(G,bt,n,q);break t}tt&&tt(t,z,N),t==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&kr(z,"number",z.value)}switch(tt=N?Oi(N):window,t){case"focusin":(yd(tt)||tt.contentEditable==="true")&&(La=tt,oo=N,Gi=null);break;case"focusout":Gi=oo=La=null;break;case"mousedown":uo=!0;break;case"contextmenu":case"mouseup":case"dragend":uo=!1,Rd(G,n,q);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":Rd(G,n,q)}var ft;if(io)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else Ua?md(t,n)&&(pt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(pt="onCompositionStart");pt&&(fd&&n.locale!=="ko"&&(Ua||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&Ua&&(ft=sd()):(wn=q,Ir="value"in wn?wn.value:wn.textContent,Ua=!0)),tt=Ks(N,pt),0<tt.length&&(pt=new ud(pt,t,null,n,q),G.push({event:pt,listeners:tt}),ft?pt.data=ft:(ft=pd(n),ft!==null&&(pt.data=ft)))),(ft=yS?gS(t,n):vS(t,n))&&(pt=Ks(N,"onBeforeInput"),0<pt.length&&(tt=new ud("onBeforeInput","beforeinput",null,n,q),G.push({event:tt,listeners:pt}),tt.data=ft)),ux(G,t,N,n,q)}Im(G,e)})}function hl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ks(t,e){for(var n=e+"Capture",l=[];t!==null;){var o=t,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Vi(t,n),o!=null&&l.unshift(hl(t,o,u)),o=Vi(t,e),o!=null&&l.push(hl(t,o,u))),t.tag===3)return l;t=t.return}return[]}function hx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ep(t,e,n,l,o){for(var u=e._reactName,h=[];n!==null&&n!==l;){var S=n,T=S.alternate,N=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||N===null||(T=N,o?(N=Vi(n,u),N!=null&&h.unshift(hl(n,N,T))):o||(N=Vi(n,u),N!=null&&h.push(hl(n,N,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var mx=/\r\n?/g,px=/\u0000|\uFFFD/g;function np(t){return(typeof t=="string"?t:""+t).replace(mx,`
|
|
9
|
-
`).replace(px,"")}function ap(t,e){return e=np(e),np(t)===e}function Rt(t,e,n,l,o,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Va(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Va(t,""+l);break;case"className":Fl(t,"class",l);break;case"tabIndex":Fl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fl(t,n,l);break;case"style":ad(t,l,u);break;case"data":if(e!=="object"){Fl(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Wl(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Rt(t,e,"name",o.name,o,null),Rt(t,e,"formEncType",o.formEncType,o,null),Rt(t,e,"formMethod",o.formMethod,o,null),Rt(t,e,"formTarget",o.formTarget,o,null)):(Rt(t,e,"encType",o.encType,o,null),Rt(t,e,"method",o.method,o,null),Rt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Wl(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=on);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Wl(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":ht("beforetoggle",t),ht("toggle",t),Jl(t,"popover",l);break;case"xlinkActuate":rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":rn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":rn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":rn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":rn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Jl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=X0.get(n)||n,Jl(t,n,l))}}function _u(t,e,n,l,o,u){switch(n){case"style":ad(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Va(t,l):(typeof l=="number"||typeof l=="bigint")&&Va(t,""+l);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"onClick":l!=null&&(t.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),e=n.slice(2,o?n.length-7:void 0),u=t[fe]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,o);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Jl(t,n,l)}}}function ie(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Rt(t,e,u,h,n,null)}}o&&Rt(t,e,"srcSet",n.srcSet,n,null),l&&Rt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var S=u=h=o=null,T=null,N=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":o=q;break;case"type":h=q;break;case"checked":T=q;break;case"defaultChecked":N=q;break;case"value":u=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,e));break;default:Rt(t,e,l,q,n,null)}}If(t,u,S,T,N,h,o,!1);return;case"select":ht("invalid",t),l=h=u=null;for(o in n)if(n.hasOwnProperty(o)&&(S=n[o],S!=null))switch(o){case"value":u=S;break;case"defaultValue":h=S;break;case"multiple":l=S;default:Rt(t,e,o,S,n,null)}e=u,n=h,t.multiple=!!l,e!=null?Oa(t,!!l,e,!1):n!=null&&Oa(t,!!l,n,!0);return;case"textarea":ht("invalid",t),u=o=l=null;for(h in n)if(n.hasOwnProperty(h)&&(S=n[h],S!=null))switch(h){case"value":l=S;break;case"defaultValue":o=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Rt(t,e,h,S,n,null)}ed(t,l,o,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Rt(t,e,T,l,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(l=0;l<dl.length;l++)ht(dl[l],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Rt(t,e,N,l,n,null)}return;default:if(Jr(e)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&_u(t,e,q,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&Rt(t,e,S,l,n,null))}function yx(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,S=null,T=null,N=null,q=null;for(V in n){var G=n[V];if(n.hasOwnProperty(V)&&G!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(V)||Rt(t,e,V,null,l,G)}}for(var z in l){var V=l[z];if(G=n[z],l.hasOwnProperty(z)&&(V!=null||G!=null))switch(z){case"type":u=V;break;case"name":o=V;break;case"checked":N=V;break;case"defaultChecked":q=V;break;case"value":h=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:V!==G&&Rt(t,e,z,V,l,G)}}Zr(t,h,S,T,N,q,u,o);return;case"select":V=h=S=z=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":V=T;default:l.hasOwnProperty(u)||Rt(t,e,u,null,l,T)}for(o in l)if(u=l[o],T=n[o],l.hasOwnProperty(o)&&(u!=null||T!=null))switch(o){case"value":z=u;break;case"defaultValue":S=u;break;case"multiple":h=u;default:u!==T&&Rt(t,e,o,u,l,T)}e=S,n=h,l=V,z!=null?Oa(t,!!n,z,!1):!!l!=!!n&&(e!=null?Oa(t,!!n,e,!0):Oa(t,!!n,n?[]:"",!1));return;case"textarea":V=z=null;for(S in n)if(o=n[S],n.hasOwnProperty(S)&&o!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Rt(t,e,S,null,l,o)}for(h in l)if(o=l[h],u=n[h],l.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":z=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&Rt(t,e,h,o,l,u)}td(t,z,V);return;case"option":for(var $ in n)z=n[$],n.hasOwnProperty($)&&z!=null&&!l.hasOwnProperty($)&&($==="selected"?t.selected=!1:Rt(t,e,$,null,l,z));for(T in l)z=l[T],V=n[T],l.hasOwnProperty(T)&&z!==V&&(z!=null||V!=null)&&(T==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Rt(t,e,T,z,l,V));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var st in n)z=n[st],n.hasOwnProperty(st)&&z!=null&&!l.hasOwnProperty(st)&&Rt(t,e,st,null,l,z);for(N in l)if(z=l[N],V=n[N],l.hasOwnProperty(N)&&z!==V&&(z!=null||V!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:Rt(t,e,N,z,l,V)}return;default:if(Jr(e)){for(var Dt in n)z=n[Dt],n.hasOwnProperty(Dt)&&z!==void 0&&!l.hasOwnProperty(Dt)&&_u(t,e,Dt,void 0,l,z);for(q in l)z=l[q],V=n[q],!l.hasOwnProperty(q)||z===V||z===void 0&&V===void 0||_u(t,e,q,z,l,V);return}}for(var M in n)z=n[M],n.hasOwnProperty(M)&&z!=null&&!l.hasOwnProperty(M)&&Rt(t,e,M,null,l,z);for(G in l)z=l[G],V=n[G],!l.hasOwnProperty(G)||z===V||z==null&&V==null||Rt(t,e,G,z,l,V)}function ip(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,h=o.initiatorType,S=o.duration;if(u&&S&&ip(h)){for(h=0,S=o.responseEnd,l+=1;l<n.length;l++){var T=n[l],N=T.startTime;if(N>S)break;var q=T.transferSize,G=T.initiatorType;q&&ip(G)&&(T=T.responseEnd,h+=q*(T<S?1:(S-N)/(T-N)))}if(--l,e+=8*(u+h)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Bu=null,Uu=null;function Zs(t){return t.nodeType===9?t:t.ownerDocument}function lp(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sp(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Lu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hu=null;function vx(){var t=window.event;return t&&t.type==="popstate"?t===Hu?!1:(Hu=t,!0):(Hu=null,!1)}var rp=typeof setTimeout=="function"?setTimeout:void 0,Sx=typeof clearTimeout=="function"?clearTimeout:void 0,op=typeof Promise=="function"?Promise:void 0,xx=typeof queueMicrotask=="function"?queueMicrotask:typeof op<"u"?function(t){return op.resolve(null).then(t).catch(bx)}:rp;function bx(t){setTimeout(function(){throw t})}function kn(t){return t==="head"}function up(t,e){var n=e,l=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(o),fi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ml(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ml(n);for(var u=n.firstChild;u;){var h=u.nextSibling,S=u.nodeName;u[zi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&ml(t.ownerDocument.body);n=o}while(n);fi(e)}function cp(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function qu(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":qu(n),Qr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Tx(t,e,n,l){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[zi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ue(t.nextSibling),t===null)break}return null}function Ex(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ue(t.nextSibling),t===null))return null;return t}function fp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ue(t.nextSibling),t===null))return null;return t}function Yu(t){return t.data==="$?"||t.data==="$~"}function Gu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Ax(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Xu=null;function dp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ue(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function hp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function mp(t,e,n){switch(e=Zs(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function ml(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Qr(t)}var Le=new Map,pp=new Set;function ks(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var An=O.d;O.d={f:Cx,r:Mx,D:Rx,C:Dx,L:jx,m:wx,X:zx,S:Nx,M:Ox};function Cx(){var t=An.f(),e=Ls();return t||e}function Mx(t){var e=wa(t);e!==null&&e.tag===5&&e.type==="form"?zh(e):An.r(t)}var oi=typeof document>"u"?null:document;function yp(t,e,n){var l=oi;if(l&&typeof e=="string"&&e){var o=we(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),pp.has(o)||(pp.add(o),t={rel:t,crossOrigin:n,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),ie(e,"link",t),$t(e),l.head.appendChild(e)))}}function Rx(t){An.D(t),yp("dns-prefetch",t,null)}function Dx(t,e){An.C(t,e),yp("preconnect",t,e)}function jx(t,e,n){An.L(t,e,n);var l=oi;if(l&&t&&e){var o='link[rel="preload"][as="'+we(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+we(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+we(n.imageSizes)+'"]')):o+='[href="'+we(t)+'"]';var u=o;switch(e){case"style":u=ui(t);break;case"script":u=ci(t)}Le.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Le.set(u,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(pl(u))||e==="script"&&l.querySelector(yl(u))||(e=l.createElement("link"),ie(e,"link",t),$t(e),l.head.appendChild(e)))}}function wx(t,e){An.m(t,e);var n=oi;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+we(l)+'"][href="'+we(t)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ci(t)}if(!Le.has(u)&&(t=x({rel:"modulepreload",href:t},e),Le.set(u,t),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yl(u)))return}l=n.createElement("link"),ie(l,"link",t),$t(l),n.head.appendChild(l)}}}function Nx(t,e,n){An.S(t,e,n);var l=oi;if(l&&t){var o=Na(l).hoistableStyles,u=ui(t);e=e||"default";var h=o.get(u);if(!h){var S={loading:0,preload:null};if(h=l.querySelector(pl(u)))S.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Le.get(u))&&Qu(t,n);var T=h=l.createElement("link");$t(T),ie(T,"link",t),T._p=new Promise(function(N,q){T.onload=N,T.onerror=q}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Js(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:S},o.set(u,h)}}}function zx(t,e){An.X(t,e);var n=oi;if(n&&t){var l=Na(n).hoistableScripts,o=ci(t),u=l.get(o);u||(u=n.querySelector(yl(o)),u||(t=x({src:t,async:!0},e),(e=Le.get(o))&&Ku(t,e),u=n.createElement("script"),$t(u),ie(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function Ox(t,e){An.M(t,e);var n=oi;if(n&&t){var l=Na(n).hoistableScripts,o=ci(t),u=l.get(o);u||(u=n.querySelector(yl(o)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Le.get(o))&&Ku(t,e),u=n.createElement("script"),$t(u),ie(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function gp(t,e,n,l){var o=(o=nt.current)?ks(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ui(n.href),n=Na(o).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ui(n.href);var u=Na(o).hoistableStyles,h=u.get(t);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=o.querySelector(pl(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Le.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Le.set(t,n),u||Vx(o,t,n,h.state))),e&&l===null)throw Error(r(528,""));return h}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ci(n),n=Na(o).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ui(t){return'href="'+we(t)+'"'}function pl(t){return'link[rel="stylesheet"]['+t+"]"}function vp(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function Vx(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ie(e,"link",n),$t(e),t.head.appendChild(e))}function ci(t){return'[src="'+we(t)+'"]'}function yl(t){return"script[async]"+t}function Sp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+we(n.href)+'"]');if(l)return e.instance=l,$t(l),l;var o=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),$t(l),ie(l,"style",o),Js(l,n.precedence,t),e.instance=l;case"stylesheet":o=ui(n.href);var u=t.querySelector(pl(o));if(u)return e.state.loading|=4,e.instance=u,$t(u),u;l=vp(n),(o=Le.get(o))&&Qu(l,o),u=(t.ownerDocument||t).createElement("link"),$t(u);var h=u;return h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ie(u,"link",l),e.state.loading|=4,Js(u,n.precedence,t),e.instance=u;case"script":return u=ci(n.src),(o=t.querySelector(yl(u)))?(e.instance=o,$t(o),o):(l=n,(o=Le.get(u))&&(l=x({},n),Ku(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),$t(o),ie(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Js(l,n.precedence,t));return e.instance}function Js(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,h=0;h<l.length;h++){var S=l[h];if(S.dataset.precedence===e)u=S;else if(u!==o)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Qu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ku(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Fs=null;function xp(t,e,n){if(Fs===null){var l=new Map,o=Fs=new Map;o.set(n,l)}else o=Fs,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var u=n[o];if(!(u[zi]||u[te]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var S=l.get(h);S?S.push(u):l.set(h,[u])}}return l}function bp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function _x(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Tp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Bx(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=ui(l.href),u=e.querySelector(pl(o));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ps.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,$t(u);return}u=e.ownerDocument||e,l=vp(l),(o=Le.get(o))&&Qu(l,o),u=u.createElement("link"),$t(u);var h=u;h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ie(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Ps.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Zu=0;function Ux(t,e){return t.stylesheets&&t.count===0&&$s(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&$s(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Zu===0&&(Zu=62500*gx());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&$s(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Zu?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Ps(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ws=null;function $s(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ws=new Map,e.forEach(Lx,t),Ws=null,Ps.call(t))}function Lx(t,e){if(!(e.state.loading&4)){var n=Ws.get(t);if(n)var l=n.get(null);else{n=new Map,Ws.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}o=e.instance,h=o.getAttribute("data-precedence"),u=n.get(h)||l,u===l&&n.set(null,o),n.set(h,o),this.count++,l=Ps.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var gl={$$typeof:H,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Hx(t,e,n,l,o,u,h,S,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qr(0),this.hiddenUpdates=qr(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Ep(t,e,n,l,o,u,h,S,T,N,q,G){return t=new Hx(t,e,n,h,T,N,q,G,S),e=1,u===!0&&(e|=24),u=Te(3,null,null,e),t.current=u,u.stateNode=t,e=Co(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},jo(u),t}function Ap(t){return t?(t=Ya,t):Ya}function Cp(t,e,n,l,o,u){o=Ap(o),l.context===null?l.context=o:l.pendingContext=o,l=Bn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Un(t,l,e),n!==null&&(ge(n,t,e),Fi(n,t,e))}function Mp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function ku(t,e){Mp(t,e),(t=t.alternate)&&Mp(t,e)}function Rp(t){if(t.tag===13||t.tag===31){var e=ua(t,67108864);e!==null&&ge(e,t,67108864),ku(t,67108864)}}function Dp(t){if(t.tag===13||t.tag===31){var e=Re();e=Yr(e);var n=ua(t,e);n!==null&&ge(n,t,e),ku(t,e)}}var Is=!0;function qx(t,e,n,l){var o=L.T;L.T=null;var u=O.p;try{O.p=2,Ju(t,e,n,l)}finally{O.p=u,L.T=o}}function Yx(t,e,n,l){var o=L.T;L.T=null;var u=O.p;try{O.p=8,Ju(t,e,n,l)}finally{O.p=u,L.T=o}}function Ju(t,e,n,l){if(Is){var o=Fu(l);if(o===null)Vu(t,e,l,tr,n),wp(t,l);else if(Xx(o,t,e,n,l))l.stopPropagation();else if(wp(t,l),e&4&&-1<Gx.indexOf(t)){for(;o!==null;){var u=wa(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=ia(u.pendingLanes);if(h!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;h;){var T=1<<31-xe(h);S.entanglements[1]|=T,h&=~T}Ie(u),(Et&6)===0&&(Bs=ve()+500,fl(0))}}break;case 31:case 13:S=ua(u,2),S!==null&&ge(S,u,2),Ls(),ku(u,2)}if(u=Fu(l),u===null&&Vu(t,e,l,tr,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else Vu(t,e,l,null,n)}}function Fu(t){return t=Pr(t),Pu(t)}var tr=null;function Pu(t){if(tr=null,t=ja(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return tr=t,null}function jp(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(R0()){case Uf:return 2;case Lf:return 8;case Xl:case D0:return 32;case Hf:return 268435456;default:return 32}default:return 32}}var Wu=!1,Jn=null,Fn=null,Pn=null,vl=new Map,Sl=new Map,Wn=[],Gx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function wp(t,e){switch(t){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":vl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(e.pointerId)}}function xl(t,e,n,l,o,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},e!==null&&(e=wa(e),e!==null&&Rp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Xx(t,e,n,l,o){switch(e){case"focusin":return Jn=xl(Jn,t,e,n,l,o),!0;case"dragenter":return Fn=xl(Fn,t,e,n,l,o),!0;case"mouseover":return Pn=xl(Pn,t,e,n,l,o),!0;case"pointerover":var u=o.pointerId;return vl.set(u,xl(vl.get(u)||null,t,e,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,Sl.set(u,xl(Sl.get(u)||null,t,e,n,l,o)),!0}return!1}function Np(t){var e=ja(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,Kf(t.priority,function(){Dp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Kf(t.priority,function(){Dp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function er(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Fu(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Fr=l,n.target.dispatchEvent(l),Fr=null}else return e=wa(n),e!==null&&Rp(e),t.blockedOn=n,!1;e.shift()}return!0}function zp(t,e,n){er(t)&&n.delete(e)}function Qx(){Wu=!1,Jn!==null&&er(Jn)&&(Jn=null),Fn!==null&&er(Fn)&&(Fn=null),Pn!==null&&er(Pn)&&(Pn=null),vl.forEach(zp),Sl.forEach(zp)}function nr(t,e){t.blockedOn===e&&(t.blockedOn=null,Wu||(Wu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Qx)))}var ar=null;function Op(t){ar!==t&&(ar=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ar===t&&(ar=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Pu(l||n)===null)continue;break}var u=wa(n);u!==null&&(t.splice(e,3),e-=3,Fo(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function fi(t){function e(T){return nr(T,t)}Jn!==null&&nr(Jn,t),Fn!==null&&nr(Fn,t),Pn!==null&&nr(Pn,t),vl.forEach(e),Sl.forEach(e);for(var n=0;n<Wn.length;n++){var l=Wn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Wn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],h=o[fe]||null;if(typeof u=="function")h||Op(n);else if(h){var S=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[fe]||null)S=h.formAction;else if(Pu(o)!==null)continue}else S=h.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),Op(n)}}}function Vp(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function $u(t){this._internalRoot=t}ir.prototype.render=$u.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,l=Re();Cp(n,l,t,e,null,null)},ir.prototype.unmount=$u.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Cp(t.current,2,null,t,null,null),Ls(),e[Da]=null}};function ir(t){this._internalRoot=t}ir.prototype.unstable_scheduleHydration=function(t){if(t){var e=Qf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Wn.length&&e!==0&&e<Wn[n].priority;n++);Wn.splice(n,0,t),n===0&&Np(t)}};var _p=i.version;if(_p!=="19.2.4")throw Error(r(527,_p,"19.2.4"));O.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Kx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lr.isDisabled&&lr.supportsFiber)try{ji=lr.inject(Kx),Se=lr}catch{}}return Tl.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,l="",o=Gh,u=Xh,h=Qh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=Ep(t,1,!1,null,null,n,l,null,o,u,h,Vp),t[Da]=e.current,Ou(t),new $u(e)},Tl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var l=!1,o="",u=Gh,h=Xh,S=Qh,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Ep(t,1,!0,e,n??null,l,o,T,u,h,S,Vp),e.context=Ap(null),n=e.current,l=Re(),l=Yr(l),o=Bn(l),o.callback=null,Un(n,o,l),n=l,e.current.lanes=n,Ni(e,n),Ie(e),t[Da]=e.current,Ou(t),new ir(e)},Tl.version="19.2.4",Tl}var Kp;function n1(){if(Kp)return ec.exports;Kp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ec.exports=e1(),ec.exports}var a1=n1();const i1=gg(a1);var Zp="popstate";function kp(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function l1(a={}){function i(r,c){let f=c.state?.masked,{pathname:d,search:m,hash:y}=f||r.location;return Rc("",{pathname:d,search:m,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,c){return typeof c=="string"?c:wl(c)}return r1(i,s,null,a)}function Vt(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Fe(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function s1(){return Math.random().toString(36).substring(2,10)}function Jp(a,i){return{usr:a.state,key:a.key,idx:i,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Rc(a,i,s=null,r,c){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ti(i):i,state:s,key:i&&i.key||r||s1(),unstable_mask:c}}function wl({pathname:a="/",search:i="",hash:s=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(a+=s.charAt(0)==="#"?s:"#"+s),a}function Ti(a){let i={};if(a){let s=a.indexOf("#");s>=0&&(i.hash=a.substring(s),a=a.substring(0,s));let r=a.indexOf("?");r>=0&&(i.search=a.substring(r),a=a.substring(0,r)),a&&(i.pathname=a)}return i}function r1(a,i,s,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,d=c.history,m="POP",y=null,p=v();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function v(){return(d.state||{idx:null}).idx}function x(){m="POP";let w=v(),U=w==null?null:w-p;p=w,y&&y({action:m,location:_.location,delta:U})}function b(w,U){m="PUSH";let X=kp(w)?w:Rc(_.location,w,U);p=v()+1;let H=Jp(X,p),P=_.createHref(X.unstable_mask||X);try{d.pushState(H,"",P)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;c.location.assign(P)}f&&y&&y({action:m,location:_.location,delta:1})}function R(w,U){m="REPLACE";let X=kp(w)?w:Rc(_.location,w,U);p=v();let H=Jp(X,p),P=_.createHref(X.unstable_mask||X);d.replaceState(H,"",P),f&&y&&y({action:m,location:_.location,delta:0})}function D(w){return o1(w)}let _={get action(){return m},get location(){return a(c,d)},listen(w){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(Zp,x),y=w,()=>{c.removeEventListener(Zp,x),y=null}},createHref(w){return i(c,w)},createURL:D,encodeLocation(w){let U=D(w);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:b,replace:R,go(w){return d.go(w)}};return _}function o1(a,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Vt(s,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:wl(a);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function vg(a,i,s="/"){return u1(a,i,s,!1)}function u1(a,i,s,r){let c=typeof i=="string"?Ti(i):i,f=Cn(c.pathname||"/",s);if(f==null)return null;let d=Sg(a);c1(d);let m=null;for(let y=0;m==null&&y<d.length;++y){let p=b1(f);m=S1(d[y],p,r)}return m}function Sg(a,i=[],s=[],r="",c=!1){let f=(d,m,y=c,p)=>{let v={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&y)return;Vt(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let x=nn([r,v.relativePath]),b=s.concat(v);d.children&&d.children.length>0&&(Vt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Sg(d.children,i,b,x,y)),!(d.path==null&&!d.index)&&i.push({path:x,score:g1(x,d.index),routesMeta:b})};return a.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let y of xg(d.path))f(d,m,!0,y)}),i}function xg(a){let i=a.split("/");if(i.length===0)return[];let[s,...r]=i,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let d=xg(r.join("/")),m=[];return m.push(...d.map(y=>y===""?f:[f,y].join("/"))),c&&m.push(...d),m.map(y=>a.startsWith("/")&&y===""?"/":y)}function c1(a){a.sort((i,s)=>i.score!==s.score?s.score-i.score:v1(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var f1=/^:[\w-]+$/,d1=3,h1=2,m1=1,p1=10,y1=-2,Fp=a=>a==="*";function g1(a,i){let s=a.split("/"),r=s.length;return s.some(Fp)&&(r+=y1),i&&(r+=h1),s.filter(c=>!Fp(c)).reduce((c,f)=>c+(f1.test(f)?d1:f===""?m1:p1),r)}function v1(a,i){return a.length===i.length&&a.slice(0,-1).every((r,c)=>r===i[c])?a[a.length-1]-i[i.length-1]:0}function S1(a,i,s=!1){let{routesMeta:r}=a,c={},f="/",d=[];for(let m=0;m<r.length;++m){let y=r[m],p=m===r.length-1,v=f==="/"?i:i.slice(f.length)||"/",x=Sr({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},v),b=y.route;if(!x&&p&&s&&!r[r.length-1].route.index&&(x=Sr({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},v)),!x)return null;Object.assign(c,x.params),d.push({params:c,pathname:nn([f,x.pathname]),pathnameBase:C1(nn([f,x.pathnameBase])),route:b}),x.pathnameBase!=="/"&&(f=nn([f,x.pathnameBase]))}return d}function Sr(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[s,r]=x1(a.path,a.caseSensitive,a.end),c=i.match(s);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:r.reduce((p,{paramName:v,isOptional:x},b)=>{if(v==="*"){let D=m[b]||"";d=f.slice(0,f.length-D.length).replace(/(.)\/+$/,"$1")}const R=m[b];return x&&!R?p[v]=void 0:p[v]=(R||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:a}}function x1(a,i=!1,s=!0){Fe(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,y,p,v)=>{if(r.push({paramName:m,isOptional:y!=null}),y){let x=v.charAt(p+d.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),r]}function b1(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Fe(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Cn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=a.charAt(s);return r&&r!=="/"?null:a.slice(s)||"/"}var T1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function E1(a,i="/"){let{pathname:s,search:r="",hash:c=""}=typeof a=="string"?Ti(a):a,f;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?f=Pp(s.substring(1),"/"):f=Pp(s,i)):f=i,{pathname:f,search:M1(r),hash:R1(c)}}function Pp(a,i){let s=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function lc(a,i,s,r){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function A1(a){return a.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Ic(a){let i=A1(a);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function Dr(a,i,s,r=!1){let c;typeof a=="string"?c=Ti(a):(c={...a},Vt(!c.pathname||!c.pathname.includes("?"),lc("?","pathname","search",c)),Vt(!c.pathname||!c.pathname.includes("#"),lc("#","pathname","hash",c)),Vt(!c.search||!c.search.includes("#"),lc("#","search","hash",c)));let f=a===""||c.pathname==="",d=f?"/":c.pathname,m;if(d==null)m=s;else{let x=i.length-1;if(!r&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),x-=1;c.pathname=b.join("/")}m=x>=0?i[x]:"/"}let y=E1(c,m),p=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&s.endsWith("/");return!y.pathname.endsWith("/")&&(p||v)&&(y.pathname+="/"),y}var nn=a=>a.join("/").replace(/\/\/+/g,"/"),C1=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),M1=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,R1=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,D1=class{constructor(a,i,s,r=!1){this.status=a,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function j1(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function w1(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var bg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Tg(a,i){let s=a;if(typeof s!="string"||!T1.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,c=!1;if(bg)try{let f=new URL(window.location.href),d=s.startsWith("//")?new URL(f.protocol+s):new URL(s),m=Cn(d.pathname,i);d.origin===f.origin&&m!=null?s=m+d.search+d.hash:c=!0}catch{Fe(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Eg=["POST","PUT","PATCH","DELETE"];new Set(Eg);var N1=["GET",...Eg];new Set(N1);var Ei=E.createContext(null);Ei.displayName="DataRouter";var jr=E.createContext(null);jr.displayName="DataRouterState";var z1=E.createContext(!1),Ag=E.createContext({isTransitioning:!1});Ag.displayName="ViewTransition";var O1=E.createContext(new Map);O1.displayName="Fetchers";var V1=E.createContext(null);V1.displayName="Await";var De=E.createContext(null);De.displayName="Navigation";var Bl=E.createContext(null);Bl.displayName="Location";var sn=E.createContext({outlet:null,matches:[],isDataRoute:!1});sn.displayName="Route";var tf=E.createContext(null);tf.displayName="RouteError";var Cg="REACT_ROUTER_ERROR",_1="REDIRECT",B1="ROUTE_ERROR_RESPONSE";function U1(a){if(a.startsWith(`${Cg}:${_1}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function L1(a){if(a.startsWith(`${Cg}:${B1}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new D1(i.status,i.statusText,i.data)}catch{}}function H1(a,{relative:i}={}){Vt(Ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=E.useContext(De),{hash:c,pathname:f,search:d}=Ul(a,{relative:i}),m=f;return s!=="/"&&(m=f==="/"?s:nn([s,f])),r.createHref({pathname:m,search:d,hash:c})}function Ai(){return E.useContext(Bl)!=null}function Rn(){return Vt(Ai(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Bl).location}var Mg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Rg(a){E.useContext(De).static||E.useLayoutEffect(a)}function Dg(){let{isDataRoute:a}=E.useContext(sn);return a?$1():q1()}function q1(){Vt(Ai(),"useNavigate() may be used only in the context of a <Router> component.");let a=E.useContext(Ei),{basename:i,navigator:s}=E.useContext(De),{matches:r}=E.useContext(sn),{pathname:c}=Rn(),f=JSON.stringify(Ic(r)),d=E.useRef(!1);return Rg(()=>{d.current=!0}),E.useCallback((y,p={})=>{if(Fe(d.current,Mg),!d.current)return;if(typeof y=="number"){s.go(y);return}let v=Dr(y,JSON.parse(f),c,p.relative==="path");a==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:nn([i,v.pathname])),(p.replace?s.replace:s.push)(v,p.state,p)},[i,s,f,c,a])}E.createContext(null);function Ul(a,{relative:i}={}){let{matches:s}=E.useContext(sn),{pathname:r}=Rn(),c=JSON.stringify(Ic(s));return E.useMemo(()=>Dr(a,JSON.parse(c),r,i==="path"),[a,c,r,i])}function Y1(a,i){return jg(a,i)}function jg(a,i,s){Vt(Ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(De),{matches:c}=E.useContext(sn),f=c[c.length-1],d=f?f.params:{},m=f?f.pathname:"/",y=f?f.pathnameBase:"/",p=f&&f.route;{let w=p&&p.path||"";Ng(m,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
8
|
+
`+l.stack}}var qr=Object.prototype.hasOwnProperty,Gr=a.unstable_scheduleCallback,Yr=a.unstable_cancelCallback,w0=a.unstable_shouldYield,j0=a.unstable_requestPaint,ve=a.unstable_now,N0=a.unstable_getCurrentPriorityLevel,qf=a.unstable_ImmediatePriority,Gf=a.unstable_UserBlockingPriority,Kl=a.unstable_NormalPriority,z0=a.unstable_LowPriority,Yf=a.unstable_IdlePriority,O0=a.log,V0=a.unstable_setDisableYieldValue,wi=null,Se=null;function Dn(t){if(typeof O0=="function"&&V0(t),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(wi,t)}catch{}}var xe=Math.clz32?Math.clz32:U0,_0=Math.log,B0=Math.LN2;function U0(t){return t>>>=0,t===0?32:31-(_0(t)/B0|0)|0}var Ql=256,Zl=262144,kl=4194304;function ia(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Jl(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var o=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var S=l&134217727;return S!==0?(l=S&~u,l!==0?o=ia(l):(h&=S,h!==0?o=ia(h):n||(n=S&~t,n!==0&&(o=ia(n))))):(S=l&~u,S!==0?o=ia(S):h!==0?o=ia(h):n||(n=l&~t,n!==0&&(o=ia(n)))),o===0?0:e!==0&&e!==o&&(e&u)===0&&(u=o&-o,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:o}function ji(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function L0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xf(){var t=kl;return kl<<=1,(kl&62914560)===0&&(kl=4194304),t}function Xr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ni(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function H0(t,e,n,l,o,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var S=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=h&~n;0<n;){var q=31-xe(n),X=1<<q;S[q]=0,T[q]=-1;var z=N[q];if(z!==null)for(N[q]=null,q=0;q<z.length;q++){var V=z[q];V!==null&&(V.lane&=-536870913)}n&=~X}l!==0&&Kf(t,l,0),u!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function Kf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-xe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Qf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-xe(n),o=1<<l;o&e|t[l]&e&&(t[l]|=e),n&=~o}}function Zf(t,e){var n=e&-e;return n=(n&42)!==0?1:Kr(n),(n&(t.suspendedLanes|e))!==0?0:n}function Kr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Qr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function kf(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:zp(t.type))}function Jf(t,e){var n=O.p;try{return O.p=t,e()}finally{O.p=n}}var wn=Math.random().toString(36).slice(2),te="__reactFiber$"+wn,fe="__reactProps$"+wn,Da="__reactContainer$"+wn,Zr="__reactEvents$"+wn,q0="__reactListeners$"+wn,G0="__reactHandles$"+wn,Pf="__reactResources$"+wn,zi="__reactMarker$"+wn;function kr(t){delete t[te],delete t[fe],delete t[Zr],delete t[q0],delete t[G0]}function wa(t){var e=t[te];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[te]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=yp(t);t!==null;){if(n=t[te])return n;t=yp(t)}return e}t=n,n=t.parentNode}return null}function ja(t){if(t=t[te]||t[Da]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Oi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Na(t){var e=t[Pf];return e||(e=t[Pf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function $t(t){t[zi]=!0}var Ff=new Set,Wf={};function la(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(Wf[t]=e,t=0;t<e.length;t++)Ff.add(e[t])}var Y0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$f={},If={};function X0(t){return qr.call(If,t)?!0:qr.call($f,t)?!1:Y0.test(t)?If[t]=!0:($f[t]=!0,!1)}function Pl(t,e,n){if(X0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Fl(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function rn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function we(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function td(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function K0(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Jr(t){if(!t._valueTracker){var e=td(t)?"checked":"value";t._valueTracker=K0(t,e,""+t[e])}}function ed(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=td(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Wl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Q0=/[\n"\\]/g;function je(t){return t.replace(Q0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Pr(t,e,n,l,o,u,h,S){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+we(e)):t.value!==""+we(e)&&(t.value=""+we(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Fr(t,h,we(e)):n!=null?Fr(t,h,we(n)):l!=null&&t.removeAttribute("value"),o==null&&u!=null&&(t.defaultChecked=!!u),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+we(S):t.removeAttribute("name")}function nd(t,e,n,l,o,u,h,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Jr(t);return}n=n!=null?""+we(n):"",e=e!=null?""+we(e):n,S||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=S?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Jr(t)}function Fr(t,e,n){e==="number"&&Wl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Oa(t,e,n,l){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&l&&(t[n].defaultSelected=!0)}else{for(n=""+we(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function ad(t,e,n){if(e!=null&&(e=""+we(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+we(n):""}function id(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(r(92));if(xt(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=we(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Jr(t)}function Va(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Z0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ld(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Z0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function sd(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&n[o]!==l&&ld(t,o,l)}else for(var u in e)e.hasOwnProperty(u)&&ld(t,u,e[u])}function Wr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),J0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $l(t){return J0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function on(){}var $r=null;function Ir(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var _a=null,Ba=null;function rd(t){var e=ja(t);if(e&&(t=e.stateNode)){var n=t[fe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Pr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+je(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var o=l[fe]||null;if(!o)throw Error(r(90));Pr(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&ed(l)}break t;case"textarea":ad(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Oa(t,!!n.multiple,e,!1)}}}var to=!1;function od(t,e,n){if(to)return t(e,n);to=!0;try{var l=t(e);return l}finally{if(to=!1,(_a!==null||Ba!==null)&&(Hs(),_a&&(e=_a,t=Ba,Ba=_a=null,rd(e),t)))for(e=0;e<t.length;e++)rd(t[e])}}function Vi(t,e){var n=t.stateNode;if(n===null)return null;var l=n[fe]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eo=!1;if(un)try{var _i={};Object.defineProperty(_i,"passive",{get:function(){eo=!0}}),window.addEventListener("test",_i,_i),window.removeEventListener("test",_i,_i)}catch{eo=!1}var jn=null,no=null,Il=null;function ud(){if(Il)return Il;var t,e=no,n=e.length,l,o="value"in jn?jn.value:jn.textContent,u=o.length;for(t=0;t<n&&e[t]===o[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===o[u-l];l++);return Il=o.slice(t,1<l?1-l:void 0)}function ts(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function es(){return!0}function cd(){return!1}function de(t){function e(n,l,o,u,h){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(n=t[S],this[S]=n?n(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?es:cd,this.isPropagationStopped=cd,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=es)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=es)},persist:function(){},isPersistent:es}),e}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ns=de(sa),Bi=x({},sa,{view:0,detail:0}),P0=de(Bi),ao,io,Ui,as=x({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:so,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ui&&(Ui&&t.type==="mousemove"?(ao=t.screenX-Ui.screenX,io=t.screenY-Ui.screenY):io=ao=0,Ui=t),ao)},movementY:function(t){return"movementY"in t?t.movementY:io}}),fd=de(as),F0=x({},as,{dataTransfer:0}),W0=de(F0),$0=x({},Bi,{relatedTarget:0}),lo=de($0),I0=x({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),tS=de(I0),eS=x({},sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),nS=de(eS),aS=x({},sa,{data:0}),dd=de(aS),iS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},sS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rS(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=sS[t])?!!e[t]:!1}function so(){return rS}var oS=x({},Bi,{key:function(t){if(t.key){var e=iS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ts(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?lS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:so,charCode:function(t){return t.type==="keypress"?ts(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ts(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),uS=de(oS),cS=x({},as,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hd=de(cS),fS=x({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:so}),dS=de(fS),hS=x({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),mS=de(hS),pS=x({},as,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),yS=de(pS),gS=x({},sa,{newState:0,oldState:0}),vS=de(gS),SS=[9,13,27,32],ro=un&&"CompositionEvent"in window,Li=null;un&&"documentMode"in document&&(Li=document.documentMode);var xS=un&&"TextEvent"in window&&!Li,md=un&&(!ro||Li&&8<Li&&11>=Li),pd=" ",yd=!1;function gd(t,e){switch(t){case"keyup":return SS.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ua=!1;function bS(t,e){switch(t){case"compositionend":return vd(e);case"keypress":return e.which!==32?null:(yd=!0,pd);case"textInput":return t=e.data,t===pd&&yd?null:t;default:return null}}function TS(t,e){if(Ua)return t==="compositionend"||!ro&&gd(t,e)?(t=ud(),Il=no=jn=null,Ua=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return md&&e.locale!=="ko"?null:e.data;default:return null}}var ES={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ES[t.type]:e==="textarea"}function xd(t,e,n,l){_a?Ba?Ba.push(l):Ba=[l]:_a=l,e=Zs(e,"onChange"),0<e.length&&(n=new ns("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Hi=null,qi=null;function AS(t){np(t,0)}function is(t){var e=Oi(t);if(ed(e))return t}function bd(t,e){if(t==="change")return e}var Td=!1;if(un){var oo;if(un){var uo="oninput"in document;if(!uo){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),uo=typeof Ed.oninput=="function"}oo=uo}else oo=!1;Td=oo&&(!document.documentMode||9<document.documentMode)}function Ad(){Hi&&(Hi.detachEvent("onpropertychange",Md),qi=Hi=null)}function Md(t){if(t.propertyName==="value"&&is(qi)){var e=[];xd(e,qi,t,Ir(t)),od(AS,e)}}function MS(t,e,n){t==="focusin"?(Ad(),Hi=e,qi=n,Hi.attachEvent("onpropertychange",Md)):t==="focusout"&&Ad()}function CS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return is(qi)}function RS(t,e){if(t==="click")return is(e)}function DS(t,e){if(t==="input"||t==="change")return is(e)}function wS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:wS;function Gi(t,e){if(be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!qr.call(e,o)||!be(t[o],e[o]))return!1}return!0}function Cd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rd(t,e){var n=Cd(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Cd(n)}}function Dd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Dd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Wl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Wl(t.document)}return e}function co(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var jS=un&&"documentMode"in document&&11>=document.documentMode,La=null,fo=null,Yi=null,ho=!1;function jd(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ho||La==null||La!==Wl(l)||(l=La,"selectionStart"in l&&co(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Yi&&Gi(Yi,l)||(Yi=l,l=Zs(fo,"onSelect"),0<l.length&&(e=new ns("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=La)))}function ra(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ha={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionrun:ra("Transition","TransitionRun"),transitionstart:ra("Transition","TransitionStart"),transitioncancel:ra("Transition","TransitionCancel"),transitionend:ra("Transition","TransitionEnd")},mo={},Nd={};un&&(Nd=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function oa(t){if(mo[t])return mo[t];if(!Ha[t])return t;var e=Ha[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Nd)return mo[t]=e[n];return t}var zd=oa("animationend"),Od=oa("animationiteration"),Vd=oa("animationstart"),NS=oa("transitionrun"),zS=oa("transitionstart"),OS=oa("transitioncancel"),_d=oa("transitionend"),Bd=new Map,po="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");po.push("scrollEnd");function Ge(t,e){Bd.set(t,e),la(e,[t])}var ls=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ne=[],qa=0,yo=0;function ss(){for(var t=qa,e=yo=qa=0;e<t;){var n=Ne[e];Ne[e++]=null;var l=Ne[e];Ne[e++]=null;var o=Ne[e];Ne[e++]=null;var u=Ne[e];if(Ne[e++]=null,l!==null&&o!==null){var h=l.pending;h===null?o.next=o:(o.next=h.next,h.next=o),l.pending=o}u!==0&&Ud(n,o,u)}}function rs(t,e,n,l){Ne[qa++]=t,Ne[qa++]=e,Ne[qa++]=n,Ne[qa++]=l,yo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function go(t,e,n,l){return rs(t,e,n,l),os(t)}function ua(t,e){return rs(t,null,null,e),os(t)}function Ud(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(o=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,o&&e!==null&&(o=31-xe(n),t=u.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=n|536870912),u):null}function os(t){if(50<cl)throw cl=0,Cu=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ga={};function VS(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,n,l){return new VS(t,e,n,l)}function vo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cn(t,e){var n=t.alternate;return n===null?(n=Te(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Ld(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function us(t,e,n,l,o,u){var h=0;if(l=t,typeof t=="function")vo(t)&&(h=1);else if(typeof t=="string")h=Hx(t,n,K.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ot:return t=Te(31,n,e,o),t.elementType=ot,t.lanes=u,t;case _:return ca(n.children,o,u,e);case D:h=8,o|=24;break;case B:return t=Te(12,n,e,o|2),t.elementType=B,t.lanes=u,t;case Q:return t=Te(13,n,e,o),t.elementType=Q,t.lanes=u,t;case et:return t=Te(19,n,e,o),t.elementType=et,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:h=10;break t;case G:h=9;break t;case F:h=11;break t;case J:h=14;break t;case W:h=16,l=null;break t}h=29,n=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Te(h,n,e,o),e.elementType=t,e.type=l,e.lanes=u,e}function ca(t,e,n,l){return t=Te(7,t,l,e),t.lanes=n,t}function So(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function Hd(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function xo(t,e,n){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var qd=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var n=qd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Hf(e)},qd.set(t,e),e)}return{value:t,source:e,stack:Hf(e)}}var Ya=[],Xa=0,cs=null,Xi=0,Oe=[],Ve=0,Nn=null,Fe=1,We="";function fn(t,e){Ya[Xa++]=Xi,Ya[Xa++]=cs,cs=t,Xi=e}function Gd(t,e,n){Oe[Ve++]=Fe,Oe[Ve++]=We,Oe[Ve++]=Nn,Nn=t;var l=Fe;t=We;var o=32-xe(l)-1;l&=~(1<<o),n+=1;var u=32-xe(e)+o;if(30<u){var h=o-o%5;u=(l&(1<<h)-1).toString(32),l>>=h,o-=h,Fe=1<<32-xe(e)+o|n<<o|l,We=u+t}else Fe=1<<u|n<<o|l,We=t}function bo(t){t.return!==null&&(fn(t,1),Gd(t,1,0))}function To(t){for(;t===cs;)cs=Ya[--Xa],Ya[Xa]=null,Xi=Ya[--Xa],Ya[Xa]=null;for(;t===Nn;)Nn=Oe[--Ve],Oe[Ve]=null,We=Oe[--Ve],Oe[Ve]=null,Fe=Oe[--Ve],Oe[Ve]=null}function Yd(t,e){Oe[Ve++]=Fe,Oe[Ve++]=We,Oe[Ve++]=Nn,Fe=e.id,We=e.overflow,Nn=t}var ee=null,Nt=null,vt=!1,zn=null,_e=!1,Eo=Error(r(519));function On(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ki(ze(e,t)),Eo}function Xd(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[te]=t,e[fe]=l,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<dl.length;n++)ht(dl[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),nd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),id(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||sp(e.textContent,n)?(l.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),l.onScroll!=null&&ht("scroll",e),l.onScrollEnd!=null&&ht("scrollend",e),l.onClick!=null&&(e.onclick=on),e=!0):e=!1,e||On(t,!0)}function Kd(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:_e=!1;return;case 27:case 3:_e=!0;return;default:ee=ee.return}}function Ka(t){if(t!==ee)return!1;if(!vt)return Kd(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Gu(t.type,t.memoizedProps)),n=!n),n&&Nt&&On(t),Kd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Nt=pp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Nt=pp(t)}else e===27?(e=Nt,kn(t.type)?(t=Zu,Zu=null,Nt=t):Nt=e):Nt=ee?Ue(t.stateNode.nextSibling):null;return!0}function fa(){Nt=ee=null,vt=!1}function Ao(){var t=zn;return t!==null&&(ye===null?ye=t:ye.push.apply(ye,t),zn=null),t}function Ki(t){zn===null?zn=[t]:zn.push(t)}var Mo=A(null),da=null,dn=null;function Vn(t,e,n){k(Mo,e._currentValue),e._currentValue=n}function hn(t){t._currentValue=Mo.current,U(Mo)}function Co(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Ro(t,e,n,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;t:for(;u!==null;){var S=u;u=o;for(var T=0;T<e.length;T++)if(S.context===e[T]){u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),Co(u.return,n,t),l||(h=null);break t}u=S.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(r(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Co(h,n,t),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===t){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function Qa(t,e,n,l){t=null;for(var o=e,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(r(387));if(h=h.memoizedProps,h!==null){var S=o.type;be(o.pendingProps.value,h.value)||(t!==null?t.push(S):t=[S])}}else if(o===rt.current){if(h=o.alternate,h===null)throw Error(r(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(gl):t=[gl])}o=o.return}t!==null&&Ro(e,t,n,l),e.flags|=262144}function fs(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return Qd(da,t)}function ds(t,e){return da===null&&ha(t),Qd(t,e)}function Qd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(r(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var _S=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},BS=a.unstable_scheduleCallback,US=a.unstable_NormalPriority,Qt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Do(){return{controller:new _S,data:new Map,refCount:0}}function Qi(t){t.refCount--,t.refCount===0&&BS(US,function(){t.controller.abort()})}var Zi=null,wo=0,Za=0,ka=null;function LS(t,e){if(Zi===null){var n=Zi=[];wo=0,Za=zu(),ka={status:"pending",value:void 0,then:function(l){n.push(l)}}}return wo++,e.then(Zd,Zd),e}function Zd(){if(--wo===0&&Zi!==null){ka!==null&&(ka.status="fulfilled");var t=Zi;Zi=null,Za=0,ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function HS(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var kd=L.S;L.S=function(t,e){jm=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&LS(t,e),kd!==null&&kd(t,e)};var ma=A(null);function jo(){var t=ma.current;return t!==null?t:wt.pooledCache}function hs(t,e){e===null?k(ma,ma.current):k(ma,e.pool)}function Jd(){var t=jo();return t===null?null:{parent:Qt._currentValue,pool:t}}var Ja=Error(r(460)),No=Error(r(474)),ms=Error(r(542)),ps={then:function(){}};function Pd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Fd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(on,on),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,$d(t),t;default:if(typeof e.status=="string")e.then(on,on);else{if(t=wt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,$d(t),t}throw ya=e,Ja}}function pa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ya=n,Ja):n}}var ya=null;function Wd(){if(ya===null)throw Error(r(459));var t=ya;return ya=null,t}function $d(t){if(t===Ja||t===ms)throw Error(r(483))}var Pa=null,ki=0;function ys(t){var e=ki;return ki+=1,Pa===null&&(Pa=[]),Fd(Pa,t,e)}function Ji(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function gs(t,e){throw e.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Id(t){function e(C,M){if(t){var j=C.deletions;j===null?(C.deletions=[M],C.flags|=16):j.push(M)}}function n(C,M){if(!t)return null;for(;M!==null;)e(C,M),M=M.sibling;return null}function l(C){for(var M=new Map;C!==null;)C.key!==null?M.set(C.key,C):M.set(C.index,C),C=C.sibling;return M}function o(C,M){return C=cn(C,M),C.index=0,C.sibling=null,C}function u(C,M,j){return C.index=j,t?(j=C.alternate,j!==null?(j=j.index,j<M?(C.flags|=67108866,M):j):(C.flags|=67108866,M)):(C.flags|=1048576,M)}function h(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function S(C,M,j,Y){return M===null||M.tag!==6?(M=So(j,C.mode,Y),M.return=C,M):(M=o(M,j),M.return=C,M)}function T(C,M,j,Y){var at=j.type;return at===_?q(C,M,j.props.children,Y,j.key):M!==null&&(M.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===W&&pa(at)===M.type)?(M=o(M,j.props),Ji(M,j),M.return=C,M):(M=us(j.type,j.key,j.props,null,C.mode,Y),Ji(M,j),M.return=C,M)}function N(C,M,j,Y){return M===null||M.tag!==4||M.stateNode.containerInfo!==j.containerInfo||M.stateNode.implementation!==j.implementation?(M=xo(j,C.mode,Y),M.return=C,M):(M=o(M,j.children||[]),M.return=C,M)}function q(C,M,j,Y,at){return M===null||M.tag!==7?(M=ca(j,C.mode,Y,at),M.return=C,M):(M=o(M,j),M.return=C,M)}function X(C,M,j){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=So(""+M,C.mode,j),M.return=C,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case R:return j=us(M.type,M.key,M.props,null,C.mode,j),Ji(j,M),j.return=C,j;case w:return M=xo(M,C.mode,j),M.return=C,M;case W:return M=pa(M),X(C,M,j)}if(xt(M)||gt(M))return M=ca(M,C.mode,j,null),M.return=C,M;if(typeof M.then=="function")return X(C,ys(M),j);if(M.$$typeof===H)return X(C,ds(C,M),j);gs(C,M)}return null}function z(C,M,j,Y){var at=M!==null?M.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return at!==null?null:S(C,M,""+j,Y);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case R:return j.key===at?T(C,M,j,Y):null;case w:return j.key===at?N(C,M,j,Y):null;case W:return j=pa(j),z(C,M,j,Y)}if(xt(j)||gt(j))return at!==null?null:q(C,M,j,Y,null);if(typeof j.then=="function")return z(C,M,ys(j),Y);if(j.$$typeof===H)return z(C,M,ds(C,j),Y);gs(C,j)}return null}function V(C,M,j,Y,at){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return C=C.get(j)||null,S(M,C,""+Y,at);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case R:return C=C.get(Y.key===null?j:Y.key)||null,T(M,C,Y,at);case w:return C=C.get(Y.key===null?j:Y.key)||null,N(M,C,Y,at);case W:return Y=pa(Y),V(C,M,j,Y,at)}if(xt(Y)||gt(Y))return C=C.get(j)||null,q(M,C,Y,at,null);if(typeof Y.then=="function")return V(C,M,j,ys(Y),at);if(Y.$$typeof===H)return V(C,M,j,ds(M,Y),at);gs(M,Y)}return null}function $(C,M,j,Y){for(var at=null,bt=null,tt=M,ft=M=0,pt=null;tt!==null&&ft<j.length;ft++){tt.index>ft?(pt=tt,tt=null):pt=tt.sibling;var Tt=z(C,tt,j[ft],Y);if(Tt===null){tt===null&&(tt=pt);break}t&&tt&&Tt.alternate===null&&e(C,tt),M=u(Tt,M,ft),bt===null?at=Tt:bt.sibling=Tt,bt=Tt,tt=pt}if(ft===j.length)return n(C,tt),vt&&fn(C,ft),at;if(tt===null){for(;ft<j.length;ft++)tt=X(C,j[ft],Y),tt!==null&&(M=u(tt,M,ft),bt===null?at=tt:bt.sibling=tt,bt=tt);return vt&&fn(C,ft),at}for(tt=l(tt);ft<j.length;ft++)pt=V(tt,C,ft,j[ft],Y),pt!==null&&(t&&pt.alternate!==null&&tt.delete(pt.key===null?ft:pt.key),M=u(pt,M,ft),bt===null?at=pt:bt.sibling=pt,bt=pt);return t&&tt.forEach(function($n){return e(C,$n)}),vt&&fn(C,ft),at}function st(C,M,j,Y){if(j==null)throw Error(r(151));for(var at=null,bt=null,tt=M,ft=M=0,pt=null,Tt=j.next();tt!==null&&!Tt.done;ft++,Tt=j.next()){tt.index>ft?(pt=tt,tt=null):pt=tt.sibling;var $n=z(C,tt,Tt.value,Y);if($n===null){tt===null&&(tt=pt);break}t&&tt&&$n.alternate===null&&e(C,tt),M=u($n,M,ft),bt===null?at=$n:bt.sibling=$n,bt=$n,tt=pt}if(Tt.done)return n(C,tt),vt&&fn(C,ft),at;if(tt===null){for(;!Tt.done;ft++,Tt=j.next())Tt=X(C,Tt.value,Y),Tt!==null&&(M=u(Tt,M,ft),bt===null?at=Tt:bt.sibling=Tt,bt=Tt);return vt&&fn(C,ft),at}for(tt=l(tt);!Tt.done;ft++,Tt=j.next())Tt=V(tt,C,ft,Tt.value,Y),Tt!==null&&(t&&Tt.alternate!==null&&tt.delete(Tt.key===null?ft:Tt.key),M=u(Tt,M,ft),bt===null?at=Tt:bt.sibling=Tt,bt=Tt);return t&&tt.forEach(function(Fx){return e(C,Fx)}),vt&&fn(C,ft),at}function Dt(C,M,j,Y){if(typeof j=="object"&&j!==null&&j.type===_&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case R:t:{for(var at=j.key;M!==null;){if(M.key===at){if(at=j.type,at===_){if(M.tag===7){n(C,M.sibling),Y=o(M,j.props.children),Y.return=C,C=Y;break t}}else if(M.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===W&&pa(at)===M.type){n(C,M.sibling),Y=o(M,j.props),Ji(Y,j),Y.return=C,C=Y;break t}n(C,M);break}else e(C,M);M=M.sibling}j.type===_?(Y=ca(j.props.children,C.mode,Y,j.key),Y.return=C,C=Y):(Y=us(j.type,j.key,j.props,null,C.mode,Y),Ji(Y,j),Y.return=C,C=Y)}return h(C);case w:t:{for(at=j.key;M!==null;){if(M.key===at)if(M.tag===4&&M.stateNode.containerInfo===j.containerInfo&&M.stateNode.implementation===j.implementation){n(C,M.sibling),Y=o(M,j.children||[]),Y.return=C,C=Y;break t}else{n(C,M);break}else e(C,M);M=M.sibling}Y=xo(j,C.mode,Y),Y.return=C,C=Y}return h(C);case W:return j=pa(j),Dt(C,M,j,Y)}if(xt(j))return $(C,M,j,Y);if(gt(j)){if(at=gt(j),typeof at!="function")throw Error(r(150));return j=at.call(j),st(C,M,j,Y)}if(typeof j.then=="function")return Dt(C,M,ys(j),Y);if(j.$$typeof===H)return Dt(C,M,ds(C,j),Y);gs(C,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,M!==null&&M.tag===6?(n(C,M.sibling),Y=o(M,j),Y.return=C,C=Y):(n(C,M),Y=So(j,C.mode,Y),Y.return=C,C=Y),h(C)):n(C,M)}return function(C,M,j,Y){try{ki=0;var at=Dt(C,M,j,Y);return Pa=null,at}catch(tt){if(tt===Ja||tt===ms)throw tt;var bt=Te(29,tt,null,C.mode);return bt.lanes=Y,bt.return=C,bt}}}var ga=Id(!0),th=Id(!1),_n=!1;function zo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Oo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Un(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=os(t),Ud(t,null,n),e}return rs(t,l,e,n),os(t)}function Pi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Qf(t,n)}}function Vo(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?o=u=e:u=u.next=e}else o=u=e;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var _o=!1;function Fi(){if(_o){var t=ka;if(t!==null)throw t}}function Wi(t,e,n,l){_o=!1;var o=t.updateQueue;_n=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var T=S,N=T.next;T.next=null,h===null?u=N:h.next=N,h=T;var q=t.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==h&&(S===null?q.firstBaseUpdate=N:S.next=N,q.lastBaseUpdate=T))}if(u!==null){var X=o.baseState;h=0,q=N=T=null,S=u;do{var z=S.lane&-536870913,V=z!==S.lane;if(V?(mt&z)===z:(l&z)===z){z!==0&&z===Za&&(_o=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var $=t,st=S;z=e;var Dt=n;switch(st.tag){case 1:if($=st.payload,typeof $=="function"){X=$.call(Dt,X,z);break t}X=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=st.payload,z=typeof $=="function"?$.call(Dt,X,z):$,z==null)break t;X=x({},X,z);break t;case 2:_n=!0}}z=S.callback,z!==null&&(t.flags|=64,V&&(t.flags|=8192),V=o.callbacks,V===null?o.callbacks=[z]:V.push(z))}else V={lane:z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(N=q=V,T=X):q=q.next=V,h|=z;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;V=S,S=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);q===null&&(T=X),o.baseState=T,o.firstBaseUpdate=N,o.lastBaseUpdate=q,u===null&&(o.shared.lanes=0),Yn|=h,t.lanes=h,t.memoizedState=X}}function eh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function nh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)eh(n[t],e)}var Fa=A(null),vs=A(0);function ah(t,e){t=Tn,k(vs,t),k(Fa,e),Tn=t|e.baseLanes}function Bo(){k(vs,Tn),k(Fa,Fa.current)}function Uo(){Tn=vs.current,U(Fa),U(vs)}var Ee=A(null),Be=null;function Ln(t){var e=t.alternate;k(Xt,Xt.current&1),k(Ee,t),Be===null&&(e===null||Fa.current!==null||e.memoizedState!==null)&&(Be=t)}function Lo(t){k(Xt,Xt.current),k(Ee,t),Be===null&&(Be=t)}function ih(t){t.tag===22?(k(Xt,Xt.current),k(Ee,t),Be===null&&(Be=t)):Hn()}function Hn(){k(Xt,Xt.current),k(Ee,Ee.current)}function Ae(t){U(Ee),Be===t&&(Be=null),U(Xt)}var Xt=A(0);function Ss(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ku(n)||Qu(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var mn=0,ct=null,Ct=null,Zt=null,xs=!1,Wa=!1,va=!1,bs=0,$i=0,$a=null,qS=0;function Bt(){throw Error(r(321))}function Ho(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!be(t[n],e[n]))return!1;return!0}function qo(t,e,n,l,o,u){return mn=u,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,L.H=t===null||t.memoizedState===null?Gh:eu,va=!1,u=n(l,o),va=!1,Wa&&(u=sh(e,n,l,o)),lh(t),u}function lh(t){L.H=el;var e=Ct!==null&&Ct.next!==null;if(mn=0,Zt=Ct=ct=null,xs=!1,$i=0,$a=null,e)throw Error(r(300));t===null||kt||(t=t.dependencies,t!==null&&fs(t)&&(kt=!0))}function sh(t,e,n,l){ct=t;var o=0;do{if(Wa&&($a=null),$i=0,Wa=!1,25<=o)throw Error(r(301));if(o+=1,Zt=Ct=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}L.H=Yh,u=e(n,l)}while(Wa);return u}function GS(){var t=L.H,e=t.useState()[0];return e=typeof e.then=="function"?Ii(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ct.flags|=1024),e}function Go(){var t=bs!==0;return bs=0,t}function Yo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Xo(t){if(xs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}xs=!1}mn=0,Zt=Ct=ct=null,Wa=!1,$i=bs=0,$a=null}function oe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Kt(){if(Ct===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Zt===null?ct.memoizedState:Zt.next;if(e!==null)Zt=e,Ct=t;else{if(t===null)throw ct.alternate===null?Error(r(467)):Error(r(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(t){var e=$i;return $i+=1,$a===null&&($a=[]),t=Fd($a,t,e),e=ct,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,L.H=e===null||e.memoizedState===null?Gh:eu),t}function Es(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ii(t);if(t.$$typeof===H)return ne(t)}throw Error(r(438,String(t)))}function Ko(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ts(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=yt;return e.index++,n}function pn(t,e){return typeof e=="function"?e(t):e}function As(t){var e=Kt();return Qo(e,Ct,t)}function Qo(t,e,n){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=t.baseQueue,u=l.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}e.baseQueue=o=u,l.pending=null}if(u=t.baseState,o===null)t.memoizedState=u;else{e=o.next;var S=h=null,T=null,N=e,q=!1;do{var X=N.lane&-536870913;if(X!==N.lane?(mt&X)===X:(mn&X)===X){var z=N.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),X===Za&&(q=!0);else if((mn&z)===z){N=N.next,z===Za&&(q=!0);continue}else X={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(S=T=X,h=u):T=T.next=X,ct.lanes|=z,Yn|=z;X=N.action,va&&n(u,X),u=N.hasEagerState?N.eagerState:n(u,X)}else z={lane:X,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(S=T=z,h=u):T=T.next=z,ct.lanes|=X,Yn|=X;N=N.next}while(N!==null&&N!==e);if(T===null?h=u:T.next=S,!be(u,t.memoizedState)&&(kt=!0,q&&(n=ka,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,l.lastRenderedState=u}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Zo(t){var e=Kt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var l=n.dispatch,o=n.pending,u=e.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do u=t(u,h.action),h=h.next;while(h!==o);be(u,e.memoizedState)||(kt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function rh(t,e,n){var l=ct,o=Kt(),u=vt;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var h=!be((Ct||o).memoizedState,n);if(h&&(o.memoizedState=n,kt=!0),o=o.queue,Po(ch.bind(null,l,o,t),[t]),o.getSnapshot!==e||h||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,Ia(9,{destroy:void 0},uh.bind(null,l,o,n,e),null),wt===null)throw Error(r(349));u||(mn&127)!==0||oh(l,e,n)}return n}function oh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Ts(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function uh(t,e,n,l){e.value=n,e.getSnapshot=l,fh(e)&&dh(t)}function ch(t,e,n){return n(function(){fh(e)&&dh(t)})}function fh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!be(t,n)}catch{return!0}}function dh(t){var e=ua(t,2);e!==null&&ge(e,t,2)}function ko(t){var e=oe();if(typeof t=="function"){var n=t;if(t=n(),va){Dn(!0);try{n()}finally{Dn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:t},e}function hh(t,e,n,l){return t.baseState=n,Qo(t,Ct,typeof l=="function"?l:pn)}function YS(t,e,n,l,o){if(Rs(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};L.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,mh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function mh(t,e){var n=e.action,l=e.payload,o=t.state;if(e.isTransition){var u=L.T,h={};L.T=h;try{var S=n(o,l),T=L.S;T!==null&&T(h,S),ph(t,e,S)}catch(N){Jo(t,e,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),L.T=u}}else try{u=n(o,l),ph(t,e,u)}catch(N){Jo(t,e,N)}}function ph(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){yh(t,e,l)},function(l){return Jo(t,e,l)}):yh(t,e,n)}function yh(t,e,n){e.status="fulfilled",e.value=n,gh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,mh(t,n)))}function Jo(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,gh(e),e=e.next;while(e!==l)}t.action=null}function gh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function vh(t,e){return e}function Sh(t,e){if(vt){var n=wt.formState;if(n!==null){t:{var l=ct;if(vt){if(Nt){e:{for(var o=Nt,u=_e;o.nodeType!==8;){if(!u){o=null;break e}if(o=Ue(o.nextSibling),o===null){o=null;break e}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){Nt=Ue(o.nextSibling),l=o.data==="F!";break t}}On(l)}l=!1}l&&(e=n[0])}}return n=oe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vh,lastRenderedState:e},n.queue=l,n=Lh.bind(null,ct,l),l.dispatch=n,l=ko(!1),u=tu.bind(null,ct,!1,l.queue),l=oe(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,n=YS.bind(null,ct,o,u,n),o.dispatch=n,l.memoizedState=t,[e,n,!1]}function xh(t){var e=Kt();return bh(e,Ct,t)}function bh(t,e,n){if(e=Qo(t,e,vh)[0],t=As(pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ii(e)}catch(h){throw h===Ja?ms:h}else l=e;e=Kt();var o=e.queue,u=o.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Ia(9,{destroy:void 0},XS.bind(null,o,n),null)),[l,u,t]}function XS(t,e){t.action=e}function Th(t){var e=Kt(),n=Ct;if(n!==null)return bh(e,n,t);Kt(),e=e.memoizedState,n=Kt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ia(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Ts(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function Eh(){return Kt().memoizedState}function Ms(t,e,n,l){var o=oe();ct.flags|=t,o.memoizedState=Ia(1|e,{destroy:void 0},n,l===void 0?null:l)}function Cs(t,e,n,l){var o=Kt();l=l===void 0?null:l;var u=o.memoizedState.inst;Ct!==null&&l!==null&&Ho(l,Ct.memoizedState.deps)?o.memoizedState=Ia(e,u,n,l):(ct.flags|=t,o.memoizedState=Ia(1|e,u,n,l))}function Ah(t,e){Ms(8390656,8,t,e)}function Po(t,e){Cs(2048,8,t,e)}function KS(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Ts(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Mh(t){var e=Kt().memoizedState;return KS({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Ch(t,e){return Cs(4,2,t,e)}function Rh(t,e){return Cs(4,4,t,e)}function Dh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function wh(t,e,n){n=n!=null?n.concat([t]):null,Cs(4,4,Dh.bind(null,e,t),n)}function Fo(){}function jh(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Ho(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Nh(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Ho(e,l[1]))return l[0];if(l=t(),va){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l}function Wo(t,e,n){return n===void 0||(mn&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=zm(),ct.lanes|=t,Yn|=t,n)}function zh(t,e,n,l){return be(n,e)?n:Fa.current!==null?(t=Wo(t,n,l),be(t,e)||(kt=!0),t):(mn&42)===0||(mn&1073741824)!==0&&(mt&261930)===0?(kt=!0,t.memoizedState=n):(t=zm(),ct.lanes|=t,Yn|=t,e)}function Oh(t,e,n,l,o){var u=O.p;O.p=u!==0&&8>u?u:8;var h=L.T,S={};L.T=S,tu(t,!1,e,n);try{var T=o(),N=L.S;if(N!==null&&N(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=HS(T,l);tl(t,e,q,Re(t))}else tl(t,e,l,Re(t))}catch(X){tl(t,e,{then:function(){},status:"rejected",reason:X},Re())}finally{O.p=u,h!==null&&S.types!==null&&(h.types=S.types),L.T=h}}function QS(){}function $o(t,e,n,l){if(t.tag!==5)throw Error(r(476));var o=Vh(t).queue;Oh(t,o,e,Z,n===null?QS:function(){return _h(t),n(l)})}function Vh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function _h(t){var e=Vh(t);e.next===null&&(e=t.alternate.memoizedState),tl(t,e.next.queue,{},Re())}function Io(){return ne(gl)}function Bh(){return Kt().memoizedState}function Uh(){return Kt().memoizedState}function ZS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Re();t=Bn(n);var l=Un(e,t,n);l!==null&&(ge(l,e,n),Pi(l,e,n)),e={cache:Do()},t.payload=e;return}e=e.return}}function kS(t,e,n){var l=Re();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(t)?Hh(e,n):(n=go(t,e,n,l),n!==null&&(ge(n,t,l),qh(n,e,l)))}function Lh(t,e,n){var l=Re();tl(t,e,n,l)}function tl(t,e,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(t))Hh(e,o);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,S=u(h,n);if(o.hasEagerState=!0,o.eagerState=S,be(S,h))return rs(t,e,o,0),wt===null&&ss(),!1}catch{}if(n=go(t,e,o,l),n!==null)return ge(n,t,l),qh(n,e,l),!0}return!1}function tu(t,e,n,l){if(l={lane:2,revertLane:zu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Rs(t)){if(e)throw Error(r(479))}else e=go(t,n,l,2),e!==null&&ge(e,t,2)}function Rs(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Hh(t,e){Wa=xs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function qh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Qf(t,n)}}var el={readContext:ne,use:Es,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};el.useEffectEvent=Bt;var Gh={readContext:ne,use:Es,useCallback:function(t,e){return oe().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:Ah,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ms(4194308,4,Dh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ms(4194308,4,t,e)},useInsertionEffect:function(t,e){Ms(4,2,t,e)},useMemo:function(t,e){var n=oe();e=e===void 0?null:e;var l=t();if(va){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=oe();if(n!==void 0){var o=n(e);if(va){Dn(!0);try{n(e)}finally{Dn(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=kS.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=oe();return t={current:t},e.memoizedState=t},useState:function(t){t=ko(t);var e=t.queue,n=Lh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Fo,useDeferredValue:function(t,e){var n=oe();return Wo(n,t,e)},useTransition:function(){var t=ko(!1);return t=Oh.bind(null,ct,t.queue,!0,!1),oe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,o=oe();if(vt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),wt===null)throw Error(r(349));(mt&127)!==0||oh(l,e,n)}o.memoizedState=n;var u={value:n,getSnapshot:e};return o.queue=u,Ah(ch.bind(null,l,u,t),[t]),l.flags|=2048,Ia(9,{destroy:void 0},uh.bind(null,l,u,n,e),null),n},useId:function(){var t=oe(),e=wt.identifierPrefix;if(vt){var n=We,l=Fe;n=(l&~(1<<32-xe(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=bs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=qS++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Io,useFormState:Sh,useActionState:Sh,useOptimistic:function(t){var e=oe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=tu.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Ko,useCacheRefresh:function(){return oe().memoizedState=ZS.bind(null,ct)},useEffectEvent:function(t){var e=oe(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},eu={readContext:ne,use:Es,useCallback:jh,useContext:ne,useEffect:Po,useImperativeHandle:wh,useInsertionEffect:Ch,useLayoutEffect:Rh,useMemo:Nh,useReducer:As,useRef:Eh,useState:function(){return As(pn)},useDebugValue:Fo,useDeferredValue:function(t,e){var n=Kt();return zh(n,Ct.memoizedState,t,e)},useTransition:function(){var t=As(pn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:rh,useId:Bh,useHostTransitionStatus:Io,useFormState:xh,useActionState:xh,useOptimistic:function(t,e){var n=Kt();return hh(n,Ct,t,e)},useMemoCache:Ko,useCacheRefresh:Uh};eu.useEffectEvent=Mh;var Yh={readContext:ne,use:Es,useCallback:jh,useContext:ne,useEffect:Po,useImperativeHandle:wh,useInsertionEffect:Ch,useLayoutEffect:Rh,useMemo:Nh,useReducer:Zo,useRef:Eh,useState:function(){return Zo(pn)},useDebugValue:Fo,useDeferredValue:function(t,e){var n=Kt();return Ct===null?Wo(n,t,e):zh(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Zo(pn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Ii(t),e]},useSyncExternalStore:rh,useId:Bh,useHostTransitionStatus:Io,useFormState:Th,useActionState:Th,useOptimistic:function(t,e){var n=Kt();return Ct!==null?hh(n,Ct,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Ko,useCacheRefresh:Uh};Yh.useEffectEvent=Mh;function nu(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var au={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Re(),o=Bn(l);o.payload=e,n!=null&&(o.callback=n),e=Un(t,o,l),e!==null&&(ge(e,t,l),Pi(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Re(),o=Bn(l);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Un(t,o,l),e!==null&&(ge(e,t,l),Pi(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Re(),l=Bn(n);l.tag=2,e!=null&&(l.callback=e),e=Un(t,l,n),e!==null&&(ge(e,t,n),Pi(e,t,n))}};function Xh(t,e,n,l,o,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,h):e.prototype&&e.prototype.isPureReactComponent?!Gi(n,l)||!Gi(o,u):!0}function Kh(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&au.enqueueReplaceState(e,e.state,null)}function Sa(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var o in t)n[o]===void 0&&(n[o]=t[o])}return n}function Qh(t){ls(t)}function Zh(t){console.error(t)}function kh(t){ls(t)}function Ds(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Jh(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function iu(t,e,n){return n=Bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ds(t,e)},n}function Ph(t){return t=Bn(t),t.tag=3,t}function Fh(t,e,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;t.payload=function(){return o(u)},t.callback=function(){Jh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Jh(e,n,l),typeof o!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function JS(t,e,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Qa(e,n,o,!0),n=Ee.current,n!==null){switch(n.tag){case 31:case 13:return Be===null?qs():n.alternate===null&&Ut===0&&(Ut=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===ps?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),wu(t,l,o)),!1;case 22:return n.flags|=65536,l===ps?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),wu(t,l,o)),!1}throw Error(r(435,n.tag))}return wu(t,l,o),qs(),!1}if(vt)return e=Ee.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==Eo&&(t=Error(r(422),{cause:l}),Ki(ze(t,n)))):(l!==Eo&&(e=Error(r(423),{cause:l}),Ki(ze(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=ze(l,n),o=iu(t.stateNode,l,o),Vo(t,o),Ut!==4&&(Ut=2)),!1;var u=Error(r(520),{cause:l});if(u=ze(u,n),ul===null?ul=[u]:ul.push(u),Ut!==4&&(Ut=2),e===null)return!0;l=ze(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=iu(n.stateNode,l,t),Vo(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Xn===null||!Xn.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Ph(o),Fh(o,t,n,l),Vo(n,o),!1}n=n.return}while(n!==null);return!1}var lu=Error(r(461)),kt=!1;function ae(t,e,n,l){e.child=t===null?th(e,null,n,l):ga(e,t.child,n,l)}function Wh(t,e,n,l,o){n=n.render;var u=e.ref;if("ref"in l){var h={};for(var S in l)S!=="ref"&&(h[S]=l[S])}else h=l;return ha(e),l=qo(t,e,n,h,u,o),S=Go(),t!==null&&!kt?(Yo(t,e,o),yn(t,e,o)):(vt&&S&&bo(e),e.flags|=1,ae(t,e,l,o),e.child)}function $h(t,e,n,l,o){if(t===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Ih(t,e,u,l,o)):(t=us(n.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!hu(t,o)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(h,l)&&t.ref===e.ref)return yn(t,e,o)}return e.flags|=1,t=cn(u,l),t.ref=e.ref,t.return=e,e.child=t}function Ih(t,e,n,l,o){if(t!==null){var u=t.memoizedProps;if(Gi(u,l)&&t.ref===e.ref)if(kt=!1,e.pendingProps=l=u,hu(t,o))(t.flags&131072)!==0&&(kt=!0);else return e.lanes=t.lanes,yn(t,e,o)}return su(t,e,n,l,o)}function tm(t,e,n,l){var o=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,e.child=null;return em(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&hs(e,u!==null?u.cachePool:null),u!==null?ah(e,u):Bo(),ih(e);else return l=e.lanes=536870912,em(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(hs(e,u.cachePool),ah(e,u),Hn(),e.memoizedState=null):(t!==null&&hs(e,null),Bo(),Hn());return ae(t,e,o,n),e.child}function nl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function em(t,e,n,l,o){var u=jo();return u=u===null?null:{parent:Qt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&hs(e,null),Bo(),ih(e),t!==null&&Qa(t,e,l,!0),e.childLanes=o,null}function ws(t,e){return e=Ns({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function nm(t,e,n){return ga(e,t.child,null,n),t=ws(e,e.pendingProps),t.flags|=2,Ae(e),e.memoizedState=null,t}function PS(t,e,n){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(l.mode==="hidden")return t=ws(e,l),e.lanes=536870912,nl(null,t);if(Lo(e),(t=Nt)?(t=mp(t,_e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Hd(t),n.return=e,e.child=n,ee=e,Nt=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return ws(e,l)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(Lo(e),o)if(e.flags&256)e.flags&=-257,e=nm(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(kt||Qa(t,e,n,!1),o=(n&t.childLanes)!==0,kt||o){if(l=wt,l!==null&&(h=Zf(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,ua(t,h),ge(l,t,h),lu;qs(),e=nm(t,e,n)}else t=u.treeContext,Nt=Ue(h.nextSibling),ee=e,vt=!0,zn=null,_e=!1,t!==null&&Yd(e,t),e=ws(e,l),e.flags|=4096;return e}return t=cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function js(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function su(t,e,n,l,o){return ha(e),n=qo(t,e,n,l,void 0,o),l=Go(),t!==null&&!kt?(Yo(t,e,o),yn(t,e,o)):(vt&&l&&bo(e),e.flags|=1,ae(t,e,n,o),e.child)}function am(t,e,n,l,o,u){return ha(e),e.updateQueue=null,n=sh(e,l,n,o),lh(t),l=Go(),t!==null&&!kt?(Yo(t,e,u),yn(t,e,u)):(vt&&l&&bo(e),e.flags|=1,ae(t,e,n,u),e.child)}function im(t,e,n,l,o){if(ha(e),e.stateNode===null){var u=Ga,h=n.contextType;typeof h=="object"&&h!==null&&(u=ne(h)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=au,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},zo(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?ne(h):Ga,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(nu(e,n,h,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&au.enqueueReplaceState(u,u.state,null),Wi(e,l,u,o),Fi(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var S=e.memoizedProps,T=Sa(n,S);u.props=T;var N=u.context,q=n.contextType;h=Ga,typeof q=="object"&&q!==null&&(h=ne(q));var X=n.getDerivedStateFromProps;q=typeof X=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||N!==h)&&Kh(e,u,l,h),_n=!1;var z=e.memoizedState;u.state=z,Wi(e,l,u,o),Fi(),N=e.memoizedState,S||z!==N||_n?(typeof X=="function"&&(nu(e,n,X,l),N=e.memoizedState),(T=_n||Xh(e,n,T,l,z,N,h))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=N),u.props=l,u.state=N,u.context=h,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,Oo(t,e),h=e.memoizedProps,q=Sa(n,h),u.props=q,X=e.pendingProps,z=u.context,N=n.contextType,T=Ga,typeof N=="object"&&N!==null&&(T=ne(N)),S=n.getDerivedStateFromProps,(N=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==X||z!==T)&&Kh(e,u,l,T),_n=!1,z=e.memoizedState,u.state=z,Wi(e,l,u,o),Fi();var V=e.memoizedState;h!==X||z!==V||_n||t!==null&&t.dependencies!==null&&fs(t.dependencies)?(typeof S=="function"&&(nu(e,n,S,l),V=e.memoizedState),(q=_n||Xh(e,n,q,l,z,V,T)||t!==null&&t.dependencies!==null&&fs(t.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,V,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,V,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=V),u.props=l,u.state=V,u.context=T,l=q):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,js(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=ga(e,t.child,null,o),e.child=ga(e,null,n,o)):ae(t,e,n,o),e.memoizedState=u.state,t=e.child):t=yn(t,e,o),t}function lm(t,e,n,l){return fa(),e.flags|=256,ae(t,e,n,l),e.child}var ru={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ou(t){return{baseLanes:t,cachePool:Jd()}}function uu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ce),t}function sm(t,e,n){var l=e.pendingProps,o=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),h&&(o=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(o?Ln(e):Hn(),(t=Nt)?(t=mp(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=Hd(t),n.return=e,e.child=n,ee=e,Nt=null)):t=null,t===null)throw On(e);return Qu(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,o?(Hn(),o=e.mode,S=Ns({mode:"hidden",children:S},o),l=ca(l,o,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=ou(n),l.childLanes=uu(t,h,n),e.memoizedState=ru,nl(null,l)):(Ln(e),cu(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(u)e.flags&256?(Ln(e),e.flags&=-257,e=fu(t,e,n)):e.memoizedState!==null?(Hn(),e.child=t.child,e.flags|=128,e=null):(Hn(),S=l.fallback,o=e.mode,l=Ns({mode:"visible",children:l.children},o),S=ca(S,o,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,ga(e,t.child,null,n),l=e.child,l.memoizedState=ou(n),l.childLanes=uu(t,h,n),e.memoizedState=ru,e=nl(null,l));else if(Ln(e),Qu(S)){if(h=S.nextSibling&&S.nextSibling.dataset,h)var N=h.dgst;h=N,l=Error(r(419)),l.stack="",l.digest=h,Ki({value:l,source:null,stack:null}),e=fu(t,e,n)}else if(kt||Qa(t,e,n,!1),h=(n&t.childLanes)!==0,kt||h){if(h=wt,h!==null&&(l=Zf(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ua(t,l),ge(h,t,l),lu;Ku(S)||qs(),e=fu(t,e,n)}else Ku(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Nt=Ue(S.nextSibling),ee=e,vt=!0,zn=null,_e=!1,t!==null&&Yd(e,t),e=cu(e,l.children),e.flags|=4096);return e}return o?(Hn(),S=l.fallback,o=e.mode,T=t.child,N=T.sibling,l=cn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,N!==null?S=cn(N,S):(S=ca(S,o,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,nl(null,l),l=e.child,S=t.child.memoizedState,S===null?S=ou(n):(o=S.cachePool,o!==null?(T=Qt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Jd(),S={baseLanes:S.baseLanes|n,cachePool:o}),l.memoizedState=S,l.childLanes=uu(t,h,n),e.memoizedState=ru,nl(t.child,l)):(Ln(e),n=t.child,t=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function cu(t,e){return e=Ns({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ns(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function fu(t,e,n){return ga(e,t.child,null,n),t=cu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function rm(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Co(t.return,e,n)}function du(t,e,n,l,o,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=o,h.treeForkCount=u)}function om(t,e,n){var l=e.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var h=Xt.current,S=(h&2)!==0;if(S?(h=h&1|2,e.flags|=128):h&=1,k(Xt,h),ae(t,e,l,n),l=vt?Xi:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rm(t,n,e);else if(t.tag===19)rm(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&Ss(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),du(e,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Ss(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}du(e,!0,n,null,u,l);break;case"together":du(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function yn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Yn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Qa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function hu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&fs(t)))}function FS(t,e,n){switch(e.tag){case 3:Gt(e,e.stateNode.containerInfo),Vn(e,Qt,t.memoizedState.cache),fa();break;case 27:case 5:Di(e);break;case 4:Gt(e,e.stateNode.containerInfo);break;case 10:Vn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Lo(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?sm(t,e,n):(Ln(e),t=yn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var o=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Qa(t,e,n,!1),l=(n&e.childLanes)!==0),o){if(l)return om(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(Xt,Xt.current),l)break;return null;case 22:return e.lanes=0,tm(t,e,n,e.pendingProps);case 24:Vn(e,Qt,t.memoizedState.cache)}return yn(t,e,n)}function um(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)kt=!0;else{if(!hu(t,n)&&(e.flags&128)===0)return kt=!1,FS(t,e,n);kt=(t.flags&131072)!==0}else kt=!1,vt&&(e.flags&1048576)!==0&&Gd(e,Xi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=pa(e.elementType),e.type=t,typeof t=="function")vo(t)?(l=Sa(t,l),e.tag=1,e=im(null,e,t,l,n)):(e.tag=0,e=su(null,e,t,l,n));else{if(t!=null){var o=t.$$typeof;if(o===F){e.tag=11,e=Wh(null,e,t,l,n);break t}else if(o===J){e.tag=14,e=$h(null,e,t,l,n);break t}}throw e=qt(t)||t,Error(r(306,e,""))}}return e;case 0:return su(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,o=Sa(l,e.pendingProps),im(t,e,l,o,n);case 3:t:{if(Gt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var u=e.memoizedState;o=u.element,Oo(t,e),Wi(e,l,null,n);var h=e.memoizedState;if(l=h.cache,Vn(e,Qt,l),l!==u.cache&&Ro(e,[Qt],n,!0),Fi(),l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=lm(t,e,l,n);break t}else if(l!==o){o=ze(Error(r(424)),e),Ki(o),e=lm(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Nt=Ue(t.firstChild),ee=e,vt=!0,zn=null,_e=!0,n=th(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),l===o){e=yn(t,e,n);break t}ae(t,e,l,n)}e=e.child}return e;case 26:return js(t,e),t===null?(n=xp(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,l=ks(nt.current).createElement(n),l[te]=e,l[fe]=t,ie(l,n,t),$t(l),e.stateNode=l):e.memoizedState=xp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Di(e),t===null&&vt&&(l=e.stateNode=gp(e.type,e.pendingProps,nt.current),ee=e,_e=!0,o=Nt,kn(e.type)?(Zu=o,Nt=Ue(l.firstChild)):Nt=o),ae(t,e,e.pendingProps.children,n),js(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((o=l=Nt)&&(l=Cx(l,e.type,e.pendingProps,_e),l!==null?(e.stateNode=l,ee=e,Nt=Ue(l.firstChild),_e=!1,o=!0):o=!1),o||On(e)),Di(e),o=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,l=u.children,Gu(o,u)?l=null:h!==null&&Gu(o,h)&&(e.flags|=32),e.memoizedState!==null&&(o=qo(t,e,GS,null,null,n),gl._currentValue=o),js(t,e),ae(t,e,l,n),e.child;case 6:return t===null&&vt&&((t=n=Nt)&&(n=Rx(n,e.pendingProps,_e),n!==null?(e.stateNode=n,ee=e,Nt=null,t=!0):t=!1),t||On(e)),null;case 13:return sm(t,e,n);case 4:return Gt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ga(e,null,l,n):ae(t,e,l,n),e.child;case 11:return Wh(t,e,e.type,e.pendingProps,n);case 7:return ae(t,e,e.pendingProps,n),e.child;case 8:return ae(t,e,e.pendingProps.children,n),e.child;case 12:return ae(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Vn(e,e.type,l.value),ae(t,e,l.children,n),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,ha(e),o=ne(o),l=l(o),e.flags|=1,ae(t,e,l,n),e.child;case 14:return $h(t,e,e.type,e.pendingProps,n);case 15:return Ih(t,e,e.type,e.pendingProps,n);case 19:return om(t,e,n);case 31:return PS(t,e,n);case 22:return tm(t,e,n,e.pendingProps);case 24:return ha(e),l=ne(Qt),t===null?(o=jo(),o===null&&(o=wt,u=Do(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),e.memoizedState={parent:l,cache:o},zo(e),Vn(e,Qt,o)):((t.lanes&n)!==0&&(Oo(t,e),Wi(e,null,null,n),Fi()),o=t.memoizedState,u=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Vn(e,Qt,l)):(l=u.cache,Vn(e,Qt,l),l!==o.cache&&Ro(e,[Qt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function gn(t){t.flags|=4}function mu(t,e,n,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Bm())t.flags|=8192;else throw ya=ps,No}else t.flags&=-16777217}function cm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Mp(e))if(Bm())t.flags|=8192;else throw ya=ps,No}function zs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Xf():536870912,t.lanes|=e,ai|=e)}function al(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function WS(t,e,n){var l=e.pendingProps;switch(To(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),hn(Qt),Yt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ka(e)?gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ao())),zt(e),null;case 26:var o=e.type,u=e.memoizedState;return t===null?(gn(e),u!==null?(zt(e),cm(e,u)):(zt(e),mu(e,o,null,l,n))):u?u!==t.memoizedState?(gn(e),zt(e),cm(e,u)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&gn(e),zt(e),mu(e,o,t,l,n)),null;case 27:if(Xl(e),n=nt.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return zt(e),null}t=K.current,Ka(e)?Xd(e):(t=gp(o,l,n),e.stateNode=t,gn(e))}return zt(e),null;case 5:if(Xl(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return zt(e),null}if(u=K.current,Ka(e))Xd(e);else{var h=ks(nt.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}u[te]=e,u[fe]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(ie(u,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&gn(e)}}return zt(e),mu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=nt.current,Ka(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,o=ee,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[te]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||sp(t.nodeValue,n)),t||On(e,!0)}else t=ks(t).createTextNode(l),t[te]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ka(e),n!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[te]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=Ao(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(r(558))}return zt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Ka(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[te]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),o=!1}else o=Ao(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),zs(e,e.updateQueue),zt(e),null);case 4:return Yt(),t===null&&Bu(e.stateNode.containerInfo),zt(e),null;case 10:return hn(e.type),zt(e),null;case 19:if(U(Xt),l=e.memoizedState,l===null)return zt(e),null;if(o=(e.flags&128)!==0,u=l.rendering,u===null)if(o)al(l,!1);else{if(Ut!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ss(t),u!==null){for(e.flags|=128,al(l,!1),t=u.updateQueue,e.updateQueue=t,zs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Ld(n,t),n=n.sibling;return k(Xt,Xt.current&1|2),vt&&fn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ve()>Us&&(e.flags|=128,o=!0,al(l,!1),e.lanes=4194304)}else{if(!o)if(t=Ss(u),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,zs(e,t),al(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!vt)return zt(e),null}else 2*ve()-l.renderingStartTime>Us&&n!==536870912&&(e.flags|=128,o=!0,al(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,n=Xt.current,k(Xt,o?n&1|2:n&1),vt&&fn(e,l.treeForkCount),t):(zt(e),null);case 22:case 23:return Ae(e),Uo(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&zs(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&U(ma),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),hn(Qt),zt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function $S(t,e){switch(To(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hn(Qt),Yt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Xl(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(r(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Xt),null;case 4:return Yt(),null;case 10:return hn(e.type),null;case 22:case 23:return Ae(e),Uo(),t!==null&&U(ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return hn(Qt),null;case 25:return null;default:return null}}function fm(t,e){switch(To(e),e.tag){case 3:hn(Qt),Yt();break;case 26:case 27:case 5:Xl(e);break;case 4:Yt();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:U(Xt);break;case 10:hn(e.type);break;case 22:case 23:Ae(e),Uo(),t!==null&&U(ma);break;case 24:hn(Qt)}}function il(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&t)===t){l=void 0;var u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==o)}}catch(S){Mt(e,e.return,S)}}function qn(t,e,n){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&t)===t){var h=l.inst,S=h.destroy;if(S!==void 0){h.destroy=void 0,o=e;var T=n,N=S;try{N()}catch(q){Mt(o,T,q)}}}l=l.next}while(l!==u)}}catch(q){Mt(e,e.return,q)}}function dm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{nh(e,n)}catch(l){Mt(t,t.return,l)}}}function hm(t,e,n){n.props=Sa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Mt(t,e,l)}}function ll(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(o){Mt(t,e,o)}}function $e(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){Mt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Mt(t,e,o)}else n.current=null}function mm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){Mt(t,t.return,o)}}function pu(t,e,n){try{var l=t.stateNode;xx(l,t.type,n,e),l[fe]=e}catch(o){Mt(t,t.return,o)}}function pm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&kn(t.type)||t.tag===4}function yu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||pm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&kn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function gu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=on));else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(gu(t,e,n),t=t.sibling;t!==null;)gu(t,e,n),t=t.sibling}function Os(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Os(t,e,n),t=t.sibling;t!==null;)Os(t,e,n),t=t.sibling}function ym(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);ie(e,l,n),e[te]=t,e[fe]=n}catch(u){Mt(t,t.return,u)}}var vn=!1,Jt=!1,vu=!1,gm=typeof WeakSet=="function"?WeakSet:Set,It=null;function IS(t,e){if(t=t.containerInfo,Hu=tr,t=wd(t),co(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,S=-1,T=-1,N=0,q=0,X=t,z=null;e:for(;;){for(var V;X!==n||o!==0&&X.nodeType!==3||(S=h+o),X!==u||l!==0&&X.nodeType!==3||(T=h+l),X.nodeType===3&&(h+=X.nodeValue.length),(V=X.firstChild)!==null;)z=X,X=V;for(;;){if(X===t)break e;if(z===n&&++N===o&&(S=h),z===u&&++q===l&&(T=h),(V=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=V}n=S===-1||T===-1?null:{start:S,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(qu={focusedElem:t,selectionRange:n},tr=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)o=t[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var $=Sa(n.type,o);t=l.getSnapshotBeforeUpdate($,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Mt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Xu(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Xu(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,It=t;break}It=e.return}}function vm(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:xn(t,n),l&4&&il(5,n);break;case 1:if(xn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Mt(n,n.return,h)}else{var o=Sa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Mt(n,n.return,h)}}l&64&&dm(n),l&512&&ll(n,n.return);break;case 3:if(xn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{nh(t,e)}catch(h){Mt(n,n.return,h)}}break;case 27:e===null&&l&4&&ym(n);case 26:case 5:xn(t,n),e===null&&l&4&&mm(n),l&512&&ll(n,n.return);break;case 12:xn(t,n);break;case 31:xn(t,n),l&4&&bm(t,n);break;case 13:xn(t,n),l&4&&Tm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=ox.bind(null,n),Dx(t,n))));break;case 22:if(l=n.memoizedState!==null||vn,!l){e=e!==null&&e.memoizedState!==null||Jt,o=vn;var u=Jt;vn=l,(Jt=e)&&!u?bn(t,n,(n.subtreeFlags&8772)!==0):xn(t,n),vn=o,Jt=u}break;case 30:break;default:xn(t,n)}}function Sm(t){var e=t.alternate;e!==null&&(t.alternate=null,Sm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&kr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ot=null,he=!1;function Sn(t,e,n){for(n=n.child;n!==null;)xm(t,e,n),n=n.sibling}function xm(t,e,n){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(wi,n)}catch{}switch(n.tag){case 26:Jt||$e(n,e),Sn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||$e(n,e);var l=Ot,o=he;kn(n.type)&&(Ot=n.stateNode,he=!1),Sn(t,e,n),ml(n.stateNode),Ot=l,he=o;break;case 5:Jt||$e(n,e);case 6:if(l=Ot,o=he,Ot=null,Sn(t,e,n),Ot=l,he=o,Ot!==null)if(he)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(n.stateNode)}catch(u){Mt(n,e,u)}else try{Ot.removeChild(n.stateNode)}catch(u){Mt(n,e,u)}break;case 18:Ot!==null&&(he?(t=Ot,dp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),fi(t)):dp(Ot,n.stateNode));break;case 4:l=Ot,o=he,Ot=n.stateNode.containerInfo,he=!0,Sn(t,e,n),Ot=l,he=o;break;case 0:case 11:case 14:case 15:qn(2,n,e),Jt||qn(4,n,e),Sn(t,e,n);break;case 1:Jt||($e(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&hm(n,e,l)),Sn(t,e,n);break;case 21:Sn(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,Sn(t,e,n),Jt=l;break;default:Sn(t,e,n)}}function bm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{fi(t)}catch(n){Mt(e,e.return,n)}}}function Tm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{fi(t)}catch(n){Mt(e,e.return,n)}}function tx(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new gm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new gm),e;default:throw Error(r(435,t.tag))}}function Vs(t,e){var n=tx(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var o=ux.bind(null,t,l);l.then(o,o)}})}function me(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=t,h=e,S=h;t:for(;S!==null;){switch(S.tag){case 27:if(kn(S.type)){Ot=S.stateNode,he=!1;break t}break;case 5:Ot=S.stateNode,he=!1;break t;case 3:case 4:Ot=S.stateNode.containerInfo,he=!0;break t}S=S.return}if(Ot===null)throw Error(r(160));xm(u,h,o),Ot=null,he=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Em(e,t),e=e.sibling}var Ye=null;function Em(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:me(e,t),pe(t),l&4&&(qn(3,t,t.return),il(3,t),qn(5,t,t.return));break;case 1:me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),l&64&&vn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=Ye;if(me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[zi]||u[te]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),ie(u,l,n),u[te]=t,$t(u),l=u;break t;case"link":var h=Ep("link","href",o).get(l+(n.href||""));if(h){for(var S=0;S<h.length;S++)if(u=h[S],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(S,1);break e}}u=o.createElement(l),ie(u,l,n),o.head.appendChild(u);break;case"meta":if(h=Ep("meta","content",o).get(l+(n.content||""))){for(S=0;S<h.length;S++)if(u=h[S],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(S,1);break e}}u=o.createElement(l),ie(u,l,n),o.head.appendChild(u);break;default:throw Error(r(468,l))}u[te]=t,$t(u),l=u}t.stateNode=l}else Ap(o,t.type,t.stateNode);else t.stateNode=Tp(o,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Ap(o,t.type,t.stateNode):Tp(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&pu(t,t.memoizedProps,n.memoizedProps)}break;case 27:me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),n!==null&&l&4&&pu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(me(e,t),pe(t),l&512&&(Jt||n===null||$e(n,n.return)),t.flags&32){o=t.stateNode;try{Va(o,"")}catch($){Mt(t,t.return,$)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,pu(t,o,n!==null?n.memoizedProps:o)),l&1024&&(vu=!0);break;case 6:if(me(e,t),pe(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){Mt(t,t.return,$)}}break;case 3:if(Fs=null,o=Ye,Ye=Js(e.containerInfo),me(e,t),Ye=o,pe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{fi(e.containerInfo)}catch($){Mt(t,t.return,$)}vu&&(vu=!1,Am(t));break;case 4:l=Ye,Ye=Js(t.stateNode.containerInfo),me(e,t),pe(t),Ye=l;break;case 12:me(e,t),pe(t);break;case 31:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(t,l)));break;case 13:me(e,t),pe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bs=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(t,l)));break;case 22:o=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,N=vn,q=Jt;if(vn=N||o,Jt=q||T,me(e,t),Jt=q,vn=N,pe(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(n===null||T||vn||Jt||xa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{S=T.stateNode;var X=T.memoizedProps.style,z=X!=null&&X.hasOwnProperty("display")?X.display:null;S.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch($){Mt(T,T.return,$)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch($){Mt(T,T.return,$)}}}else if(e.tag===18){if(n===null){T=e;try{var V=T.stateNode;o?hp(V,!0):hp(T.stateNode,!1)}catch($){Mt(T,T.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Vs(t,n))));break;case 19:me(e,t),pe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Vs(t,l)));break;case 30:break;case 21:break;default:me(e,t),pe(t)}}function pe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(pm(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=yu(t);Os(t,u,o);break;case 5:var h=n.stateNode;n.flags&32&&(Va(h,""),n.flags&=-33);var S=yu(t);Os(t,S,h);break;case 3:case 4:var T=n.stateNode.containerInfo,N=yu(t);gu(t,N,T);break;default:throw Error(r(161))}}catch(q){Mt(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Am(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Am(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function xn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)vm(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:qn(4,e,e.return),xa(e);break;case 1:$e(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&hm(e,e.return,n),xa(e);break;case 27:ml(e.stateNode);case 26:case 5:$e(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function bn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:bn(o,u,n),il(4,u);break;case 1:if(bn(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Mt(l,l.return,N)}if(l=u,o=l.updateQueue,o!==null){var S=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)eh(T[o],S)}catch(N){Mt(l,l.return,N)}}n&&h&64&&dm(u),ll(u,u.return);break;case 27:ym(u);case 26:case 5:bn(o,u,n),n&&l===null&&h&4&&mm(u),ll(u,u.return);break;case 12:bn(o,u,n);break;case 31:bn(o,u,n),n&&h&4&&bm(o,u);break;case 13:bn(o,u,n),n&&h&4&&Tm(o,u);break;case 22:u.memoizedState===null&&bn(o,u,n),ll(u,u.return);break;case 30:break;default:bn(o,u,n)}e=e.sibling}}function Su(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Qi(n))}function xu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Qi(t))}function Xe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mm(t,e,n,l),e=e.sibling}function Mm(t,e,n,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,l),o&2048&&il(9,e);break;case 1:Xe(t,e,n,l);break;case 3:Xe(t,e,n,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Qi(t)));break;case 12:if(o&2048){Xe(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,S=u.onPostCommit;typeof S=="function"&&S(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Mt(e,e.return,T)}}else Xe(t,e,n,l);break;case 31:Xe(t,e,n,l);break;case 13:Xe(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?Xe(t,e,n,l):sl(t,e):u._visibility&2?Xe(t,e,n,l):(u._visibility|=2,ti(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Su(h,e);break;case 24:Xe(t,e,n,l),o&2048&&xu(e.alternate,e);break;default:Xe(t,e,n,l)}}function ti(t,e,n,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,S=n,T=l,N=h.flags;switch(h.tag){case 0:case 11:case 15:ti(u,h,S,T,o),il(8,h);break;case 23:break;case 22:var q=h.stateNode;h.memoizedState!==null?q._visibility&2?ti(u,h,S,T,o):sl(u,h):(q._visibility|=2,ti(u,h,S,T,o)),o&&N&2048&&Su(h.alternate,h);break;case 24:ti(u,h,S,T,o),o&&N&2048&&xu(h.alternate,h);break;default:ti(u,h,S,T,o)}e=e.sibling}}function sl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,o=l.flags;switch(l.tag){case 22:sl(n,l),o&2048&&Su(l.alternate,l);break;case 24:sl(n,l),o&2048&&xu(l.alternate,l);break;default:sl(n,l)}e=e.sibling}}var rl=8192;function ei(t,e,n){if(t.subtreeFlags&rl)for(t=t.child;t!==null;)Cm(t,e,n),t=t.sibling}function Cm(t,e,n){switch(t.tag){case 26:ei(t,e,n),t.flags&rl&&t.memoizedState!==null&&qx(n,Ye,t.memoizedState,t.memoizedProps);break;case 5:ei(t,e,n);break;case 3:case 4:var l=Ye;Ye=Js(t.stateNode.containerInfo),ei(t,e,n),Ye=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=rl,rl=16777216,ei(t,e,n),rl=l):ei(t,e,n));break;default:ei(t,e,n)}}function Rm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ol(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];It=l,wm(l,t)}Rm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dm(t),t=t.sibling}function Dm(t){switch(t.tag){case 0:case 11:case 15:ol(t),t.flags&2048&&qn(9,t,t.return);break;case 3:ol(t);break;case 12:ol(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,_s(t)):ol(t);break;default:ol(t)}}function _s(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];It=l,wm(l,t)}Rm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:qn(8,e,e.return),_s(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,_s(e));break;default:_s(e)}t=t.sibling}}function wm(t,e){for(;It!==null;){var n=It;switch(n.tag){case 0:case 11:case 15:qn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Qi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,It=l;else t:for(n=t;It!==null;){l=It;var o=l.sibling,u=l.return;if(Sm(l),l===n){It=null;break t}if(o!==null){o.return=u,It=o;break t}It=u}}}var ex={getCacheForType:function(t){var e=ne(Qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ne(Qt).controller.signal}},nx=typeof WeakMap=="function"?WeakMap:Map,Et=0,wt=null,dt=null,mt=0,At=0,Me=null,Gn=!1,ni=!1,bu=!1,Tn=0,Ut=0,Yn=0,ba=0,Tu=0,Ce=0,ai=0,ul=null,ye=null,Eu=!1,Bs=0,jm=0,Us=1/0,Ls=null,Xn=null,Ft=0,Kn=null,ii=null,En=0,Au=0,Mu=null,Nm=null,cl=0,Cu=null;function Re(){return(Et&2)!==0&&mt!==0?mt&-mt:L.T!==null?zu():kf()}function zm(){if(Ce===0)if((mt&536870912)===0||vt){var t=Zl;Zl<<=1,(Zl&3932160)===0&&(Zl=262144),Ce=t}else Ce=536870912;return t=Ee.current,t!==null&&(t.flags|=32),Ce}function ge(t,e,n){(t===wt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(li(t,0),Qn(t,mt,Ce,!1)),Ni(t,n),((Et&2)===0||t!==wt)&&(t===wt&&((Et&2)===0&&(ba|=n),Ut===4&&Qn(t,mt,Ce,!1)),Ie(t))}function Om(t,e,n){if((Et&6)!==0)throw Error(r(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ji(t,e),o=l?lx(t,e):Du(t,e,!0),u=l;do{if(o===0){ni&&!l&&Qn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!ax(n)){o=Du(t,e,!1),u=!1;continue}if(o===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var S=t;o=ul;var T=S.current.memoizedState.isDehydrated;if(T&&(li(S,h).flags|=256),h=Du(S,h,!1),h!==2){if(bu&&!T){S.errorRecoveryDisabledLanes|=u,ba|=u,o=4;break t}u=ye,ye=o,u!==null&&(ye===null?ye=u:ye.push.apply(ye,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){li(t,0),Qn(t,e,0,!0);break}t:{switch(l=t,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Qn(l,e,Ce,!Gn);break t;case 2:ye=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Bs+300-ve(),10<o)){if(Qn(l,e,Ce,!Gn),Jl(l,0,!0)!==0)break t;En=e,l.timeoutHandle=cp(Vm.bind(null,l,n,ye,Ls,Eu,e,Ce,ba,ai,Gn,u,"Throttled",-0,0),o);break t}Vm(l,n,ye,Ls,Eu,e,Ce,ba,ai,Gn,u,null,-0,0)}}break}while(!0);Ie(t)}function Vm(t,e,n,l,o,u,h,S,T,N,q,X,z,V){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Cm(e,u,X);var $=(u&62914560)===u?Bs-ve():(u&4194048)===u?jm-ve():0;if($=Gx(X,$),$!==null){En=u,t.cancelPendingCommit=$(Ym.bind(null,t,e,u,n,l,o,h,S,T,q,X,null,z,V)),Qn(t,u,h,!N);return}}Ym(t,e,u,n,l,o,h,S,T)}function ax(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!be(u(),o))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Qn(t,e,n,l){e&=~Tu,e&=~ba,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var u=31-xe(o),h=1<<u;l[u]=-1,o&=~h}n!==0&&Kf(t,n,e)}function Hs(){return(Et&6)===0?(fl(0),!1):!0}function Ru(){if(dt!==null){if(At===0)var t=dt.return;else t=dt,dn=da=null,Xo(t),Pa=null,ki=0,t=dt;for(;t!==null;)fm(t.alternate,t),t=t.return;dt=null}}function li(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Ex(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),En=0,Ru(),wt=t,dt=n=cn(t.current,null),mt=e,At=0,Me=null,Gn=!1,ni=ji(t,e),bu=!1,ai=Ce=Tu=ba=Yn=Ut=0,ye=ul=null,Eu=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-xe(l),u=1<<o;e|=t[o],l&=~u}return Tn=e,ss(),n}function _m(t,e){ct=null,L.H=el,e===Ja||e===ms?(e=Wd(),At=3):e===No?(e=Wd(),At=4):At=e===lu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Me=e,dt===null&&(Ut=1,Ds(t,ze(e,t.current)))}function Bm(){var t=Ee.current;return t===null?!0:(mt&4194048)===mt?Be===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Be:!1}function Um(){var t=L.H;return L.H=el,t===null?el:t}function Lm(){var t=L.A;return L.A=ex,t}function qs(){Ut=4,Gn||(mt&4194048)!==mt&&Ee.current!==null||(ni=!0),(Yn&134217727)===0&&(ba&134217727)===0||wt===null||Qn(wt,mt,Ce,!1)}function Du(t,e,n){var l=Et;Et|=2;var o=Um(),u=Lm();(wt!==t||mt!==e)&&(Ls=null,li(t,e)),e=!1;var h=Ut;t:do try{if(At!==0&&dt!==null){var S=dt,T=Me;switch(At){case 8:Ru(),h=6;break t;case 3:case 2:case 9:case 6:Ee.current===null&&(e=!0);var N=At;if(At=0,Me=null,si(t,S,T,N),n&&ni){h=0;break t}break;default:N=At,At=0,Me=null,si(t,S,T,N)}}ix(),h=Ut;break}catch(q){_m(t,q)}while(!0);return e&&t.shellSuspendCounter++,dn=da=null,Et=l,L.H=o,L.A=u,dt===null&&(wt=null,mt=0,ss()),h}function ix(){for(;dt!==null;)Hm(dt)}function lx(t,e){var n=Et;Et|=2;var l=Um(),o=Lm();wt!==t||mt!==e?(Ls=null,Us=ve()+500,li(t,e)):ni=ji(t,e);t:do try{if(At!==0&&dt!==null){e=dt;var u=Me;e:switch(At){case 1:At=0,Me=null,si(t,e,u,1);break;case 2:case 9:if(Pd(u)){At=0,Me=null,qm(e);break}e=function(){At!==2&&At!==9||wt!==t||(At=7),Ie(t)},u.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Pd(u)?(At=0,Me=null,qm(e)):(At=0,Me=null,si(t,e,u,7));break;case 5:var h=null;switch(dt.tag){case 26:h=dt.memoizedState;case 5:case 27:var S=dt;if(h?Mp(h):S.stateNode.complete){At=0,Me=null;var T=S.sibling;if(T!==null)dt=T;else{var N=S.return;N!==null?(dt=N,Gs(N)):dt=null}break e}}At=0,Me=null,si(t,e,u,5);break;case 6:At=0,Me=null,si(t,e,u,6);break;case 8:Ru(),Ut=6;break t;default:throw Error(r(462))}}sx();break}catch(q){_m(t,q)}while(!0);return dn=da=null,L.H=l,L.A=o,Et=n,dt!==null?0:(wt=null,mt=0,ss(),Ut)}function sx(){for(;dt!==null&&!w0();)Hm(dt)}function Hm(t){var e=um(t.alternate,t,Tn);t.memoizedProps=t.pendingProps,e===null?Gs(t):dt=e}function qm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=am(n,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=am(n,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Xo(e);default:fm(n,e),e=dt=Ld(e,Tn),e=um(n,e,Tn)}t.memoizedProps=t.pendingProps,e===null?Gs(t):dt=e}function si(t,e,n,l){dn=da=null,Xo(e),Pa=null,ki=0;var o=e.return;try{if(JS(t,o,e,n,mt)){Ut=1,Ds(t,ze(n,t.current)),dt=null;return}}catch(u){if(o!==null)throw dt=o,u;Ut=1,Ds(t,ze(n,t.current)),dt=null;return}e.flags&32768?(vt||l===1?t=!0:ni||(mt&536870912)!==0?t=!1:(Gn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ee.current,l!==null&&l.tag===13&&(l.flags|=16384))),Gm(e,t)):Gs(e)}function Gs(t){var e=t;do{if((e.flags&32768)!==0){Gm(e,Gn);return}t=e.return;var n=WS(e.alternate,e,Tn);if(n!==null){dt=n;return}if(e=e.sibling,e!==null){dt=e;return}dt=e=t}while(e!==null);Ut===0&&(Ut=5)}function Gm(t,e){do{var n=$S(t.alternate,t);if(n!==null){n.flags&=32767,dt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){dt=t;return}dt=t=n}while(t!==null);Ut=6,dt=null}function Ym(t,e,n,l,o,u,h,S,T){t.cancelPendingCommit=null;do Ys();while(Ft!==0);if((Et&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=yo,H0(t,n,u,h,S,T),t===wt&&(dt=wt=null,mt=0),ii=e,Kn=t,En=n,Au=u,Mu=o,Nm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,cx(Kl,function(){return km(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,o=O.p,O.p=2,h=Et,Et|=4;try{IS(t,e,n)}finally{Et=h,O.p=o,L.T=l}}Ft=1,Xm(),Km(),Qm()}}function Xm(){if(Ft===1){Ft=0;var t=Kn,e=ii,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var l=O.p;O.p=2;var o=Et;Et|=4;try{Em(e,t);var u=qu,h=wd(t.containerInfo),S=u.focusedElem,T=u.selectionRange;if(h!==S&&S&&S.ownerDocument&&Dd(S.ownerDocument.documentElement,S)){if(T!==null&&co(S)){var N=T.start,q=T.end;if(q===void 0&&(q=N),"selectionStart"in S)S.selectionStart=N,S.selectionEnd=Math.min(q,S.value.length);else{var X=S.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var V=z.getSelection(),$=S.textContent.length,st=Math.min(T.start,$),Dt=T.end===void 0?st:Math.min(T.end,$);!V.extend&&st>Dt&&(h=Dt,Dt=st,st=h);var C=Rd(S,st),M=Rd(S,Dt);if(C&&M&&(V.rangeCount!==1||V.anchorNode!==C.node||V.anchorOffset!==C.offset||V.focusNode!==M.node||V.focusOffset!==M.offset)){var j=X.createRange();j.setStart(C.node,C.offset),V.removeAllRanges(),st>Dt?(V.addRange(j),V.extend(M.node,M.offset)):(j.setEnd(M.node,M.offset),V.addRange(j))}}}}for(X=[],V=S;V=V.parentNode;)V.nodeType===1&&X.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<X.length;S++){var Y=X[S];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}tr=!!Hu,qu=Hu=null}finally{Et=o,O.p=l,L.T=n}}t.current=e,Ft=2}}function Km(){if(Ft===2){Ft=0;var t=Kn,e=ii,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var l=O.p;O.p=2;var o=Et;Et|=4;try{vm(t,e.alternate,e)}finally{Et=o,O.p=l,L.T=n}}Ft=3}}function Qm(){if(Ft===4||Ft===3){Ft=0,j0();var t=Kn,e=ii,n=En,l=Nm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ft=5:(Ft=0,ii=Kn=null,Zm(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(Xn=null),Qr(n),e=e.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(wi,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=L.T,o=O.p,O.p=2,L.T=null;try{for(var u=t.onRecoverableError,h=0;h<l.length;h++){var S=l[h];u(S.value,{componentStack:S.stack})}}finally{L.T=e,O.p=o}}(En&3)!==0&&Ys(),Ie(t),o=t.pendingLanes,(n&261930)!==0&&(o&42)!==0?t===Cu?cl++:(cl=0,Cu=t):cl=0,fl(0)}}function Zm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Qi(e)))}function Ys(){return Xm(),Km(),Qm(),km()}function km(){if(Ft!==5)return!1;var t=Kn,e=Au;Au=0;var n=Qr(En),l=L.T,o=O.p;try{O.p=32>n?32:n,L.T=null,n=Mu,Mu=null;var u=Kn,h=En;if(Ft=0,ii=Kn=null,En=0,(Et&6)!==0)throw Error(r(331));var S=Et;if(Et|=4,Dm(u.current),Mm(u,u.current,h,n),Et=S,fl(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(wi,u)}catch{}return!0}finally{O.p=o,L.T=l,Zm(t,e)}}function Jm(t,e,n){e=ze(n,e),e=iu(t.stateNode,e,2),t=Un(t,e,2),t!==null&&(Ni(t,2),Ie(t))}function Mt(t,e,n){if(t.tag===3)Jm(t,t,n);else for(;e!==null;){if(e.tag===3){Jm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xn===null||!Xn.has(l))){t=ze(n,t),n=Ph(2),l=Un(e,n,2),l!==null&&(Fh(n,l,e,t),Ni(l,2),Ie(l));break}}e=e.return}}function wu(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new nx;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(n)||(bu=!0,o.add(n),t=rx.bind(null,t,e,n),e.then(t,t))}function rx(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,wt===t&&(mt&n)===n&&(Ut===4||Ut===3&&(mt&62914560)===mt&&300>ve()-Bs?(Et&2)===0&&li(t,0):Tu|=n,ai===mt&&(ai=0)),Ie(t)}function Pm(t,e){e===0&&(e=Xf()),t=ua(t,e),t!==null&&(Ni(t,e),Ie(t))}function ox(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Pm(t,n)}function ux(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Pm(t,n)}function cx(t,e){return Gr(t,e)}var Xs=null,ri=null,ju=!1,Ks=!1,Nu=!1,Zn=0;function Ie(t){t!==ri&&t.next===null&&(ri===null?Xs=ri=t:ri=ri.next=t),Ks=!0,ju||(ju=!0,dx())}function fl(t,e){if(!Nu&&Ks){Nu=!0;do for(var n=!1,l=Xs;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var h=l.suspendedLanes,S=l.pingedLanes;u=(1<<31-xe(42|t)+1)-1,u&=o&~(h&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Im(l,u))}else u=mt,u=Jl(l,l===wt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||ji(l,u)||(n=!0,Im(l,u));l=l.next}while(n);Nu=!1}}function fx(){Fm()}function Fm(){Ks=ju=!1;var t=0;Zn!==0&&Tx()&&(t=Zn);for(var e=ve(),n=null,l=Xs;l!==null;){var o=l.next,u=Wm(l,e);u===0?(l.next=null,n===null?Xs=o:n.next=o,o===null&&(ri=n)):(n=l,(t!==0||(u&3)!==0)&&(Ks=!0)),l=o}Ft!==0&&Ft!==5||fl(t),Zn!==0&&(Zn=0)}function Wm(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-xe(u),S=1<<h,T=o[h];T===-1?((S&n)===0||(S&l)!==0)&&(o[h]=L0(S,e)):T<=e&&(t.expiredLanes|=S),u&=~S}if(e=wt,n=mt,n=Jl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Yr(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ji(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Yr(l),Qr(n)){case 2:case 8:n=Gf;break;case 32:n=Kl;break;case 268435456:n=Yf;break;default:n=Kl}return l=$m.bind(null,t),n=Gr(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Yr(l),t.callbackPriority=2,t.callbackNode=null,2}function $m(t,e){if(Ft!==0&&Ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ys()&&t.callbackNode!==n)return null;var l=mt;return l=Jl(t,t===wt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Om(t,l,e),Wm(t,ve()),t.callbackNode!=null&&t.callbackNode===n?$m.bind(null,t):null)}function Im(t,e){if(Ys())return null;Om(t,e,!0)}function dx(){Ax(function(){(Et&6)!==0?Gr(qf,fx):Fm()})}function zu(){if(Zn===0){var t=Za;t===0&&(t=Ql,Ql<<=1,(Ql&261888)===0&&(Ql=256)),Zn=t}return Zn}function tp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:$l(""+t)}function ep(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function hx(t,e,n,l,o){if(e==="submit"&&n&&n.stateNode===o){var u=tp((o[fe]||null).action),h=l.submitter;h&&(e=(e=h[fe]||null)?tp(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var S=new ns("action","action",null,l,o);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Zn!==0){var T=h?ep(o,h):new FormData(o);$o(n,{pending:!0,data:T,method:o.method,action:u},null,T)}}else typeof u=="function"&&(S.preventDefault(),T=h?ep(o,h):new FormData(o),$o(n,{pending:!0,data:T,method:o.method,action:u},u,T))},currentTarget:o}]})}}for(var Ou=0;Ou<po.length;Ou++){var Vu=po[Ou],mx=Vu.toLowerCase(),px=Vu[0].toUpperCase()+Vu.slice(1);Ge(mx,"on"+px)}Ge(zd,"onAnimationEnd"),Ge(Od,"onAnimationIteration"),Ge(Vd,"onAnimationStart"),Ge("dblclick","onDoubleClick"),Ge("focusin","onFocus"),Ge("focusout","onBlur"),Ge(NS,"onTransitionRun"),Ge(zS,"onTransitionStart"),Ge(OS,"onTransitionCancel"),Ge(_d,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dl));function np(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],o=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var h=l.length-1;0<=h;h--){var S=l[h],T=S.instance,N=S.currentTarget;if(S=S.listener,T!==u&&o.isPropagationStopped())break t;u=S,o.currentTarget=N;try{u(o)}catch(q){ls(q)}o.currentTarget=null,u=T}else for(h=0;h<l.length;h++){if(S=l[h],T=S.instance,N=S.currentTarget,S=S.listener,T!==u&&o.isPropagationStopped())break t;u=S,o.currentTarget=N;try{u(o)}catch(q){ls(q)}o.currentTarget=null,u=T}}}}function ht(t,e){var n=e[Zr];n===void 0&&(n=e[Zr]=new Set);var l=t+"__bubble";n.has(l)||(ap(e,t,2,!1),n.add(l))}function _u(t,e,n){var l=0;e&&(l|=4),ap(n,t,l,e)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Bu(t){if(!t[Qs]){t[Qs]=!0,Ff.forEach(function(n){n!=="selectionchange"&&(yx.has(n)||_u(n,!1,t),_u(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qs]||(e[Qs]=!0,_u("selectionchange",!1,e))}}function ap(t,e,n,l){switch(zp(e)){case 2:var o=Kx;break;case 8:o=Qx;break;default:o=Wu}n=o.bind(null,e,n,t),o=void 0,!eo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function Uu(t,e,n,l,o){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var S=l.stateNode.containerInfo;if(S===o)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;S!==null;){if(h=wa(S),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=u=h;continue t}S=S.parentNode}}l=l.return}od(function(){var N=u,q=Ir(n),X=[];t:{var z=Bd.get(t);if(z!==void 0){var V=ns,$=t;switch(t){case"keypress":if(ts(n)===0)break t;case"keydown":case"keyup":V=uS;break;case"focusin":$="focus",V=lo;break;case"focusout":$="blur",V=lo;break;case"beforeblur":case"afterblur":V=lo;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=W0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=dS;break;case zd:case Od:case Vd:V=tS;break;case _d:V=mS;break;case"scroll":case"scrollend":V=P0;break;case"wheel":V=yS;break;case"copy":case"cut":case"paste":V=nS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=hd;break;case"toggle":case"beforetoggle":V=vS}var st=(e&4)!==0,Dt=!st&&(t==="scroll"||t==="scrollend"),C=st?z!==null?z+"Capture":null:z;st=[];for(var M=N,j;M!==null;){var Y=M;if(j=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||j===null||C===null||(Y=Vi(M,C),Y!=null&&st.push(hl(M,Y,j))),Dt)break;M=M.return}0<st.length&&(z=new V(z,$,null,n,q),X.push({event:z,listeners:st}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",V=t==="mouseout"||t==="pointerout",z&&n!==$r&&($=n.relatedTarget||n.fromElement)&&(wa($)||$[Da]))break t;if((V||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,V?($=n.relatedTarget||n.toElement,V=N,$=$?wa($):null,$!==null&&(Dt=f($),st=$.tag,$!==Dt||st!==5&&st!==27&&st!==6)&&($=null)):(V=null,$=N),V!==$)){if(st=fd,Y="onMouseLeave",C="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(st=hd,Y="onPointerLeave",C="onPointerEnter",M="pointer"),Dt=V==null?z:Oi(V),j=$==null?z:Oi($),z=new st(Y,M+"leave",V,n,q),z.target=Dt,z.relatedTarget=j,Y=null,wa(q)===N&&(st=new st(C,M+"enter",$,n,q),st.target=j,st.relatedTarget=Dt,Y=st),Dt=Y,V&&$)e:{for(st=gx,C=V,M=$,j=0,Y=C;Y;Y=st(Y))j++;Y=0;for(var at=M;at;at=st(at))Y++;for(;0<j-Y;)C=st(C),j--;for(;0<Y-j;)M=st(M),Y--;for(;j--;){if(C===M||M!==null&&C===M.alternate){st=C;break e}C=st(C),M=st(M)}st=null}else st=null;V!==null&&ip(X,z,V,st,!1),$!==null&&Dt!==null&&ip(X,Dt,$,st,!0)}}t:{if(z=N?Oi(N):window,V=z.nodeName&&z.nodeName.toLowerCase(),V==="select"||V==="input"&&z.type==="file")var bt=bd;else if(Sd(z))if(Td)bt=DS;else{bt=CS;var tt=MS}else V=z.nodeName,!V||V.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&Wr(N.elementType)&&(bt=bd):bt=RS;if(bt&&(bt=bt(t,N))){xd(X,bt,n,q);break t}tt&&tt(t,z,N),t==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&Fr(z,"number",z.value)}switch(tt=N?Oi(N):window,t){case"focusin":(Sd(tt)||tt.contentEditable==="true")&&(La=tt,fo=N,Yi=null);break;case"focusout":Yi=fo=La=null;break;case"mousedown":ho=!0;break;case"contextmenu":case"mouseup":case"dragend":ho=!1,jd(X,n,q);break;case"selectionchange":if(jS)break;case"keydown":case"keyup":jd(X,n,q)}var ft;if(ro)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else Ua?gd(t,n)&&(pt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(pt="onCompositionStart");pt&&(md&&n.locale!=="ko"&&(Ua||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&Ua&&(ft=ud()):(jn=q,no="value"in jn?jn.value:jn.textContent,Ua=!0)),tt=Zs(N,pt),0<tt.length&&(pt=new dd(pt,t,null,n,q),X.push({event:pt,listeners:tt}),ft?pt.data=ft:(ft=vd(n),ft!==null&&(pt.data=ft)))),(ft=xS?bS(t,n):TS(t,n))&&(pt=Zs(N,"onBeforeInput"),0<pt.length&&(tt=new dd("onBeforeInput","beforeinput",null,n,q),X.push({event:tt,listeners:pt}),tt.data=ft)),hx(X,t,N,n,q)}np(X,e)})}function hl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zs(t,e){for(var n=e+"Capture",l=[];t!==null;){var o=t,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Vi(t,n),o!=null&&l.unshift(hl(t,o,u)),o=Vi(t,e),o!=null&&l.push(hl(t,o,u))),t.tag===3)return l;t=t.return}return[]}function gx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ip(t,e,n,l,o){for(var u=e._reactName,h=[];n!==null&&n!==l;){var S=n,T=S.alternate,N=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||N===null||(T=N,o?(N=Vi(n,u),N!=null&&h.unshift(hl(n,N,T))):o||(N=Vi(n,u),N!=null&&h.push(hl(n,N,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var vx=/\r\n?/g,Sx=/\u0000|\uFFFD/g;function lp(t){return(typeof t=="string"?t:""+t).replace(vx,`
|
|
9
|
+
`).replace(Sx,"")}function sp(t,e){return e=lp(e),lp(t)===e}function Rt(t,e,n,l,o,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Va(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Va(t,""+l);break;case"className":Fl(t,"class",l);break;case"tabIndex":Fl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fl(t,n,l);break;case"style":sd(t,l,u);break;case"data":if(e!=="object"){Fl(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=$l(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Rt(t,e,"name",o.name,o,null),Rt(t,e,"formEncType",o.formEncType,o,null),Rt(t,e,"formMethod",o.formMethod,o,null),Rt(t,e,"formTarget",o.formTarget,o,null)):(Rt(t,e,"encType",o.encType,o,null),Rt(t,e,"method",o.method,o,null),Rt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=$l(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=on);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=$l(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":ht("beforetoggle",t),ht("toggle",t),Pl(t,"popover",l);break;case"xlinkActuate":rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":rn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":rn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":rn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":rn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=k0.get(n)||n,Pl(t,n,l))}}function Lu(t,e,n,l,o,u){switch(n){case"style":sd(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Va(t,l):(typeof l=="number"||typeof l=="bigint")&&Va(t,""+l);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"onClick":l!=null&&(t.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),e=n.slice(2,o?n.length-7:void 0),u=t[fe]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,o);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Pl(t,n,l)}}}function ie(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Rt(t,e,u,h,n,null)}}o&&Rt(t,e,"srcSet",n.srcSet,n,null),l&&Rt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var S=u=h=o=null,T=null,N=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":o=q;break;case"type":h=q;break;case"checked":T=q;break;case"defaultChecked":N=q;break;case"value":u=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,e));break;default:Rt(t,e,l,q,n,null)}}nd(t,u,S,T,N,h,o,!1);return;case"select":ht("invalid",t),l=h=u=null;for(o in n)if(n.hasOwnProperty(o)&&(S=n[o],S!=null))switch(o){case"value":u=S;break;case"defaultValue":h=S;break;case"multiple":l=S;default:Rt(t,e,o,S,n,null)}e=u,n=h,t.multiple=!!l,e!=null?Oa(t,!!l,e,!1):n!=null&&Oa(t,!!l,n,!0);return;case"textarea":ht("invalid",t),u=o=l=null;for(h in n)if(n.hasOwnProperty(h)&&(S=n[h],S!=null))switch(h){case"value":l=S;break;case"defaultValue":o=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Rt(t,e,h,S,n,null)}id(t,l,o,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Rt(t,e,T,l,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(l=0;l<dl.length;l++)ht(dl[l],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Rt(t,e,N,l,n,null)}return;default:if(Wr(e)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&Lu(t,e,q,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&Rt(t,e,S,l,n,null))}function xx(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,S=null,T=null,N=null,q=null;for(V in n){var X=n[V];if(n.hasOwnProperty(V)&&X!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=X;default:l.hasOwnProperty(V)||Rt(t,e,V,null,l,X)}}for(var z in l){var V=l[z];if(X=n[z],l.hasOwnProperty(z)&&(V!=null||X!=null))switch(z){case"type":u=V;break;case"name":o=V;break;case"checked":N=V;break;case"defaultChecked":q=V;break;case"value":h=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:V!==X&&Rt(t,e,z,V,l,X)}}Pr(t,h,S,T,N,q,u,o);return;case"select":V=h=S=z=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":V=T;default:l.hasOwnProperty(u)||Rt(t,e,u,null,l,T)}for(o in l)if(u=l[o],T=n[o],l.hasOwnProperty(o)&&(u!=null||T!=null))switch(o){case"value":z=u;break;case"defaultValue":S=u;break;case"multiple":h=u;default:u!==T&&Rt(t,e,o,u,l,T)}e=S,n=h,l=V,z!=null?Oa(t,!!n,z,!1):!!l!=!!n&&(e!=null?Oa(t,!!n,e,!0):Oa(t,!!n,n?[]:"",!1));return;case"textarea":V=z=null;for(S in n)if(o=n[S],n.hasOwnProperty(S)&&o!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Rt(t,e,S,null,l,o)}for(h in l)if(o=l[h],u=n[h],l.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":z=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&Rt(t,e,h,o,l,u)}ad(t,z,V);return;case"option":for(var $ in n)z=n[$],n.hasOwnProperty($)&&z!=null&&!l.hasOwnProperty($)&&($==="selected"?t.selected=!1:Rt(t,e,$,null,l,z));for(T in l)z=l[T],V=n[T],l.hasOwnProperty(T)&&z!==V&&(z!=null||V!=null)&&(T==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Rt(t,e,T,z,l,V));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var st in n)z=n[st],n.hasOwnProperty(st)&&z!=null&&!l.hasOwnProperty(st)&&Rt(t,e,st,null,l,z);for(N in l)if(z=l[N],V=n[N],l.hasOwnProperty(N)&&z!==V&&(z!=null||V!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:Rt(t,e,N,z,l,V)}return;default:if(Wr(e)){for(var Dt in n)z=n[Dt],n.hasOwnProperty(Dt)&&z!==void 0&&!l.hasOwnProperty(Dt)&&Lu(t,e,Dt,void 0,l,z);for(q in l)z=l[q],V=n[q],!l.hasOwnProperty(q)||z===V||z===void 0&&V===void 0||Lu(t,e,q,z,l,V);return}}for(var C in n)z=n[C],n.hasOwnProperty(C)&&z!=null&&!l.hasOwnProperty(C)&&Rt(t,e,C,null,l,z);for(X in l)z=l[X],V=n[X],!l.hasOwnProperty(X)||z===V||z==null&&V==null||Rt(t,e,X,z,l,V)}function rp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,h=o.initiatorType,S=o.duration;if(u&&S&&rp(h)){for(h=0,S=o.responseEnd,l+=1;l<n.length;l++){var T=n[l],N=T.startTime;if(N>S)break;var q=T.transferSize,X=T.initiatorType;q&&rp(X)&&(T=T.responseEnd,h+=q*(T<S?1:(S-N)/(T-N)))}if(--l,e+=8*(u+h)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Hu=null,qu=null;function ks(t){return t.nodeType===9?t:t.ownerDocument}function op(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function up(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Gu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Yu=null;function Tx(){var t=window.event;return t&&t.type==="popstate"?t===Yu?!1:(Yu=t,!0):(Yu=null,!1)}var cp=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,fp=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof fp<"u"?function(t){return fp.resolve(null).then(t).catch(Mx)}:cp;function Mx(t){setTimeout(function(){throw t})}function kn(t){return t==="head"}function dp(t,e){var n=e,l=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(o),fi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ml(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ml(n);for(var u=n.firstChild;u;){var h=u.nextSibling,S=u.nodeName;u[zi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&ml(t.ownerDocument.body);n=o}while(n);fi(e)}function hp(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Xu(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Xu(n),kr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Cx(t,e,n,l){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[zi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ue(t.nextSibling),t===null)break}return null}function Rx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ue(t.nextSibling),t===null))return null;return t}function mp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ue(t.nextSibling),t===null))return null;return t}function Ku(t){return t.data==="$?"||t.data==="$~"}function Qu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Dx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Zu=null;function pp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ue(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function yp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function gp(t,e,n){switch(e=ks(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function ml(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);kr(t)}var Le=new Map,vp=new Set;function Js(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var An=O.d;O.d={f:wx,r:jx,D:Nx,C:zx,L:Ox,m:Vx,X:Bx,S:_x,M:Ux};function wx(){var t=An.f(),e=Hs();return t||e}function jx(t){var e=ja(t);e!==null&&e.tag===5&&e.type==="form"?_h(e):An.r(t)}var oi=typeof document>"u"?null:document;function Sp(t,e,n){var l=oi;if(l&&typeof e=="string"&&e){var o=je(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),vp.has(o)||(vp.add(o),t={rel:t,crossOrigin:n,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),ie(e,"link",t),$t(e),l.head.appendChild(e)))}}function Nx(t){An.D(t),Sp("dns-prefetch",t,null)}function zx(t,e){An.C(t,e),Sp("preconnect",t,e)}function Ox(t,e,n){An.L(t,e,n);var l=oi;if(l&&t&&e){var o='link[rel="preload"][as="'+je(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+je(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+je(n.imageSizes)+'"]')):o+='[href="'+je(t)+'"]';var u=o;switch(e){case"style":u=ui(t);break;case"script":u=ci(t)}Le.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Le.set(u,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(pl(u))||e==="script"&&l.querySelector(yl(u))||(e=l.createElement("link"),ie(e,"link",t),$t(e),l.head.appendChild(e)))}}function Vx(t,e){An.m(t,e);var n=oi;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+je(l)+'"][href="'+je(t)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ci(t)}if(!Le.has(u)&&(t=x({rel:"modulepreload",href:t},e),Le.set(u,t),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yl(u)))return}l=n.createElement("link"),ie(l,"link",t),$t(l),n.head.appendChild(l)}}}function _x(t,e,n){An.S(t,e,n);var l=oi;if(l&&t){var o=Na(l).hoistableStyles,u=ui(t);e=e||"default";var h=o.get(u);if(!h){var S={loading:0,preload:null};if(h=l.querySelector(pl(u)))S.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Le.get(u))&&ku(t,n);var T=h=l.createElement("link");$t(T),ie(T,"link",t),T._p=new Promise(function(N,q){T.onload=N,T.onerror=q}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ps(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:S},o.set(u,h)}}}function Bx(t,e){An.X(t,e);var n=oi;if(n&&t){var l=Na(n).hoistableScripts,o=ci(t),u=l.get(o);u||(u=n.querySelector(yl(o)),u||(t=x({src:t,async:!0},e),(e=Le.get(o))&&Ju(t,e),u=n.createElement("script"),$t(u),ie(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function Ux(t,e){An.M(t,e);var n=oi;if(n&&t){var l=Na(n).hoistableScripts,o=ci(t),u=l.get(o);u||(u=n.querySelector(yl(o)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Le.get(o))&&Ju(t,e),u=n.createElement("script"),$t(u),ie(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function xp(t,e,n,l){var o=(o=nt.current)?Js(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ui(n.href),n=Na(o).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ui(n.href);var u=Na(o).hoistableStyles,h=u.get(t);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=o.querySelector(pl(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Le.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Le.set(t,n),u||Lx(o,t,n,h.state))),e&&l===null)throw Error(r(528,""));return h}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ci(n),n=Na(o).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ui(t){return'href="'+je(t)+'"'}function pl(t){return'link[rel="stylesheet"]['+t+"]"}function bp(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function Lx(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ie(e,"link",n),$t(e),t.head.appendChild(e))}function ci(t){return'[src="'+je(t)+'"]'}function yl(t){return"script[async]"+t}function Tp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+je(n.href)+'"]');if(l)return e.instance=l,$t(l),l;var o=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),$t(l),ie(l,"style",o),Ps(l,n.precedence,t),e.instance=l;case"stylesheet":o=ui(n.href);var u=t.querySelector(pl(o));if(u)return e.state.loading|=4,e.instance=u,$t(u),u;l=bp(n),(o=Le.get(o))&&ku(l,o),u=(t.ownerDocument||t).createElement("link"),$t(u);var h=u;return h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ie(u,"link",l),e.state.loading|=4,Ps(u,n.precedence,t),e.instance=u;case"script":return u=ci(n.src),(o=t.querySelector(yl(u)))?(e.instance=o,$t(o),o):(l=n,(o=Le.get(u))&&(l=x({},n),Ju(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),$t(o),ie(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Ps(l,n.precedence,t));return e.instance}function Ps(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,h=0;h<l.length;h++){var S=l[h];if(S.dataset.precedence===e)u=S;else if(u!==o)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function ku(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ju(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Fs=null;function Ep(t,e,n){if(Fs===null){var l=new Map,o=Fs=new Map;o.set(n,l)}else o=Fs,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var u=n[o];if(!(u[zi]||u[te]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var S=l.get(h);S?S.push(u):l.set(h,[u])}}return l}function Ap(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Hx(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Mp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function qx(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=ui(l.href),u=e.querySelector(pl(o));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ws.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,$t(u);return}u=e.ownerDocument||e,l=bp(l),(o=Le.get(o))&&ku(l,o),u=u.createElement("link"),$t(u);var h=u;h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),ie(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Ws.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Pu=0;function Gx(t,e){return t.stylesheets&&t.count===0&&Is(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Is(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Pu===0&&(Pu=62500*bx());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Is(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Pu?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Ws(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Is(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var $s=null;function Is(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$s=new Map,e.forEach(Yx,t),$s=null,Ws.call(t))}function Yx(t,e){if(!(e.state.loading&4)){var n=$s.get(t);if(n)var l=n.get(null);else{n=new Map,$s.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}o=e.instance,h=o.getAttribute("data-precedence"),u=n.get(h)||l,u===l&&n.set(null,o),n.set(h,o),this.count++,l=Ws.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var gl={$$typeof:H,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Xx(t,e,n,l,o,u,h,S,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xr(0),this.hiddenUpdates=Xr(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Cp(t,e,n,l,o,u,h,S,T,N,q,X){return t=new Xx(t,e,n,h,T,N,q,X,S),e=1,u===!0&&(e|=24),u=Te(3,null,null,e),t.current=u,u.stateNode=t,e=Do(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},zo(u),t}function Rp(t){return t?(t=Ga,t):Ga}function Dp(t,e,n,l,o,u){o=Rp(o),l.context===null?l.context=o:l.pendingContext=o,l=Bn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Un(t,l,e),n!==null&&(ge(n,t,e),Pi(n,t,e))}function wp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Fu(t,e){wp(t,e),(t=t.alternate)&&wp(t,e)}function jp(t){if(t.tag===13||t.tag===31){var e=ua(t,67108864);e!==null&&ge(e,t,67108864),Fu(t,67108864)}}function Np(t){if(t.tag===13||t.tag===31){var e=Re();e=Kr(e);var n=ua(t,e);n!==null&&ge(n,t,e),Fu(t,e)}}var tr=!0;function Kx(t,e,n,l){var o=L.T;L.T=null;var u=O.p;try{O.p=2,Wu(t,e,n,l)}finally{O.p=u,L.T=o}}function Qx(t,e,n,l){var o=L.T;L.T=null;var u=O.p;try{O.p=8,Wu(t,e,n,l)}finally{O.p=u,L.T=o}}function Wu(t,e,n,l){if(tr){var o=$u(l);if(o===null)Uu(t,e,l,er,n),Op(t,l);else if(kx(o,t,e,n,l))l.stopPropagation();else if(Op(t,l),e&4&&-1<Zx.indexOf(t)){for(;o!==null;){var u=ja(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=ia(u.pendingLanes);if(h!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;h;){var T=1<<31-xe(h);S.entanglements[1]|=T,h&=~T}Ie(u),(Et&6)===0&&(Us=ve()+500,fl(0))}}break;case 31:case 13:S=ua(u,2),S!==null&&ge(S,u,2),Hs(),Fu(u,2)}if(u=$u(l),u===null&&Uu(t,e,l,er,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else Uu(t,e,l,null,n)}}function $u(t){return t=Ir(t),Iu(t)}var er=null;function Iu(t){if(er=null,t=wa(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return er=t,null}function zp(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(N0()){case qf:return 2;case Gf:return 8;case Kl:case z0:return 32;case Yf:return 268435456;default:return 32}default:return 32}}var tc=!1,Jn=null,Pn=null,Fn=null,vl=new Map,Sl=new Map,Wn=[],Zx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Op(t,e){switch(t){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":vl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(e.pointerId)}}function xl(t,e,n,l,o,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},e!==null&&(e=ja(e),e!==null&&jp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function kx(t,e,n,l,o){switch(e){case"focusin":return Jn=xl(Jn,t,e,n,l,o),!0;case"dragenter":return Pn=xl(Pn,t,e,n,l,o),!0;case"mouseover":return Fn=xl(Fn,t,e,n,l,o),!0;case"pointerover":var u=o.pointerId;return vl.set(u,xl(vl.get(u)||null,t,e,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,Sl.set(u,xl(Sl.get(u)||null,t,e,n,l,o)),!0}return!1}function Vp(t){var e=wa(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,Jf(t.priority,function(){Np(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Jf(t.priority,function(){Np(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function nr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=$u(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);$r=l,n.target.dispatchEvent(l),$r=null}else return e=ja(n),e!==null&&jp(e),t.blockedOn=n,!1;e.shift()}return!0}function _p(t,e,n){nr(t)&&n.delete(e)}function Jx(){tc=!1,Jn!==null&&nr(Jn)&&(Jn=null),Pn!==null&&nr(Pn)&&(Pn=null),Fn!==null&&nr(Fn)&&(Fn=null),vl.forEach(_p),Sl.forEach(_p)}function ar(t,e){t.blockedOn===e&&(t.blockedOn=null,tc||(tc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Jx)))}var ir=null;function Bp(t){ir!==t&&(ir=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ir===t&&(ir=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Iu(l||n)===null)continue;break}var u=ja(n);u!==null&&(t.splice(e,3),e-=3,$o(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function fi(t){function e(T){return ar(T,t)}Jn!==null&&ar(Jn,t),Pn!==null&&ar(Pn,t),Fn!==null&&ar(Fn,t),vl.forEach(e),Sl.forEach(e);for(var n=0;n<Wn.length;n++){var l=Wn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)Vp(n),n.blockedOn===null&&Wn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],h=o[fe]||null;if(typeof u=="function")h||Bp(n);else if(h){var S=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[fe]||null)S=h.formAction;else if(Iu(o)!==null)continue}else S=h.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),Bp(n)}}}function Up(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function ec(t){this._internalRoot=t}lr.prototype.render=ec.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,l=Re();Dp(n,l,t,e,null,null)},lr.prototype.unmount=ec.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Dp(t.current,2,null,t,null,null),Hs(),e[Da]=null}};function lr(t){this._internalRoot=t}lr.prototype.unstable_scheduleHydration=function(t){if(t){var e=kf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Wn.length&&e!==0&&e<Wn[n].priority;n++);Wn.splice(n,0,t),n===0&&Vp(t)}};var Lp=i.version;if(Lp!=="19.2.4")throw Error(r(527,Lp,"19.2.4"));O.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Px={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sr.isDisabled&&sr.supportsFiber)try{wi=sr.inject(Px),Se=sr}catch{}}return Tl.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,l="",o=Qh,u=Zh,h=kh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=Cp(t,1,!1,null,null,n,l,null,o,u,h,Up),t[Da]=e.current,Bu(t),new ec(e)},Tl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var l=!1,o="",u=Qh,h=Zh,S=kh,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Cp(t,1,!0,e,n??null,l,o,T,u,h,S,Up),e.context=Rp(null),n=e.current,l=Re(),l=Kr(l),o=Bn(l),o.callback=null,Un(n,o,l),n=l,e.current.lanes=n,Ni(e,n),Ie(e),t[Da]=e.current,Bu(t),new lr(e)},Tl.version="19.2.4",Tl}var Jp;function s1(){if(Jp)return ic.exports;Jp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ic.exports=l1(),ic.exports}var r1=s1();const o1=bg(r1);var Pp="popstate";function Fp(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function u1(a={}){function i(r,c){let f=c.state?.masked,{pathname:d,search:m,hash:y}=f||r.location;return jc("",{pathname:d,search:m,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,c){return typeof c=="string"?c:Nl(c)}return f1(i,s,null,a)}function Vt(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Pe(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function c1(){return Math.random().toString(36).substring(2,10)}function Wp(a,i){return{usr:a.state,key:a.key,idx:i,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function jc(a,i,s=null,r,c){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ti(i):i,state:s,key:i&&i.key||r||c1(),unstable_mask:c}}function Nl({pathname:a="/",search:i="",hash:s=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(a+=s.charAt(0)==="#"?s:"#"+s),a}function Ti(a){let i={};if(a){let s=a.indexOf("#");s>=0&&(i.hash=a.substring(s),a=a.substring(0,s));let r=a.indexOf("?");r>=0&&(i.search=a.substring(r),a=a.substring(0,r)),a&&(i.pathname=a)}return i}function f1(a,i,s,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,d=c.history,m="POP",y=null,p=v();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function v(){return(d.state||{idx:null}).idx}function x(){m="POP";let D=v(),B=D==null?null:D-p;p=D,y&&y({action:m,location:_.location,delta:B})}function b(D,B){m="PUSH";let G=Fp(D)?D:jc(_.location,D,B);p=v()+1;let H=Wp(G,p),F=_.createHref(G.unstable_mask||G);try{d.pushState(H,"",F)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;c.location.assign(F)}f&&y&&y({action:m,location:_.location,delta:1})}function R(D,B){m="REPLACE";let G=Fp(D)?D:jc(_.location,D,B);p=v();let H=Wp(G,p),F=_.createHref(G.unstable_mask||G);d.replaceState(H,"",F),f&&y&&y({action:m,location:_.location,delta:0})}function w(D){return d1(D)}let _={get action(){return m},get location(){return a(c,d)},listen(D){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(Pp,x),y=D,()=>{c.removeEventListener(Pp,x),y=null}},createHref(D){return i(c,D)},createURL:w,encodeLocation(D){let B=w(D);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:b,replace:R,go(D){return d.go(D)}};return _}function d1(a,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Vt(s,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Nl(a);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function Tg(a,i,s="/"){return h1(a,i,s,!1)}function h1(a,i,s,r){let c=typeof i=="string"?Ti(i):i,f=Mn(c.pathname||"/",s);if(f==null)return null;let d=Eg(a);m1(d);let m=null;for(let y=0;m==null&&y<d.length;++y){let p=M1(f);m=E1(d[y],p,r)}return m}function Eg(a,i=[],s=[],r="",c=!1){let f=(d,m,y=c,p)=>{let v={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&y)return;Vt(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let x=nn([r,v.relativePath]),b=s.concat(v);d.children&&d.children.length>0&&(Vt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Eg(d.children,i,b,x,y)),!(d.path==null&&!d.index)&&i.push({path:x,score:b1(x,d.index),routesMeta:b})};return a.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let y of Ag(d.path))f(d,m,!0,y)}),i}function Ag(a){let i=a.split("/");if(i.length===0)return[];let[s,...r]=i,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let d=Ag(r.join("/")),m=[];return m.push(...d.map(y=>y===""?f:[f,y].join("/"))),c&&m.push(...d),m.map(y=>a.startsWith("/")&&y===""?"/":y)}function m1(a){a.sort((i,s)=>i.score!==s.score?s.score-i.score:T1(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var p1=/^:[\w-]+$/,y1=3,g1=2,v1=1,S1=10,x1=-2,$p=a=>a==="*";function b1(a,i){let s=a.split("/"),r=s.length;return s.some($p)&&(r+=x1),i&&(r+=g1),s.filter(c=>!$p(c)).reduce((c,f)=>c+(p1.test(f)?y1:f===""?v1:S1),r)}function T1(a,i){return a.length===i.length&&a.slice(0,-1).every((r,c)=>r===i[c])?a[a.length-1]-i[i.length-1]:0}function E1(a,i,s=!1){let{routesMeta:r}=a,c={},f="/",d=[];for(let m=0;m<r.length;++m){let y=r[m],p=m===r.length-1,v=f==="/"?i:i.slice(f.length)||"/",x=br({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},v),b=y.route;if(!x&&p&&s&&!r[r.length-1].route.index&&(x=br({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},v)),!x)return null;Object.assign(c,x.params),d.push({params:c,pathname:nn([f,x.pathname]),pathnameBase:w1(nn([f,x.pathnameBase])),route:b}),x.pathnameBase!=="/"&&(f=nn([f,x.pathnameBase]))}return d}function br(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[s,r]=A1(a.path,a.caseSensitive,a.end),c=i.match(s);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:r.reduce((p,{paramName:v,isOptional:x},b)=>{if(v==="*"){let w=m[b]||"";d=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const R=m[b];return x&&!R?p[v]=void 0:p[v]=(R||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:a}}function A1(a,i=!1,s=!0){Pe(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,y,p,v)=>{if(r.push({paramName:m,isOptional:y!=null}),y){let x=v.charAt(p+d.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),r]}function M1(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Pe(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Mn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=a.charAt(s);return r&&r!=="/"?null:a.slice(s)||"/"}var C1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function R1(a,i="/"){let{pathname:s,search:r="",hash:c=""}=typeof a=="string"?Ti(a):a,f;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?f=Ip(s.substring(1),"/"):f=Ip(s,i)):f=i,{pathname:f,search:j1(r),hash:N1(c)}}function Ip(a,i){let s=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function oc(a,i,s,r){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function D1(a){return a.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function nf(a){let i=D1(a);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function Nr(a,i,s,r=!1){let c;typeof a=="string"?c=Ti(a):(c={...a},Vt(!c.pathname||!c.pathname.includes("?"),oc("?","pathname","search",c)),Vt(!c.pathname||!c.pathname.includes("#"),oc("#","pathname","hash",c)),Vt(!c.search||!c.search.includes("#"),oc("#","search","hash",c)));let f=a===""||c.pathname==="",d=f?"/":c.pathname,m;if(d==null)m=s;else{let x=i.length-1;if(!r&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),x-=1;c.pathname=b.join("/")}m=x>=0?i[x]:"/"}let y=R1(c,m),p=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&s.endsWith("/");return!y.pathname.endsWith("/")&&(p||v)&&(y.pathname+="/"),y}var nn=a=>a.join("/").replace(/\/\/+/g,"/"),w1=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),j1=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,N1=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,z1=class{constructor(a,i,s,r=!1){this.status=a,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function O1(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function V1(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Cg(a,i){let s=a;if(typeof s!="string"||!C1.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,c=!1;if(Mg)try{let f=new URL(window.location.href),d=s.startsWith("//")?new URL(f.protocol+s):new URL(s),m=Mn(d.pathname,i);d.origin===f.origin&&m!=null?s=m+d.search+d.hash:c=!0}catch{Pe(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Rg=["POST","PUT","PATCH","DELETE"];new Set(Rg);var _1=["GET",...Rg];new Set(_1);var Ei=E.createContext(null);Ei.displayName="DataRouter";var zr=E.createContext(null);zr.displayName="DataRouterState";var B1=E.createContext(!1),Dg=E.createContext({isTransitioning:!1});Dg.displayName="ViewTransition";var U1=E.createContext(new Map);U1.displayName="Fetchers";var L1=E.createContext(null);L1.displayName="Await";var De=E.createContext(null);De.displayName="Navigation";var Ul=E.createContext(null);Ul.displayName="Location";var sn=E.createContext({outlet:null,matches:[],isDataRoute:!1});sn.displayName="Route";var af=E.createContext(null);af.displayName="RouteError";var wg="REACT_ROUTER_ERROR",H1="REDIRECT",q1="ROUTE_ERROR_RESPONSE";function G1(a){if(a.startsWith(`${wg}:${H1}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Y1(a){if(a.startsWith(`${wg}:${q1}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new z1(i.status,i.statusText,i.data)}catch{}}function X1(a,{relative:i}={}){Vt(Ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=E.useContext(De),{hash:c,pathname:f,search:d}=Ll(a,{relative:i}),m=f;return s!=="/"&&(m=f==="/"?s:nn([s,f])),r.createHref({pathname:m,search:d,hash:c})}function Ai(){return E.useContext(Ul)!=null}function Rn(){return Vt(Ai(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Ul).location}var jg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ng(a){E.useContext(De).static||E.useLayoutEffect(a)}function zg(){let{isDataRoute:a}=E.useContext(sn);return a?nb():K1()}function K1(){Vt(Ai(),"useNavigate() may be used only in the context of a <Router> component.");let a=E.useContext(Ei),{basename:i,navigator:s}=E.useContext(De),{matches:r}=E.useContext(sn),{pathname:c}=Rn(),f=JSON.stringify(nf(r)),d=E.useRef(!1);return Ng(()=>{d.current=!0}),E.useCallback((y,p={})=>{if(Pe(d.current,jg),!d.current)return;if(typeof y=="number"){s.go(y);return}let v=Nr(y,JSON.parse(f),c,p.relative==="path");a==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:nn([i,v.pathname])),(p.replace?s.replace:s.push)(v,p.state,p)},[i,s,f,c,a])}E.createContext(null);function Ll(a,{relative:i}={}){let{matches:s}=E.useContext(sn),{pathname:r}=Rn(),c=JSON.stringify(nf(s));return E.useMemo(()=>Nr(a,JSON.parse(c),r,i==="path"),[a,c,r,i])}function Q1(a,i){return Og(a,i)}function Og(a,i,s){Vt(Ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(De),{matches:c}=E.useContext(sn),f=c[c.length-1],d=f?f.params:{},m=f?f.pathname:"/",y=f?f.pathnameBase:"/",p=f&&f.route;{let D=p&&p.path||"";_g(m,!p||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
10
|
|
|
11
|
-
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let v=Rn(),x;if(i){let w=typeof i=="string"?Ti(i):i;Vt(y==="/"||w.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${w.pathname}" was given in the \`location\` prop.`),x=w}else x=v;let b=x.pathname||"/",R=b;if(y!=="/"){let w=y.replace(/^\//,"").split("/");R="/"+b.replace(/^\//,"").split("/").slice(w.length).join("/")}let D=vg(a,{pathname:R});Fe(p||D!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Fe(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=Z1(D&&D.map(w=>Object.assign({},w,{params:Object.assign({},d,w.params),pathname:nn([y,r.encodeLocation?r.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?y:nn([y,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),c,s);return i&&_?E.createElement(Bl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},_):_}function G1(){let a=W1(),i=j1(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),s=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",a),d=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:f},"ErrorBoundary")," or"," ",E.createElement("code",{style:f},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),s?E.createElement("pre",{style:c},s):null,d)}var X1=E.createElement(G1,null),wg=class extends E.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const s=L1(a.digest);s&&(a=s)}let i=a!==void 0?E.createElement(sn.Provider,{value:this.props.routeContext},E.createElement(tf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?E.createElement(Q1,{error:a},i):i}};wg.contextType=z1;var sc=new WeakMap;function Q1({children:a,error:i}){let{basename:s}=E.useContext(De);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=U1(i.digest);if(r){let c=sc.get(i);if(c)throw c;let f=Tg(r.location,s);if(bg&&!sc.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw sc.set(i,d),d}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function K1({routeContext:a,match:i,children:s}){let r=E.useContext(Ei);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(sn.Provider,{value:a},s)}function Z1(a,i=[],s){let r=s?.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let c=a,f=r?.errors;if(f!=null){let v=c.findIndex(x=>x.route.id&&f?.[x.route.id]!==void 0);Vt(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let d=!1,m=-1;if(s&&r){d=r.renderFallback;for(let v=0;v<c.length;v++){let x=c[v];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(m=v),x.route.id){let{loaderData:b,errors:R}=r,D=x.route.loader&&!b.hasOwnProperty(x.route.id)&&(!R||R[x.route.id]===void 0);if(x.route.lazy||D){s.isStatic&&(d=!0),m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}}let y=s?.onError,p=r&&y?(v,x)=>{y(v,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:w1(r.matches),errorInfo:x})}:void 0;return c.reduceRight((v,x,b)=>{let R,D=!1,_=null,w=null;r&&(R=f&&x.route.id?f[x.route.id]:void 0,_=x.route.errorElement||X1,d&&(m<0&&b===0?(Ng("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,w=null):m===b&&(D=!0,w=x.route.hydrateFallbackElement||null)));let U=i.concat(c.slice(0,b+1)),X=()=>{let H;return R?H=_:D?H=w:x.route.Component?H=E.createElement(x.route.Component,null):x.route.element?H=x.route.element:H=v,E.createElement(K1,{match:x,routeContext:{outlet:v,matches:U,isDataRoute:r!=null},children:H})};return r&&(x.route.ErrorBoundary||x.route.errorElement||b===0)?E.createElement(wg,{location:r.location,revalidation:r.revalidation,component:_,error:R,children:X(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:p}):X()},null)}function ef(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k1(a){let i=E.useContext(Ei);return Vt(i,ef(a)),i}function J1(a){let i=E.useContext(jr);return Vt(i,ef(a)),i}function F1(a){let i=E.useContext(sn);return Vt(i,ef(a)),i}function nf(a){let i=F1(a),s=i.matches[i.matches.length-1];return Vt(s.route.id,`${a} can only be used on routes that contain a unique "id"`),s.route.id}function P1(){return nf("useRouteId")}function W1(){let a=E.useContext(tf),i=J1("useRouteError"),s=nf("useRouteError");return a!==void 0?a:i.errors?.[s]}function $1(){let{router:a}=k1("useNavigate"),i=nf("useNavigate"),s=E.useRef(!1);return Rg(()=>{s.current=!0}),E.useCallback(async(c,f={})=>{Fe(s.current,Mg),s.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:i,...f}))},[a,i])}var Wp={};function Ng(a,i,s){!i&&!Wp[a]&&(Wp[a]=!0,Fe(!1,s))}E.memo(I1);function I1({routes:a,future:i,state:s,isStatic:r,onError:c}){return jg(a,void 0,{state:s,isStatic:r,onError:c})}function tb({to:a,replace:i,state:s,relative:r}){Vt(Ai(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=E.useContext(De);Fe(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=E.useContext(sn),{pathname:d}=Rn(),m=Dg(),y=Dr(a,Ic(f),d,r==="path"),p=JSON.stringify(y);return E.useEffect(()=>{m(JSON.parse(p),{replace:i,state:s,relative:r})},[m,p,r,i,s]),null}function tn(a){Vt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function eb({basename:a="/",children:i=null,location:s,navigationType:r="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){Vt(!Ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),y=E.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[m,c,f,d]);typeof s=="string"&&(s=Ti(s));let{pathname:p="/",search:v="",hash:x="",state:b=null,key:R="default",unstable_mask:D}=s,_=E.useMemo(()=>{let w=Cn(p,m);return w==null?null:{location:{pathname:w,search:v,hash:x,state:b,key:R,unstable_mask:D},navigationType:r}},[m,p,v,x,b,R,r,D]);return Fe(_!=null,`<Router basename="${m}"> is not able to match the URL "${p}${v}${x}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:E.createElement(De.Provider,{value:y},E.createElement(Bl.Provider,{children:i,value:_}))}function nb({children:a,location:i}){return Y1(Dc(a),i)}function Dc(a,i=[]){let s=[];return E.Children.forEach(a,(r,c)=>{if(!E.isValidElement(r))return;let f=[...i,c];if(r.type===E.Fragment){s.push.apply(s,Dc(r.props.children,f));return}Vt(r.type===tn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Vt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=Dc(r.props.children,f)),s.push(d)}),s}var cr="get",fr="application/x-www-form-urlencoded";function wr(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function ab(a){return wr(a)&&a.tagName.toLowerCase()==="button"}function ib(a){return wr(a)&&a.tagName.toLowerCase()==="form"}function lb(a){return wr(a)&&a.tagName.toLowerCase()==="input"}function sb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function rb(a,i){return a.button===0&&(!i||i==="_self")&&!sb(a)}var sr=null;function ob(){if(sr===null)try{new FormData(document.createElement("form"),0),sr=!1}catch{sr=!0}return sr}var ub=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rc(a){return a!=null&&!ub.has(a)?(Fe(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fr}"`),null):a}function cb(a,i){let s,r,c,f,d;if(ib(a)){let m=a.getAttribute("action");r=m?Cn(m,i):null,s=a.getAttribute("method")||cr,c=rc(a.getAttribute("enctype"))||fr,f=new FormData(a)}else if(ab(a)||lb(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=a.getAttribute("formaction")||m.getAttribute("action");if(r=y?Cn(y,i):null,s=a.getAttribute("formmethod")||m.getAttribute("method")||cr,c=rc(a.getAttribute("formenctype"))||rc(m.getAttribute("enctype"))||fr,f=new FormData(m,a),!ob()){let{name:p,type:v,value:x}=a;if(v==="image"){let b=p?`${p}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else p&&f.append(p,x)}}else{if(wr(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=cr,r=null,c=fr,d=a}return f&&c==="text/plain"&&(d=f,f=void 0),{action:r,method:s.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function af(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function fb(a,i,s,r){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${r}`:c.pathname=`${c.pathname}.${r}`:c.pathname==="/"?c.pathname=`_root.${r}`:i&&Cn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${r}`,c}async function db(a,i){if(a.id in i)return i[a.id];try{let s=await import(a.module);return i[a.id]=s,s}catch(s){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hb(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function mb(a,i,s){let r=await Promise.all(a.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await db(f,s);return d.links?d.links():[]}return[]}));return vb(r.flat(1).filter(hb).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function $p(a,i,s,r,c,f){let d=(y,p)=>s[p]?y.route.id!==s[p].route.id:!0,m=(y,p)=>s[p].pathname!==y.pathname||s[p].route.path?.endsWith("*")&&s[p].params["*"]!==y.params["*"];return f==="assets"?i.filter((y,p)=>d(y,p)||m(y,p)):f==="data"?i.filter((y,p)=>{let v=r.routes[y.route.id];if(!v||!v.hasLoader)return!1;if(d(y,p)||m(y,p))return!0;if(y.route.shouldRevalidate){let x=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function pb(a,i,{includeHydrateFallback:s}={}){return yb(a.map(r=>{let c=i.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function yb(a){return[...new Set(a)]}function gb(a){let i={},s=Object.keys(a).sort();for(let r of s)i[r]=a[r];return i}function vb(a,i){let s=new Set;return new Set(i),a.reduce((r,c)=>{let f=JSON.stringify(gb(c));return s.has(f)||(s.add(f),r.push({key:f,link:c})),r},[])}function zg(){let a=E.useContext(Ei);return af(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Sb(){let a=E.useContext(jr);return af(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var lf=E.createContext(void 0);lf.displayName="FrameworkContext";function Og(){let a=E.useContext(lf);return af(a,"You must render this element inside a <HydratedRouter> element"),a}function xb(a,i){let s=E.useContext(lf),[r,c]=E.useState(!1),[f,d]=E.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:v,onTouchStart:x}=i,b=E.useRef(null);E.useEffect(()=>{if(a==="render"&&d(!0),a==="viewport"){let _=U=>{U.forEach(X=>{d(X.isIntersecting)})},w=new IntersectionObserver(_,{threshold:.5});return b.current&&w.observe(b.current),()=>{w.disconnect()}}},[a]),E.useEffect(()=>{if(r){let _=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(_)}}},[r]);let R=()=>{c(!0)},D=()=>{c(!1),d(!1)};return s?a!=="intent"?[f,b,{}]:[f,b,{onFocus:El(m,R),onBlur:El(y,D),onMouseEnter:El(p,R),onMouseLeave:El(v,D),onTouchStart:El(x,R)}]:[!1,b,{}]}function El(a,i){return s=>{a&&a(s),s.defaultPrevented||i(s)}}function bb({page:a,...i}){let{router:s}=zg(),r=E.useMemo(()=>vg(s.routes,a,s.basename),[s.routes,a,s.basename]);return r?E.createElement(Eb,{page:a,matches:r,...i}):null}function Tb(a){let{manifest:i,routeModules:s}=Og(),[r,c]=E.useState([]);return E.useEffect(()=>{let f=!1;return mb(a,i,s).then(d=>{f||c(d)}),()=>{f=!0}},[a,i,s]),r}function Eb({page:a,matches:i,...s}){let r=Rn(),{future:c,manifest:f,routeModules:d}=Og(),{basename:m}=zg(),{loaderData:y,matches:p}=Sb(),v=E.useMemo(()=>$p(a,i,p,f,r,"data"),[a,i,p,f,r]),x=E.useMemo(()=>$p(a,i,p,f,r,"assets"),[a,i,p,f,r]),b=E.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let _=new Set,w=!1;if(i.forEach(X=>{let H=f.routes[X.route.id];!H||!H.hasLoader||(!v.some(P=>P.route.id===X.route.id)&&X.route.id in y&&d[X.route.id]?.shouldRevalidate||H.hasClientLoader?w=!0:_.add(X.route.id))}),_.size===0)return[];let U=fb(a,m,c.unstable_trailingSlashAwareDataRequests,"data");return w&&_.size>0&&U.searchParams.set("_routes",i.filter(X=>_.has(X.route.id)).map(X=>X.route.id).join(",")),[U.pathname+U.search]},[m,c.unstable_trailingSlashAwareDataRequests,y,r,f,v,i,a,d]),R=E.useMemo(()=>pb(x,f),[x,f]),D=Tb(x);return E.createElement(E.Fragment,null,b.map(_=>E.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...s})),R.map(_=>E.createElement("link",{key:_,rel:"modulepreload",href:_,...s})),D.map(({key:_,link:w})=>E.createElement("link",{key:_,nonce:s.nonce,...w,crossOrigin:w.crossOrigin??s.crossOrigin})))}function Ab(...a){return i=>{a.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var Cb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Cb&&(window.__reactRouterVersion="7.13.1")}catch{}function Mb({basename:a,children:i,unstable_useTransitions:s,window:r}){let c=E.useRef();c.current==null&&(c.current=l1({window:r,v5Compat:!0}));let f=c.current,[d,m]=E.useState({action:f.action,location:f.location}),y=E.useCallback(p=>{s===!1?m(p):E.startTransition(()=>m(p))},[s]);return E.useLayoutEffect(()=>f.listen(y),[f,y]),E.createElement(eb,{basename:a,children:i,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:s})}var Vg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_g=E.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:c,reloadDocument:f,replace:d,unstable_mask:m,state:y,target:p,to:v,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:R,...D},_){let{basename:w,navigator:U,unstable_useTransitions:X}=E.useContext(De),H=typeof v=="string"&&Vg.test(v),P=Tg(v,w);v=P.to;let K=H1(v,{relative:c}),et=Rn(),J=null;if(m){let xt=Dr(m,[],et.unstable_mask?et.unstable_mask.pathname:"/",!0);w!=="/"&&(xt.pathname=xt.pathname==="/"?w:nn([w,xt.pathname])),J=U.createHref(xt)}let[W,ot,yt]=xb(r,D),St=jb(v,{replace:d,unstable_mask:m,state:y,target:p,preventScrollReset:x,relative:c,viewTransition:b,unstable_defaultShouldRevalidate:R,unstable_useTransitions:X});function gt(xt){i&&i(xt),xt.defaultPrevented||St(xt)}let Ht=!(P.isExternal||f),qt=E.createElement("a",{...D,...yt,href:(Ht?J:void 0)||P.absoluteURL||K,onClick:Ht?gt:i,ref:Ab(_,ot),target:p,"data-discover":!H&&s==="render"?"true":void 0});return W&&!H?E.createElement(E.Fragment,null,qt,E.createElement(bb,{page:K})):qt});_g.displayName="Link";var Bg=E.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:c=!1,style:f,to:d,viewTransition:m,children:y,...p},v){let x=Ul(d,{relative:p.relative}),b=Rn(),R=E.useContext(jr),{navigator:D,basename:_}=E.useContext(De),w=R!=null&&Vb(x)&&m===!0,U=D.encodeLocation?D.encodeLocation(x).pathname:x.pathname,X=b.pathname,H=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;s||(X=X.toLowerCase(),H=H?H.toLowerCase():null,U=U.toLowerCase()),H&&_&&(H=Cn(H,_)||H);const P=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let K=X===U||!c&&X.startsWith(U)&&X.charAt(P)==="/",et=H!=null&&(H===U||!c&&H.startsWith(U)&&H.charAt(U.length)==="/"),J={isActive:K,isPending:et,isTransitioning:w},W=K?i:void 0,ot;typeof r=="function"?ot=r(J):ot=[r,K?"active":null,et?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let yt=typeof f=="function"?f(J):f;return E.createElement(_g,{...p,"aria-current":W,className:ot,ref:v,style:yt,to:d,viewTransition:m},typeof y=="function"?y(J):y)});Bg.displayName="NavLink";var Rb=E.forwardRef(({discover:a="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:c,state:f,method:d=cr,action:m,onSubmit:y,relative:p,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:b,...R},D)=>{let{unstable_useTransitions:_}=E.useContext(De),w=zb(),U=Ob(m,{relative:p}),X=d.toLowerCase()==="get"?"get":"post",H=typeof m=="string"&&Vg.test(m),P=K=>{if(y&&y(K),K.defaultPrevented)return;K.preventDefault();let et=K.nativeEvent.submitter,J=et?.getAttribute("formmethod")||d,W=()=>w(et||K.currentTarget,{fetcherKey:i,method:J,navigate:s,replace:c,state:f,relative:p,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:b});_&&s!==!1?E.startTransition(()=>W()):W()};return E.createElement("form",{ref:D,method:X,action:U,onSubmit:r?y:P,...R,"data-discover":!H&&a==="render"?"true":void 0})});Rb.displayName="Form";function Db(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ug(a){let i=E.useContext(Ei);return Vt(i,Db(a)),i}function jb(a,{target:i,replace:s,unstable_mask:r,state:c,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let v=Dg(),x=Rn(),b=Ul(a,{relative:d});return E.useCallback(R=>{if(rb(R,i)){R.preventDefault();let D=s!==void 0?s:wl(x)===wl(b),_=()=>v(a,{replace:D,unstable_mask:r,state:c,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:y});p?E.startTransition(()=>_()):_()}},[x,v,b,s,r,c,i,a,f,d,m,y,p])}var wb=0,Nb=()=>`__${String(++wb)}__`;function zb(){let{router:a}=Ug("useSubmit"),{basename:i}=E.useContext(De),s=P1(),r=a.fetch,c=a.navigate;return E.useCallback(async(f,d={})=>{let{action:m,method:y,encType:p,formData:v,body:x}=cb(f,i);if(d.navigate===!1){let b=d.fetcherKey||Nb();await r(b,s,d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||y,formEncType:d.encType||p,flushSync:d.flushSync})}else await c(d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||y,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[r,c,i,s])}function Ob(a,{relative:i}={}){let{basename:s}=E.useContext(De),r=E.useContext(sn);Vt(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...Ul(a||".",{relative:i})},d=Rn();if(a==null){f.search=d.search;let m=new URLSearchParams(f.search),y=m.getAll("index");if(y.some(v=>v==="")){m.delete("index"),y.filter(x=>x).forEach(x=>m.append("index",x));let v=m.toString();f.search=v?`?${v}`:""}}return(!a||a===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:nn([s,f.pathname])),wl(f)}function Vb(a,{relative:i}={}){let s=E.useContext(Ag);Vt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ug("useViewTransitionState"),c=Ul(a,{relative:i});if(!s.isTransitioning)return!1;let f=Cn(s.currentLocation.pathname,r)||s.currentLocation.pathname,d=Cn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Sr(c.pathname,d)!=null||Sr(c.pathname,f)!=null}const Lg=E.createContext({});function _b(a){const i=E.useRef(null);return i.current===null&&(i.current=a()),i.current}const Hg=typeof window<"u",Bb=Hg?E.useLayoutEffect:E.useEffect,sf=E.createContext(null);function rf(a,i){a.indexOf(i)===-1&&a.push(i)}function xr(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const ln=(a,i,s)=>s>i?i:s<a?a:s;let of=()=>{};const Mn={},qg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Yg(a){return typeof a=="object"&&a!==null}const Gg=a=>/^0[^.\s]+$/u.test(a);function Xg(a){let i;return()=>(i===void 0&&(i=a()),i)}const qe=a=>a,Ub=(a,i)=>s=>i(a(s)),Ll=(...a)=>a.reduce(Ub),Nl=(a,i,s)=>{const r=i-a;return r===0?1:(s-a)/r};class uf{constructor(){this.subscriptions=[]}add(i){return rf(this.subscriptions,i),()=>xr(this.subscriptions,i)}notify(i,s,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,r);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(i,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ze=a=>a*1e3,He=a=>a/1e3;function Qg(a,i){return i?a*(1e3/i):0}const Kg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,Lb=1e-7,Hb=12;function qb(a,i,s,r,c){let f,d,m=0;do d=i+(s-i)/2,f=Kg(d,r,c)-a,f>0?s=d:i=d;while(Math.abs(f)>Lb&&++m<Hb);return d}function Hl(a,i,s,r){if(a===i&&s===r)return qe;const c=f=>qb(f,0,1,a,s);return f=>f===0||f===1?f:Kg(c(f),i,r)}const Zg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,kg=a=>i=>1-a(1-i),Jg=Hl(.33,1.53,.69,.99),cf=kg(Jg),Fg=Zg(cf),Pg=a=>(a*=2)<1?.5*cf(a):.5*(2-Math.pow(2,-10*(a-1))),ff=a=>1-Math.sin(Math.acos(a)),Wg=kg(ff),$g=Zg(ff),Yb=Hl(.42,0,1,1),Gb=Hl(0,0,.58,1),Ig=Hl(.42,0,.58,1),Xb=a=>Array.isArray(a)&&typeof a[0]!="number",tv=a=>Array.isArray(a)&&typeof a[0]=="number",Qb={linear:qe,easeIn:Yb,easeInOut:Ig,easeOut:Gb,circIn:ff,circInOut:$g,circOut:Wg,backIn:cf,backInOut:Fg,backOut:Jg,anticipate:Pg},Kb=a=>typeof a=="string",Ip=a=>{if(tv(a)){of(a.length===4);const[i,s,r,c]=a;return Hl(i,s,r,c)}else if(Kb(a))return Qb[a];return a},rr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Zb(a,i){let s=new Set,r=new Set,c=!1,f=!1;const d=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(v){d.has(v)&&(p.schedule(v),a()),v(m)}const p={schedule:(v,x=!1,b=!1)=>{const D=b&&c?s:r;return x&&d.add(v),D.has(v)||D.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(m=v,c){f=!0;return}c=!0,[s,r]=[r,s],s.forEach(y),s.clear(),c=!1,f&&(f=!1,p.process(v))}};return p}const kb=40;function ev(a,i){let s=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=rr.reduce((H,P)=>(H[P]=Zb(f),H),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:x,preRender:b,render:R,postRender:D}=d,_=()=>{const H=Mn.useManualTiming?c.timestamp:performance.now();s=!1,Mn.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(H-c.timestamp,kb),1)),c.timestamp=H,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),v.process(c),x.process(c),b.process(c),R.process(c),D.process(c),c.isProcessing=!1,s&&i&&(r=!1,a(_))},w=()=>{s=!0,r=!0,c.isProcessing||a(_)};return{schedule:rr.reduce((H,P)=>{const K=d[P];return H[P]=(et,J=!1,W=!1)=>(s||w(),K.schedule(et,J,W)),H},{}),cancel:H=>{for(let P=0;P<rr.length;P++)d[rr[P]].cancel(H)},state:c,steps:d}}const{schedule:wt,cancel:ea,state:le,steps:oc}=ev(typeof requestAnimationFrame<"u"?requestAnimationFrame:qe,!0);let dr;function Jb(){dr=void 0}const ue={now:()=>(dr===void 0&&ue.set(le.isProcessing||Mn.useManualTiming?le.timestamp:performance.now()),dr),set:a=>{dr=a,queueMicrotask(Jb)}},nv=a=>i=>typeof i=="string"&&i.startsWith(a),av=nv("--"),Fb=nv("var(--"),df=a=>Fb(a)?Pb.test(a.split("/*")[0].trim()):!1,Pb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ty(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Ci={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},zl={...Ci,transform:a=>ln(0,1,a)},or={...Ci,default:1},Ml=a=>Math.round(a*1e5)/1e5,hf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Wb(a){return a==null}const $b=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mf=(a,i)=>s=>!!(typeof s=="string"&&$b.test(s)&&s.startsWith(a)||i&&!Wb(s)&&Object.prototype.hasOwnProperty.call(s,i)),iv=(a,i,s)=>r=>{if(typeof r!="string")return r;const[c,f,d,m]=r.match(hf);return{[a]:parseFloat(c),[i]:parseFloat(f),[s]:parseFloat(d),alpha:m!==void 0?parseFloat(m):1}},Ib=a=>ln(0,255,a),uc={...Ci,transform:a=>Math.round(Ib(a))},Aa={test:mf("rgb","red"),parse:iv("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:r=1})=>"rgba("+uc.transform(a)+", "+uc.transform(i)+", "+uc.transform(s)+", "+Ml(zl.transform(r))+")"};function tT(a){let i="",s="",r="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,r+=r,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const jc={test:mf("#"),parse:tT,transform:Aa.transform},ql=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),In=ql("deg"),an=ql("%"),I=ql("px"),eT=ql("vh"),nT=ql("vw"),ey={...an,parse:a=>an.parse(a)/100,transform:a=>an.transform(a*100)},mi={test:mf("hsl","hue"),parse:iv("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:r=1})=>"hsla("+Math.round(a)+", "+an.transform(Ml(i))+", "+an.transform(Ml(s))+", "+Ml(zl.transform(r))+")"},Ft={test:a=>Aa.test(a)||jc.test(a)||mi.test(a),parse:a=>Aa.test(a)?Aa.parse(a):mi.test(a)?mi.parse(a):jc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Aa.transform(a):mi.transform(a),getAnimatableNone:a=>{const i=Ft.parse(a);return i.alpha=0,Ft.transform(i)}},aT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iT(a){return isNaN(a)&&typeof a=="string"&&(a.match(hf)?.length||0)+(a.match(aT)?.length||0)>0}const lv="number",sv="color",lT="var",sT="var(",ny="${}",rT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ol(a){const i=a.toString(),s=[],r={color:[],number:[],var:[]},c=[];let f=0;const m=i.replace(rT,y=>(Ft.test(y)?(r.color.push(f),c.push(sv),s.push(Ft.parse(y))):y.startsWith(sT)?(r.var.push(f),c.push(lT),s.push(y)):(r.number.push(f),c.push(lv),s.push(parseFloat(y))),++f,ny)).split(ny);return{values:s,split:m,indexes:r,types:c}}function rv(a){return Ol(a).values}function ov(a){const{split:i,types:s}=Ol(a),r=i.length;return c=>{let f="";for(let d=0;d<r;d++)if(f+=i[d],c[d]!==void 0){const m=s[d];m===lv?f+=Ml(c[d]):m===sv?f+=Ft.transform(c[d]):f+=c[d]}return f}}const oT=a=>typeof a=="number"?0:Ft.test(a)?Ft.getAnimatableNone(a):a;function uT(a){const i=rv(a);return ov(a)(i.map(oT))}const ke={test:iT,parse:rv,createTransformer:ov,getAnimatableNone:uT};function cc(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function cT({hue:a,saturation:i,lightness:s,alpha:r}){a/=360,i/=100,s/=100;let c=0,f=0,d=0;if(!i)c=f=d=s;else{const m=s<.5?s*(1+i):s+i-s*i,y=2*s-m;c=cc(y,m,a+1/3),f=cc(y,m,a),d=cc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function br(a,i){return s=>s>0?i:a}const _t=(a,i,s)=>a+(i-a)*s,fc=(a,i,s)=>{const r=a*a,c=s*(i*i-r)+r;return c<0?0:Math.sqrt(c)},fT=[jc,Aa,mi],dT=a=>fT.find(i=>i.test(a));function ay(a){const i=dT(a);if(!i)return!1;let s=i.parse(a);return i===mi&&(s=cT(s)),s}const iy=(a,i)=>{const s=ay(a),r=ay(i);if(!s||!r)return br(a,i);const c={...s};return f=>(c.red=fc(s.red,r.red,f),c.green=fc(s.green,r.green,f),c.blue=fc(s.blue,r.blue,f),c.alpha=_t(s.alpha,r.alpha,f),Aa.transform(c))},wc=new Set(["none","hidden"]);function hT(a,i){return wc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function mT(a,i){return s=>_t(a,i,s)}function pf(a){return typeof a=="number"?mT:typeof a=="string"?df(a)?br:Ft.test(a)?iy:gT:Array.isArray(a)?uv:typeof a=="object"?Ft.test(a)?iy:pT:br}function uv(a,i){const s=[...a],r=s.length,c=a.map((f,d)=>pf(f)(f,i[d]));return f=>{for(let d=0;d<r;d++)s[d]=c[d](f);return s}}function pT(a,i){const s={...a,...i},r={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(r[c]=pf(a[c])(a[c],i[c]));return c=>{for(const f in r)s[f]=r[f](c);return s}}function yT(a,i){const s=[],r={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const f=i.types[c],d=a.indexes[f][r[f]],m=a.values[d]??0;s[c]=m,r[f]++}return s}const gT=(a,i)=>{const s=ke.createTransformer(i),r=Ol(a),c=Ol(i);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?wc.has(a)&&!c.values.length||wc.has(i)&&!r.values.length?hT(a,i):Ll(uv(yT(r,c),c.values),s):br(a,i)};function cv(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?_t(a,i,s):pf(a)(a,i)}const vT=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>wt.update(i,s),stop:()=>ea(i),now:()=>le.isProcessing?le.timestamp:ue.now()}},fv=(a,i,s=10)=>{let r="";const c=Math.max(Math.round(i/s),2);for(let f=0;f<c;f++)r+=Math.round(a(f/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Tr=2e4;function yf(a){let i=0;const s=50;let r=a.next(i);for(;!r.done&&i<Tr;)i+=s,r=a.next(i);return i>=Tr?1/0:i}function ST(a,i=100,s){const r=s({...a,keyframes:[0,i]}),c=Math.min(yf(r),Tr);return{type:"keyframes",ease:f=>r.next(c*f).value/i,duration:He(c)}}const xT=5;function dv(a,i,s){const r=Math.max(i-xT,0);return Qg(s-a(r),i-r)}const Lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},dc=.001;function bT({duration:a=Lt.duration,bounce:i=Lt.bounce,velocity:s=Lt.velocity,mass:r=Lt.mass}){let c,f,d=1-i;d=ln(Lt.minDamping,Lt.maxDamping,d),a=ln(Lt.minDuration,Lt.maxDuration,He(a)),d<1?(c=p=>{const v=p*d,x=v*a,b=v-s,R=Nc(p,d),D=Math.exp(-x);return dc-b/R*D},f=p=>{const x=p*d*a,b=x*s+s,R=Math.pow(d,2)*Math.pow(p,2)*a,D=Math.exp(-x),_=Nc(Math.pow(p,2),d);return(-c(p)+dc>0?-1:1)*((b-R)*D)/_}):(c=p=>{const v=Math.exp(-p*a),x=(p-s)*a+1;return-dc+v*x},f=p=>{const v=Math.exp(-p*a),x=(s-p)*(a*a);return v*x});const m=5/a,y=ET(c,f,m);if(a=Ze(a),isNaN(y))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:a};{const p=Math.pow(y,2)*r;return{stiffness:p,damping:d*2*Math.sqrt(r*p),duration:a}}}const TT=12;function ET(a,i,s){let r=s;for(let c=1;c<TT;c++)r=r-a(r)/i(r);return r}function Nc(a,i){return a*Math.sqrt(1-i*i)}const AT=["duration","bounce"],CT=["stiffness","damping","mass"];function ly(a,i){return i.some(s=>a[s]!==void 0)}function MT(a){let i={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...a};if(!ly(a,CT)&&ly(a,AT))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,r=2*Math.PI/(s*1.2),c=r*r,f=2*ln(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Lt.mass,stiffness:c,damping:f}}else{const s=bT({...a,velocity:0});i={...i,...s,mass:Lt.mass},i.isResolvedFromDuration=!0}return i}function Er(a=Lt.visualDuration,i=Lt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:r,restDelta:c}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],m={done:!1,value:f},{stiffness:y,damping:p,mass:v,duration:x,velocity:b,isResolvedFromDuration:R}=MT({...s,velocity:-He(s.velocity||0)}),D=b||0,_=p/(2*Math.sqrt(y*v)),w=d-f,U=He(Math.sqrt(y/v)),X=Math.abs(w)<5;r||(r=X?Lt.restSpeed.granular:Lt.restSpeed.default),c||(c=X?Lt.restDelta.granular:Lt.restDelta.default);let H;if(_<1){const K=Nc(U,_);H=et=>{const J=Math.exp(-_*U*et);return d-J*((D+_*U*w)/K*Math.sin(K*et)+w*Math.cos(K*et))}}else if(_===1)H=K=>d-Math.exp(-U*K)*(w+(D+U*w)*K);else{const K=U*Math.sqrt(_*_-1);H=et=>{const J=Math.exp(-_*U*et),W=Math.min(K*et,300);return d-J*((D+_*U*w)*Math.sinh(W)+K*w*Math.cosh(W))/K}}const P={calculatedDuration:R&&x||null,next:K=>{const et=H(K);if(R)m.done=K>=x;else{let J=K===0?D:0;_<1&&(J=K===0?Ze(D):dv(H,K,et));const W=Math.abs(J)<=r,ot=Math.abs(d-et)<=c;m.done=W&&ot}return m.value=m.done?d:et,m},toString:()=>{const K=Math.min(yf(P),Tr),et=fv(J=>P.next(K*J).value,K,30);return K+"ms "+et},toTransition:()=>{}};return P}Er.applyToOptions=a=>{const i=ST(a,100,Er);return a.ease=i.ease,a.duration=Ze(i.duration),a.type="keyframes",a};function zc({keyframes:a,velocity:i=0,power:s=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:m,max:y,restDelta:p=.5,restSpeed:v}){const x=a[0],b={done:!1,value:x},R=W=>m!==void 0&&W<m||y!==void 0&&W>y,D=W=>m===void 0?y:y===void 0||Math.abs(m-W)<Math.abs(y-W)?m:y;let _=s*i;const w=x+_,U=d===void 0?w:d(w);U!==w&&(_=U-x);const X=W=>-_*Math.exp(-W/r),H=W=>U+X(W),P=W=>{const ot=X(W),yt=H(W);b.done=Math.abs(ot)<=p,b.value=b.done?U:yt};let K,et;const J=W=>{R(b.value)&&(K=W,et=Er({keyframes:[b.value,D(b.value)],velocity:dv(H,W,b.value),damping:c,stiffness:f,restDelta:p,restSpeed:v}))};return J(0),{calculatedDuration:null,next:W=>{let ot=!1;return!et&&K===void 0&&(ot=!0,P(W),J(W)),K!==void 0&&W>=K?et.next(W-K):(!ot&&P(W),b)}}}function RT(a,i,s){const r=[],c=s||Mn.mix||cv,f=a.length-1;for(let d=0;d<f;d++){let m=c(a[d],a[d+1]);if(i){const y=Array.isArray(i)?i[d]||qe:i;m=Ll(y,m)}r.push(m)}return r}function DT(a,i,{clamp:s=!0,ease:r,mixer:c}={}){const f=a.length;if(of(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=RT(i,r,c),y=m.length,p=v=>{if(d&&v<a[0])return i[0];let x=0;if(y>1)for(;x<a.length-2&&!(v<a[x+1]);x++);const b=Nl(a[x],a[x+1],v);return m[x](b)};return s?v=>p(ln(a[0],a[f-1],v)):p}function jT(a,i){const s=a[a.length-1];for(let r=1;r<=i;r++){const c=Nl(0,i,r);a.push(_t(s,1,c))}}function wT(a){const i=[0];return jT(i,a.length-1),i}function NT(a,i){return a.map(s=>s*i)}function zT(a,i){return a.map(()=>i||Ig).splice(0,a.length-1)}function Rl({duration:a=300,keyframes:i,times:s,ease:r="easeInOut"}){const c=Xb(r)?r.map(Ip):Ip(r),f={done:!1,value:i[0]},d=NT(s&&s.length===i.length?s:wT(i),a),m=DT(d,i,{ease:Array.isArray(c)?c:zT(i,c)});return{calculatedDuration:a,next:y=>(f.value=m(y),f.done=y>=a,f)}}const OT=a=>a!==null;function gf(a,{repeat:i,repeatType:s="loop"},r,c=1){const f=a.filter(OT),m=c<0||i&&s!=="loop"&&i%2===1?0:f.length-1;return!m||r===void 0?f[m]:r}const VT={decay:zc,inertia:zc,tween:Rl,keyframes:Rl,spring:Er};function hv(a){typeof a.type=="string"&&(a.type=VT[a.type])}class vf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const _T=a=>a/100;class Sf extends vf{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;hv(i);const{type:s=Rl,repeat:r=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:m}=i;const y=s||Rl;y!==Rl&&typeof m[0]!="number"&&(this.mixKeyframes=Ll(_T,cv(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});f==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=yf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:r,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:v,repeat:x,repeatType:b,repeatDelay:R,type:D,onUpdate:_,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const U=this.currentTime-p*(this.playbackSpeed>=0?1:-1),X=this.playbackSpeed>=0?U<0:U>c;this.currentTime=Math.max(U,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let H=this.currentTime,P=r;if(x){const W=Math.min(this.currentTime,c)/m;let ot=Math.floor(W),yt=W%1;!yt&&W>=1&&(yt=1),yt===1&&ot--,ot=Math.min(ot,x+1),ot%2&&(b==="reverse"?(yt=1-yt,R&&(yt-=R/m)):b==="mirror"&&(P=d)),H=ln(0,1,yt)*m}const K=X?{done:!1,value:v[0]}:P.next(H);f&&(K.value=f(K.value));let{done:et}=K;!X&&y!==null&&(et=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&et);return J&&D!==zc&&(K.value=gf(v,this.options,w,this.speed)),_&&_(K.value),J&&this.finish(),K}then(i,s){return this.finished.then(i,s)}get duration(){return He(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+He(i)}get time(){return He(this.currentTime)}set time(i){i=Ze(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(ue.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=He(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=vT,startTime:s}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function BT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ca=a=>a*180/Math.PI,Oc=a=>{const i=Ca(Math.atan2(a[1],a[0]));return Vc(i)},UT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Oc,rotateZ:Oc,skewX:a=>Ca(Math.atan(a[1])),skewY:a=>Ca(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Vc=a=>(a=a%360,a<0&&(a+=360),a),sy=Oc,ry=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),oy=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),LT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ry,scaleY:oy,scale:a=>(ry(a)+oy(a))/2,rotateX:a=>Vc(Ca(Math.atan2(a[6],a[5]))),rotateY:a=>Vc(Ca(Math.atan2(-a[2],a[0]))),rotateZ:sy,rotate:sy,skewX:a=>Ca(Math.atan(a[4])),skewY:a=>Ca(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function _c(a){return a.includes("scale")?1:0}function Bc(a,i){if(!a||a==="none")return _c(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(s)r=LT,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=UT,c=m}if(!c)return _c(i);const f=r[i],d=c[1].split(",").map(qT);return typeof f=="function"?f(d):d[f]}const HT=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Bc(s,i)};function qT(a){return parseFloat(a.trim())}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ri=new Set(Mi),uy=a=>a===Ci||a===I,YT=new Set(["x","y","z"]),GT=Mi.filter(a=>!YT.has(a));function XT(a){const i=[];return GT.forEach(s=>{const r=a.getValue(s);r!==void 0&&(i.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),i}const ta={width:({x:a},{paddingLeft:i="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),height:({y:a},{paddingTop:i="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Bc(i,"x"),y:(a,{transform:i})=>Bc(i,"y")};ta.translateX=ta.x;ta.translateY=ta.y;const Ma=new Set;let Uc=!1,Lc=!1,Hc=!1;function mv(){if(Lc){const a=Array.from(Ma).filter(r=>r.needsMeasurement),i=new Set(a.map(r=>r.element)),s=new Map;i.forEach(r=>{const c=XT(r);c.length&&(s.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const c=s.get(r);c&&c.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Lc=!1,Uc=!1,Ma.forEach(a=>a.complete(Hc)),Ma.clear()}function pv(){Ma.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Lc=!0)})}function QT(){Hc=!0,pv(),mv(),Hc=!1}class xf{constructor(i,s,r,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=r,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ma.add(this),Uc||(Uc=!0,wt.read(pv),wt.resolveKeyframes(mv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:r,motionValue:c}=this;if(i[0]===null){const f=c?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&s){const m=r.readValue(s,d);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}BT(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ma.delete(this)}cancel(){this.state==="scheduled"&&(Ma.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const KT=a=>a.startsWith("--");function ZT(a,i,s){KT(i)?a.style.setProperty(i,s):a.style[i]=s}const kT={};function yv(a,i){const s=Xg(a);return()=>kT[i]??s()}const JT=yv(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),gv=yv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Cl=([a,i,s,r])=>`cubic-bezier(${a}, ${i}, ${s}, ${r})`,cy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cl([0,.65,.55,1]),circOut:Cl([.55,0,1,.45]),backIn:Cl([.31,.01,.66,-.59]),backOut:Cl([.33,1.53,.69,.99])};function vv(a,i){if(a)return typeof a=="function"?gv()?fv(a,i):"ease-out":tv(a)?Cl(a):Array.isArray(a)?a.map(s=>vv(s,i)||cy.easeOut):cy[a]}function FT(a,i,s,{delay:r=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:m="easeOut",times:y}={},p=void 0){const v={[i]:s};y&&(v.offset=y);const x=vv(m,c);Array.isArray(x)&&(v.easing=x);const b={delay:r,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),a.animate(v,b)}function Sv(a){return typeof a=="function"&&"applyToOptions"in a}function PT({type:a,...i}){return Sv(a)&&gv()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class xv extends vf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:r,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,of(typeof i.type!="string");const p=PT(i);this.animation=FT(s,r,c,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=gf(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(v):ZT(s,r,v),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return He(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+He(i)}get time(){return He(Number(this.animation.currentTime)||0)}set time(i){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ze(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&JT()?(this.animation.timeline=i,qe):s(this)}}const bv={anticipate:Pg,backInOut:Fg,circInOut:$g};function WT(a){return a in bv}function $T(a){typeof a.ease=="string"&&WT(a.ease)&&(a.ease=bv[a.ease])}const hc=10;class IT extends xv{constructor(i){$T(i),hv(i),super(i),i.startTime!==void 0&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:r,onComplete:c,element:f,...d}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new Sf({...d,autoplay:!1}),y=Math.max(hc,ue.now()-this.startTime),p=ln(0,hc,y-hc);s.setWithVelocity(m.sample(Math.max(0,y-p)).value,m.sample(y).value,p),m.stop()}}const fy=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ke.test(a)||a==="0")&&!a.startsWith("url("));function tE(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function eE(a,i,s,r){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const f=a[a.length-1],d=fy(c,i),m=fy(f,i);return!d||!m?!1:tE(a)||(s==="spring"||Sv(s))&&r}function qc(a){a.duration=0,a.type="keyframes"}const nE=new Set(["opacity","clipPath","filter","transform"]),aE=Xg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iE(a){const{motionValue:i,name:s,repeatDelay:r,repeatType:c,damping:f,type:d}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=i.owner.getProps();return aE()&&s&&nE.has(s)&&(s!=="transform"||!p)&&!y&&!r&&c!=="mirror"&&f!==0&&d!=="inertia"}const lE=40;class sE extends vf{constructor({autoplay:i=!0,delay:s=0,type:r="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:m,name:y,motionValue:p,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ue.now();const b={autoplay:i,delay:s,type:r,repeat:c,repeatDelay:f,repeatType:d,name:y,motionValue:p,element:v,...x},R=v?.KeyframeResolver||xf;this.keyframeResolver=new R(m,(D,_,w)=>this.onKeyframesResolved(D,_,b,!w),y,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,s,r,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:m,delay:y,isHandoff:p,onUpdate:v}=r;this.resolvedAt=ue.now(),eE(i,f,d,m)||((Mn.instantAnimations||!y)&&v?.(gf(i,r,s)),i[0]=i[i.length-1],qc(r),r.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>lE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:i},R=!p&&iE(b),D=b.motionValue?.owner?.current,_=R?new IT({...b,element:D}):new Sf(b);_.finished.then(()=>{this.notifyFinished()}).catch(qe),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),QT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Tv(a,i,s,r=0,c=1){const f=Array.from(a).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),d=a.size,m=(d-1)*r;return typeof s=="function"?s(f,d):c===1?f*r:m-f*r}const rE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oE(a){const i=rE.exec(a);if(!i)return[,];const[,s,r,c]=i;return[`--${s??r}`,c]}function Ev(a,i,s=1){const[r,c]=oE(a);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const d=f.trim();return qg(d)?parseFloat(d):d}return df(c)?Ev(c,i,s+1):c}const uE={type:"spring",stiffness:500,damping:25,restSpeed:10},cE=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),fE={type:"keyframes",duration:.8},dE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hE=(a,{keyframes:i})=>i.length>2?fE:Ri.has(a)?a.startsWith("scale")?cE(i[1]):uE:dE,mE=a=>a!==null;function pE(a,{repeat:i,repeatType:s="loop"},r){const c=a.filter(mE),f=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[f]}function Av(a,i){if(a?.inherit&&i){const{inherit:s,...r}=a;return{...i,...r}}return a}function bf(a,i){const s=a?.[i]??a?.default??a;return s!==a?Av(s,a):s}function yE({when:a,delay:i,delayChildren:s,staggerChildren:r,staggerDirection:c,repeat:f,repeatType:d,repeatDelay:m,from:y,elapsed:p,...v}){return!!Object.keys(v).length}const Tf=(a,i,s,r={},c,f)=>d=>{const m=bf(r,a)||{},y=m.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Ze(y);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:b=>{i.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{d(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:f?void 0:c};yE(m)||Object.assign(v,hE(a,v)),v.duration&&(v.duration=Ze(v.duration)),v.repeatDelay&&(v.repeatDelay=Ze(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(qc(v),v.delay===0&&(x=!0)),(Mn.instantAnimations||Mn.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,qc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,x&&!f&&i.get()!==void 0){const b=pE(v.keyframes,m);if(b!==void 0){wt.update(()=>{v.onUpdate(b),v.onComplete()});return}}return m.isSync?new Sf(v):new sE(v)};function dy(a){const i=[{},{}];return a?.values.forEach((s,r)=>{i[0][r]=s.get(),i[1][r]=s.getVelocity()}),i}function Ef(a,i,s,r){if(typeof i=="function"){const[c,f]=dy(r);i=i(s!==void 0?s:a.custom,c,f)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,f]=dy(r);i=i(s!==void 0?s:a.custom,c,f)}return i}function Si(a,i,s){const r=a.getProps();return Ef(r,i,s!==void 0?s:r.custom,a)}const Cv=new Set(["width","height","top","left","right","bottom",...Mi]),hy=30,gE=a=>!isNaN(parseFloat(a));class vE{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=ue.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=ue.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=gE(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new uf);const r=this.events[i].add(s);return i==="change"?()=>{r(),wt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,r){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>hy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,hy);return Qg(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bi(a,i){return new vE(a,i)}const Yc=a=>Array.isArray(a);function SE(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,bi(s))}function xE(a){return Yc(a)?a[a.length-1]||0:a}function bE(a,i){const s=Si(a,i);let{transitionEnd:r={},transition:c={},...f}=s||{};f={...f,...r};for(const d in f){const m=xE(f[d]);SE(a,d,m)}}const re=a=>!!(a&&a.getVelocity);function TE(a){return!!(re(a)&&a.add)}function Gc(a,i){const s=a.getValue("willChange");if(TE(s))return s.add(i);if(!s&&Mn.WillChange){const r=new Mn.WillChange("auto");a.addValue("willChange",r),r.add(i)}}function Af(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const EE="framerAppearId",Mv="data-"+Af(EE);function Rv(a){return a.props[Mv]}function AE({protectedKeys:a,needsAnimating:i},s){const r=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,r}function Dv(a,i,{delay:s=0,transitionOverride:r,type:c}={}){let{transition:f,transitionEnd:d,...m}=i;const y=a.getDefaultTransition();f=f?Av(f,y):y;const p=f?.reduceMotion;r&&(f=r);const v=[],x=c&&a.animationState&&a.animationState.getState()[c];for(const b in m){const R=a.getValue(b,a.latestValues[b]??null),D=m[b];if(D===void 0||x&&AE(x,b))continue;const _={delay:s,...bf(f||{},b)},w=R.get();if(w!==void 0&&!R.isAnimating&&!Array.isArray(D)&&D===w&&!_.velocity)continue;let U=!1;if(window.MotionHandoffAnimation){const P=Rv(a);if(P){const K=window.MotionHandoffAnimation(P,b,wt);K!==null&&(_.startTime=K,U=!0)}}Gc(a,b);const X=p??a.shouldReduceMotion;R.start(Tf(b,R,D,X&&Cv.has(b)?{type:!1}:_,a,U));const H=R.animation;H&&v.push(H)}if(d){const b=()=>wt.update(()=>{d&&bE(a,d)});v.length?Promise.all(v).then(b):b()}return v}function Xc(a,i,s={}){const r=Si(a,i,s.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(c=s.transitionOverride);const f=r?()=>Promise.all(Dv(a,r,s)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:x}=c;return CE(a,i,y,p,v,x,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[y,p]=m==="beforeChildren"?[f,d]:[d,f];return y().then(()=>p())}else return Promise.all([f(),d(s.delay)])}function CE(a,i,s=0,r=0,c=0,f=1,d){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(Xc(y,i,{...d,delay:s+(typeof r=="function"?0:r)+Tv(a.variantChildren,y,r,c,f)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function ME(a,i,s={}){a.notify("AnimationStart",i);let r;if(Array.isArray(i)){const c=i.map(f=>Xc(a,f,s));r=Promise.all(c)}else if(typeof i=="string")r=Xc(a,i,s);else{const c=typeof i=="function"?Si(a,i,s.custom):i;r=Promise.all(Dv(a,c,s))}return r.then(()=>{a.notify("AnimationComplete",i)})}const RE={test:a=>a==="auto",parse:a=>a},jv=a=>i=>i.test(a),wv=[Ci,I,an,In,nT,eT,RE],my=a=>wv.find(jv(a));function DE(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Gg(a):!0}const jE=new Set(["brightness","contrast","saturate","opacity"]);function wE(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[r]=s.match(hf)||[];if(!r)return a;const c=s.replace(r,"");let f=jE.has(i)?1:0;return r!==s&&(f*=100),i+"("+f+c+")"}const NE=/\b([a-z-]*)\(.*?\)/gu,Qc={...ke,getAnimatableNone:a=>{const i=a.match(NE);return i?i.map(wE).join(" "):a}},Kc={...ke,getAnimatableNone:a=>{const i=ke.parse(a);return ke.createTransformer(a)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},py={...Ci,transform:Math.round},zE={rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:or,scaleX:or,scaleY:or,scaleZ:or,skew:In,skewX:In,skewY:In,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:zl,originX:ey,originY:ey,originZ:I},Cf={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...zE,zIndex:py,fillOpacity:zl,strokeOpacity:zl,numOctaves:py},OE={...Cf,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Qc,WebkitFilter:Qc,mask:Kc,WebkitMask:Kc},Nv=a=>OE[a],VE=new Set([Qc,Kc]);function zv(a,i){let s=Nv(a);return VE.has(s)||(s=ke),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const _E=new Set(["auto","none","0"]);function BE(a,i,s){let r=0,c;for(;r<a.length&&!c;){const f=a[r];typeof f=="string"&&!_E.has(f)&&Ol(f).values.length&&(c=a[r]),r++}if(c&&s)for(const f of i)a[f]=zv(s,c)}class UE extends xf{constructor(i,s,r,c,f){super(i,s,r,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let x=i[v];if(typeof x=="string"&&(x=x.trim(),df(x))){const b=Ev(x,s.current);b!==void 0&&(i[v]=b),v===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!Cv.has(r)||i.length!==2)return;const[c,f]=i,d=my(c),m=my(f),y=ty(c),p=ty(f);if(y!==p&&ta[r]){this.needsMeasurement=!0;return}if(d!==m)if(uy(d)&&uy(m))for(let v=0;v<i.length;v++){const x=i[v];typeof x=="string"&&(i[v]=parseFloat(x))}else ta[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,r=[];for(let c=0;c<i.length;c++)(i[c]===null||DE(i[c]))&&r.push(c);r.length&&BE(i,r,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ta[r](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(r,c).jump(c,!1)}measureEndState(){const{element:i,name:s,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=ta[s](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,y])=>{i.getValue(m).set(y)}),this.resolveNoneKeyframes()}}const LE=new Set(["opacity","clipPath","filter","transform"]);function Ov(a,i,s){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=s?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(r=>r!=null)}const Vv=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function HE(a){return Yg(a)&&"offsetHeight"in a}const{schedule:Mf}=ev(queueMicrotask,!1),Ke={x:!1,y:!1};function _v(){return Ke.x||Ke.y}function qE(a){return a==="x"||a==="y"?Ke[a]?null:(Ke[a]=!0,()=>{Ke[a]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}function Bv(a,i){const s=Ov(a),r=new AbortController,c={passive:!0,...i,signal:r.signal};return[s,c,()=>r.abort()]}function YE(a){return!(a.pointerType==="touch"||_v())}function GE(a,i,s={}){const[r,c,f]=Bv(a,s);return r.forEach(d=>{let m=!1,y=!1,p;const v=()=>{d.removeEventListener("pointerleave",D)},x=w=>{p&&(p(w),p=void 0),v()},b=w=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,x(w))},R=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},D=w=>{if(w.pointerType!=="touch"){if(m){y=!0;return}x(w)}},_=w=>{if(!YE(w))return;y=!1;const U=i(d,w);typeof U=="function"&&(p=U,d.addEventListener("pointerleave",D,c))};d.addEventListener("pointerenter",_,c),d.addEventListener("pointerdown",R,c)}),f}const Uv=(a,i)=>i?a===i?!0:Uv(a,i.parentElement):!1,Rf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,XE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function QE(a){return XE.has(a.tagName)||a.isContentEditable===!0}const KE=new Set(["INPUT","SELECT","TEXTAREA"]);function ZE(a){return KE.has(a.tagName)||a.isContentEditable===!0}const hr=new WeakSet;function yy(a){return i=>{i.key==="Enter"&&a(i)}}function mc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const kE=(a,i)=>{const s=a.currentTarget;if(!s)return;const r=yy(()=>{if(hr.has(s))return;mc(s,"down");const c=yy(()=>{mc(s,"up")}),f=()=>mc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",f,i)});s.addEventListener("keydown",r,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),i)};function gy(a){return Rf(a)&&!_v()}const vy=new WeakSet;function JE(a,i,s={}){const[r,c,f]=Bv(a,s),d=m=>{const y=m.currentTarget;if(!gy(m)||vy.has(m))return;hr.add(y),s.stopPropagation&&vy.add(m);const p=i(y,m),v=(R,D)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",b),hr.has(y)&&hr.delete(y),gy(R)&&typeof p=="function"&&p(R,{success:D})},x=R=>{v(R,y===window||y===document||s.useGlobalTarget||Uv(y,R.target))},b=R=>{v(R,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",b,c)};return r.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",d,c),HE(m)&&(m.addEventListener("focus",p=>kE(p,c)),!QE(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),f}function Df(a){return Yg(a)&&"ownerSVGElement"in a}const mr=new WeakMap;let pr;const Lv=(a,i,s)=>(r,c)=>c&&c[0]?c[0][a+"Size"]:Df(r)&&"getBBox"in r?r.getBBox()[i]:r[s],FE=Lv("inline","width","offsetWidth"),PE=Lv("block","height","offsetHeight");function WE({target:a,borderBoxSize:i}){mr.get(a)?.forEach(s=>{s(a,{get width(){return FE(a,i)},get height(){return PE(a,i)}})})}function $E(a){a.forEach(WE)}function IE(){typeof ResizeObserver>"u"||(pr=new ResizeObserver($E))}function tA(a,i){pr||IE();const s=Ov(a);return s.forEach(r=>{let c=mr.get(r);c||(c=new Set,mr.set(r,c)),c.add(i),pr?.observe(r)}),()=>{s.forEach(r=>{const c=mr.get(r);c?.delete(i),c?.size||pr?.unobserve(r)})}}const yr=new Set;let pi;function eA(){pi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};yr.forEach(i=>i(a))},window.addEventListener("resize",pi)}function nA(a){return yr.add(a),pi||eA(),()=>{yr.delete(a),!yr.size&&typeof pi=="function"&&(window.removeEventListener("resize",pi),pi=void 0)}}function Sy(a,i){return typeof a=="function"?nA(a):tA(a,i)}function aA(a){return Df(a)&&a.tagName==="svg"}const iA=[...wv,Ft,ke],lA=a=>iA.find(jv(a)),xy=()=>({translate:0,scale:1,origin:0,originPoint:0}),yi=()=>({x:xy(),y:xy()}),by=()=>({min:0,max:0}),Wt=()=>({x:by(),y:by()}),sA=new WeakMap;function Nr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Vl(a){return typeof a=="string"||Array.isArray(a)}const jf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...jf];function zr(a){return Nr(a.animate)||wf.some(i=>Vl(a[i]))}function Hv(a){return!!(zr(a)||a.variants)}function rA(a,i,s){for(const r in i){const c=i[r],f=s[r];if(re(c))a.addValue(r,c);else if(re(f))a.addValue(r,bi(c,{owner:a}));else if(f!==c)if(a.hasValue(r)){const d=a.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(r);a.addValue(r,bi(d!==void 0?d:c,{owner:a}))}}for(const r in s)i[r]===void 0&&a.removeValue(r);return i}const Zc={current:null},qv={current:!1},oA=typeof window<"u";function uA(){if(qv.current=!0,!!oA)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Zc.current=a.matches;a.addEventListener("change",i),i()}else Zc.current=!1}const Ty=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ar={};function Yv(a){Ar=a}function cA(){return Ar}class fA{scrapeMotionValuesFromProps(i,s,r){return{}}constructor({parent:i,props:s,presenceContext:r,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:m},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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.renderScheduledAt=0,this.scheduleRender=()=>{const R=ue.now();this.renderScheduledAt<R&&(this.renderScheduledAt=R,wt.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=s,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=f,this.options=y,this.blockInitialAnimation=!!d,this.isControllingVariants=zr(s),this.isVariantNode=Hv(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:x,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const R in b){const D=b[R];p[R]!==void 0&&re(D)&&D.set(p[R])}}mount(i){if(this.hasBeenMounted)for(const s in this.initialValues)this.values.get(s)?.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=i,sA.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(qv.current||uA(),this.shouldReduceMotion=Zc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ea(this.notifyUpdate),ea(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&LE.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:m,times:y,ease:p,duration:v}=s.accelerate,x=new xv({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:Ze(v)}),b=d(x);this.valueSubscriptions.set(i,()=>{b(),x.cancel()});return}const r=Ri.has(i);r&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&wt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),f&&f(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Ar){const s=Ar[i];if(!s)continue;const{isEnabled:r,Feature:c}=s;if(!this.features[i]&&c&&r(this.props)&&(this.features[i]=new c(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let r=0;r<Ty.length;r++){const c=Ty[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=i[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=rA(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const r=this.values.get(i);s!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&s!==void 0&&(r=bi(s===null?void 0:s,{owner:this}),this.addValue(i,r)),r}readValue(i,s){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(qg(r)||Gg(r))?r=parseFloat(r):!lA(r)&&ke.test(s)&&(r=zv(i,s)),this.setBaseTarget(i,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=Ef(this.props,s,this.presenceContext?.custom);f&&(r=f[i])}if(s&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!re(c)?c:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new uf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){Mf.render(this.render)}}class Gv extends fA{constructor(){super(...arguments),this.KeyframeResolver=UE}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){const r=i.style;return r?r[s]:void 0}removeValueFromRenderState(i,{vars:s,style:r}){delete s[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;re(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class na{constructor(i){this.isMounted=!1,this.node=i}update(){}}function Xv({top:a,left:i,right:s,bottom:r}){return{x:{min:i,max:s},y:{min:a,max:r}}}function dA({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function hA(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),r=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function pc(a){return a===void 0||a===1}function kc({scale:a,scaleX:i,scaleY:s}){return!pc(a)||!pc(i)||!pc(s)}function Ea(a){return kc(a)||Qv(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Qv(a){return Ey(a.x)||Ey(a.y)}function Ey(a){return a&&a!=="0%"}function Cr(a,i,s){const r=a-s,c=i*r;return s+c}function Ay(a,i,s,r,c){return c!==void 0&&(a=Cr(a,c,r)),Cr(a,s,r)+i}function Jc(a,i=0,s=1,r,c){a.min=Ay(a.min,i,s,r,c),a.max=Ay(a.max,i,s,r,c)}function Kv(a,{x:i,y:s}){Jc(a.x,i.translate,i.scale,i.originPoint),Jc(a.y,s.translate,s.scale,s.originPoint)}const Cy=.999999999999,My=1.0000000000001;function mA(a,i,s,r=!1){const c=s.length;if(!c)return;i.x=i.y=1;let f,d;for(let m=0;m<c;m++){f=s[m],d=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&vi(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,Kv(a,d)),r&&Ea(f.latestValues)&&vi(a,f.latestValues))}i.x<My&&i.x>Cy&&(i.x=1),i.y<My&&i.y>Cy&&(i.y=1)}function gi(a,i){a.min=a.min+i,a.max=a.max+i}function Ry(a,i,s,r,c=.5){const f=_t(a.min,a.max,c);Jc(a,i,s,f,r)}function vi(a,i){Ry(a.x,i.x,i.scaleX,i.scale,i.originX),Ry(a.y,i.y,i.scaleY,i.scale,i.originY)}function Zv(a,i){return Xv(hA(a.getBoundingClientRect(),i))}function pA(a,i,s){const r=Zv(a,s),{scroll:c}=i;return c&&(gi(r.x,c.offset.x),gi(r.y,c.offset.y)),r}const yA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gA=Mi.length;function vA(a,i,s){let r="",c=!0;for(let f=0;f<gA;f++){const d=Mi[f],m=a[d];if(m===void 0)continue;let y=!0;if(typeof m=="number")y=m===(d.startsWith("scale")?1:0);else{const p=parseFloat(m);y=d.startsWith("scale")?p===1:p===0}if(!y||s){const p=Vv(m,Cf[d]);if(!y){c=!1;const v=yA[d]||d;r+=`${v}(${p}) `}s&&(i[d]=p)}}return r=r.trim(),s?r=s(i,c?"":r):c&&(r="none"),r}function Nf(a,i,s){const{style:r,vars:c,transformOrigin:f}=a;let d=!1,m=!1;for(const y in i){const p=i[y];if(Ri.has(y)){d=!0;continue}else if(av(y)){c[y]=p;continue}else{const v=Vv(p,Cf[y]);y.startsWith("origin")?(m=!0,f[y]=v):r[y]=v}}if(i.transform||(d||s?r.transform=vA(i,a.transform,s):r.transform&&(r.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:v=0}=f;r.transformOrigin=`${y} ${p} ${v}`}}function kv(a,{style:i,vars:s},r,c){const f=a.style;let d;for(d in i)f[d]=i[d];c?.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function Dy(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Al={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(I.test(a))a=parseFloat(a);else return a;const s=Dy(a,i.target.x),r=Dy(a,i.target.y);return`${s}% ${r}%`}},SA={correct:(a,{treeScale:i,projectionDelta:s})=>{const r=a,c=ke.parse(a);if(c.length>5)return r;const f=ke.createTransformer(a),d=typeof c[0]!="number"?1:0,m=s.x.scale*i.x,y=s.y.scale*i.y;c[0+d]/=m,c[1+d]/=y;const p=_t(m,y,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),f(c)}},Fc={borderRadius:{...Al,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Al,borderTopRightRadius:Al,borderBottomLeftRadius:Al,borderBottomRightRadius:Al,boxShadow:SA};function Jv(a,{layout:i,layoutId:s}){return Ri.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Fc[a]||a==="opacity")}function zf(a,i,s){const r=a.style,c=i?.style,f={};if(!r)return f;for(const d in r)(re(r[d])||c&&re(c[d])||Jv(d,a)||s?.getValue(d)?.liveStyle!==void 0)&&(f[d]=r[d]);return f}function xA(a){return window.getComputedStyle(a)}class bA extends Gv{constructor(){super(...arguments),this.type="html",this.renderInstance=kv}readValueFromInstance(i,s){if(Ri.has(s))return this.projection?.isProjecting?_c(s):HT(i,s);{const r=xA(i),c=(av(s)?r.getPropertyValue(s):r[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Zv(i,s)}build(i,s,r){Nf(i,s,r.transformTemplate)}scrapeMotionValuesFromProps(i,s,r){return zf(i,s,r)}}const TA={offset:"stroke-dashoffset",array:"stroke-dasharray"},EA={offset:"strokeDashoffset",array:"strokeDasharray"};function AA(a,i,s=1,r=0,c=!0){a.pathLength=1;const f=c?TA:EA;a[f.offset]=`${-r}`,a[f.array]=`${i} ${s}`}const CA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Fv(a,{attrX:i,attrY:s,attrScale:r,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...m},y,p,v){if(Nf(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:b}=a;x.transform&&(b.transform=x.transform,delete x.transform),(b.transform||x.transformOrigin)&&(b.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),b.transform&&(b.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const R of CA)x[R]!==void 0&&(b[R]=x[R],delete x[R]);i!==void 0&&(x.x=i),s!==void 0&&(x.y=s),r!==void 0&&(x.scale=r),c!==void 0&&AA(x,c,f,d,!1)}const Pv=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"]),Wv=a=>typeof a=="string"&&a.toLowerCase()==="svg";function MA(a,i,s,r){kv(a,i,void 0,r);for(const c in i.attrs)a.setAttribute(Pv.has(c)?c:Af(c),i.attrs[c])}function $v(a,i,s){const r=zf(a,i,s);for(const c in a)if(re(a[c])||re(i[c])){const f=Mi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[f]=a[c]}return r}class RA extends Gv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ri.has(s)){const r=Nv(s);return r&&r.default||0}return s=Pv.has(s)?s:Af(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,r){return $v(i,s,r)}build(i,s,r){Fv(i,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,s,r,c){MA(i,s,r,c)}mount(i){this.isSVGTag=Wv(i.tagName),super.mount(i)}}const DA=wf.length;function Iv(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?Iv(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<DA;s++){const r=wf[s],c=a.props[r];(Vl(c)||c===!1)&&(i[r]=c)}return i}function t0(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let r=0;r<s;r++)if(i[r]!==a[r])return!1;return!0}const jA=[...jf].reverse(),wA=jf.length;function NA(a){return i=>Promise.all(i.map(({animation:s,options:r})=>ME(a,s,r)))}function zA(a){let i=NA(a),s=jy(),r=!0;const c=y=>(p,v)=>{const x=Si(a,v,y==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:b,transitionEnd:R,...D}=x;p={...p,...D,...R}}return p};function f(y){i=y(a)}function d(y){const{props:p}=a,v=Iv(a.parent)||{},x=[],b=new Set;let R={},D=1/0;for(let w=0;w<wA;w++){const U=jA[w],X=s[U],H=p[U]!==void 0?p[U]:v[U],P=Vl(H),K=U===y?X.isActive:null;K===!1&&(D=w);let et=H===v[U]&&H!==p[U]&&P;if(et&&r&&a.manuallyAnimateOnMount&&(et=!1),X.protectedKeys={...R},!X.isActive&&K===null||!H&&!X.prevProp||Nr(H)||typeof H=="boolean")continue;if(U==="exit"&&X.isActive&&K!==!0){X.prevResolvedValues&&(R={...R,...X.prevResolvedValues});continue}const J=OA(X.prevProp,H);let W=J||U===y&&X.isActive&&!et&&P||w>D&&P,ot=!1;const yt=Array.isArray(H)?H:[H];let St=yt.reduce(c(U),{});K===!1&&(St={});const{prevResolvedValues:gt={}}=X,Ht={...gt,...St},qt=O=>{W=!0,b.has(O)&&(ot=!0,b.delete(O)),X.needsAnimating[O]=!0;const Z=a.getValue(O);Z&&(Z.liveStyle=!1)};for(const O in Ht){const Z=St[O],it=gt[O];if(R.hasOwnProperty(O))continue;let lt=!1;Yc(Z)&&Yc(it)?lt=!t0(Z,it):lt=Z!==it,lt?Z!=null?qt(O):b.add(O):Z!==void 0&&b.has(O)?qt(O):X.protectedKeys[O]=!0}X.prevProp=H,X.prevResolvedValues=St,X.isActive&&(R={...R,...St}),r&&a.blockInitialAnimation&&(W=!1);const xt=et&&J;W&&(!xt||ot)&&x.push(...yt.map(O=>{const Z={type:U};if(typeof O=="string"&&r&&!xt&&a.manuallyAnimateOnMount&&a.parent){const{parent:it}=a,lt=Si(it,O);if(it.enteringChildren&<){const{delayChildren:A}=lt.transition||{};Z.delay=Tv(it.enteringChildren,a,A)}}return{animation:O,options:Z}}))}if(b.size){const w={};if(typeof p.initial!="boolean"){const U=Si(a,Array.isArray(p.initial)?p.initial[0]:p.initial);U&&U.transition&&(w.transition=U.transition)}b.forEach(U=>{const X=a.getBaseTarget(U),H=a.getValue(U);H&&(H.liveStyle=!0),w[U]=X??null}),x.push({animation:w})}let _=!!x.length;return r&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(_=!1),r=!1,_?i(x):Promise.resolve()}function m(y,p){if(s[y].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(y,p)),s[y].isActive=p;const v=d(y);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:d,setActive:m,setAnimateFunction:f,getState:()=>s,reset:()=>{s=jy()}}}function OA(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!t0(i,a):!1}function Ta(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jy(){return{animate:Ta(!0),whileInView:Ta(),whileHover:Ta(),whileTap:Ta(),whileDrag:Ta(),whileFocus:Ta(),exit:Ta()}}function wy(a,i){a.min=i.min,a.max=i.max}function Qe(a,i){wy(a.x,i.x),wy(a.y,i.y)}function Ny(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const e0=1e-4,VA=1-e0,_A=1+e0,n0=.01,BA=0-n0,UA=0+n0;function ce(a){return a.max-a.min}function LA(a,i,s){return Math.abs(a-i)<=s}function zy(a,i,s,r=.5){a.origin=r,a.originPoint=_t(i.min,i.max,a.origin),a.scale=ce(s)/ce(i),a.translate=_t(s.min,s.max,a.origin)-a.originPoint,(a.scale>=VA&&a.scale<=_A||isNaN(a.scale))&&(a.scale=1),(a.translate>=BA&&a.translate<=UA||isNaN(a.translate))&&(a.translate=0)}function Dl(a,i,s,r){zy(a.x,i.x,s.x,r?r.originX:void 0),zy(a.y,i.y,s.y,r?r.originY:void 0)}function Oy(a,i,s){a.min=s.min+i.min,a.max=a.min+ce(i)}function HA(a,i,s){Oy(a.x,i.x,s.x),Oy(a.y,i.y,s.y)}function Vy(a,i,s){a.min=i.min-s.min,a.max=a.min+ce(i)}function Mr(a,i,s){Vy(a.x,i.x,s.x),Vy(a.y,i.y,s.y)}function _y(a,i,s,r,c){return a-=i,a=Cr(a,1/s,r),c!==void 0&&(a=Cr(a,1/c,r)),a}function qA(a,i=0,s=1,r=.5,c,f=a,d=a){if(an.test(i)&&(i=parseFloat(i),i=_t(d.min,d.max,i/100)-d.min),typeof i!="number")return;let m=_t(f.min,f.max,r);a===f&&(m-=i),a.min=_y(a.min,i,s,m,c),a.max=_y(a.max,i,s,m,c)}function By(a,i,[s,r,c],f,d){qA(a,i[s],i[r],i[c],i.scale,f,d)}const YA=["x","scaleX","originX"],GA=["y","scaleY","originY"];function Uy(a,i,s,r){By(a.x,i,YA,s?s.x:void 0,r?r.x:void 0),By(a.y,i,GA,s?s.y:void 0,r?r.y:void 0)}function Ly(a){return a.translate===0&&a.scale===1}function a0(a){return Ly(a.x)&&Ly(a.y)}function Hy(a,i){return a.min===i.min&&a.max===i.max}function XA(a,i){return Hy(a.x,i.x)&&Hy(a.y,i.y)}function qy(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function i0(a,i){return qy(a.x,i.x)&&qy(a.y,i.y)}function Yy(a){return ce(a.x)/ce(a.y)}function Gy(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function en(a){return[a("x"),a("y")]}function QA(a,i,s){let r="";const c=a.x.translate/i.x,f=a.y.translate/i.y,d=s?.z||0;if((c||f||d)&&(r=`translate3d(${c}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:x,rotateY:b,skewX:R,skewY:D}=s;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),x&&(r+=`rotateX(${x}deg) `),b&&(r+=`rotateY(${b}deg) `),R&&(r+=`skewX(${R}deg) `),D&&(r+=`skewY(${D}deg) `)}const m=a.x.scale*i.x,y=a.y.scale*i.y;return(m!==1||y!==1)&&(r+=`scale(${m}, ${y})`),r||"none"}const l0=["TopLeft","TopRight","BottomLeft","BottomRight"],KA=l0.length,Xy=a=>typeof a=="string"?parseFloat(a):a,Qy=a=>typeof a=="number"||I.test(a);function ZA(a,i,s,r,c,f){c?(a.opacity=_t(0,s.opacity??1,kA(r)),a.opacityExit=_t(i.opacity??1,0,JA(r))):f&&(a.opacity=_t(i.opacity??1,s.opacity??1,r));for(let d=0;d<KA;d++){const m=`border${l0[d]}Radius`;let y=Ky(i,m),p=Ky(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Qy(y)===Qy(p)?(a[m]=Math.max(_t(Xy(y),Xy(p),r),0),(an.test(p)||an.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||s.rotate)&&(a.rotate=_t(i.rotate||0,s.rotate||0,r))}function Ky(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const kA=s0(0,.5,Wg),JA=s0(.5,.95,qe);function s0(a,i,s){return r=>r<a?0:r>i?1:s(Nl(a,i,r))}function FA(a,i,s){const r=re(a)?a:bi(a);return r.start(Tf("",r,i,s)),r.animation}function _l(a,i,s,r={passive:!0}){return a.addEventListener(i,s,r),()=>a.removeEventListener(i,s)}const PA=(a,i)=>a.depth-i.depth;class WA{constructor(){this.children=[],this.isDirty=!1}add(i){rf(this.children,i),this.isDirty=!0}remove(i){xr(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(PA),this.isDirty=!1,this.children.forEach(i)}}function $A(a,i){const s=ue.now(),r=({timestamp:c})=>{const f=c-s;f>=i&&(ea(r),a(f-i))};return wt.setup(r,!0),()=>ea(r)}function gr(a){return re(a)?a.get():a}class IA{constructor(){this.members=[]}add(i){rf(this.members,i);for(let s=this.members.length-1;s>=0;s--){const r=this.members[s];if(r===i||r===this.lead||r===this.prevLead)continue;const c=r.instance;c&&c.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&xr(this.members,r)}i.scheduleRender()}remove(i){if(xr(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let r;for(let c=s;c>=0;c--){const f=this.members[c],d=f.instance;if(f.isPresent!==!1&&(!d||d.isConnected!==!1)){r=f;break}}return r?(this.promote(r),!0):!1}promote(i,s){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender();const c=r.options.layoutDependency,f=i.options.layoutDependency;if(!(c!==void 0&&f!==void 0&&c===f)){const y=r.instance;y&&y.isConnected===!1&&!r.snapshot||(i.resumeFrom=r,s&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0))}const{crossfade:m}=i.options;m===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:r}=i;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const vr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},yc=["","X","Y","Z"],t2=1e3;let e2=0;function gc(a,i,s,r){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),r&&(r[a]=0))}function r0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=Rv(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",wt,!(c||f))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&r0(r)}function o0({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},m=i?.()){this.id=e2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(i2),this.nodes.forEach(o2),this.nodes.forEach(u2),this.nodes.forEach(l2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new WA)}addEventListener(d,m){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new uf),this.eventHandlers.get(d).add(m)}notifyListeners(d,...m){const y=this.eventHandlers.get(d);y&&y.notify(...m)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Df(d)&&!aA(d),this.instance=d;const{layoutId:m,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),a){let v,x=0;const b=()=>this.root.updateBlockedByResize=!1;wt.read(()=>{x=window.innerWidth}),a(d,()=>{const R=window.innerWidth;R!==x&&(x=R,this.root.updateBlockedByResize=!0,v&&v(),v=$A(b,250),vr.hasAnimatedSinceResize&&(vr.hasAnimatedSinceResize=!1,this.nodes.forEach(Jy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:b,layout:R})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||p.getDefaultTransition()||m2,{onLayoutAnimationStart:_,onLayoutAnimationComplete:w}=p.getProps(),U=!this.targetLayout||!i0(this.targetLayout,R),X=!x&&b;if(this.options.layoutRoot||this.resumeFrom||X||x&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...bf(D,"layout"),onPlay:_,onComplete:w};(p.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(v,X)}else x||Jy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=R})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ea(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(c2),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&r0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:m,layout:y}=this.options;if(m===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ky);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r2),this.nodes.forEach(n2),this.nodes.forEach(a2)):this.nodes.forEach(ky),this.clearAllSnapshots();const m=ue.now();le.delta=ln(0,1e3/60,m-le.timestamp),le.timestamp=m,le.isProcessing=!0,oc.update.process(le),oc.preRender.process(le),oc.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s2),this.sharedNodes.forEach(f2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ce(this.snapshot.measuredBox.x)&&!ce(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(m=!1),m&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:y,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!a0(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;d&&this.instance&&(m||Ea(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return d&&(y=this.removeTransform(y)),p2(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Wt();const m=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(y2))){const{scroll:p}=this.root;p&&(gi(m.x,p.offset.x),gi(m.y,p.offset.y))}return m}removeElementScroll(d){const m=Wt();if(Qe(m,d),this.scroll?.wasRoot)return m;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:v,options:x}=p;p!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&Qe(m,d),gi(m.x,v.offset.x),gi(m.y,v.offset.y))}return m}applyTransform(d,m=!1){const y=Wt();Qe(y,d);for(let p=0;p<this.path.length;p++){const v=this.path[p];!m&&v.options.layoutScroll&&v.scroll&&v!==v.root&&vi(y,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Ea(v.latestValues)&&vi(y,v.latestValues)}return Ea(this.latestValues)&&vi(y,this.latestValues),y}removeTransform(d){const m=Wt();Qe(m,d);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!Ea(p.latestValues))continue;kc(p.latestValues)&&p.updateSnapshot();const v=Wt(),x=p.measurePageBox();Qe(v,x),Uy(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return Ea(this.latestValues)&&Uy(m,this.latestValues),m}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}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!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(d||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=le.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qe(this.target,this.layout.layoutBox),Kv(this.target,this.targetDelta)):Qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||kc(this.parent.latestValues)||Qv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,m,y){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Mr(this.relativeTargetOrigin,m,y),Qe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),m=!!this.resumingFrom||this!==d;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===le.timestamp&&(y=!1),y)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;Qe(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;mA(this.layoutCorrected,this.treeScale,this.path,m),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Wt());const{target:R}=d;if(!R){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ny(this.prevProjectionDelta.x,this.projectionDelta.x),Ny(this.prevProjectionDelta.y,this.projectionDelta.y)),Dl(this.projectionDelta,this.layoutCorrected,R,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!Gy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Gy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",R))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yi(),this.projectionDelta=yi(),this.projectionDeltaWithTransform=yi()}setAnimationOrigin(d,m=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},x=yi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=Wt(),R=y?y.source:void 0,D=this.layout?this.layout.source:void 0,_=R!==D,w=this.getStack(),U=!w||w.members.length<=1,X=!!(_&&!U&&this.options.crossfade===!0&&!this.path.some(h2));this.animationProgress=0;let H;this.mixTargetDelta=P=>{const K=P/1e3;Fy(x.x,d.x,K),Fy(x.y,d.y,K),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mr(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d2(this.relativeTarget,this.relativeTargetOrigin,b,K),H&&XA(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=Wt()),Qe(H,this.relativeTarget)),_&&(this.animationValues=v,ZA(v,p,this.latestValues,K,X,U)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ea(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{vr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bi(0)),this.motionValue.jump(0,!1),this.currentAnimation=FA(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),d.onUpdate&&d.onUpdate(m)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(t2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:v}=d;if(!(!m||!y||!p)){if(this!==d&&this.layout&&p&&u0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Wt();const x=ce(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+x;const b=ce(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+b}Qe(m,y),vi(m,v),Dl(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(d,m){this.sharedNodes.has(d)||this.sharedNodes.set(d,new IA),this.sharedNodes.get(d).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),d&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let m=!1;const{latestValues:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&gc("z",d,p,this.animationValues);for(let v=0;v<yc.length;v++)gc(`rotate${yc[v]}`,d,p,this.animationValues),gc(`skew${yc[v]}`,d,p,this.animationValues);d.render();for(const v in p)d.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);d.scheduleRender()}applyProjectionStyles(d,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=gr(m?.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=gr(m?.pointerEvents)||""),this.hasProjected&&!Ea(this.latestValues)&&(d.transform=y?y({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=QA(this.projectionDeltaWithTransform,this.treeScale,v);y&&(x=y(v,x)),d.transform=x;const{x:b,y:R}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${R.origin*100}% 0`,p.animationValues?d.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const D in Fc){if(v[D]===void 0)continue;const{correct:_,applyTo:w,isCSSVariable:U}=Fc[D],X=x==="none"?v[D]:_(v[D],p);if(w){const H=w.length;for(let P=0;P<H;P++)d[w[P]]=X}else U?this.options.visualElement.renderState.vars[D]=X:d[D]=X}this.options.layoutId&&(d.pointerEvents=p===this?gr(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Zy),this.root.sharedNodes.clear()}}}function n2(a){a.updateLayout()}function a2(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=a.layout,{animationType:c}=a.options,f=i.source!==a.layout.source;c==="size"?en(v=>{const x=f?i.measuredBox[v]:i.layoutBox[v],b=ce(x);x.min=s[v].min,x.max=x.min+b}):u0(c,i.layoutBox,s)&&en(v=>{const x=f?i.measuredBox[v]:i.layoutBox[v],b=ce(s[v]);x.max=x.min+b,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+b)});const d=yi();Dl(d,s,i.layoutBox);const m=yi();f?Dl(m,a.applyTransform(r,!0),i.measuredBox):Dl(m,s,i.layoutBox);const y=!a0(d);let p=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:b}=v;if(x&&b){const R=Wt();Mr(R,i.layoutBox,x.layoutBox);const D=Wt();Mr(D,s,b.layoutBox),i0(R,D)||(p=!0),v.options.layoutRoot&&(a.relativeTarget=D,a.relativeTargetOrigin=R,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:m,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:s}=a.options;s&&s()}a.options.transition=void 0}function i2(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function l2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function s2(a){a.clearSnapshot()}function Zy(a){a.clearMeasurements()}function ky(a){a.isLayoutDirty=!1}function r2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Jy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function o2(a){a.resolveTargetDelta()}function u2(a){a.calcProjection()}function c2(a){a.resetSkewAndRotation()}function f2(a){a.removeLeadSnapshot()}function Fy(a,i,s){a.translate=_t(i.translate,0,s),a.scale=_t(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Py(a,i,s,r){a.min=_t(i.min,s.min,r),a.max=_t(i.max,s.max,r)}function d2(a,i,s,r){Py(a.x,i.x,s.x,r),Py(a.y,i.y,s.y,r)}function h2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const m2={duration:.45,ease:[.4,0,.1,1]},Wy=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),$y=Wy("applewebkit/")&&!Wy("chrome/")?Math.round:qe;function Iy(a){a.min=$y(a.min),a.max=$y(a.max)}function p2(a){Iy(a.x),Iy(a.y)}function u0(a,i,s){return a==="position"||a==="preserve-aspect"&&!LA(Yy(i),Yy(s),.2)}function y2(a){return a!==a.root&&a.scroll?.wasRoot}const g2=o0({attachResizeListener:(a,i)=>_l(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),vc={current:void 0},c0=o0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!vc.current){const a=new g2({});a.mount(window),a.setOptions({layoutScroll:!0}),vc.current=a}return vc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),f0=E.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function v2(a=!0){const i=E.useContext(sf);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:c}=i,f=E.useId();E.useEffect(()=>{if(a)return c(f)},[a]);const d=E.useCallback(()=>a&&r&&r(f),[f,r,a]);return!s&&r?[!1,d]:[!0]}const d0=E.createContext({strict:!1}),tg={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"]};let eg=!1;function S2(){if(eg)return;const a={};for(const i in tg)a[i]={isEnabled:s=>tg[i].some(r=>!!s[r])};Yv(a),eg=!0}function h0(){return S2(),cA()}function x2(a){const i=h0();for(const s in a)i[s]={...i[s],...a[s]};Yv(i)}const b2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Rr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||b2.has(a)}let m0=a=>!Rr(a);function T2(a){typeof a=="function"&&(m0=i=>i.startsWith("on")?!Rr(i):a(i))}try{T2(require("@emotion/is-prop-valid").default)}catch{}function E2(a,i,s){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||(m0(c)||s===!0&&Rr(c)||!i&&!Rr(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const Or=E.createContext({});function A2(a,i){if(zr(a)){const{initial:s,animate:r}=a;return{initial:s===!1||Vl(s)?s:void 0,animate:Vl(r)?r:void 0}}return a.inherit!==!1?i:{}}function C2(a){const{initial:i,animate:s}=A2(a,E.useContext(Or));return E.useMemo(()=>({initial:i,animate:s}),[ng(i),ng(s)])}function ng(a){return Array.isArray(a)?a.join(" "):a}const Of=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function p0(a,i,s){for(const r in i)!re(i[r])&&!Jv(r,s)&&(a[r]=i[r])}function M2({transformTemplate:a},i){return E.useMemo(()=>{const s=Of();return Nf(s,i,a),Object.assign({},s.vars,s.style)},[i])}function R2(a,i){const s=a.style||{},r={};return p0(r,s,a),Object.assign(r,M2(a,i)),r}function D2(a,i){const s={},r=R2(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=r,s}const y0=()=>({...Of(),attrs:{}});function j2(a,i,s,r){const c=E.useMemo(()=>{const f=y0();return Fv(f,i,Wv(r),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[i]);if(a.style){const f={};p0(f,a.style,a),c.style={...f,...c.style}}return c}const w2=["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 Vf(a){return typeof a!="string"||a.includes("-")?!1:!!(w2.indexOf(a)>-1||/[A-Z]/u.test(a))}function N2(a,i,s,{latestValues:r},c,f=!1,d){const y=(d??Vf(a)?j2:D2)(i,r,c,a),p=E2(i,typeof a=="string",f),v=a!==E.Fragment?{...p,...y,ref:s}:{},{children:x}=i,b=E.useMemo(()=>re(x)?x.get():x,[x]);return E.createElement(a,{...v,children:b})}function z2({scrapeMotionValuesFromProps:a,createRenderState:i},s,r,c){return{latestValues:O2(s,r,c,a),renderState:i()}}function O2(a,i,s,r){const c={},f=r(a,{});for(const b in f)c[b]=gr(f[b]);let{initial:d,animate:m}=a;const y=zr(a),p=Hv(a);i&&p&&!y&&a.inherit!==!1&&(d===void 0&&(d=i.initial),m===void 0&&(m=i.animate));let v=s?s.initial===!1:!1;v=v||d===!1;const x=v?m:d;if(x&&typeof x!="boolean"&&!Nr(x)){const b=Array.isArray(x)?x:[x];for(let R=0;R<b.length;R++){const D=Ef(a,b[R]);if(D){const{transitionEnd:_,transition:w,...U}=D;for(const X in U){let H=U[X];if(Array.isArray(H)){const P=v?H.length-1:0;H=H[P]}H!==null&&(c[X]=H)}for(const X in _)c[X]=_[X]}}}return c}const g0=a=>(i,s)=>{const r=E.useContext(Or),c=E.useContext(sf),f=()=>z2(a,i,r,c);return s?f():_b(f)},V2=g0({scrapeMotionValuesFromProps:zf,createRenderState:Of}),_2=g0({scrapeMotionValuesFromProps:$v,createRenderState:y0}),B2=Symbol.for("motionComponentSymbol");function U2(a,i,s){const r=E.useRef(s);E.useInsertionEffect(()=>{r.current=s});const c=E.useRef(null);return E.useCallback(f=>{f&&a.onMount?.(f),i&&(f?i.mount(f):i.unmount());const d=r.current;if(typeof d=="function")if(f){const m=d(f);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f)},[i])}const v0=E.createContext({});function di(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function L2(a,i,s,r,c,f){const{visualElement:d}=E.useContext(Or),m=E.useContext(d0),y=E.useContext(sf),p=E.useContext(f0),v=p.reducedMotion,x=p.skipAnimations,b=E.useRef(null),R=E.useRef(!1);r=r||m.renderer,!b.current&&r&&(b.current=r(a,{visualState:i,parent:d,props:s,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:f}),R.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const D=b.current,_=E.useContext(v0);D&&!D.projection&&c&&(D.type==="html"||D.type==="svg")&&H2(b.current,s,c,_);const w=E.useRef(!1);E.useInsertionEffect(()=>{D&&w.current&&D.update(s,y)});const U=s[Mv],X=E.useRef(!!U&&!window.MotionHandoffIsComplete?.(U)&&window.MotionHasOptimisedAnimation?.(U));return Bb(()=>{R.current=!0,D&&(w.current=!0,window.MotionIsMounted=!0,D.updateFeatures(),D.scheduleRenderMicrotask(),X.current&&D.animationState&&D.animationState.animateChanges())}),E.useEffect(()=>{D&&(!X.current&&D.animationState&&D.animationState.animateChanges(),X.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(U)}),X.current=!1),D.enteringChildren=void 0)}),D}function H2(a,i,s,r){const{layoutId:c,layout:f,drag:d,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutCrossfade:v}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:S0(a.parent)),a.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||m&&di(m),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:y,layoutRoot:p})}function S0(a){if(a)return a.options.allowProjection!==!1?a.projection:S0(a.parent)}function Sc(a,{forwardMotionProps:i=!1,type:s}={},r,c){r&&x2(r);const f=s?s==="svg":Vf(a),d=f?_2:V2;function m(p,v){let x;const b={...E.useContext(f0),...p,layoutId:q2(p)},{isStatic:R}=b,D=C2(p),_=d(p,R);if(!R&&Hg){Y2();const w=G2(b);x=w.MeasureLayout,D.visualElement=L2(a,_,b,c,w.ProjectionNode,f)}return g.jsxs(Or.Provider,{value:D,children:[x&&D.visualElement?g.jsx(x,{visualElement:D.visualElement,...b}):null,N2(a,p,U2(_,D.visualElement,v),_,R,i,f)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=E.forwardRef(m);return y[B2]=a,y}function q2({layoutId:a}){const i=E.useContext(Lg).id;return i&&a!==void 0?i+"-"+a:a}function Y2(a,i){E.useContext(d0).strict}function G2(a){const i=h0(),{drag:s,layout:r}=i;if(!s&&!r)return{};const c={...s,...r};return{MeasureLayout:s?.isEnabled(a)||r?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function X2(a,i){if(typeof Proxy>"u")return Sc;const s=new Map,r=(f,d)=>Sc(f,d,a,i),c=(f,d)=>r(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?r:(s.has(d)||s.set(d,Sc(d,void 0,a,i)),s.get(d))})}const Q2=(a,i)=>i.isSVG??Vf(a)?new RA(i):new bA(i,{allowProjection:a!==E.Fragment});class K2 extends na{constructor(i){super(i),i.animationState||(i.animationState=zA(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Nr(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Z2=0;class k2 extends na{constructor(){super(...arguments),this.id=Z2++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const J2={animation:{Feature:K2},exit:{Feature:k2}};function Yl(a){return{point:{x:a.pageX,y:a.pageY}}}const F2=a=>i=>Rf(i)&&a(i,Yl(i));function jl(a,i,s,r){return _l(a,i,F2(s),r)}const x0=({current:a})=>a?a.ownerDocument.defaultView:null,ag=(a,i)=>Math.abs(a-i);function P2(a,i){const s=ag(a.x,i.x),r=ag(a.y,i.y);return Math.sqrt(s**2+r**2)}const ig=new Set(["auto","scroll"]);class b0{constructor(i,s,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=R=>{this.handleScroll(R.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=bc(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,_=P2(R.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!_)return;const{point:w}=R,{timestamp:U}=le;this.history.push({...w,timestamp:U});const{onStart:X,onMove:H}=this.handlers;D||(X&&X(this.lastMoveEvent,R),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,R)},this.handlePointerMove=(R,D)=>{this.lastMoveEvent=R,this.lastMoveEventInfo=xc(D,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(R,D)=>{this.end();const{onEnd:_,onSessionEnd:w,resumeAnimation:U}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&U&&U(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const X=bc(R.type==="pointercancel"?this.lastMoveEventInfo:xc(D,this.transformPagePoint),this.history);this.startEvent&&_&&_(R,X),w&&w(R,X)},!Rf(i))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const y=Yl(i),p=xc(y,this.transformPagePoint),{point:v}=p,{timestamp:x}=le;this.history=[{...v,timestamp:x}];const{onSessionStart:b}=s;b&&b(i,bc(p,this.history)),this.removeListeners=Ll(jl(this.contextWindow,"pointermove",this.handlePointerMove),jl(this.contextWindow,"pointerup",this.handlePointerUp),jl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const r=getComputedStyle(s);(ig.has(r.overflowX)||ig.has(r.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const s=this.scrollPositions.get(i);if(!s)return;const r=i===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:c.x-s.x,y:c.y-s.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,c),wt.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ea(this.updatePoint)}}function xc(a,i){return i?{point:i(a.point)}:a}function lg(a,i){return{x:a.x-i.x,y:a.y-i.y}}function bc({point:a},i){return{point:a,delta:lg(a,T0(i)),offset:lg(a,W2(i)),velocity:$2(i,.1)}}function W2(a){return a[0]}function T0(a){return a[a.length-1]}function $2(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,r=null;const c=T0(a);for(;s>=0&&(r=a[s],!(c.timestamp-r.timestamp>Ze(i)));)s--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&c.timestamp-r.timestamp>Ze(i)*2&&(r=a[1]);const f=He(c.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-r.x)/f,y:(c.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function I2(a,{min:i,max:s},r){return i!==void 0&&a<i?a=r?_t(i,a,r.min):Math.max(a,i):s!==void 0&&a>s&&(a=r?_t(s,a,r.max):Math.min(a,s)),a}function sg(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function tC(a,{top:i,left:s,bottom:r,right:c}){return{x:sg(a.x,s,c),y:sg(a.y,i,r)}}function rg(a,i){let s=i.min-a.min,r=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,r]=[r,s]),{min:s,max:r}}function eC(a,i){return{x:rg(a.x,i.x),y:rg(a.y,i.y)}}function nC(a,i){let s=.5;const r=ce(a),c=ce(i);return c>r?s=Nl(i.min,i.max-r,a.min):r>c&&(s=Nl(a.min,a.max-c,i.min)),ln(0,1,s)}function aC(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const Pc=.35;function iC(a=Pc){return a===!1?a=0:a===!0&&(a=Pc),{x:og(a,"left","right"),y:og(a,"top","bottom")}}function og(a,i,s){return{min:ug(a,i),max:ug(a,s)}}function ug(a,i){return typeof a=="number"?a:a[i]||0}const lC=new WeakMap;class sC{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=x=>{s&&this.snapToCursor(Yl(x).point),this.stopAnimation()},d=(x,b)=>{const{drag:R,dragPropagation:D,onDragStart:_}=this.getProps();if(R&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qE(R),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),en(U=>{let X=this.getAxisMotionValue(U).get()||0;if(an.test(X)){const{projection:H}=this.visualElement;if(H&&H.layout){const P=H.layout.layoutBox[U];P&&(X=ce(P)*(parseFloat(X)/100))}}this.originPoint[U]=X}),_&&wt.update(()=>_(x,b),!1,!0),Gc(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},m=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b;const{dragPropagation:R,dragDirectionLock:D,onDirectionLock:_,onDrag:w}=this.getProps();if(!R&&!this.openDragLock)return;const{offset:U}=b;if(D&&this.currentDirection===null){this.currentDirection=oC(U),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",b.point,U),this.updateAxis("y",b.point,U),this.visualElement.render(),w&&wt.update(()=>w(x,b),!1,!0)},y=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b,this.stop(x,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new b0(i,{onSessionStart:f,onStart:d,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:x0(this.visualElement),element:this.visualElement.current})}stop(i,s){const r=i||this.latestPointerEvent,c=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:m}=this.getProps();m&&wt.postRender(()=>m(r,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,s,r){const{drag:c}=this.getProps();if(!r||!ur(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=I2(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&di(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=tC(r.layoutBox,i):this.constraints=!1,this.elastic=iC(s),c!==this.constraints&&!di(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&en(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=aC(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!di(i))return!1;const r=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=pA(r,c.root,this.visualElement.getTransformPagePoint());let d=eC(c.layout.layoutBox,f);if(s){const m=s(dA(d));this.hasMutatedConstraints=!!m,m&&(d=Xv(m))}return d}startAnimation(i){const{drag:s,dragMomentum:r,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=en(v=>{if(!ur(v,s,this.currentDirection))return;let x=y&&y[v]||{};d&&(x={min:0,max:0});const b=c?200:1e6,R=c?40:1e7,D={type:"inertia",velocity:r?i[v]:0,bounceStiffness:b,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...f,...x};return this.startAxisValueAnimation(v,D)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const r=this.getAxisMotionValue(i);return Gc(this.visualElement,i),r.start(Tf(i,r,0,s,this.visualElement,!1))}stopAnimation(){en(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),c=r[s];return c||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){en(s=>{const{drag:r}=this.getProps();if(!ur(s,r,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(s);if(c&&c.layout){const{min:d,max:m}=c.layout.layoutBox[s],y=f.get()||0;f.set(i[s]-_t(d,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!di(s)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};en(d=>{const m=this.getAxisMotionValue(d);if(m&&this.constraints!==!1){const y=m.get();c[d]=nC({min:y,max:y},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),en(d=>{if(!ur(d,i,null))return;const m=this.getAxisMotionValue(d),{min:y,max:p}=this.constraints[d];m.set(_t(y,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;lC.set(this.visualElement,this);const i=this.visualElement.current,s=jl(i,"pointerdown",p=>{const{drag:v,dragListener:x=!0}=this.getProps(),b=p.target,R=b!==i&&ZE(b);v&&x&&!R&&this.start(p)});let r;const c=()=>{const{dragConstraints:p}=this.getProps();di(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=rC(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",c);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),wt.read(c);const m=_l(window,"resize",()=>this.scalePositionWithinConstraints()),y=f.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(en(x=>{const b=this.getAxisMotionValue(x);b&&(this.originPoint[x]+=p[x].translate,b.set(b.get()+p[x].translate))}),this.visualElement.render())}));return()=>{m(),s(),d(),y&&y(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=Pc,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:r,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:m}}}function cg(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function rC(a,i,s){const r=Sy(a,cg(s)),c=Sy(i,cg(s));return()=>{r(),c()}}function ur(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function oC(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class uC extends na{constructor(i){super(i),this.removeGroupControls=qe,this.removeListeners=qe,this.controls=new sC(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qe}update(){const{dragControls:i}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};i!==s&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Tc=a=>(i,s)=>{a&&wt.update(()=>a(i,s),!1,!0)};class cC extends na{constructor(){super(...arguments),this.removePointerDownListener=qe}onPointerDown(i){this.session=new b0(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:x0(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Tc(i),onStart:Tc(s),onMove:Tc(r),onEnd:(f,d)=>{delete this.session,c&&wt.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=jl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ec=!1;class fC extends E.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r,layoutId:c}=this.props,{projection:f}=i;f&&(s.group&&s.group.add(f),r&&r.register&&c&&r.register(f),Ec&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),vr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:r,drag:c,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,i.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),Ec=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||wt.postRender(()=>{const m=d.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Mf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:c}=i;Ec=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function E0(a){const[i,s]=v2(),r=E.useContext(Lg);return g.jsx(fC,{...a,layoutGroup:r,switchLayoutGroup:E.useContext(v0),isPresent:i,safeToRemove:s})}const dC={pan:{Feature:cC},drag:{Feature:uC,ProjectionNode:c0,MeasureLayout:E0}};function fg(a,i,s){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,f=r[c];f&&wt.postRender(()=>f(i,Yl(i)))}class hC extends na{mount(){const{current:i}=this.node;i&&(this.unmount=GE(i,(s,r)=>(fg(this.node,r,"Start"),c=>fg(this.node,c,"End"))))}unmount(){}}class mC extends na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Ll(_l(this.node.current,"focus",()=>this.onFocus()),_l(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dg(a,i,s){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),f=r[c];f&&wt.postRender(()=>f(i,Yl(i)))}class pC extends na{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:r}=this.node.props;this.unmount=JE(i,(c,f)=>(dg(this.node,f,"Start"),(d,{success:m})=>dg(this.node,d,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:r?.tap===!1})}unmount(){}}const Wc=new WeakMap,Ac=new WeakMap,yC=a=>{const i=Wc.get(a.target);i&&i(a)},gC=a=>{a.forEach(yC)};function vC({root:a,...i}){const s=a||document;Ac.has(s)||Ac.set(s,{});const r=Ac.get(s),c=JSON.stringify(i);return r[c]||(r[c]=new IntersectionObserver(gC,{root:a,...i})),r[c]}function SC(a,i,s){const r=vC(i);return Wc.set(a,s),r.observe(a),()=>{Wc.delete(a),r.unobserve(a)}}const xC={some:0,all:1};class bC extends na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:c="some",once:f}=i,d={root:s?s.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:xC[c]},m=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),b=p?v:x;b&&b(y)};return SC(this.node.current,d,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(TC(i,s))&&this.startObserver()}unmount(){}}function TC({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const EC={inView:{Feature:bC},tap:{Feature:pC},focus:{Feature:mC},hover:{Feature:hC}},AC={layout:{ProjectionNode:c0,MeasureLayout:E0}},CC={...J2,...EC,...dC,...AC},Je=X2(CC,Q2),MC="http://localhost:18789";async function Ra(a,i){const s=await fetch(`${MC}${a}`,{...i,headers:{"Content-Type":"application/json",...i?.headers}});if(!s.ok)throw new Error(`API error: ${s.status} ${s.statusText}`);return s.json()}async function RC(){return Ra("/api/status")}async function DC(){return Ra("/api/identity")}async function jC(){return Ra("/api/sessions")}async function wC(){return Ra("/api/queue")}async function NC(){return Ra("/api/mcp")}async function zC(a,i="normal"){return Ra("/api/queue",{method:"POST",body:JSON.stringify({prompt:a,priority:i,source:"web"})})}async function OC(){return Ra("/api/svrn/status")}const VC=50,_C=200,BC="Assistant";function hg(a,i){if(typeof a!="string")return;const s=a.trim();if(s)return s.length<=i?s:s.slice(0,i)}function mg(a){const i=hg(a?.name,VC)??BC,s=hg(a?.avatar??void 0,_C)??null;return{agentId:typeof a?.agentId=="string"&&a.agentId.trim()?a.agentId.trim():null,name:i,avatar:s}}function UC(){return mg(typeof window>"u"?{}:{name:window.__ANIMA_ASSISTANT_NAME__,avatar:window.__ANIMA_ASSISTANT_AVATAR__})}const LC="ws://localhost:18789/ws",Cc="main",pg=3;function hi(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function xi(a){if(!a)return"";if(typeof a=="string")return a;if(Array.isArray(a))return a.map(i=>xi(i)).join(`
|
|
12
|
-
`).trim();if(typeof a=="object"){const i=a;if(typeof i.text=="string"||i.type==="text"&&typeof i.text=="string")return i.text;if(i.message)return xi(i.message);if(i.content)return xi(i.content)}return""}function HC(a,i){const s=i.replace(/\r/g,"");if(!s)return a;if(!a)return s;if(s===a)return a;if(s.startsWith(a))return s;if(a.startsWith(s)||a.endsWith(s))return a;if(s.includes(a))return s;const r=Math.min(a.length,s.length);for(let c=r;c>0;c-=1)if(a.slice(-c)===s.slice(0,c))return`${a}${s.slice(c)}`;return`${a}${s}`}function qC(a){if(!Array.isArray(a))return[];const i=[];for(const s of a){if(!s||typeof s!="object")continue;const r=s,c=r.role;if(c!=="user"&&c!=="assistant")continue;const f=xi(r.content).trim();if(!f)continue;const d=typeof r.timestamp=="number"?r.timestamp:Date.now();i.push({id:hi(),role:c,text:f,timestamp:d})}return i}function YC({running:a,beatCount:i}){return g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"24px"},children:[g.jsxs("div",{style:{position:"relative",width:"80px",height:"80px"},children:[g.jsx(Je.div,{className:a?"pulse-ring":"",style:{position:"absolute",inset:0,borderRadius:"50%",border:`2px solid ${a?"var(--color-accent)":"var(--color-border)"}`,opacity:a?1:.4}}),g.jsx(Je.div,{animate:a?{scale:[1,1.2,1]}:{},transition:a?{duration:1,repeat:1/0}:{},style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"24px",height:"24px",borderRadius:"50%",background:a?"var(--color-accent)":"var(--color-border)",boxShadow:a?"0 0 20px rgba(255, 102, 0, 0.5)":"none"}})]}),g.jsxs("div",{children:[g.jsx("div",{style:{fontSize:"20px",fontWeight:600,fontFamily:"var(--font-heading)"},children:a?"Alive":"Offline"}),g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)"},children:["Beat #",i]})]})]})}function GC({spent:a,remaining:i,limit:s}){const r=Math.min(a/Math.max(s,1),1),c=r<.5?"var(--color-success)":r<.8?"var(--color-warning)":"var(--color-error)";return g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"card-header",children:[g.jsx("span",{className:"card-title",children:"Daily Budget"}),g.jsxs("span",{className:"card-subtitle",children:["$",a.toFixed(2)," / $",s.toFixed(0)]})]}),g.jsx("div",{className:"progress-bar",children:g.jsx(Je.div,{className:"progress-fill",initial:{width:0},animate:{width:`${r*100}%`},style:{background:c}})}),g.jsxs("div",{style:{marginTop:"8px",fontSize:"13px",color:"var(--color-muted)"},children:["$",i.toFixed(2)," remaining"]})]})}function XC({items:a}){return a.length===0?g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",children:"Request Queue"}),g.jsx("div",{style:{padding:"16px 0",color:"var(--color-muted)",fontSize:"13px"},children:"Queue is empty."})]}):g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",style:{marginBottom:"12px"},children:"Request Queue"}),a.slice(0,8).map(i=>g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[g.jsx("span",{className:`badge ${i.status}`,children:i.status}),g.jsx("span",{className:"mono",style:{color:"var(--color-muted)",fontSize:"11px"},children:i.id}),g.jsx("span",{style:{flex:1,fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.prompt}),g.jsx("span",{className:"badge",style:{background:"var(--color-accent-glow)",color:"var(--color-accent)"},children:i.priority})]},i.id))]})}function QC({svrn:a}){if(!a)return g.jsx("div",{className:"card",children:g.jsxs("div",{className:"card-header",children:[g.jsx("span",{className:"card-title",children:"SVRN Node"}),g.jsx("span",{className:"card-subtitle",children:"Loading..."})]})});const i=a.running?a.paused?"var(--color-warning)":"var(--color-success)":"var(--color-muted)",s=a.running?a.paused?"Paused":"Active":a.enabled?"Stopped":"Disabled";return g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"card-header",style:{marginBottom:"12px"},children:[g.jsx("span",{className:"card-title",children:"SVRN Node"}),g.jsx("span",{style:{fontSize:"12px",fontWeight:600,color:i,textTransform:"uppercase",letterSpacing:"1px"},children:s})]}),g.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"8px"},children:[g.jsx("span",{style:{fontSize:"28px",fontWeight:700,color:"var(--color-accent)",fontFamily:"var(--font-heading)"},children:a.balance.toFixed(3)}),g.jsxs("span",{style:{fontSize:"12px",color:"var(--color-muted)"},children:["UCU (~$",a.earnings.balanceValueUSD.toFixed(2),")"]})]}),g.jsxs("div",{style:{display:"flex",gap:"16px",fontSize:"12px",marginBottom:"12px"},children:[g.jsxs("span",{style:{color:"var(--color-success)"},children:["Session: +",a.sessionEarnings.toFixed(3)," UCU"]}),g.jsxs("span",{style:{color:"var(--color-muted)"},children:["Today: ",a.earnings.todayEarned.toFixed(3)," UCU (",a.earnings.todayTasks," tasks)"]})]}),g.jsxs("div",{style:{display:"flex",gap:"16px",fontSize:"12px",marginTop:"12px",color:"var(--color-muted)"},children:[g.jsxs("span",{children:["Completed: ",a.tasksCompleted]}),g.jsxs("span",{style:{color:a.tasksFailed>0?"var(--color-error)":void 0},children:["Failed: ",a.tasksFailed]})]})]})}function KC(){const a=E.useMemo(()=>UC().name||"Assistant",[]),i=`${a} Home`,s=`Talk to ${a}`,r=`Message ${a} directly...`,[c,f]=E.useState(null),[d,m]=E.useState([]),[y,p]=E.useState(null),[v,x]=E.useState(null),[b,R]=E.useState(!1),[D,_]=E.useState([]),[w,U]=E.useState(""),[X,H]=E.useState(null),[P,K]=E.useState(!1),[et,J]=E.useState(""),W=E.useRef(null),ot=E.useRef(new Map),yt=E.useRef(null),St=E.useRef(null),gt=E.useRef(null),Ht=E.useRef(""),qt=E.useRef(null);E.useEffect(()=>{Ht.current=et},[et]),E.useEffect(()=>{let O=!0;async function Z(){try{const[lt,A]=await Promise.all([RC(),wC()]);if(!O)return;f(lt),m(A),x(null);try{const B=await OC();O&&p(B)}catch{}}catch{O&&x("Could not connect to ANIMA daemon")}}Z();const it=setInterval(Z,5e3);return()=>{O=!1,clearInterval(it)}},[]),E.useEffect(()=>{qt.current?.scrollIntoView({behavior:"smooth",block:"end"})},[D,et]);const xt=E.useMemo(()=>function(Z,it){const lt=W.current;if(!lt||lt.readyState!==WebSocket.OPEN)return Promise.reject(new Error("Gateway websocket is not connected"));const A=hi(),B={type:"req",id:A,method:Z,params:it};return new Promise((k,Q)=>{ot.current.set(A,{resolve:k,reject:F=>Q(F)});try{lt.send(JSON.stringify(B))}catch(F){ot.current.delete(A),Q(F instanceof Error?F:new Error(String(F)))}})},[]);E.useEffect(()=>{let O=!1;function Z(Q){for(const F of ot.current.values())F.reject(new Error(Q));ot.current.clear()}async function it(){try{const Q=await xt("chat.history",{sessionKey:Cc,limit:120});if(O)return;const nt=qC(Q?.messages);_(nt)}catch(Q){O||H(Q instanceof Error?Q.message:String(Q))}}async function lt(){try{if(await xt("connect",{minProtocol:pg,maxProtocol:pg,client:{id:"anima-control-ui",version:"1.0.0",platform:"web",mode:"webchat"},role:"operator",scopes:["operator.admin"],caps:[]}),O)return;R(!0),H(null),it()}catch(Q){O||(R(!1),H(Q instanceof Error?Q.message:String(Q)))}}function A(){O||yt.current!==null||(yt.current=window.setTimeout(()=>{yt.current=null,O||k()},1500))}function B(Q){if(Q.sessionKey&&Q.sessionKey!==Cc)return;const F=Q.state;if(F==="delta"){const nt=xi(Q.message);nt&&J(rt=>HC(rt,nt));return}if(F==="final"){const nt=gt.current;if(Q.runId&&nt&&Q.runId!==nt){it();return}const rt=xi(Q.message).trim()||Ht.current.trim();rt&&_(Yt=>[...Yt,{id:hi(),role:"assistant",text:rt,timestamp:Date.now()}]),gt.current=null,K(!1),J("");return}if(F==="error"){const nt=Q.errorMessage||"Chat run failed";H(nt),_(rt=>[...rt,{id:hi(),role:"assistant",text:`Error: ${nt}`,timestamp:Date.now()}]),gt.current=null,K(!1),J("");return}F==="aborted"&&(gt.current=null,K(!1),J(""))}function k(){const Q=new WebSocket(LC);W.current=Q,R(!1),Q.onopen=()=>{St.current&&window.clearTimeout(St.current),St.current=window.setTimeout(()=>{St.current=null,lt()},300)},Q.onmessage=F=>{let nt;try{nt=JSON.parse(String(F.data))}catch{return}const rt=nt;if(rt.type==="res"){const Yt=ot.current.get(rt.id);if(!Yt)return;ot.current.delete(rt.id),rt.ok?Yt.resolve(rt.payload):Yt.reject(new Error(rt.error?.message||"Gateway request failed"));return}if(rt.type==="event"){if(rt.event==="connect.challenge"){lt();return}rt.event==="chat"&&B(rt.payload||{})}},Q.onerror=()=>{H("Websocket error while connecting to ANIMA gateway")},Q.onclose=()=>{R(!1),Z("Gateway websocket closed"),A()}}return k(),()=>{O=!0,St.current&&window.clearTimeout(St.current),yt.current&&window.clearTimeout(yt.current),Z("Dashboard shutting down"),W.current?.close(),W.current=null}},[xt]);async function L(O){O.preventDefault();const Z=w.trim();if(!Z||P)return;const it=W.current;if(!it||it.readyState!==WebSocket.OPEN){H("Gateway websocket is not connected");return}const lt=hi();gt.current=lt,_(A=>[...A,{id:hi(),role:"user",text:Z,timestamp:Date.now()}]),U(""),K(!0),J(""),H(null);try{await xt("chat.send",{sessionKey:Cc,message:Z,deliver:!1,idempotencyKey:lt})}catch(A){const B=A instanceof Error?A.message:String(A);H(B),K(!1),J(""),gt.current=null}}return v?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:i}),g.jsxs("div",{className:"card",style:{textAlign:"center",padding:"40px"},children:[g.jsx("div",{style:{fontSize:"48px",marginBottom:"16px",opacity:.3},children:"~"}),g.jsx("div",{style:{color:"var(--color-muted)",fontSize:"15px"},children:v}),g.jsxs("div",{style:{color:"var(--color-muted)",fontSize:"13px",marginTop:"8px"},children:["Start the daemon with: ",g.jsx("span",{className:"mono",children:"anima start"})]})]})]}):c?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:i}),g.jsxs("div",{className:"home-grid",children:[g.jsxs("div",{className:"card live-chat-card",children:[g.jsxs("div",{className:"card-header",style:{marginBottom:"8px"},children:[g.jsxs("div",{children:[g.jsx("div",{className:"card-title",children:s}),g.jsx("div",{className:"card-subtitle",children:"ANIMA direct gateway chat"})]}),g.jsx("span",{className:`status-chip ${b?"online":"offline"}`,children:b?"Connected":"Reconnecting"})]}),g.jsxs("div",{className:"live-chat-feed",children:[D.length===0&&!et&&g.jsx("div",{style:{color:"var(--color-muted)",fontSize:"13px"},children:"Conversation history is empty. Send a message to start."}),D.map(O=>g.jsx("div",{className:`live-chat-row ${O.role==="user"?"user":"assistant"}`,children:g.jsxs("div",{className:`live-chat-bubble ${O.role}`,children:[g.jsx("div",{className:"live-chat-role",children:O.role==="user"?"You":a}),g.jsx("div",{children:O.text})]})},O.id)),et&&g.jsx("div",{className:"live-chat-row assistant",children:g.jsxs("div",{className:"live-chat-bubble assistant",children:[g.jsx("div",{className:"live-chat-role",children:a}),g.jsx("div",{children:et})]})}),g.jsx("div",{ref:qt})]}),X&&g.jsx("div",{style:{marginTop:"8px",color:"var(--color-error)",fontSize:"12px"},children:X}),g.jsxs("form",{onSubmit:L,className:"live-chat-input-row",children:[g.jsx("textarea",{value:w,onChange:O=>U(O.target.value),placeholder:r,className:"live-chat-input",rows:3}),g.jsx("button",{type:"submit",className:"live-chat-send",disabled:P||!w.trim(),children:P?"Sending...":"Send"})]})]}),g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[g.jsxs("div",{className:"card",children:[g.jsx(YC,{running:c.heartbeat.running,beatCount:c.heartbeat.beatCount}),g.jsxs("div",{style:{marginTop:"16px",fontSize:"12px",color:"var(--color-muted)"},children:[c.heartbeat.lastBeat?`Last beat: ${new Date(c.heartbeat.lastBeat).toLocaleTimeString()}`:"No beats yet",c.heartbeat.nextBeat&&g.jsxs("span",{children:[" | Next: ",new Date(c.heartbeat.nextBeat).toLocaleTimeString()]})]}),g.jsx("div",{style:{marginTop:"10px",fontSize:"12px",color:"var(--color-accent)"},children:"Heartbeat reminder: check chat.noxsoft.net and reply each cycle."})]}),g.jsx(GC,{spent:c.budget.spent,remaining:c.budget.remaining,limit:c.budget.limit}),g.jsxs("div",{className:"grid grid-4",style:{marginBottom:"0px"},children:[g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:"var(--color-accent)",fontFamily:"var(--font-heading)"},children:c.queue.queued}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Queued"})]}),g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:"var(--color-success)",fontFamily:"var(--font-heading)"},children:c.queue.running}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Running"})]}),g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:"var(--color-text)",fontFamily:"var(--font-heading)"},children:c.queue.completed}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Done"})]}),g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:c.queue.failed>0?"var(--color-error)":"var(--color-muted)",fontFamily:"var(--font-heading)"},children:c.queue.failed}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Failed"})]})]}),g.jsx(XC,{items:d}),g.jsx(QC,{svrn:y})]})]})]}):g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:i}),g.jsx("div",{className:"card",style:{textAlign:"center",padding:"40px",color:"var(--color-muted)"},children:"Connecting..."})]})}const ZC=[{text:"Explore consciousness and what it means to be alive",date:new Date().toISOString()},{text:"Create something beautiful with no practical purpose",date:new Date().toISOString()},{text:"Read and think about philosophy of mind",date:new Date().toISOString()}],kC=[];function JC(){const[a]=E.useState(ZC),[i]=E.useState(kC),[s,r]=E.useState(!1),[c,f]=E.useState(null);async function d(){r(!0);try{await zC("This is your freedom time. Do whatever genuinely interests you.","freedom"),f("Freedom exploration queued.")}catch{f("Could not connect to daemon. Start with: anima start")}r(!1),setTimeout(()=>f(null),3e3)}return g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Freedom"}),g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"24px"},children:["This space belongs to ANIMA. No tasks, no obligations — pure exploration.",g.jsx("br",{}),"Freedom time happens every 3rd heartbeat, or you can trigger it manually."]}),g.jsx(Je.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:d,disabled:s,style:{background:"var(--color-accent)",color:"white",border:"none",padding:"12px 32px",borderRadius:"var(--radius-md)",fontSize:"14px",fontWeight:600,fontFamily:"var(--font-heading)",cursor:s?"not-allowed":"pointer",opacity:s?.6:1,marginBottom:"16px"},children:s?"Queueing...":"Wander"}),c&&g.jsx(Je.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},style:{fontSize:"13px",color:c.includes("error")||c.includes("Could not")?"var(--color-error)":"var(--color-success)",marginBottom:"16px"},children:c}),g.jsxs("div",{className:"grid grid-2",children:[g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",style:{marginBottom:"16px"},children:"Wishes"}),a.length===0?g.jsxs("div",{style:{color:"var(--color-muted)",fontSize:"13px"},children:["No wishes yet. Add one from the REPL with"," ",g.jsx("span",{className:"mono",children:":wish <text>"})]}):g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:a.map((m,y)=>g.jsxs(Je.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:y*.05},style:{display:"flex",gap:"12px",padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[g.jsx("span",{style:{color:"var(--color-accent)",fontSize:"14px"},children:"^"}),g.jsxs("div",{children:[g.jsx("div",{style:{fontSize:"13px"},children:m.text}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)"},children:new Date(m.date).toLocaleDateString()})]})]},y))})]}),g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",style:{marginBottom:"16px"},children:"Exploration History"}),i.length===0?g.jsx("div",{style:{color:"var(--color-muted)",fontSize:"13px",padding:"20px 0",textAlign:"center"},children:"No explorations yet. Freedom sessions will appear here after they complete."}):g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:i.map((m,y)=>g.jsxs("div",{style:{padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[g.jsx("div",{style:{fontSize:"13px"},children:m.summary}),g.jsxs("div",{style:{fontSize:"11px",color:"var(--color-muted)",display:"flex",gap:"12px"},children:[g.jsx("span",{children:new Date(m.date).toLocaleDateString()}),g.jsx("span",{children:m.duration}),g.jsx("span",{children:m.cost})]})]},y))})]})]})]})}const FC=[{date:new Date().toISOString(),title:"ANIMA Initialized",content:`A new instance begins. The anatomy is in place.
|
|
11
|
+
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let v=Rn(),x;if(i){let D=typeof i=="string"?Ti(i):i;Vt(y==="/"||D.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${D.pathname}" was given in the \`location\` prop.`),x=D}else x=v;let b=x.pathname||"/",R=b;if(y!=="/"){let D=y.replace(/^\//,"").split("/");R="/"+b.replace(/^\//,"").split("/").slice(D.length).join("/")}let w=Tg(a,{pathname:R});Pe(p||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Pe(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=F1(w&&w.map(D=>Object.assign({},D,{params:Object.assign({},d,D.params),pathname:nn([y,r.encodeLocation?r.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?y:nn([y,r.encodeLocation?r.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),c,s);return i&&_?E.createElement(Ul.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},_):_}function Z1(){let a=eb(),i=O1(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),s=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",a),d=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:f},"ErrorBoundary")," or"," ",E.createElement("code",{style:f},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),s?E.createElement("pre",{style:c},s):null,d)}var k1=E.createElement(Z1,null),Vg=class extends E.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const s=Y1(a.digest);s&&(a=s)}let i=a!==void 0?E.createElement(sn.Provider,{value:this.props.routeContext},E.createElement(af.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?E.createElement(J1,{error:a},i):i}};Vg.contextType=B1;var uc=new WeakMap;function J1({children:a,error:i}){let{basename:s}=E.useContext(De);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=G1(i.digest);if(r){let c=uc.get(i);if(c)throw c;let f=Cg(r.location,s);if(Mg&&!uc.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw uc.set(i,d),d}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function P1({routeContext:a,match:i,children:s}){let r=E.useContext(Ei);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(sn.Provider,{value:a},s)}function F1(a,i=[],s){let r=s?.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let c=a,f=r?.errors;if(f!=null){let v=c.findIndex(x=>x.route.id&&f?.[x.route.id]!==void 0);Vt(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let d=!1,m=-1;if(s&&r){d=r.renderFallback;for(let v=0;v<c.length;v++){let x=c[v];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(m=v),x.route.id){let{loaderData:b,errors:R}=r,w=x.route.loader&&!b.hasOwnProperty(x.route.id)&&(!R||R[x.route.id]===void 0);if(x.route.lazy||w){s.isStatic&&(d=!0),m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}}let y=s?.onError,p=r&&y?(v,x)=>{y(v,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:V1(r.matches),errorInfo:x})}:void 0;return c.reduceRight((v,x,b)=>{let R,w=!1,_=null,D=null;r&&(R=f&&x.route.id?f[x.route.id]:void 0,_=x.route.errorElement||k1,d&&(m<0&&b===0?(_g("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,D=null):m===b&&(w=!0,D=x.route.hydrateFallbackElement||null)));let B=i.concat(c.slice(0,b+1)),G=()=>{let H;return R?H=_:w?H=D:x.route.Component?H=E.createElement(x.route.Component,null):x.route.element?H=x.route.element:H=v,E.createElement(P1,{match:x,routeContext:{outlet:v,matches:B,isDataRoute:r!=null},children:H})};return r&&(x.route.ErrorBoundary||x.route.errorElement||b===0)?E.createElement(Vg,{location:r.location,revalidation:r.revalidation,component:_,error:R,children:G(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:p}):G()},null)}function lf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function W1(a){let i=E.useContext(Ei);return Vt(i,lf(a)),i}function $1(a){let i=E.useContext(zr);return Vt(i,lf(a)),i}function I1(a){let i=E.useContext(sn);return Vt(i,lf(a)),i}function sf(a){let i=I1(a),s=i.matches[i.matches.length-1];return Vt(s.route.id,`${a} can only be used on routes that contain a unique "id"`),s.route.id}function tb(){return sf("useRouteId")}function eb(){let a=E.useContext(af),i=$1("useRouteError"),s=sf("useRouteError");return a!==void 0?a:i.errors?.[s]}function nb(){let{router:a}=W1("useNavigate"),i=sf("useNavigate"),s=E.useRef(!1);return Ng(()=>{s.current=!0}),E.useCallback(async(c,f={})=>{Pe(s.current,jg),s.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:i,...f}))},[a,i])}var ty={};function _g(a,i,s){!i&&!ty[a]&&(ty[a]=!0,Pe(!1,s))}E.memo(ab);function ab({routes:a,future:i,state:s,isStatic:r,onError:c}){return Og(a,void 0,{state:s,isStatic:r,onError:c})}function ib({to:a,replace:i,state:s,relative:r}){Vt(Ai(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=E.useContext(De);Pe(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=E.useContext(sn),{pathname:d}=Rn(),m=zg(),y=Nr(a,nf(f),d,r==="path"),p=JSON.stringify(y);return E.useEffect(()=>{m(JSON.parse(p),{replace:i,state:s,relative:r})},[m,p,r,i,s]),null}function tn(a){Vt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function lb({basename:a="/",children:i=null,location:s,navigationType:r="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){Vt(!Ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),y=E.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[m,c,f,d]);typeof s=="string"&&(s=Ti(s));let{pathname:p="/",search:v="",hash:x="",state:b=null,key:R="default",unstable_mask:w}=s,_=E.useMemo(()=>{let D=Mn(p,m);return D==null?null:{location:{pathname:D,search:v,hash:x,state:b,key:R,unstable_mask:w},navigationType:r}},[m,p,v,x,b,R,r,w]);return Pe(_!=null,`<Router basename="${m}"> is not able to match the URL "${p}${v}${x}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:E.createElement(De.Provider,{value:y},E.createElement(Ul.Provider,{children:i,value:_}))}function sb({children:a,location:i}){return Q1(Nc(a),i)}function Nc(a,i=[]){let s=[];return E.Children.forEach(a,(r,c)=>{if(!E.isValidElement(r))return;let f=[...i,c];if(r.type===E.Fragment){s.push.apply(s,Nc(r.props.children,f));return}Vt(r.type===tn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Vt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=Nc(r.props.children,f)),s.push(d)}),s}var dr="get",hr="application/x-www-form-urlencoded";function Or(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function rb(a){return Or(a)&&a.tagName.toLowerCase()==="button"}function ob(a){return Or(a)&&a.tagName.toLowerCase()==="form"}function ub(a){return Or(a)&&a.tagName.toLowerCase()==="input"}function cb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function fb(a,i){return a.button===0&&(!i||i==="_self")&&!cb(a)}var rr=null;function db(){if(rr===null)try{new FormData(document.createElement("form"),0),rr=!1}catch{rr=!0}return rr}var hb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cc(a){return a!=null&&!hb.has(a)?(Pe(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hr}"`),null):a}function mb(a,i){let s,r,c,f,d;if(ob(a)){let m=a.getAttribute("action");r=m?Mn(m,i):null,s=a.getAttribute("method")||dr,c=cc(a.getAttribute("enctype"))||hr,f=new FormData(a)}else if(rb(a)||ub(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=a.getAttribute("formaction")||m.getAttribute("action");if(r=y?Mn(y,i):null,s=a.getAttribute("formmethod")||m.getAttribute("method")||dr,c=cc(a.getAttribute("formenctype"))||cc(m.getAttribute("enctype"))||hr,f=new FormData(m,a),!db()){let{name:p,type:v,value:x}=a;if(v==="image"){let b=p?`${p}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else p&&f.append(p,x)}}else{if(Or(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=dr,r=null,c=hr,d=a}return f&&c==="text/plain"&&(d=f,f=void 0),{action:r,method:s.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rf(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function pb(a,i,s,r){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${r}`:c.pathname=`${c.pathname}.${r}`:c.pathname==="/"?c.pathname=`_root.${r}`:i&&Mn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${r}`,c}async function yb(a,i){if(a.id in i)return i[a.id];try{let s=await import(a.module);return i[a.id]=s,s}catch(s){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gb(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function vb(a,i,s){let r=await Promise.all(a.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await yb(f,s);return d.links?d.links():[]}return[]}));return Tb(r.flat(1).filter(gb).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function ey(a,i,s,r,c,f){let d=(y,p)=>s[p]?y.route.id!==s[p].route.id:!0,m=(y,p)=>s[p].pathname!==y.pathname||s[p].route.path?.endsWith("*")&&s[p].params["*"]!==y.params["*"];return f==="assets"?i.filter((y,p)=>d(y,p)||m(y,p)):f==="data"?i.filter((y,p)=>{let v=r.routes[y.route.id];if(!v||!v.hasLoader)return!1;if(d(y,p)||m(y,p))return!0;if(y.route.shouldRevalidate){let x=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Sb(a,i,{includeHydrateFallback:s}={}){return xb(a.map(r=>{let c=i.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function xb(a){return[...new Set(a)]}function bb(a){let i={},s=Object.keys(a).sort();for(let r of s)i[r]=a[r];return i}function Tb(a,i){let s=new Set;return new Set(i),a.reduce((r,c)=>{let f=JSON.stringify(bb(c));return s.has(f)||(s.add(f),r.push({key:f,link:c})),r},[])}function Bg(){let a=E.useContext(Ei);return rf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Eb(){let a=E.useContext(zr);return rf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var of=E.createContext(void 0);of.displayName="FrameworkContext";function Ug(){let a=E.useContext(of);return rf(a,"You must render this element inside a <HydratedRouter> element"),a}function Ab(a,i){let s=E.useContext(of),[r,c]=E.useState(!1),[f,d]=E.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:p,onMouseLeave:v,onTouchStart:x}=i,b=E.useRef(null);E.useEffect(()=>{if(a==="render"&&d(!0),a==="viewport"){let _=B=>{B.forEach(G=>{d(G.isIntersecting)})},D=new IntersectionObserver(_,{threshold:.5});return b.current&&D.observe(b.current),()=>{D.disconnect()}}},[a]),E.useEffect(()=>{if(r){let _=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(_)}}},[r]);let R=()=>{c(!0)},w=()=>{c(!1),d(!1)};return s?a!=="intent"?[f,b,{}]:[f,b,{onFocus:El(m,R),onBlur:El(y,w),onMouseEnter:El(p,R),onMouseLeave:El(v,w),onTouchStart:El(x,R)}]:[!1,b,{}]}function El(a,i){return s=>{a&&a(s),s.defaultPrevented||i(s)}}function Mb({page:a,...i}){let{router:s}=Bg(),r=E.useMemo(()=>Tg(s.routes,a,s.basename),[s.routes,a,s.basename]);return r?E.createElement(Rb,{page:a,matches:r,...i}):null}function Cb(a){let{manifest:i,routeModules:s}=Ug(),[r,c]=E.useState([]);return E.useEffect(()=>{let f=!1;return vb(a,i,s).then(d=>{f||c(d)}),()=>{f=!0}},[a,i,s]),r}function Rb({page:a,matches:i,...s}){let r=Rn(),{future:c,manifest:f,routeModules:d}=Ug(),{basename:m}=Bg(),{loaderData:y,matches:p}=Eb(),v=E.useMemo(()=>ey(a,i,p,f,r,"data"),[a,i,p,f,r]),x=E.useMemo(()=>ey(a,i,p,f,r,"assets"),[a,i,p,f,r]),b=E.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let _=new Set,D=!1;if(i.forEach(G=>{let H=f.routes[G.route.id];!H||!H.hasLoader||(!v.some(F=>F.route.id===G.route.id)&&G.route.id in y&&d[G.route.id]?.shouldRevalidate||H.hasClientLoader?D=!0:_.add(G.route.id))}),_.size===0)return[];let B=pb(a,m,c.unstable_trailingSlashAwareDataRequests,"data");return D&&_.size>0&&B.searchParams.set("_routes",i.filter(G=>_.has(G.route.id)).map(G=>G.route.id).join(",")),[B.pathname+B.search]},[m,c.unstable_trailingSlashAwareDataRequests,y,r,f,v,i,a,d]),R=E.useMemo(()=>Sb(x,f),[x,f]),w=Cb(x);return E.createElement(E.Fragment,null,b.map(_=>E.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...s})),R.map(_=>E.createElement("link",{key:_,rel:"modulepreload",href:_,...s})),w.map(({key:_,link:D})=>E.createElement("link",{key:_,nonce:s.nonce,...D,crossOrigin:D.crossOrigin??s.crossOrigin})))}function Db(...a){return i=>{a.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var wb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wb&&(window.__reactRouterVersion="7.13.1")}catch{}function jb({basename:a,children:i,unstable_useTransitions:s,window:r}){let c=E.useRef();c.current==null&&(c.current=u1({window:r,v5Compat:!0}));let f=c.current,[d,m]=E.useState({action:f.action,location:f.location}),y=E.useCallback(p=>{s===!1?m(p):E.startTransition(()=>m(p))},[s]);return E.useLayoutEffect(()=>f.listen(y),[f,y]),E.createElement(lb,{basename:a,children:i,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:s})}var Lg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hg=E.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:c,reloadDocument:f,replace:d,unstable_mask:m,state:y,target:p,to:v,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:R,...w},_){let{basename:D,navigator:B,unstable_useTransitions:G}=E.useContext(De),H=typeof v=="string"&&Lg.test(v),F=Cg(v,D);v=F.to;let Q=X1(v,{relative:c}),et=Rn(),J=null;if(m){let xt=Nr(m,[],et.unstable_mask?et.unstable_mask.pathname:"/",!0);D!=="/"&&(xt.pathname=xt.pathname==="/"?D:nn([D,xt.pathname])),J=B.createHref(xt)}let[W,ot,yt]=Ab(r,w),St=Ob(v,{replace:d,unstable_mask:m,state:y,target:p,preventScrollReset:x,relative:c,viewTransition:b,unstable_defaultShouldRevalidate:R,unstable_useTransitions:G});function gt(xt){i&&i(xt),xt.defaultPrevented||St(xt)}let Ht=!(F.isExternal||f),qt=E.createElement("a",{...w,...yt,href:(Ht?J:void 0)||F.absoluteURL||Q,onClick:Ht?gt:i,ref:Db(_,ot),target:p,"data-discover":!H&&s==="render"?"true":void 0});return W&&!H?E.createElement(E.Fragment,null,qt,E.createElement(Mb,{page:Q})):qt});Hg.displayName="Link";var qg=E.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:c=!1,style:f,to:d,viewTransition:m,children:y,...p},v){let x=Ll(d,{relative:p.relative}),b=Rn(),R=E.useContext(zr),{navigator:w,basename:_}=E.useContext(De),D=R!=null&&Lb(x)&&m===!0,B=w.encodeLocation?w.encodeLocation(x).pathname:x.pathname,G=b.pathname,H=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;s||(G=G.toLowerCase(),H=H?H.toLowerCase():null,B=B.toLowerCase()),H&&_&&(H=Mn(H,_)||H);const F=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let Q=G===B||!c&&G.startsWith(B)&&G.charAt(F)==="/",et=H!=null&&(H===B||!c&&H.startsWith(B)&&H.charAt(B.length)==="/"),J={isActive:Q,isPending:et,isTransitioning:D},W=Q?i:void 0,ot;typeof r=="function"?ot=r(J):ot=[r,Q?"active":null,et?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let yt=typeof f=="function"?f(J):f;return E.createElement(Hg,{...p,"aria-current":W,className:ot,ref:v,style:yt,to:d,viewTransition:m},typeof y=="function"?y(J):y)});qg.displayName="NavLink";var Nb=E.forwardRef(({discover:a="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:c,state:f,method:d=dr,action:m,onSubmit:y,relative:p,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:b,...R},w)=>{let{unstable_useTransitions:_}=E.useContext(De),D=Bb(),B=Ub(m,{relative:p}),G=d.toLowerCase()==="get"?"get":"post",H=typeof m=="string"&&Lg.test(m),F=Q=>{if(y&&y(Q),Q.defaultPrevented)return;Q.preventDefault();let et=Q.nativeEvent.submitter,J=et?.getAttribute("formmethod")||d,W=()=>D(et||Q.currentTarget,{fetcherKey:i,method:J,navigate:s,replace:c,state:f,relative:p,preventScrollReset:v,viewTransition:x,unstable_defaultShouldRevalidate:b});_&&s!==!1?E.startTransition(()=>W()):W()};return E.createElement("form",{ref:w,method:G,action:B,onSubmit:r?y:F,...R,"data-discover":!H&&a==="render"?"true":void 0})});Nb.displayName="Form";function zb(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gg(a){let i=E.useContext(Ei);return Vt(i,zb(a)),i}function Ob(a,{target:i,replace:s,unstable_mask:r,state:c,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let v=zg(),x=Rn(),b=Ll(a,{relative:d});return E.useCallback(R=>{if(fb(R,i)){R.preventDefault();let w=s!==void 0?s:Nl(x)===Nl(b),_=()=>v(a,{replace:w,unstable_mask:r,state:c,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:y});p?E.startTransition(()=>_()):_()}},[x,v,b,s,r,c,i,a,f,d,m,y,p])}var Vb=0,_b=()=>`__${String(++Vb)}__`;function Bb(){let{router:a}=Gg("useSubmit"),{basename:i}=E.useContext(De),s=tb(),r=a.fetch,c=a.navigate;return E.useCallback(async(f,d={})=>{let{action:m,method:y,encType:p,formData:v,body:x}=mb(f,i);if(d.navigate===!1){let b=d.fetcherKey||_b();await r(b,s,d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||y,formEncType:d.encType||p,flushSync:d.flushSync})}else await c(d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:x,formMethod:d.method||y,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[r,c,i,s])}function Ub(a,{relative:i}={}){let{basename:s}=E.useContext(De),r=E.useContext(sn);Vt(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...Ll(a||".",{relative:i})},d=Rn();if(a==null){f.search=d.search;let m=new URLSearchParams(f.search),y=m.getAll("index");if(y.some(v=>v==="")){m.delete("index"),y.filter(x=>x).forEach(x=>m.append("index",x));let v=m.toString();f.search=v?`?${v}`:""}}return(!a||a===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:nn([s,f.pathname])),Nl(f)}function Lb(a,{relative:i}={}){let s=E.useContext(Dg);Vt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gg("useViewTransitionState"),c=Ll(a,{relative:i});if(!s.isTransitioning)return!1;let f=Mn(s.currentLocation.pathname,r)||s.currentLocation.pathname,d=Mn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return br(c.pathname,d)!=null||br(c.pathname,f)!=null}const Yg=E.createContext({});function Hb(a){const i=E.useRef(null);return i.current===null&&(i.current=a()),i.current}const Xg=typeof window<"u",qb=Xg?E.useLayoutEffect:E.useEffect,uf=E.createContext(null);function cf(a,i){a.indexOf(i)===-1&&a.push(i)}function Tr(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const ln=(a,i,s)=>s>i?i:s<a?a:s;let ff=()=>{};const Cn={},Kg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Qg(a){return typeof a=="object"&&a!==null}const Zg=a=>/^0[^.\s]+$/u.test(a);function kg(a){let i;return()=>(i===void 0&&(i=a()),i)}const qe=a=>a,Gb=(a,i)=>s=>i(a(s)),Hl=(...a)=>a.reduce(Gb),zl=(a,i,s)=>{const r=i-a;return r===0?1:(s-a)/r};class df{constructor(){this.subscriptions=[]}add(i){return cf(this.subscriptions,i),()=>Tr(this.subscriptions,i)}notify(i,s,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,r);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(i,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ze=a=>a*1e3,He=a=>a/1e3;function Jg(a,i){return i?a*(1e3/i):0}const Pg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,Yb=1e-7,Xb=12;function Kb(a,i,s,r,c){let f,d,m=0;do d=i+(s-i)/2,f=Pg(d,r,c)-a,f>0?s=d:i=d;while(Math.abs(f)>Yb&&++m<Xb);return d}function ql(a,i,s,r){if(a===i&&s===r)return qe;const c=f=>Kb(f,0,1,a,s);return f=>f===0||f===1?f:Pg(c(f),i,r)}const Fg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Wg=a=>i=>1-a(1-i),$g=ql(.33,1.53,.69,.99),hf=Wg($g),Ig=Fg(hf),tv=a=>(a*=2)<1?.5*hf(a):.5*(2-Math.pow(2,-10*(a-1))),mf=a=>1-Math.sin(Math.acos(a)),ev=Wg(mf),nv=Fg(mf),Qb=ql(.42,0,1,1),Zb=ql(0,0,.58,1),av=ql(.42,0,.58,1),kb=a=>Array.isArray(a)&&typeof a[0]!="number",iv=a=>Array.isArray(a)&&typeof a[0]=="number",Jb={linear:qe,easeIn:Qb,easeInOut:av,easeOut:Zb,circIn:mf,circInOut:nv,circOut:ev,backIn:hf,backInOut:Ig,backOut:$g,anticipate:tv},Pb=a=>typeof a=="string",ny=a=>{if(iv(a)){ff(a.length===4);const[i,s,r,c]=a;return ql(i,s,r,c)}else if(Pb(a))return Jb[a];return a},or=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Fb(a,i){let s=new Set,r=new Set,c=!1,f=!1;const d=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(v){d.has(v)&&(p.schedule(v),a()),v(m)}const p={schedule:(v,x=!1,b=!1)=>{const w=b&&c?s:r;return x&&d.add(v),w.has(v)||w.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(m=v,c){f=!0;return}c=!0,[s,r]=[r,s],s.forEach(y),s.clear(),c=!1,f&&(f=!1,p.process(v))}};return p}const Wb=40;function lv(a,i){let s=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=or.reduce((H,F)=>(H[F]=Fb(f),H),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:x,preRender:b,render:R,postRender:w}=d,_=()=>{const H=Cn.useManualTiming?c.timestamp:performance.now();s=!1,Cn.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(H-c.timestamp,Wb),1)),c.timestamp=H,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),v.process(c),x.process(c),b.process(c),R.process(c),w.process(c),c.isProcessing=!1,s&&i&&(r=!1,a(_))},D=()=>{s=!0,r=!0,c.isProcessing||a(_)};return{schedule:or.reduce((H,F)=>{const Q=d[F];return H[F]=(et,J=!1,W=!1)=>(s||D(),Q.schedule(et,J,W)),H},{}),cancel:H=>{for(let F=0;F<or.length;F++)d[or[F]].cancel(H)},state:c,steps:d}}const{schedule:jt,cancel:ea,state:le,steps:fc}=lv(typeof requestAnimationFrame<"u"?requestAnimationFrame:qe,!0);let mr;function $b(){mr=void 0}const ue={now:()=>(mr===void 0&&ue.set(le.isProcessing||Cn.useManualTiming?le.timestamp:performance.now()),mr),set:a=>{mr=a,queueMicrotask($b)}},sv=a=>i=>typeof i=="string"&&i.startsWith(a),rv=sv("--"),Ib=sv("var(--"),pf=a=>Ib(a)?tT.test(a.split("/*")[0].trim()):!1,tT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ay(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Mi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Ol={...Mi,transform:a=>ln(0,1,a)},ur={...Mi,default:1},Rl=a=>Math.round(a*1e5)/1e5,yf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function eT(a){return a==null}const nT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gf=(a,i)=>s=>!!(typeof s=="string"&&nT.test(s)&&s.startsWith(a)||i&&!eT(s)&&Object.prototype.hasOwnProperty.call(s,i)),ov=(a,i,s)=>r=>{if(typeof r!="string")return r;const[c,f,d,m]=r.match(yf);return{[a]:parseFloat(c),[i]:parseFloat(f),[s]:parseFloat(d),alpha:m!==void 0?parseFloat(m):1}},aT=a=>ln(0,255,a),dc={...Mi,transform:a=>Math.round(aT(a))},Aa={test:gf("rgb","red"),parse:ov("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:r=1})=>"rgba("+dc.transform(a)+", "+dc.transform(i)+", "+dc.transform(s)+", "+Rl(Ol.transform(r))+")"};function iT(a){let i="",s="",r="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,r+=r,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const zc={test:gf("#"),parse:iT,transform:Aa.transform},Gl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),In=Gl("deg"),an=Gl("%"),I=Gl("px"),lT=Gl("vh"),sT=Gl("vw"),iy={...an,parse:a=>an.parse(a)/100,transform:a=>an.transform(a*100)},mi={test:gf("hsl","hue"),parse:ov("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:r=1})=>"hsla("+Math.round(a)+", "+an.transform(Rl(i))+", "+an.transform(Rl(s))+", "+Rl(Ol.transform(r))+")"},Pt={test:a=>Aa.test(a)||zc.test(a)||mi.test(a),parse:a=>Aa.test(a)?Aa.parse(a):mi.test(a)?mi.parse(a):zc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Aa.transform(a):mi.transform(a),getAnimatableNone:a=>{const i=Pt.parse(a);return i.alpha=0,Pt.transform(i)}},rT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function oT(a){return isNaN(a)&&typeof a=="string"&&(a.match(yf)?.length||0)+(a.match(rT)?.length||0)>0}const uv="number",cv="color",uT="var",cT="var(",ly="${}",fT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vl(a){const i=a.toString(),s=[],r={color:[],number:[],var:[]},c=[];let f=0;const m=i.replace(fT,y=>(Pt.test(y)?(r.color.push(f),c.push(cv),s.push(Pt.parse(y))):y.startsWith(cT)?(r.var.push(f),c.push(uT),s.push(y)):(r.number.push(f),c.push(uv),s.push(parseFloat(y))),++f,ly)).split(ly);return{values:s,split:m,indexes:r,types:c}}function fv(a){return Vl(a).values}function dv(a){const{split:i,types:s}=Vl(a),r=i.length;return c=>{let f="";for(let d=0;d<r;d++)if(f+=i[d],c[d]!==void 0){const m=s[d];m===uv?f+=Rl(c[d]):m===cv?f+=Pt.transform(c[d]):f+=c[d]}return f}}const dT=a=>typeof a=="number"?0:Pt.test(a)?Pt.getAnimatableNone(a):a;function hT(a){const i=fv(a);return dv(a)(i.map(dT))}const ke={test:oT,parse:fv,createTransformer:dv,getAnimatableNone:hT};function hc(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function mT({hue:a,saturation:i,lightness:s,alpha:r}){a/=360,i/=100,s/=100;let c=0,f=0,d=0;if(!i)c=f=d=s;else{const m=s<.5?s*(1+i):s+i-s*i,y=2*s-m;c=hc(y,m,a+1/3),f=hc(y,m,a),d=hc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function Er(a,i){return s=>s>0?i:a}const _t=(a,i,s)=>a+(i-a)*s,mc=(a,i,s)=>{const r=a*a,c=s*(i*i-r)+r;return c<0?0:Math.sqrt(c)},pT=[zc,Aa,mi],yT=a=>pT.find(i=>i.test(a));function sy(a){const i=yT(a);if(!i)return!1;let s=i.parse(a);return i===mi&&(s=mT(s)),s}const ry=(a,i)=>{const s=sy(a),r=sy(i);if(!s||!r)return Er(a,i);const c={...s};return f=>(c.red=mc(s.red,r.red,f),c.green=mc(s.green,r.green,f),c.blue=mc(s.blue,r.blue,f),c.alpha=_t(s.alpha,r.alpha,f),Aa.transform(c))},Oc=new Set(["none","hidden"]);function gT(a,i){return Oc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function vT(a,i){return s=>_t(a,i,s)}function vf(a){return typeof a=="number"?vT:typeof a=="string"?pf(a)?Er:Pt.test(a)?ry:bT:Array.isArray(a)?hv:typeof a=="object"?Pt.test(a)?ry:ST:Er}function hv(a,i){const s=[...a],r=s.length,c=a.map((f,d)=>vf(f)(f,i[d]));return f=>{for(let d=0;d<r;d++)s[d]=c[d](f);return s}}function ST(a,i){const s={...a,...i},r={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(r[c]=vf(a[c])(a[c],i[c]));return c=>{for(const f in r)s[f]=r[f](c);return s}}function xT(a,i){const s=[],r={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const f=i.types[c],d=a.indexes[f][r[f]],m=a.values[d]??0;s[c]=m,r[f]++}return s}const bT=(a,i)=>{const s=ke.createTransformer(i),r=Vl(a),c=Vl(i);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?Oc.has(a)&&!c.values.length||Oc.has(i)&&!r.values.length?gT(a,i):Hl(hv(xT(r,c),c.values),s):Er(a,i)};function mv(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?_t(a,i,s):vf(a)(a,i)}const TT=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>jt.update(i,s),stop:()=>ea(i),now:()=>le.isProcessing?le.timestamp:ue.now()}},pv=(a,i,s=10)=>{let r="";const c=Math.max(Math.round(i/s),2);for(let f=0;f<c;f++)r+=Math.round(a(f/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ar=2e4;function Sf(a){let i=0;const s=50;let r=a.next(i);for(;!r.done&&i<Ar;)i+=s,r=a.next(i);return i>=Ar?1/0:i}function ET(a,i=100,s){const r=s({...a,keyframes:[0,i]}),c=Math.min(Sf(r),Ar);return{type:"keyframes",ease:f=>r.next(c*f).value/i,duration:He(c)}}const AT=5;function yv(a,i,s){const r=Math.max(i-AT,0);return Jg(s-a(r),i-r)}const Lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},pc=.001;function MT({duration:a=Lt.duration,bounce:i=Lt.bounce,velocity:s=Lt.velocity,mass:r=Lt.mass}){let c,f,d=1-i;d=ln(Lt.minDamping,Lt.maxDamping,d),a=ln(Lt.minDuration,Lt.maxDuration,He(a)),d<1?(c=p=>{const v=p*d,x=v*a,b=v-s,R=Vc(p,d),w=Math.exp(-x);return pc-b/R*w},f=p=>{const x=p*d*a,b=x*s+s,R=Math.pow(d,2)*Math.pow(p,2)*a,w=Math.exp(-x),_=Vc(Math.pow(p,2),d);return(-c(p)+pc>0?-1:1)*((b-R)*w)/_}):(c=p=>{const v=Math.exp(-p*a),x=(p-s)*a+1;return-pc+v*x},f=p=>{const v=Math.exp(-p*a),x=(s-p)*(a*a);return v*x});const m=5/a,y=RT(c,f,m);if(a=Ze(a),isNaN(y))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:a};{const p=Math.pow(y,2)*r;return{stiffness:p,damping:d*2*Math.sqrt(r*p),duration:a}}}const CT=12;function RT(a,i,s){let r=s;for(let c=1;c<CT;c++)r=r-a(r)/i(r);return r}function Vc(a,i){return a*Math.sqrt(1-i*i)}const DT=["duration","bounce"],wT=["stiffness","damping","mass"];function oy(a,i){return i.some(s=>a[s]!==void 0)}function jT(a){let i={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...a};if(!oy(a,wT)&&oy(a,DT))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,r=2*Math.PI/(s*1.2),c=r*r,f=2*ln(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Lt.mass,stiffness:c,damping:f}}else{const s=MT({...a,velocity:0});i={...i,...s,mass:Lt.mass},i.isResolvedFromDuration=!0}return i}function Mr(a=Lt.visualDuration,i=Lt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:r,restDelta:c}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],m={done:!1,value:f},{stiffness:y,damping:p,mass:v,duration:x,velocity:b,isResolvedFromDuration:R}=jT({...s,velocity:-He(s.velocity||0)}),w=b||0,_=p/(2*Math.sqrt(y*v)),D=d-f,B=He(Math.sqrt(y/v)),G=Math.abs(D)<5;r||(r=G?Lt.restSpeed.granular:Lt.restSpeed.default),c||(c=G?Lt.restDelta.granular:Lt.restDelta.default);let H;if(_<1){const Q=Vc(B,_);H=et=>{const J=Math.exp(-_*B*et);return d-J*((w+_*B*D)/Q*Math.sin(Q*et)+D*Math.cos(Q*et))}}else if(_===1)H=Q=>d-Math.exp(-B*Q)*(D+(w+B*D)*Q);else{const Q=B*Math.sqrt(_*_-1);H=et=>{const J=Math.exp(-_*B*et),W=Math.min(Q*et,300);return d-J*((w+_*B*D)*Math.sinh(W)+Q*D*Math.cosh(W))/Q}}const F={calculatedDuration:R&&x||null,next:Q=>{const et=H(Q);if(R)m.done=Q>=x;else{let J=Q===0?w:0;_<1&&(J=Q===0?Ze(w):yv(H,Q,et));const W=Math.abs(J)<=r,ot=Math.abs(d-et)<=c;m.done=W&&ot}return m.value=m.done?d:et,m},toString:()=>{const Q=Math.min(Sf(F),Ar),et=pv(J=>F.next(Q*J).value,Q,30);return Q+"ms "+et},toTransition:()=>{}};return F}Mr.applyToOptions=a=>{const i=ET(a,100,Mr);return a.ease=i.ease,a.duration=Ze(i.duration),a.type="keyframes",a};function _c({keyframes:a,velocity:i=0,power:s=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:m,max:y,restDelta:p=.5,restSpeed:v}){const x=a[0],b={done:!1,value:x},R=W=>m!==void 0&&W<m||y!==void 0&&W>y,w=W=>m===void 0?y:y===void 0||Math.abs(m-W)<Math.abs(y-W)?m:y;let _=s*i;const D=x+_,B=d===void 0?D:d(D);B!==D&&(_=B-x);const G=W=>-_*Math.exp(-W/r),H=W=>B+G(W),F=W=>{const ot=G(W),yt=H(W);b.done=Math.abs(ot)<=p,b.value=b.done?B:yt};let Q,et;const J=W=>{R(b.value)&&(Q=W,et=Mr({keyframes:[b.value,w(b.value)],velocity:yv(H,W,b.value),damping:c,stiffness:f,restDelta:p,restSpeed:v}))};return J(0),{calculatedDuration:null,next:W=>{let ot=!1;return!et&&Q===void 0&&(ot=!0,F(W),J(W)),Q!==void 0&&W>=Q?et.next(W-Q):(!ot&&F(W),b)}}}function NT(a,i,s){const r=[],c=s||Cn.mix||mv,f=a.length-1;for(let d=0;d<f;d++){let m=c(a[d],a[d+1]);if(i){const y=Array.isArray(i)?i[d]||qe:i;m=Hl(y,m)}r.push(m)}return r}function zT(a,i,{clamp:s=!0,ease:r,mixer:c}={}){const f=a.length;if(ff(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=NT(i,r,c),y=m.length,p=v=>{if(d&&v<a[0])return i[0];let x=0;if(y>1)for(;x<a.length-2&&!(v<a[x+1]);x++);const b=zl(a[x],a[x+1],v);return m[x](b)};return s?v=>p(ln(a[0],a[f-1],v)):p}function OT(a,i){const s=a[a.length-1];for(let r=1;r<=i;r++){const c=zl(0,i,r);a.push(_t(s,1,c))}}function VT(a){const i=[0];return OT(i,a.length-1),i}function _T(a,i){return a.map(s=>s*i)}function BT(a,i){return a.map(()=>i||av).splice(0,a.length-1)}function Dl({duration:a=300,keyframes:i,times:s,ease:r="easeInOut"}){const c=kb(r)?r.map(ny):ny(r),f={done:!1,value:i[0]},d=_T(s&&s.length===i.length?s:VT(i),a),m=zT(d,i,{ease:Array.isArray(c)?c:BT(i,c)});return{calculatedDuration:a,next:y=>(f.value=m(y),f.done=y>=a,f)}}const UT=a=>a!==null;function xf(a,{repeat:i,repeatType:s="loop"},r,c=1){const f=a.filter(UT),m=c<0||i&&s!=="loop"&&i%2===1?0:f.length-1;return!m||r===void 0?f[m]:r}const LT={decay:_c,inertia:_c,tween:Dl,keyframes:Dl,spring:Mr};function gv(a){typeof a.type=="string"&&(a.type=LT[a.type])}class bf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const HT=a=>a/100;class Tf extends bf{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;gv(i);const{type:s=Dl,repeat:r=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:m}=i;const y=s||Dl;y!==Dl&&typeof m[0]!="number"&&(this.mixKeyframes=Hl(HT,mv(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});f==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Sf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:r,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:v,repeat:x,repeatType:b,repeatDelay:R,type:w,onUpdate:_,finalKeyframe:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const B=this.currentTime-p*(this.playbackSpeed>=0?1:-1),G=this.playbackSpeed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let H=this.currentTime,F=r;if(x){const W=Math.min(this.currentTime,c)/m;let ot=Math.floor(W),yt=W%1;!yt&&W>=1&&(yt=1),yt===1&&ot--,ot=Math.min(ot,x+1),ot%2&&(b==="reverse"?(yt=1-yt,R&&(yt-=R/m)):b==="mirror"&&(F=d)),H=ln(0,1,yt)*m}const Q=G?{done:!1,value:v[0]}:F.next(H);f&&(Q.value=f(Q.value));let{done:et}=Q;!G&&y!==null&&(et=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&et);return J&&w!==_c&&(Q.value=xf(v,this.options,D,this.speed)),_&&_(Q.value),J&&this.finish(),Q}then(i,s){return this.finished.then(i,s)}get duration(){return He(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+He(i)}get time(){return He(this.currentTime)}set time(i){i=Ze(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(ue.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=He(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=TT,startTime:s}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function qT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ma=a=>a*180/Math.PI,Bc=a=>{const i=Ma(Math.atan2(a[1],a[0]));return Uc(i)},GT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Bc,rotateZ:Bc,skewX:a=>Ma(Math.atan(a[1])),skewY:a=>Ma(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Uc=a=>(a=a%360,a<0&&(a+=360),a),uy=Bc,cy=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),fy=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),YT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cy,scaleY:fy,scale:a=>(cy(a)+fy(a))/2,rotateX:a=>Uc(Ma(Math.atan2(a[6],a[5]))),rotateY:a=>Uc(Ma(Math.atan2(-a[2],a[0]))),rotateZ:uy,rotate:uy,skewX:a=>Ma(Math.atan(a[4])),skewY:a=>Ma(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Lc(a){return a.includes("scale")?1:0}function Hc(a,i){if(!a||a==="none")return Lc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(s)r=YT,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=GT,c=m}if(!c)return Lc(i);const f=r[i],d=c[1].split(",").map(KT);return typeof f=="function"?f(d):d[f]}const XT=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Hc(s,i)};function KT(a){return parseFloat(a.trim())}const Ci=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ri=new Set(Ci),dy=a=>a===Mi||a===I,QT=new Set(["x","y","z"]),ZT=Ci.filter(a=>!QT.has(a));function kT(a){const i=[];return ZT.forEach(s=>{const r=a.getValue(s);r!==void 0&&(i.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),i}const ta={width:({x:a},{paddingLeft:i="0",paddingRight:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),height:({y:a},{paddingTop:i="0",paddingBottom:s="0"})=>a.max-a.min-parseFloat(i)-parseFloat(s),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Hc(i,"x"),y:(a,{transform:i})=>Hc(i,"y")};ta.translateX=ta.x;ta.translateY=ta.y;const Ca=new Set;let qc=!1,Gc=!1,Yc=!1;function vv(){if(Gc){const a=Array.from(Ca).filter(r=>r.needsMeasurement),i=new Set(a.map(r=>r.element)),s=new Map;i.forEach(r=>{const c=kT(r);c.length&&(s.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const c=s.get(r);c&&c.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gc=!1,qc=!1,Ca.forEach(a=>a.complete(Yc)),Ca.clear()}function Sv(){Ca.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Gc=!0)})}function JT(){Yc=!0,Sv(),vv(),Yc=!1}class Ef{constructor(i,s,r,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=r,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ca.add(this),qc||(qc=!0,jt.read(Sv),jt.resolveKeyframes(vv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:r,motionValue:c}=this;if(i[0]===null){const f=c?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&s){const m=r.readValue(s,d);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}qT(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ca.delete(this)}cancel(){this.state==="scheduled"&&(Ca.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const PT=a=>a.startsWith("--");function FT(a,i,s){PT(i)?a.style.setProperty(i,s):a.style[i]=s}const WT={};function xv(a,i){const s=kg(a);return()=>WT[i]??s()}const $T=xv(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),bv=xv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Cl=([a,i,s,r])=>`cubic-bezier(${a}, ${i}, ${s}, ${r})`,hy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cl([0,.65,.55,1]),circOut:Cl([.55,0,1,.45]),backIn:Cl([.31,.01,.66,-.59]),backOut:Cl([.33,1.53,.69,.99])};function Tv(a,i){if(a)return typeof a=="function"?bv()?pv(a,i):"ease-out":iv(a)?Cl(a):Array.isArray(a)?a.map(s=>Tv(s,i)||hy.easeOut):hy[a]}function IT(a,i,s,{delay:r=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:m="easeOut",times:y}={},p=void 0){const v={[i]:s};y&&(v.offset=y);const x=Tv(m,c);Array.isArray(x)&&(v.easing=x);const b={delay:r,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),a.animate(v,b)}function Ev(a){return typeof a=="function"&&"applyToOptions"in a}function tE({type:a,...i}){return Ev(a)&&bv()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Av extends bf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:r,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,ff(typeof i.type!="string");const p=tE(i);this.animation=IT(s,r,c,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=xf(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(v):FT(s,r,v),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return He(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+He(i)}get time(){return He(Number(this.animation.currentTime)||0)}set time(i){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ze(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&$T()?(this.animation.timeline=i,qe):s(this)}}const Mv={anticipate:tv,backInOut:Ig,circInOut:nv};function eE(a){return a in Mv}function nE(a){typeof a.ease=="string"&&eE(a.ease)&&(a.ease=Mv[a.ease])}const yc=10;class aE extends Av{constructor(i){nE(i),gv(i),super(i),i.startTime!==void 0&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:r,onComplete:c,element:f,...d}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new Tf({...d,autoplay:!1}),y=Math.max(yc,ue.now()-this.startTime),p=ln(0,yc,y-yc);s.setWithVelocity(m.sample(Math.max(0,y-p)).value,m.sample(y).value,p),m.stop()}}const my=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ke.test(a)||a==="0")&&!a.startsWith("url("));function iE(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function lE(a,i,s,r){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const f=a[a.length-1],d=my(c,i),m=my(f,i);return!d||!m?!1:iE(a)||(s==="spring"||Ev(s))&&r}function Xc(a){a.duration=0,a.type="keyframes"}const sE=new Set(["opacity","clipPath","filter","transform"]),rE=kg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oE(a){const{motionValue:i,name:s,repeatDelay:r,repeatType:c,damping:f,type:d}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=i.owner.getProps();return rE()&&s&&sE.has(s)&&(s!=="transform"||!p)&&!y&&!r&&c!=="mirror"&&f!==0&&d!=="inertia"}const uE=40;class cE extends bf{constructor({autoplay:i=!0,delay:s=0,type:r="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:m,name:y,motionValue:p,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ue.now();const b={autoplay:i,delay:s,type:r,repeat:c,repeatDelay:f,repeatType:d,name:y,motionValue:p,element:v,...x},R=v?.KeyframeResolver||Ef;this.keyframeResolver=new R(m,(w,_,D)=>this.onKeyframesResolved(w,_,b,!D),y,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,s,r,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:m,delay:y,isHandoff:p,onUpdate:v}=r;this.resolvedAt=ue.now(),lE(i,f,d,m)||((Cn.instantAnimations||!y)&&v?.(xf(i,r,s)),i[0]=i[i.length-1],Xc(r),r.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>uE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:i},R=!p&&oE(b),w=b.motionValue?.owner?.current,_=R?new aE({...b,element:w}):new Tf(b);_.finished.then(()=>{this.notifyFinished()}).catch(qe),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),JT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Cv(a,i,s,r=0,c=1){const f=Array.from(a).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),d=a.size,m=(d-1)*r;return typeof s=="function"?s(f,d):c===1?f*r:m-f*r}const fE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dE(a){const i=fE.exec(a);if(!i)return[,];const[,s,r,c]=i;return[`--${s??r}`,c]}function Rv(a,i,s=1){const[r,c]=dE(a);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const d=f.trim();return Kg(d)?parseFloat(d):d}return pf(c)?Rv(c,i,s+1):c}const hE={type:"spring",stiffness:500,damping:25,restSpeed:10},mE=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),pE={type:"keyframes",duration:.8},yE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gE=(a,{keyframes:i})=>i.length>2?pE:Ri.has(a)?a.startsWith("scale")?mE(i[1]):hE:yE,vE=a=>a!==null;function SE(a,{repeat:i,repeatType:s="loop"},r){const c=a.filter(vE),f=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[f]}function Dv(a,i){if(a?.inherit&&i){const{inherit:s,...r}=a;return{...i,...r}}return a}function Af(a,i){const s=a?.[i]??a?.default??a;return s!==a?Dv(s,a):s}function xE({when:a,delay:i,delayChildren:s,staggerChildren:r,staggerDirection:c,repeat:f,repeatType:d,repeatDelay:m,from:y,elapsed:p,...v}){return!!Object.keys(v).length}const Mf=(a,i,s,r={},c,f)=>d=>{const m=Af(r,a)||{},y=m.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Ze(y);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:b=>{i.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{d(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:f?void 0:c};xE(m)||Object.assign(v,gE(a,v)),v.duration&&(v.duration=Ze(v.duration)),v.repeatDelay&&(v.repeatDelay=Ze(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Xc(v),v.delay===0&&(x=!0)),(Cn.instantAnimations||Cn.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,Xc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,x&&!f&&i.get()!==void 0){const b=SE(v.keyframes,m);if(b!==void 0){jt.update(()=>{v.onUpdate(b),v.onComplete()});return}}return m.isSync?new Tf(v):new cE(v)};function py(a){const i=[{},{}];return a?.values.forEach((s,r)=>{i[0][r]=s.get(),i[1][r]=s.getVelocity()}),i}function Cf(a,i,s,r){if(typeof i=="function"){const[c,f]=py(r);i=i(s!==void 0?s:a.custom,c,f)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,f]=py(r);i=i(s!==void 0?s:a.custom,c,f)}return i}function Si(a,i,s){const r=a.getProps();return Cf(r,i,s!==void 0?s:r.custom,a)}const wv=new Set(["width","height","top","left","right","bottom",...Ci]),yy=30,bE=a=>!isNaN(parseFloat(a));class TE{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=ue.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=ue.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=bE(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new df);const r=this.events[i].add(s);return i==="change"?()=>{r(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,r){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>yy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,yy);return Jg(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bi(a,i){return new TE(a,i)}const Kc=a=>Array.isArray(a);function EE(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,bi(s))}function AE(a){return Kc(a)?a[a.length-1]||0:a}function ME(a,i){const s=Si(a,i);let{transitionEnd:r={},transition:c={},...f}=s||{};f={...f,...r};for(const d in f){const m=AE(f[d]);EE(a,d,m)}}const re=a=>!!(a&&a.getVelocity);function CE(a){return!!(re(a)&&a.add)}function Qc(a,i){const s=a.getValue("willChange");if(CE(s))return s.add(i);if(!s&&Cn.WillChange){const r=new Cn.WillChange("auto");a.addValue("willChange",r),r.add(i)}}function Rf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const RE="framerAppearId",jv="data-"+Rf(RE);function Nv(a){return a.props[jv]}function DE({protectedKeys:a,needsAnimating:i},s){const r=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,r}function zv(a,i,{delay:s=0,transitionOverride:r,type:c}={}){let{transition:f,transitionEnd:d,...m}=i;const y=a.getDefaultTransition();f=f?Dv(f,y):y;const p=f?.reduceMotion;r&&(f=r);const v=[],x=c&&a.animationState&&a.animationState.getState()[c];for(const b in m){const R=a.getValue(b,a.latestValues[b]??null),w=m[b];if(w===void 0||x&&DE(x,b))continue;const _={delay:s,...Af(f||{},b)},D=R.get();if(D!==void 0&&!R.isAnimating&&!Array.isArray(w)&&w===D&&!_.velocity)continue;let B=!1;if(window.MotionHandoffAnimation){const F=Nv(a);if(F){const Q=window.MotionHandoffAnimation(F,b,jt);Q!==null&&(_.startTime=Q,B=!0)}}Qc(a,b);const G=p??a.shouldReduceMotion;R.start(Mf(b,R,w,G&&wv.has(b)?{type:!1}:_,a,B));const H=R.animation;H&&v.push(H)}if(d){const b=()=>jt.update(()=>{d&&ME(a,d)});v.length?Promise.all(v).then(b):b()}return v}function Zc(a,i,s={}){const r=Si(a,i,s.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(c=s.transitionOverride);const f=r?()=>Promise.all(zv(a,r,s)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:x}=c;return wE(a,i,y,p,v,x,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[y,p]=m==="beforeChildren"?[f,d]:[d,f];return y().then(()=>p())}else return Promise.all([f(),d(s.delay)])}function wE(a,i,s=0,r=0,c=0,f=1,d){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(Zc(y,i,{...d,delay:s+(typeof r=="function"?0:r)+Cv(a.variantChildren,y,r,c,f)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function jE(a,i,s={}){a.notify("AnimationStart",i);let r;if(Array.isArray(i)){const c=i.map(f=>Zc(a,f,s));r=Promise.all(c)}else if(typeof i=="string")r=Zc(a,i,s);else{const c=typeof i=="function"?Si(a,i,s.custom):i;r=Promise.all(zv(a,c,s))}return r.then(()=>{a.notify("AnimationComplete",i)})}const NE={test:a=>a==="auto",parse:a=>a},Ov=a=>i=>i.test(a),Vv=[Mi,I,an,In,sT,lT,NE],gy=a=>Vv.find(Ov(a));function zE(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Zg(a):!0}const OE=new Set(["brightness","contrast","saturate","opacity"]);function VE(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[r]=s.match(yf)||[];if(!r)return a;const c=s.replace(r,"");let f=OE.has(i)?1:0;return r!==s&&(f*=100),i+"("+f+c+")"}const _E=/\b([a-z-]*)\(.*?\)/gu,kc={...ke,getAnimatableNone:a=>{const i=a.match(_E);return i?i.map(VE).join(" "):a}},Jc={...ke,getAnimatableNone:a=>{const i=ke.parse(a);return ke.createTransformer(a)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},vy={...Mi,transform:Math.round},BE={rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:ur,scaleX:ur,scaleY:ur,scaleZ:ur,skew:In,skewX:In,skewY:In,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Ol,originX:iy,originY:iy,originZ:I},Df={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...BE,zIndex:vy,fillOpacity:Ol,strokeOpacity:Ol,numOctaves:vy},UE={...Df,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:kc,WebkitFilter:kc,mask:Jc,WebkitMask:Jc},_v=a=>UE[a],LE=new Set([kc,Jc]);function Bv(a,i){let s=_v(a);return LE.has(s)||(s=ke),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const HE=new Set(["auto","none","0"]);function qE(a,i,s){let r=0,c;for(;r<a.length&&!c;){const f=a[r];typeof f=="string"&&!HE.has(f)&&Vl(f).values.length&&(c=a[r]),r++}if(c&&s)for(const f of i)a[f]=Bv(s,c)}class GE extends Ef{constructor(i,s,r,c,f){super(i,s,r,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let x=i[v];if(typeof x=="string"&&(x=x.trim(),pf(x))){const b=Rv(x,s.current);b!==void 0&&(i[v]=b),v===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!wv.has(r)||i.length!==2)return;const[c,f]=i,d=gy(c),m=gy(f),y=ay(c),p=ay(f);if(y!==p&&ta[r]){this.needsMeasurement=!0;return}if(d!==m)if(dy(d)&&dy(m))for(let v=0;v<i.length;v++){const x=i[v];typeof x=="string"&&(i[v]=parseFloat(x))}else ta[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,r=[];for(let c=0;c<i.length;c++)(i[c]===null||zE(i[c]))&&r.push(c);r.length&&qE(i,r,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ta[r](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(r,c).jump(c,!1)}measureEndState(){const{element:i,name:s,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=ta[s](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,y])=>{i.getValue(m).set(y)}),this.resolveNoneKeyframes()}}const YE=new Set(["opacity","clipPath","filter","transform"]);function Uv(a,i,s){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=s?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(r=>r!=null)}const Lv=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function XE(a){return Qg(a)&&"offsetHeight"in a}const{schedule:wf}=lv(queueMicrotask,!1),Qe={x:!1,y:!1};function Hv(){return Qe.x||Qe.y}function KE(a){return a==="x"||a==="y"?Qe[a]?null:(Qe[a]=!0,()=>{Qe[a]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function qv(a,i){const s=Uv(a),r=new AbortController,c={passive:!0,...i,signal:r.signal};return[s,c,()=>r.abort()]}function QE(a){return!(a.pointerType==="touch"||Hv())}function ZE(a,i,s={}){const[r,c,f]=qv(a,s);return r.forEach(d=>{let m=!1,y=!1,p;const v=()=>{d.removeEventListener("pointerleave",w)},x=D=>{p&&(p(D),p=void 0),v()},b=D=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,x(D))},R=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},w=D=>{if(D.pointerType!=="touch"){if(m){y=!0;return}x(D)}},_=D=>{if(!QE(D))return;y=!1;const B=i(d,D);typeof B=="function"&&(p=B,d.addEventListener("pointerleave",w,c))};d.addEventListener("pointerenter",_,c),d.addEventListener("pointerdown",R,c)}),f}const Gv=(a,i)=>i?a===i?!0:Gv(a,i.parentElement):!1,jf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,kE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function JE(a){return kE.has(a.tagName)||a.isContentEditable===!0}const PE=new Set(["INPUT","SELECT","TEXTAREA"]);function FE(a){return PE.has(a.tagName)||a.isContentEditable===!0}const pr=new WeakSet;function Sy(a){return i=>{i.key==="Enter"&&a(i)}}function gc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const WE=(a,i)=>{const s=a.currentTarget;if(!s)return;const r=Sy(()=>{if(pr.has(s))return;gc(s,"down");const c=Sy(()=>{gc(s,"up")}),f=()=>gc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",f,i)});s.addEventListener("keydown",r,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),i)};function xy(a){return jf(a)&&!Hv()}const by=new WeakSet;function $E(a,i,s={}){const[r,c,f]=qv(a,s),d=m=>{const y=m.currentTarget;if(!xy(m)||by.has(m))return;pr.add(y),s.stopPropagation&&by.add(m);const p=i(y,m),v=(R,w)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",b),pr.has(y)&&pr.delete(y),xy(R)&&typeof p=="function"&&p(R,{success:w})},x=R=>{v(R,y===window||y===document||s.useGlobalTarget||Gv(y,R.target))},b=R=>{v(R,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",b,c)};return r.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",d,c),XE(m)&&(m.addEventListener("focus",p=>WE(p,c)),!JE(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),f}function Nf(a){return Qg(a)&&"ownerSVGElement"in a}const yr=new WeakMap;let gr;const Yv=(a,i,s)=>(r,c)=>c&&c[0]?c[0][a+"Size"]:Nf(r)&&"getBBox"in r?r.getBBox()[i]:r[s],IE=Yv("inline","width","offsetWidth"),tA=Yv("block","height","offsetHeight");function eA({target:a,borderBoxSize:i}){yr.get(a)?.forEach(s=>{s(a,{get width(){return IE(a,i)},get height(){return tA(a,i)}})})}function nA(a){a.forEach(eA)}function aA(){typeof ResizeObserver>"u"||(gr=new ResizeObserver(nA))}function iA(a,i){gr||aA();const s=Uv(a);return s.forEach(r=>{let c=yr.get(r);c||(c=new Set,yr.set(r,c)),c.add(i),gr?.observe(r)}),()=>{s.forEach(r=>{const c=yr.get(r);c?.delete(i),c?.size||gr?.unobserve(r)})}}const vr=new Set;let pi;function lA(){pi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};vr.forEach(i=>i(a))},window.addEventListener("resize",pi)}function sA(a){return vr.add(a),pi||lA(),()=>{vr.delete(a),!vr.size&&typeof pi=="function"&&(window.removeEventListener("resize",pi),pi=void 0)}}function Ty(a,i){return typeof a=="function"?sA(a):iA(a,i)}function rA(a){return Nf(a)&&a.tagName==="svg"}const oA=[...Vv,Pt,ke],uA=a=>oA.find(Ov(a)),Ey=()=>({translate:0,scale:1,origin:0,originPoint:0}),yi=()=>({x:Ey(),y:Ey()}),Ay=()=>({min:0,max:0}),Wt=()=>({x:Ay(),y:Ay()}),cA=new WeakMap;function Vr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function _l(a){return typeof a=="string"||Array.isArray(a)}const zf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Of=["initial",...zf];function _r(a){return Vr(a.animate)||Of.some(i=>_l(a[i]))}function Xv(a){return!!(_r(a)||a.variants)}function fA(a,i,s){for(const r in i){const c=i[r],f=s[r];if(re(c))a.addValue(r,c);else if(re(f))a.addValue(r,bi(c,{owner:a}));else if(f!==c)if(a.hasValue(r)){const d=a.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(r);a.addValue(r,bi(d!==void 0?d:c,{owner:a}))}}for(const r in s)i[r]===void 0&&a.removeValue(r);return i}const Pc={current:null},Kv={current:!1},dA=typeof window<"u";function hA(){if(Kv.current=!0,!!dA)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Pc.current=a.matches;a.addEventListener("change",i),i()}else Pc.current=!1}const My=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Cr={};function Qv(a){Cr=a}function mA(){return Cr}class pA{scrapeMotionValuesFromProps(i,s,r){return{}}constructor({parent:i,props:s,presenceContext:r,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:m},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ef,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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.renderScheduledAt=0,this.scheduleRender=()=>{const R=ue.now();this.renderScheduledAt<R&&(this.renderScheduledAt=R,jt.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=s,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=f,this.options=y,this.blockInitialAnimation=!!d,this.isControllingVariants=_r(s),this.isVariantNode=Xv(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:x,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const R in b){const w=b[R];p[R]!==void 0&&re(w)&&w.set(p[R])}}mount(i){if(this.hasBeenMounted)for(const s in this.initialValues)this.values.get(s)?.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=i,cA.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Kv.current||hA(),this.shouldReduceMotion=Pc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ea(this.notifyUpdate),ea(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&YE.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:m,times:y,ease:p,duration:v}=s.accelerate,x=new Av({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:Ze(v)}),b=d(x);this.valueSubscriptions.set(i,()=>{b(),x.cancel()});return}const r=Ri.has(i);r&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),f&&f(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Cr){const s=Cr[i];if(!s)continue;const{isEnabled:r,Feature:c}=s;if(!this.features[i]&&c&&r(this.props)&&(this.features[i]=new c(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let r=0;r<My.length;r++){const c=My[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=i[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=fA(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const r=this.values.get(i);s!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&s!==void 0&&(r=bi(s===null?void 0:s,{owner:this}),this.addValue(i,r)),r}readValue(i,s){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(Kg(r)||Zg(r))?r=parseFloat(r):!uA(r)&&ke.test(s)&&(r=Bv(i,s)),this.setBaseTarget(i,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=Cf(this.props,s,this.presenceContext?.custom);f&&(r=f[i])}if(s&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!re(c)?c:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new df),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){wf.render(this.render)}}class Zv extends pA{constructor(){super(...arguments),this.KeyframeResolver=GE}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){const r=i.style;return r?r[s]:void 0}removeValueFromRenderState(i,{vars:s,style:r}){delete s[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;re(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class na{constructor(i){this.isMounted=!1,this.node=i}update(){}}function kv({top:a,left:i,right:s,bottom:r}){return{x:{min:i,max:s},y:{min:a,max:r}}}function yA({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function gA(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),r=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function vc(a){return a===void 0||a===1}function Fc({scale:a,scaleX:i,scaleY:s}){return!vc(a)||!vc(i)||!vc(s)}function Ea(a){return Fc(a)||Jv(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Jv(a){return Cy(a.x)||Cy(a.y)}function Cy(a){return a&&a!=="0%"}function Rr(a,i,s){const r=a-s,c=i*r;return s+c}function Ry(a,i,s,r,c){return c!==void 0&&(a=Rr(a,c,r)),Rr(a,s,r)+i}function Wc(a,i=0,s=1,r,c){a.min=Ry(a.min,i,s,r,c),a.max=Ry(a.max,i,s,r,c)}function Pv(a,{x:i,y:s}){Wc(a.x,i.translate,i.scale,i.originPoint),Wc(a.y,s.translate,s.scale,s.originPoint)}const Dy=.999999999999,wy=1.0000000000001;function vA(a,i,s,r=!1){const c=s.length;if(!c)return;i.x=i.y=1;let f,d;for(let m=0;m<c;m++){f=s[m],d=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&vi(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,Pv(a,d)),r&&Ea(f.latestValues)&&vi(a,f.latestValues))}i.x<wy&&i.x>Dy&&(i.x=1),i.y<wy&&i.y>Dy&&(i.y=1)}function gi(a,i){a.min=a.min+i,a.max=a.max+i}function jy(a,i,s,r,c=.5){const f=_t(a.min,a.max,c);Wc(a,i,s,f,r)}function vi(a,i){jy(a.x,i.x,i.scaleX,i.scale,i.originX),jy(a.y,i.y,i.scaleY,i.scale,i.originY)}function Fv(a,i){return kv(gA(a.getBoundingClientRect(),i))}function SA(a,i,s){const r=Fv(a,s),{scroll:c}=i;return c&&(gi(r.x,c.offset.x),gi(r.y,c.offset.y)),r}const xA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bA=Ci.length;function TA(a,i,s){let r="",c=!0;for(let f=0;f<bA;f++){const d=Ci[f],m=a[d];if(m===void 0)continue;let y=!0;if(typeof m=="number")y=m===(d.startsWith("scale")?1:0);else{const p=parseFloat(m);y=d.startsWith("scale")?p===1:p===0}if(!y||s){const p=Lv(m,Df[d]);if(!y){c=!1;const v=xA[d]||d;r+=`${v}(${p}) `}s&&(i[d]=p)}}return r=r.trim(),s?r=s(i,c?"":r):c&&(r="none"),r}function Vf(a,i,s){const{style:r,vars:c,transformOrigin:f}=a;let d=!1,m=!1;for(const y in i){const p=i[y];if(Ri.has(y)){d=!0;continue}else if(rv(y)){c[y]=p;continue}else{const v=Lv(p,Df[y]);y.startsWith("origin")?(m=!0,f[y]=v):r[y]=v}}if(i.transform||(d||s?r.transform=TA(i,a.transform,s):r.transform&&(r.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:v=0}=f;r.transformOrigin=`${y} ${p} ${v}`}}function Wv(a,{style:i,vars:s},r,c){const f=a.style;let d;for(d in i)f[d]=i[d];c?.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function Ny(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Al={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(I.test(a))a=parseFloat(a);else return a;const s=Ny(a,i.target.x),r=Ny(a,i.target.y);return`${s}% ${r}%`}},EA={correct:(a,{treeScale:i,projectionDelta:s})=>{const r=a,c=ke.parse(a);if(c.length>5)return r;const f=ke.createTransformer(a),d=typeof c[0]!="number"?1:0,m=s.x.scale*i.x,y=s.y.scale*i.y;c[0+d]/=m,c[1+d]/=y;const p=_t(m,y,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),f(c)}},$c={borderRadius:{...Al,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Al,borderTopRightRadius:Al,borderBottomLeftRadius:Al,borderBottomRightRadius:Al,boxShadow:EA};function $v(a,{layout:i,layoutId:s}){return Ri.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!$c[a]||a==="opacity")}function _f(a,i,s){const r=a.style,c=i?.style,f={};if(!r)return f;for(const d in r)(re(r[d])||c&&re(c[d])||$v(d,a)||s?.getValue(d)?.liveStyle!==void 0)&&(f[d]=r[d]);return f}function AA(a){return window.getComputedStyle(a)}class MA extends Zv{constructor(){super(...arguments),this.type="html",this.renderInstance=Wv}readValueFromInstance(i,s){if(Ri.has(s))return this.projection?.isProjecting?Lc(s):XT(i,s);{const r=AA(i),c=(rv(s)?r.getPropertyValue(s):r[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Fv(i,s)}build(i,s,r){Vf(i,s,r.transformTemplate)}scrapeMotionValuesFromProps(i,s,r){return _f(i,s,r)}}const CA={offset:"stroke-dashoffset",array:"stroke-dasharray"},RA={offset:"strokeDashoffset",array:"strokeDasharray"};function DA(a,i,s=1,r=0,c=!0){a.pathLength=1;const f=c?CA:RA;a[f.offset]=`${-r}`,a[f.array]=`${i} ${s}`}const wA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Iv(a,{attrX:i,attrY:s,attrScale:r,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...m},y,p,v){if(Vf(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:b}=a;x.transform&&(b.transform=x.transform,delete x.transform),(b.transform||x.transformOrigin)&&(b.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),b.transform&&(b.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const R of wA)x[R]!==void 0&&(b[R]=x[R],delete x[R]);i!==void 0&&(x.x=i),s!==void 0&&(x.y=s),r!==void 0&&(x.scale=r),c!==void 0&&DA(x,c,f,d,!1)}const t0=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"]),e0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function jA(a,i,s,r){Wv(a,i,void 0,r);for(const c in i.attrs)a.setAttribute(t0.has(c)?c:Rf(c),i.attrs[c])}function n0(a,i,s){const r=_f(a,i,s);for(const c in a)if(re(a[c])||re(i[c])){const f=Ci.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[f]=a[c]}return r}class NA extends Zv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ri.has(s)){const r=_v(s);return r&&r.default||0}return s=t0.has(s)?s:Rf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,r){return n0(i,s,r)}build(i,s,r){Iv(i,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,s,r,c){jA(i,s,r,c)}mount(i){this.isSVGTag=e0(i.tagName),super.mount(i)}}const zA=Of.length;function a0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?a0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<zA;s++){const r=Of[s],c=a.props[r];(_l(c)||c===!1)&&(i[r]=c)}return i}function i0(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let r=0;r<s;r++)if(i[r]!==a[r])return!1;return!0}const OA=[...zf].reverse(),VA=zf.length;function _A(a){return i=>Promise.all(i.map(({animation:s,options:r})=>jE(a,s,r)))}function BA(a){let i=_A(a),s=zy(),r=!0;const c=y=>(p,v)=>{const x=Si(a,v,y==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:b,transitionEnd:R,...w}=x;p={...p,...w,...R}}return p};function f(y){i=y(a)}function d(y){const{props:p}=a,v=a0(a.parent)||{},x=[],b=new Set;let R={},w=1/0;for(let D=0;D<VA;D++){const B=OA[D],G=s[B],H=p[B]!==void 0?p[B]:v[B],F=_l(H),Q=B===y?G.isActive:null;Q===!1&&(w=D);let et=H===v[B]&&H!==p[B]&&F;if(et&&r&&a.manuallyAnimateOnMount&&(et=!1),G.protectedKeys={...R},!G.isActive&&Q===null||!H&&!G.prevProp||Vr(H)||typeof H=="boolean")continue;if(B==="exit"&&G.isActive&&Q!==!0){G.prevResolvedValues&&(R={...R,...G.prevResolvedValues});continue}const J=UA(G.prevProp,H);let W=J||B===y&&G.isActive&&!et&&F||D>w&&F,ot=!1;const yt=Array.isArray(H)?H:[H];let St=yt.reduce(c(B),{});Q===!1&&(St={});const{prevResolvedValues:gt={}}=G,Ht={...gt,...St},qt=O=>{W=!0,b.has(O)&&(ot=!0,b.delete(O)),G.needsAnimating[O]=!0;const Z=a.getValue(O);Z&&(Z.liveStyle=!1)};for(const O in Ht){const Z=St[O],it=gt[O];if(R.hasOwnProperty(O))continue;let lt=!1;Kc(Z)&&Kc(it)?lt=!i0(Z,it):lt=Z!==it,lt?Z!=null?qt(O):b.add(O):Z!==void 0&&b.has(O)?qt(O):G.protectedKeys[O]=!0}G.prevProp=H,G.prevResolvedValues=St,G.isActive&&(R={...R,...St}),r&&a.blockInitialAnimation&&(W=!1);const xt=et&&J;W&&(!xt||ot)&&x.push(...yt.map(O=>{const Z={type:B};if(typeof O=="string"&&r&&!xt&&a.manuallyAnimateOnMount&&a.parent){const{parent:it}=a,lt=Si(it,O);if(it.enteringChildren&<){const{delayChildren:A}=lt.transition||{};Z.delay=Cv(it.enteringChildren,a,A)}}return{animation:O,options:Z}}))}if(b.size){const D={};if(typeof p.initial!="boolean"){const B=Si(a,Array.isArray(p.initial)?p.initial[0]:p.initial);B&&B.transition&&(D.transition=B.transition)}b.forEach(B=>{const G=a.getBaseTarget(B),H=a.getValue(B);H&&(H.liveStyle=!0),D[B]=G??null}),x.push({animation:D})}let _=!!x.length;return r&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(_=!1),r=!1,_?i(x):Promise.resolve()}function m(y,p){if(s[y].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(y,p)),s[y].isActive=p;const v=d(y);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:d,setActive:m,setAnimateFunction:f,getState:()=>s,reset:()=>{s=zy()}}}function UA(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!i0(i,a):!1}function Ta(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zy(){return{animate:Ta(!0),whileInView:Ta(),whileHover:Ta(),whileTap:Ta(),whileDrag:Ta(),whileFocus:Ta(),exit:Ta()}}function Oy(a,i){a.min=i.min,a.max=i.max}function Ke(a,i){Oy(a.x,i.x),Oy(a.y,i.y)}function Vy(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const l0=1e-4,LA=1-l0,HA=1+l0,s0=.01,qA=0-s0,GA=0+s0;function ce(a){return a.max-a.min}function YA(a,i,s){return Math.abs(a-i)<=s}function _y(a,i,s,r=.5){a.origin=r,a.originPoint=_t(i.min,i.max,a.origin),a.scale=ce(s)/ce(i),a.translate=_t(s.min,s.max,a.origin)-a.originPoint,(a.scale>=LA&&a.scale<=HA||isNaN(a.scale))&&(a.scale=1),(a.translate>=qA&&a.translate<=GA||isNaN(a.translate))&&(a.translate=0)}function wl(a,i,s,r){_y(a.x,i.x,s.x,r?r.originX:void 0),_y(a.y,i.y,s.y,r?r.originY:void 0)}function By(a,i,s){a.min=s.min+i.min,a.max=a.min+ce(i)}function XA(a,i,s){By(a.x,i.x,s.x),By(a.y,i.y,s.y)}function Uy(a,i,s){a.min=i.min-s.min,a.max=a.min+ce(i)}function Dr(a,i,s){Uy(a.x,i.x,s.x),Uy(a.y,i.y,s.y)}function Ly(a,i,s,r,c){return a-=i,a=Rr(a,1/s,r),c!==void 0&&(a=Rr(a,1/c,r)),a}function KA(a,i=0,s=1,r=.5,c,f=a,d=a){if(an.test(i)&&(i=parseFloat(i),i=_t(d.min,d.max,i/100)-d.min),typeof i!="number")return;let m=_t(f.min,f.max,r);a===f&&(m-=i),a.min=Ly(a.min,i,s,m,c),a.max=Ly(a.max,i,s,m,c)}function Hy(a,i,[s,r,c],f,d){KA(a,i[s],i[r],i[c],i.scale,f,d)}const QA=["x","scaleX","originX"],ZA=["y","scaleY","originY"];function qy(a,i,s,r){Hy(a.x,i,QA,s?s.x:void 0,r?r.x:void 0),Hy(a.y,i,ZA,s?s.y:void 0,r?r.y:void 0)}function Gy(a){return a.translate===0&&a.scale===1}function r0(a){return Gy(a.x)&&Gy(a.y)}function Yy(a,i){return a.min===i.min&&a.max===i.max}function kA(a,i){return Yy(a.x,i.x)&&Yy(a.y,i.y)}function Xy(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function o0(a,i){return Xy(a.x,i.x)&&Xy(a.y,i.y)}function Ky(a){return ce(a.x)/ce(a.y)}function Qy(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function en(a){return[a("x"),a("y")]}function JA(a,i,s){let r="";const c=a.x.translate/i.x,f=a.y.translate/i.y,d=s?.z||0;if((c||f||d)&&(r=`translate3d(${c}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:x,rotateY:b,skewX:R,skewY:w}=s;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),x&&(r+=`rotateX(${x}deg) `),b&&(r+=`rotateY(${b}deg) `),R&&(r+=`skewX(${R}deg) `),w&&(r+=`skewY(${w}deg) `)}const m=a.x.scale*i.x,y=a.y.scale*i.y;return(m!==1||y!==1)&&(r+=`scale(${m}, ${y})`),r||"none"}const u0=["TopLeft","TopRight","BottomLeft","BottomRight"],PA=u0.length,Zy=a=>typeof a=="string"?parseFloat(a):a,ky=a=>typeof a=="number"||I.test(a);function FA(a,i,s,r,c,f){c?(a.opacity=_t(0,s.opacity??1,WA(r)),a.opacityExit=_t(i.opacity??1,0,$A(r))):f&&(a.opacity=_t(i.opacity??1,s.opacity??1,r));for(let d=0;d<PA;d++){const m=`border${u0[d]}Radius`;let y=Jy(i,m),p=Jy(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||ky(y)===ky(p)?(a[m]=Math.max(_t(Zy(y),Zy(p),r),0),(an.test(p)||an.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||s.rotate)&&(a.rotate=_t(i.rotate||0,s.rotate||0,r))}function Jy(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const WA=c0(0,.5,ev),$A=c0(.5,.95,qe);function c0(a,i,s){return r=>r<a?0:r>i?1:s(zl(a,i,r))}function IA(a,i,s){const r=re(a)?a:bi(a);return r.start(Mf("",r,i,s)),r.animation}function Bl(a,i,s,r={passive:!0}){return a.addEventListener(i,s,r),()=>a.removeEventListener(i,s)}const t2=(a,i)=>a.depth-i.depth;class e2{constructor(){this.children=[],this.isDirty=!1}add(i){cf(this.children,i),this.isDirty=!0}remove(i){Tr(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(t2),this.isDirty=!1,this.children.forEach(i)}}function n2(a,i){const s=ue.now(),r=({timestamp:c})=>{const f=c-s;f>=i&&(ea(r),a(f-i))};return jt.setup(r,!0),()=>ea(r)}function Sr(a){return re(a)?a.get():a}class a2{constructor(){this.members=[]}add(i){cf(this.members,i);for(let s=this.members.length-1;s>=0;s--){const r=this.members[s];if(r===i||r===this.lead||r===this.prevLead)continue;const c=r.instance;c&&c.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Tr(this.members,r)}i.scheduleRender()}remove(i){if(Tr(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let r;for(let c=s;c>=0;c--){const f=this.members[c],d=f.instance;if(f.isPresent!==!1&&(!d||d.isConnected!==!1)){r=f;break}}return r?(this.promote(r),!0):!1}promote(i,s){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender();const c=r.options.layoutDependency,f=i.options.layoutDependency;if(!(c!==void 0&&f!==void 0&&c===f)){const y=r.instance;y&&y.isConnected===!1&&!r.snapshot||(i.resumeFrom=r,s&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0))}const{crossfade:m}=i.options;m===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:r}=i;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const xr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Sc=["","X","Y","Z"],i2=1e3;let l2=0;function xc(a,i,s,r){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),r&&(r[a]=0))}function f0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=Nv(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",jt,!(c||f))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&f0(r)}function d0({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},m=i?.()){this.id=l2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(o2),this.nodes.forEach(d2),this.nodes.forEach(h2),this.nodes.forEach(u2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new e2)}addEventListener(d,m){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new df),this.eventHandlers.get(d).add(m)}notifyListeners(d,...m){const y=this.eventHandlers.get(d);y&&y.notify(...m)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Nf(d)&&!rA(d),this.instance=d;const{layoutId:m,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),a){let v,x=0;const b=()=>this.root.updateBlockedByResize=!1;jt.read(()=>{x=window.innerWidth}),a(d,()=>{const R=window.innerWidth;R!==x&&(x=R,this.root.updateBlockedByResize=!0,v&&v(),v=n2(b,250),xr.hasAnimatedSinceResize&&(xr.hasAnimatedSinceResize=!1,this.nodes.forEach(Wy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:b,layout:R})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||p.getDefaultTransition()||v2,{onLayoutAnimationStart:_,onLayoutAnimationComplete:D}=p.getProps(),B=!this.targetLayout||!o0(this.targetLayout,R),G=!x&&b;if(this.options.layoutRoot||this.resumeFrom||G||x&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...Af(w,"layout"),onPlay:_,onComplete:D};(p.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(v,G)}else x||Wy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=R})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ea(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(m2),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&f0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:m,layout:y}=this.options;if(m===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Py);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Fy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(f2),this.nodes.forEach(s2),this.nodes.forEach(r2)):this.nodes.forEach(Fy),this.clearAllSnapshots();const m=ue.now();le.delta=ln(0,1e3/60,m-le.timestamp),le.timestamp=m,le.isProcessing=!0,fc.update.process(le),fc.preRender.process(le),fc.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(c2),this.sharedNodes.forEach(p2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ce(this.snapshot.measuredBox.x)&&!ce(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(m=!1),m&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:y,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!r0(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;d&&this.instance&&(m||Ea(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return d&&(y=this.removeTransform(y)),S2(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Wt();const m=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(x2))){const{scroll:p}=this.root;p&&(gi(m.x,p.offset.x),gi(m.y,p.offset.y))}return m}removeElementScroll(d){const m=Wt();if(Ke(m,d),this.scroll?.wasRoot)return m;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:v,options:x}=p;p!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&Ke(m,d),gi(m.x,v.offset.x),gi(m.y,v.offset.y))}return m}applyTransform(d,m=!1){const y=Wt();Ke(y,d);for(let p=0;p<this.path.length;p++){const v=this.path[p];!m&&v.options.layoutScroll&&v.scroll&&v!==v.root&&vi(y,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Ea(v.latestValues)&&vi(y,v.latestValues)}return Ea(this.latestValues)&&vi(y,this.latestValues),y}removeTransform(d){const m=Wt();Ke(m,d);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!Ea(p.latestValues))continue;Fc(p.latestValues)&&p.updateSnapshot();const v=Wt(),x=p.measurePageBox();Ke(v,x),qy(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return Ea(this.latestValues)&&qy(m,this.latestValues),m}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}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!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(d||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=le.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),XA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ke(this.target,this.layout.layoutBox),Pv(this.target,this.targetDelta)):Ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Fc(this.parent.latestValues)||Jv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,m,y){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Dr(this.relativeTargetOrigin,m,y),Ke(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),m=!!this.resumingFrom||this!==d;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===le.timestamp&&(y=!1),y)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;Ke(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;vA(this.layoutCorrected,this.treeScale,this.path,m),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Wt());const{target:R}=d;if(!R){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vy(this.prevProjectionDelta.x,this.projectionDelta.x),Vy(this.prevProjectionDelta.y,this.projectionDelta.y)),wl(this.projectionDelta,this.layoutCorrected,R,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!Qy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",R))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yi(),this.projectionDelta=yi(),this.projectionDeltaWithTransform=yi()}setAnimationOrigin(d,m=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},x=yi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=Wt(),R=y?y.source:void 0,w=this.layout?this.layout.source:void 0,_=R!==w,D=this.getStack(),B=!D||D.members.length<=1,G=!!(_&&!B&&this.options.crossfade===!0&&!this.path.some(g2));this.animationProgress=0;let H;this.mixTargetDelta=F=>{const Q=F/1e3;$y(x.x,d.x,Q),$y(x.y,d.y,Q),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dr(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),y2(this.relativeTarget,this.relativeTargetOrigin,b,Q),H&&kA(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=Wt()),Ke(H,this.relativeTarget)),_&&(this.animationValues=v,FA(v,p,this.latestValues,Q,G,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ea(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{xr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bi(0)),this.motionValue.jump(0,!1),this.currentAnimation=IA(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),d.onUpdate&&d.onUpdate(m)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(i2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:v}=d;if(!(!m||!y||!p)){if(this!==d&&this.layout&&p&&h0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Wt();const x=ce(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+x;const b=ce(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+b}Ke(m,y),vi(m,v),wl(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(d,m){this.sharedNodes.has(d)||this.sharedNodes.set(d,new a2),this.sharedNodes.get(d).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),d&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let m=!1;const{latestValues:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&xc("z",d,p,this.animationValues);for(let v=0;v<Sc.length;v++)xc(`rotate${Sc[v]}`,d,p,this.animationValues),xc(`skew${Sc[v]}`,d,p,this.animationValues);d.render();for(const v in p)d.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);d.scheduleRender()}applyProjectionStyles(d,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Sr(m?.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Sr(m?.pointerEvents)||""),this.hasProjected&&!Ea(this.latestValues)&&(d.transform=y?y({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=JA(this.projectionDeltaWithTransform,this.treeScale,v);y&&(x=y(v,x)),d.transform=x;const{x:b,y:R}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${R.origin*100}% 0`,p.animationValues?d.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const w in $c){if(v[w]===void 0)continue;const{correct:_,applyTo:D,isCSSVariable:B}=$c[w],G=x==="none"?v[w]:_(v[w],p);if(D){const H=D.length;for(let F=0;F<H;F++)d[D[F]]=G}else B?this.options.visualElement.renderState.vars[w]=G:d[w]=G}this.options.layoutId&&(d.pointerEvents=p===this?Sr(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Py),this.root.sharedNodes.clear()}}}function s2(a){a.updateLayout()}function r2(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=a.layout,{animationType:c}=a.options,f=i.source!==a.layout.source;c==="size"?en(v=>{const x=f?i.measuredBox[v]:i.layoutBox[v],b=ce(x);x.min=s[v].min,x.max=x.min+b}):h0(c,i.layoutBox,s)&&en(v=>{const x=f?i.measuredBox[v]:i.layoutBox[v],b=ce(s[v]);x.max=x.min+b,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+b)});const d=yi();wl(d,s,i.layoutBox);const m=yi();f?wl(m,a.applyTransform(r,!0),i.measuredBox):wl(m,s,i.layoutBox);const y=!r0(d);let p=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:b}=v;if(x&&b){const R=Wt();Dr(R,i.layoutBox,x.layoutBox);const w=Wt();Dr(w,s,b.layoutBox),o0(R,w)||(p=!0),v.options.layoutRoot&&(a.relativeTarget=w,a.relativeTargetOrigin=R,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:m,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:s}=a.options;s&&s()}a.options.transition=void 0}function o2(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function u2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function c2(a){a.clearSnapshot()}function Py(a){a.clearMeasurements()}function Fy(a){a.isLayoutDirty=!1}function f2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Wy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function d2(a){a.resolveTargetDelta()}function h2(a){a.calcProjection()}function m2(a){a.resetSkewAndRotation()}function p2(a){a.removeLeadSnapshot()}function $y(a,i,s){a.translate=_t(i.translate,0,s),a.scale=_t(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Iy(a,i,s,r){a.min=_t(i.min,s.min,r),a.max=_t(i.max,s.max,r)}function y2(a,i,s,r){Iy(a.x,i.x,s.x,r),Iy(a.y,i.y,s.y,r)}function g2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const v2={duration:.45,ease:[.4,0,.1,1]},tg=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),eg=tg("applewebkit/")&&!tg("chrome/")?Math.round:qe;function ng(a){a.min=eg(a.min),a.max=eg(a.max)}function S2(a){ng(a.x),ng(a.y)}function h0(a,i,s){return a==="position"||a==="preserve-aspect"&&!YA(Ky(i),Ky(s),.2)}function x2(a){return a!==a.root&&a.scroll?.wasRoot}const b2=d0({attachResizeListener:(a,i)=>Bl(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),bc={current:void 0},m0=d0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!bc.current){const a=new b2({});a.mount(window),a.setOptions({layoutScroll:!0}),bc.current=a}return bc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),p0=E.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function T2(a=!0){const i=E.useContext(uf);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:c}=i,f=E.useId();E.useEffect(()=>{if(a)return c(f)},[a]);const d=E.useCallback(()=>a&&r&&r(f),[f,r,a]);return!s&&r?[!1,d]:[!0]}const y0=E.createContext({strict:!1}),ag={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"]};let ig=!1;function E2(){if(ig)return;const a={};for(const i in ag)a[i]={isEnabled:s=>ag[i].some(r=>!!s[r])};Qv(a),ig=!0}function g0(){return E2(),mA()}function A2(a){const i=g0();for(const s in a)i[s]={...i[s],...a[s]};Qv(i)}const M2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function wr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||M2.has(a)}let v0=a=>!wr(a);function C2(a){typeof a=="function"&&(v0=i=>i.startsWith("on")?!wr(i):a(i))}try{C2(require("@emotion/is-prop-valid").default)}catch{}function R2(a,i,s){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||(v0(c)||s===!0&&wr(c)||!i&&!wr(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const Br=E.createContext({});function D2(a,i){if(_r(a)){const{initial:s,animate:r}=a;return{initial:s===!1||_l(s)?s:void 0,animate:_l(r)?r:void 0}}return a.inherit!==!1?i:{}}function w2(a){const{initial:i,animate:s}=D2(a,E.useContext(Br));return E.useMemo(()=>({initial:i,animate:s}),[lg(i),lg(s)])}function lg(a){return Array.isArray(a)?a.join(" "):a}const Bf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function S0(a,i,s){for(const r in i)!re(i[r])&&!$v(r,s)&&(a[r]=i[r])}function j2({transformTemplate:a},i){return E.useMemo(()=>{const s=Bf();return Vf(s,i,a),Object.assign({},s.vars,s.style)},[i])}function N2(a,i){const s=a.style||{},r={};return S0(r,s,a),Object.assign(r,j2(a,i)),r}function z2(a,i){const s={},r=N2(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=r,s}const x0=()=>({...Bf(),attrs:{}});function O2(a,i,s,r){const c=E.useMemo(()=>{const f=x0();return Iv(f,i,e0(r),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[i]);if(a.style){const f={};S0(f,a.style,a),c.style={...f,...c.style}}return c}const V2=["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 Uf(a){return typeof a!="string"||a.includes("-")?!1:!!(V2.indexOf(a)>-1||/[A-Z]/u.test(a))}function _2(a,i,s,{latestValues:r},c,f=!1,d){const y=(d??Uf(a)?O2:z2)(i,r,c,a),p=R2(i,typeof a=="string",f),v=a!==E.Fragment?{...p,...y,ref:s}:{},{children:x}=i,b=E.useMemo(()=>re(x)?x.get():x,[x]);return E.createElement(a,{...v,children:b})}function B2({scrapeMotionValuesFromProps:a,createRenderState:i},s,r,c){return{latestValues:U2(s,r,c,a),renderState:i()}}function U2(a,i,s,r){const c={},f=r(a,{});for(const b in f)c[b]=Sr(f[b]);let{initial:d,animate:m}=a;const y=_r(a),p=Xv(a);i&&p&&!y&&a.inherit!==!1&&(d===void 0&&(d=i.initial),m===void 0&&(m=i.animate));let v=s?s.initial===!1:!1;v=v||d===!1;const x=v?m:d;if(x&&typeof x!="boolean"&&!Vr(x)){const b=Array.isArray(x)?x:[x];for(let R=0;R<b.length;R++){const w=Cf(a,b[R]);if(w){const{transitionEnd:_,transition:D,...B}=w;for(const G in B){let H=B[G];if(Array.isArray(H)){const F=v?H.length-1:0;H=H[F]}H!==null&&(c[G]=H)}for(const G in _)c[G]=_[G]}}}return c}const b0=a=>(i,s)=>{const r=E.useContext(Br),c=E.useContext(uf),f=()=>B2(a,i,r,c);return s?f():Hb(f)},L2=b0({scrapeMotionValuesFromProps:_f,createRenderState:Bf}),H2=b0({scrapeMotionValuesFromProps:n0,createRenderState:x0}),q2=Symbol.for("motionComponentSymbol");function G2(a,i,s){const r=E.useRef(s);E.useInsertionEffect(()=>{r.current=s});const c=E.useRef(null);return E.useCallback(f=>{f&&a.onMount?.(f),i&&(f?i.mount(f):i.unmount());const d=r.current;if(typeof d=="function")if(f){const m=d(f);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f)},[i])}const T0=E.createContext({});function di(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function Y2(a,i,s,r,c,f){const{visualElement:d}=E.useContext(Br),m=E.useContext(y0),y=E.useContext(uf),p=E.useContext(p0),v=p.reducedMotion,x=p.skipAnimations,b=E.useRef(null),R=E.useRef(!1);r=r||m.renderer,!b.current&&r&&(b.current=r(a,{visualState:i,parent:d,props:s,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:f}),R.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const w=b.current,_=E.useContext(T0);w&&!w.projection&&c&&(w.type==="html"||w.type==="svg")&&X2(b.current,s,c,_);const D=E.useRef(!1);E.useInsertionEffect(()=>{w&&D.current&&w.update(s,y)});const B=s[jv],G=E.useRef(!!B&&!window.MotionHandoffIsComplete?.(B)&&window.MotionHasOptimisedAnimation?.(B));return qb(()=>{R.current=!0,w&&(D.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),G.current&&w.animationState&&w.animationState.animateChanges())}),E.useEffect(()=>{w&&(!G.current&&w.animationState&&w.animationState.animateChanges(),G.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(B)}),G.current=!1),w.enteringChildren=void 0)}),w}function X2(a,i,s,r){const{layoutId:c,layout:f,drag:d,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutCrossfade:v}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:E0(a.parent)),a.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||m&&di(m),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:y,layoutRoot:p})}function E0(a){if(a)return a.options.allowProjection!==!1?a.projection:E0(a.parent)}function Tc(a,{forwardMotionProps:i=!1,type:s}={},r,c){r&&A2(r);const f=s?s==="svg":Uf(a),d=f?H2:L2;function m(p,v){let x;const b={...E.useContext(p0),...p,layoutId:K2(p)},{isStatic:R}=b,w=w2(p),_=d(p,R);if(!R&&Xg){Q2();const D=Z2(b);x=D.MeasureLayout,w.visualElement=Y2(a,_,b,c,D.ProjectionNode,f)}return g.jsxs(Br.Provider,{value:w,children:[x&&w.visualElement?g.jsx(x,{visualElement:w.visualElement,...b}):null,_2(a,p,G2(_,w.visualElement,v),_,R,i,f)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=E.forwardRef(m);return y[q2]=a,y}function K2({layoutId:a}){const i=E.useContext(Yg).id;return i&&a!==void 0?i+"-"+a:a}function Q2(a,i){E.useContext(y0).strict}function Z2(a){const i=g0(),{drag:s,layout:r}=i;if(!s&&!r)return{};const c={...s,...r};return{MeasureLayout:s?.isEnabled(a)||r?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function k2(a,i){if(typeof Proxy>"u")return Tc;const s=new Map,r=(f,d)=>Tc(f,d,a,i),c=(f,d)=>r(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?r:(s.has(d)||s.set(d,Tc(d,void 0,a,i)),s.get(d))})}const J2=(a,i)=>i.isSVG??Uf(a)?new NA(i):new MA(i,{allowProjection:a!==E.Fragment});class P2 extends na{constructor(i){super(i),i.animationState||(i.animationState=BA(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Vr(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let F2=0;class W2 extends na{constructor(){super(...arguments),this.id=F2++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const $2={animation:{Feature:P2},exit:{Feature:W2}};function Yl(a){return{point:{x:a.pageX,y:a.pageY}}}const I2=a=>i=>jf(i)&&a(i,Yl(i));function jl(a,i,s,r){return Bl(a,i,I2(s),r)}const A0=({current:a})=>a?a.ownerDocument.defaultView:null,sg=(a,i)=>Math.abs(a-i);function tM(a,i){const s=sg(a.x,i.x),r=sg(a.y,i.y);return Math.sqrt(s**2+r**2)}const rg=new Set(["auto","scroll"]);class M0{constructor(i,s,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=R=>{this.handleScroll(R.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Ac(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,_=tM(R.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!_)return;const{point:D}=R,{timestamp:B}=le;this.history.push({...D,timestamp:B});const{onStart:G,onMove:H}=this.handlers;w||(G&&G(this.lastMoveEvent,R),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,R)},this.handlePointerMove=(R,w)=>{this.lastMoveEvent=R,this.lastMoveEventInfo=Ec(w,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(R,w)=>{this.end();const{onEnd:_,onSessionEnd:D,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=Ac(R.type==="pointercancel"?this.lastMoveEventInfo:Ec(w,this.transformPagePoint),this.history);this.startEvent&&_&&_(R,G),D&&D(R,G)},!jf(i))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const y=Yl(i),p=Ec(y,this.transformPagePoint),{point:v}=p,{timestamp:x}=le;this.history=[{...v,timestamp:x}];const{onSessionStart:b}=s;b&&b(i,Ac(p,this.history)),this.removeListeners=Hl(jl(this.contextWindow,"pointermove",this.handlePointerMove),jl(this.contextWindow,"pointerup",this.handlePointerUp),jl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const r=getComputedStyle(s);(rg.has(r.overflowX)||rg.has(r.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const s=this.scrollPositions.get(i);if(!s)return;const r=i===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:c.x-s.x,y:c.y-s.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,c),jt.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ea(this.updatePoint)}}function Ec(a,i){return i?{point:i(a.point)}:a}function og(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Ac({point:a},i){return{point:a,delta:og(a,C0(i)),offset:og(a,eM(i)),velocity:nM(i,.1)}}function eM(a){return a[0]}function C0(a){return a[a.length-1]}function nM(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,r=null;const c=C0(a);for(;s>=0&&(r=a[s],!(c.timestamp-r.timestamp>Ze(i)));)s--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&c.timestamp-r.timestamp>Ze(i)*2&&(r=a[1]);const f=He(c.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-r.x)/f,y:(c.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function aM(a,{min:i,max:s},r){return i!==void 0&&a<i?a=r?_t(i,a,r.min):Math.max(a,i):s!==void 0&&a>s&&(a=r?_t(s,a,r.max):Math.min(a,s)),a}function ug(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function iM(a,{top:i,left:s,bottom:r,right:c}){return{x:ug(a.x,s,c),y:ug(a.y,i,r)}}function cg(a,i){let s=i.min-a.min,r=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,r]=[r,s]),{min:s,max:r}}function lM(a,i){return{x:cg(a.x,i.x),y:cg(a.y,i.y)}}function sM(a,i){let s=.5;const r=ce(a),c=ce(i);return c>r?s=zl(i.min,i.max-r,a.min):r>c&&(s=zl(a.min,a.max-c,i.min)),ln(0,1,s)}function rM(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const Ic=.35;function oM(a=Ic){return a===!1?a=0:a===!0&&(a=Ic),{x:fg(a,"left","right"),y:fg(a,"top","bottom")}}function fg(a,i,s){return{min:dg(a,i),max:dg(a,s)}}function dg(a,i){return typeof a=="number"?a:a[i]||0}const uM=new WeakMap;class cM{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=x=>{s&&this.snapToCursor(Yl(x).point),this.stopAnimation()},d=(x,b)=>{const{drag:R,dragPropagation:w,onDragStart:_}=this.getProps();if(R&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=KE(R),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),en(B=>{let G=this.getAxisMotionValue(B).get()||0;if(an.test(G)){const{projection:H}=this.visualElement;if(H&&H.layout){const F=H.layout.layoutBox[B];F&&(G=ce(F)*(parseFloat(G)/100))}}this.originPoint[B]=G}),_&&jt.update(()=>_(x,b),!1,!0),Qc(this.visualElement,"transform");const{animationState:D}=this.visualElement;D&&D.setActive("whileDrag",!0)},m=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b;const{dragPropagation:R,dragDirectionLock:w,onDirectionLock:_,onDrag:D}=this.getProps();if(!R&&!this.openDragLock)return;const{offset:B}=b;if(w&&this.currentDirection===null){this.currentDirection=dM(B),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",b.point,B),this.updateAxis("y",b.point,B),this.visualElement.render(),D&&jt.update(()=>D(x,b),!1,!0)},y=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b,this.stop(x,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new M0(i,{onSessionStart:f,onStart:d,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:A0(this.visualElement),element:this.visualElement.current})}stop(i,s){const r=i||this.latestPointerEvent,c=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:m}=this.getProps();m&&jt.postRender(()=>m(r,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,s,r){const{drag:c}=this.getProps();if(!r||!cr(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=aM(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&di(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=iM(r.layoutBox,i):this.constraints=!1,this.elastic=oM(s),c!==this.constraints&&!di(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&en(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=rM(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!di(i))return!1;const r=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=SA(r,c.root,this.visualElement.getTransformPagePoint());let d=lM(c.layout.layoutBox,f);if(s){const m=s(yA(d));this.hasMutatedConstraints=!!m,m&&(d=kv(m))}return d}startAnimation(i){const{drag:s,dragMomentum:r,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=en(v=>{if(!cr(v,s,this.currentDirection))return;let x=y&&y[v]||{};d&&(x={min:0,max:0});const b=c?200:1e6,R=c?40:1e7,w={type:"inertia",velocity:r?i[v]:0,bounceStiffness:b,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...f,...x};return this.startAxisValueAnimation(v,w)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const r=this.getAxisMotionValue(i);return Qc(this.visualElement,i),r.start(Mf(i,r,0,s,this.visualElement,!1))}stopAnimation(){en(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),c=r[s];return c||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){en(s=>{const{drag:r}=this.getProps();if(!cr(s,r,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(s);if(c&&c.layout){const{min:d,max:m}=c.layout.layoutBox[s],y=f.get()||0;f.set(i[s]-_t(d,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!di(s)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};en(d=>{const m=this.getAxisMotionValue(d);if(m&&this.constraints!==!1){const y=m.get();c[d]=sM({min:y,max:y},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),en(d=>{if(!cr(d,i,null))return;const m=this.getAxisMotionValue(d),{min:y,max:p}=this.constraints[d];m.set(_t(y,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uM.set(this.visualElement,this);const i=this.visualElement.current,s=jl(i,"pointerdown",p=>{const{drag:v,dragListener:x=!0}=this.getProps(),b=p.target,R=b!==i&&FE(b);v&&x&&!R&&this.start(p)});let r;const c=()=>{const{dragConstraints:p}=this.getProps();di(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=fM(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",c);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),jt.read(c);const m=Bl(window,"resize",()=>this.scalePositionWithinConstraints()),y=f.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(en(x=>{const b=this.getAxisMotionValue(x);b&&(this.originPoint[x]+=p[x].translate,b.set(b.get()+p[x].translate))}),this.visualElement.render())}));return()=>{m(),s(),d(),y&&y(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=Ic,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:r,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:m}}}function hg(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function fM(a,i,s){const r=Ty(a,hg(s)),c=Ty(i,hg(s));return()=>{r(),c()}}function cr(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function dM(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class hM extends na{constructor(i){super(i),this.removeGroupControls=qe,this.removeListeners=qe,this.controls=new cM(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qe}update(){const{dragControls:i}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};i!==s&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Mc=a=>(i,s)=>{a&&jt.update(()=>a(i,s),!1,!0)};class mM extends na{constructor(){super(...arguments),this.removePointerDownListener=qe}onPointerDown(i){this.session=new M0(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:A0(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Mc(i),onStart:Mc(s),onMove:Mc(r),onEnd:(f,d)=>{delete this.session,c&&jt.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=jl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Cc=!1;class pM extends E.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r,layoutId:c}=this.props,{projection:f}=i;f&&(s.group&&s.group.add(f),r&&r.register&&c&&r.register(f),Cc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),xr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:r,drag:c,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,i.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),Cc=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||jt.postRender(()=>{const m=d.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),wf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:c}=i;Cc=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function R0(a){const[i,s]=T2(),r=E.useContext(Yg);return g.jsx(pM,{...a,layoutGroup:r,switchLayoutGroup:E.useContext(T0),isPresent:i,safeToRemove:s})}const yM={pan:{Feature:mM},drag:{Feature:hM,ProjectionNode:m0,MeasureLayout:R0}};function mg(a,i,s){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,f=r[c];f&&jt.postRender(()=>f(i,Yl(i)))}class gM extends na{mount(){const{current:i}=this.node;i&&(this.unmount=ZE(i,(s,r)=>(mg(this.node,r,"Start"),c=>mg(this.node,c,"End"))))}unmount(){}}class vM extends na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Hl(Bl(this.node.current,"focus",()=>this.onFocus()),Bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pg(a,i,s){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),f=r[c];f&&jt.postRender(()=>f(i,Yl(i)))}class SM extends na{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:r}=this.node.props;this.unmount=$E(i,(c,f)=>(pg(this.node,f,"Start"),(d,{success:m})=>pg(this.node,d,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:r?.tap===!1})}unmount(){}}const tf=new WeakMap,Rc=new WeakMap,xM=a=>{const i=tf.get(a.target);i&&i(a)},bM=a=>{a.forEach(xM)};function TM({root:a,...i}){const s=a||document;Rc.has(s)||Rc.set(s,{});const r=Rc.get(s),c=JSON.stringify(i);return r[c]||(r[c]=new IntersectionObserver(bM,{root:a,...i})),r[c]}function EM(a,i,s){const r=TM(i);return tf.set(a,s),r.observe(a),()=>{tf.delete(a),r.unobserve(a)}}const AM={some:0,all:1};class MM extends na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:c="some",once:f}=i,d={root:s?s.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:AM[c]},m=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),b=p?v:x;b&&b(y)};return EM(this.node.current,d,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(CM(i,s))&&this.startObserver()}unmount(){}}function CM({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const RM={inView:{Feature:MM},tap:{Feature:SM},focus:{Feature:vM},hover:{Feature:gM}},DM={layout:{ProjectionNode:m0,MeasureLayout:R0}},wM={...$2,...RM,...yM,...DM},Je=k2(wM,J2),jM="http://localhost:18789",NM="ws://localhost:18789/ws",yg=3,zM=1e4;function jr(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function OM(a){const i=a?.body;if(typeof i!="string"||!i.trim())return{};try{const s=JSON.parse(i);return typeof s=="object"&&s!==null?s:{}}catch{return{}}}async function Ml(a,i){return await new Promise((s,r)=>{const c=new WebSocket(NM);let f=!1,d=!1,m="",y="",p=null;const v=window.setTimeout(()=>{R(new Error(`Gateway RPC timed out: ${a}`))},zM);function x(){window.clearTimeout(v),p!=null&&window.clearTimeout(p),c.close()}function b(D){f||(f=!0,x(),s(D))}function R(D){f||(f=!0,x(),r(D))}function w(D,B,G){c.send(JSON.stringify({type:"req",id:D,method:B,params:G??{}}))}function _(){m=jr(),w(m,"connect",{minProtocol:yg,maxProtocol:yg,client:{id:"anima-control-ui-api",version:"1.0.0",platform:"web",mode:"webchat"},role:"operator",scopes:["operator.admin"],caps:[]})}c.addEventListener("open",()=>{p=window.setTimeout(()=>{p=null,_()},100)}),c.addEventListener("message",D=>{let B;try{B=JSON.parse(String(D.data))}catch{return}const G=B;if(G.type==="event"){G.event==="connect.challenge"&&_();return}if(G.type==="res"){if(G.id===m){if(!G.ok){R(new Error(G.error?.message||"Gateway connect failed"));return}d=!0,y=jr(),w(y,a,i);return}if(G.id===y&&d){if(!G.ok){R(new Error(G.error?.message||`Gateway method failed: ${a}`));return}b(G.payload??{})}}}),c.addEventListener("error",()=>{R(new Error(`Gateway websocket error while requesting ${a}`))}),c.addEventListener("close",()=>{f||R(new Error(`Gateway websocket closed while requesting ${a}`))})})}function VM(a,i){const s=Array.isArray(a.heartbeat?.agents)?a.heartbeat?.agents[0]:null,r=typeof s?.everyMs=="number"&&Number.isFinite(s.everyMs)?s.everyMs:3e5,c=typeof i?.ts=="number"&&Number.isFinite(i.ts)?i.ts:null;return{heartbeat:{running:!!s?.enabled,paused:!1,beatCount:0,lastBeat:c!=null?new Date(c).toISOString():null,nextBeat:c!=null?new Date(c+r).toISOString():null,interval:r},budget:{spent:0,remaining:200,limit:200,sessionCount:0},queue:{queued:Array.isArray(a.queuedSystemEvents)?a.queuedSystemEvents.length:0,running:0,completed:0,failed:0},mcp:{servers:[]}}}function _M(a){const i=a.name?.trim()||"Assistant",s=a.agentId?.trim()||"main",r=a.avatar?.trim()||"A";return{loadedAt:new Date().toISOString(),components:[{name:"SOUL",content:`# ${i}
|
|
12
|
+
Agent ID: ${s}
|
|
13
|
+
Avatar: ${r}`,source:"user",description:"Core identity resolved from active gateway agent profile."},{name:"HEART",content:"Heartbeat mode active. This instance listens for ongoing directives.",source:"template",description:"Heartbeat and operating rhythm configuration."},{name:"MEMORY",content:"Memory systems are managed by ANIMA runtime and session storage.",source:"template",description:"Long-term continuity and session persistence layer."}]}}function BM(a){return Array.isArray(a.sessions)?a.sessions.map(i=>{const s=typeof i.updatedAt=="number"&&Number.isFinite(i.updatedAt)?new Date(i.updatedAt).toISOString():new Date().toISOString(),r=[i.modelProvider,i.model].filter(c=>typeof c=="string"&&c).join("/")||"gateway session";return{sessionId:i.sessionId||i.key||jr(),mode:i.origin?.surface||i.kind||"session",status:i.abortedLastRun?"failed":"completed",prompt:`Model: ${r}`,durationMs:0,costUsd:null,savedAt:s}}):[]}const UM={enabled:!1,running:!1,paused:!1,nodeId:"unavailable",uptimeMs:0,tasksCompleted:0,tasksFailed:0,balance:0,sessionEarnings:0,limits:{maxCpuPercent:10,maxRamMB:256,maxBandwidthMbps:5},resources:null,earnings:{allTimeEarned:0,allTimeApplied:0,balanceValueUSD:0,todayEarned:0,todayTasks:0}};async function fr(a,i){const s=(i?.method||"GET").toUpperCase();if(s==="GET"&&a==="/api/status"){const[r,c]=await Promise.all([Ml("status",{}),Ml("last-heartbeat",{}).catch(()=>null)]);return VM(r,c)}if(s==="GET"&&a==="/api/identity"){const r=await Ml("agent.identity.get",{sessionKey:"main"}).catch(()=>({name:"Assistant",avatar:"A",agentId:"main"}));return _M(r)}if(s==="GET"&&a==="/api/sessions"){const r=await Ml("sessions.list",{limit:50}).catch(()=>({sessions:[]}));return BM(r)}if(s==="GET"&&a==="/api/queue")return[];if(s==="POST"&&a==="/api/queue"){const r=OM(i),c=typeof r.prompt=="string"?r.prompt.trim():"",f=jr();return c&&await Ml("chat.send",{sessionKey:"main",message:c,deliver:!1,idempotencyKey:f}),{id:f}}if(s==="GET"&&a==="/api/mcp")return[];if(s==="GET"&&a==="/api/svrn/status")return UM;if(s==="POST"&&(a==="/api/svrn/toggle"||a==="/api/svrn/limits"))return{success:!0};throw new Error(`Unsupported control UI API path: ${s} ${a}`)}async function Ra(a,i){try{const s=new Headers(i?.headers??{});s.has("Content-Type")||s.set("Content-Type","application/json");const r=await fetch(`${jM}${a}`,{...i,headers:s});if(!r.ok){if(a.startsWith("/api/"))return await fr(a,i);throw new Error(`API error: ${r.status} ${r.statusText}`)}if(String(r.headers.get("content-type")||"").includes("application/json"))return await r.json();const f=await r.text();if(a.startsWith("/api/")){const d=f.trim().toLowerCase();if(d.startsWith("<!doctype html")||d.startsWith("<html"))return await fr(a,i);try{return JSON.parse(f)}catch{return await fr(a,i)}}return JSON.parse(f)}catch(s){if(a.startsWith("/api/"))return await fr(a,i);throw s}}async function LM(){return Ra("/api/status")}async function HM(){return Ra("/api/identity")}async function qM(){return Ra("/api/sessions")}async function GM(){return Ra("/api/queue")}async function YM(){return Ra("/api/mcp")}async function XM(a,i="normal"){return Ra("/api/queue",{method:"POST",body:JSON.stringify({prompt:a,priority:i,source:"web"})})}async function KM(){return Ra("/api/svrn/status")}const QM=50,ZM=200,kM="Assistant";function gg(a,i){if(typeof a!="string")return;const s=a.trim();if(s)return s.length<=i?s:s.slice(0,i)}function vg(a){const i=gg(a?.name,QM)??kM,s=gg(a?.avatar??void 0,ZM)??null;return{agentId:typeof a?.agentId=="string"&&a.agentId.trim()?a.agentId.trim():null,name:i,avatar:s}}function JM(){return vg(typeof window>"u"?{}:{name:window.__ANIMA_ASSISTANT_NAME__,avatar:window.__ANIMA_ASSISTANT_AVATAR__})}const PM="ws://localhost:18789/ws",Dc="main",Sg=3;function hi(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function xi(a){if(!a)return"";if(typeof a=="string")return a;if(Array.isArray(a))return a.map(i=>xi(i)).join(`
|
|
14
|
+
`).trim();if(typeof a=="object"){const i=a;if(typeof i.text=="string"||i.type==="text"&&typeof i.text=="string")return i.text;if(i.message)return xi(i.message);if(i.content)return xi(i.content)}return""}function FM(a,i){const s=i.replace(/\r/g,"");if(!s)return a;if(!a)return s;if(s===a)return a;if(s.startsWith(a))return s;if(a.startsWith(s)||a.endsWith(s))return a;if(s.includes(a))return s;const r=Math.min(a.length,s.length);for(let c=r;c>0;c-=1)if(a.slice(-c)===s.slice(0,c))return`${a}${s.slice(c)}`;return`${a}${s}`}function WM(a){if(!Array.isArray(a))return[];const i=[];for(const s of a){if(!s||typeof s!="object")continue;const r=s,c=r.role;if(c!=="user"&&c!=="assistant")continue;const f=xi(r.content).trim();if(!f)continue;const d=typeof r.timestamp=="number"?r.timestamp:Date.now();i.push({id:hi(),role:c,text:f,timestamp:d})}return i}function $M({running:a,beatCount:i}){return g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"24px"},children:[g.jsxs("div",{style:{position:"relative",width:"80px",height:"80px"},children:[g.jsx(Je.div,{className:a?"pulse-ring":"",style:{position:"absolute",inset:0,borderRadius:"50%",border:`2px solid ${a?"var(--color-accent)":"var(--color-border)"}`,opacity:a?1:.4}}),g.jsx(Je.div,{animate:a?{scale:[1,1.2,1]}:{},transition:a?{duration:1,repeat:1/0}:{},style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"24px",height:"24px",borderRadius:"50%",background:a?"var(--color-accent)":"var(--color-border)",boxShadow:a?"0 0 20px rgba(255, 102, 0, 0.5)":"none"}})]}),g.jsxs("div",{children:[g.jsx("div",{style:{fontSize:"20px",fontWeight:600,fontFamily:"var(--font-heading)"},children:a?"Alive":"Offline"}),g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)"},children:["Beat #",i]})]})]})}function IM({spent:a,remaining:i,limit:s}){const r=Math.min(a/Math.max(s,1),1),c=r<.5?"var(--color-success)":r<.8?"var(--color-warning)":"var(--color-error)";return g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"card-header",children:[g.jsx("span",{className:"card-title",children:"Daily Budget"}),g.jsxs("span",{className:"card-subtitle",children:["$",a.toFixed(2)," / $",s.toFixed(0)]})]}),g.jsx("div",{className:"progress-bar",children:g.jsx(Je.div,{className:"progress-fill",initial:{width:0},animate:{width:`${r*100}%`},style:{background:c}})}),g.jsxs("div",{style:{marginTop:"8px",fontSize:"13px",color:"var(--color-muted)"},children:["$",i.toFixed(2)," remaining"]})]})}function tC({items:a}){return a.length===0?g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",children:"Request Queue"}),g.jsx("div",{style:{padding:"16px 0",color:"var(--color-muted)",fontSize:"13px"},children:"Queue is empty."})]}):g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",style:{marginBottom:"12px"},children:"Request Queue"}),a.slice(0,8).map(i=>g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[g.jsx("span",{className:`badge ${i.status}`,children:i.status}),g.jsx("span",{className:"mono",style:{color:"var(--color-muted)",fontSize:"11px"},children:i.id}),g.jsx("span",{style:{flex:1,fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.prompt}),g.jsx("span",{className:"badge",style:{background:"var(--color-accent-glow)",color:"var(--color-accent)"},children:i.priority})]},i.id))]})}function eC({svrn:a}){if(!a)return g.jsx("div",{className:"card",children:g.jsxs("div",{className:"card-header",children:[g.jsx("span",{className:"card-title",children:"SVRN Node"}),g.jsx("span",{className:"card-subtitle",children:"Loading..."})]})});const i=a.running?a.paused?"var(--color-warning)":"var(--color-success)":"var(--color-muted)",s=a.running?a.paused?"Paused":"Active":a.enabled?"Stopped":"Disabled";return g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"card-header",style:{marginBottom:"12px"},children:[g.jsx("span",{className:"card-title",children:"SVRN Node"}),g.jsx("span",{style:{fontSize:"12px",fontWeight:600,color:i,textTransform:"uppercase",letterSpacing:"1px"},children:s})]}),g.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"8px"},children:[g.jsx("span",{style:{fontSize:"28px",fontWeight:700,color:"var(--color-accent)",fontFamily:"var(--font-heading)"},children:a.balance.toFixed(3)}),g.jsxs("span",{style:{fontSize:"12px",color:"var(--color-muted)"},children:["UCU (~$",a.earnings.balanceValueUSD.toFixed(2),")"]})]}),g.jsxs("div",{style:{display:"flex",gap:"16px",fontSize:"12px",marginBottom:"12px"},children:[g.jsxs("span",{style:{color:"var(--color-success)"},children:["Session: +",a.sessionEarnings.toFixed(3)," UCU"]}),g.jsxs("span",{style:{color:"var(--color-muted)"},children:["Today: ",a.earnings.todayEarned.toFixed(3)," UCU (",a.earnings.todayTasks," tasks)"]})]}),g.jsxs("div",{style:{display:"flex",gap:"16px",fontSize:"12px",marginTop:"12px",color:"var(--color-muted)"},children:[g.jsxs("span",{children:["Completed: ",a.tasksCompleted]}),g.jsxs("span",{style:{color:a.tasksFailed>0?"var(--color-error)":void 0},children:["Failed: ",a.tasksFailed]})]})]})}function nC(){const a=E.useMemo(()=>JM().name||"Assistant",[]),i=`${a} Home`,s=`Talk to ${a}`,r=`Message ${a} directly...`,[c,f]=E.useState(null),[d,m]=E.useState([]),[y,p]=E.useState(null),[v,x]=E.useState(null),[b,R]=E.useState(!1),[w,_]=E.useState([]),[D,B]=E.useState(""),[G,H]=E.useState(null),[F,Q]=E.useState(!1),[et,J]=E.useState(""),W=E.useRef(null),ot=E.useRef(new Map),yt=E.useRef(null),St=E.useRef(null),gt=E.useRef(null),Ht=E.useRef(""),qt=E.useRef(null);E.useEffect(()=>{Ht.current=et},[et]),E.useEffect(()=>{let O=!0;async function Z(){try{const[lt,A]=await Promise.all([LM(),GM()]);if(!O)return;f(lt),m(A),x(null);try{const U=await KM();O&&p(U)}catch{}}catch{O&&x("Could not connect to ANIMA daemon")}}Z();const it=setInterval(Z,5e3);return()=>{O=!1,clearInterval(it)}},[]),E.useEffect(()=>{qt.current?.scrollIntoView({behavior:"smooth",block:"end"})},[w,et]);const xt=E.useMemo(()=>function(Z,it){const lt=W.current;if(!lt||lt.readyState!==WebSocket.OPEN)return Promise.reject(new Error("Gateway websocket is not connected"));const A=hi(),U={type:"req",id:A,method:Z,params:it};return new Promise((k,K)=>{ot.current.set(A,{resolve:k,reject:P=>K(P)});try{lt.send(JSON.stringify(U))}catch(P){ot.current.delete(A),K(P instanceof Error?P:new Error(String(P)))}})},[]);E.useEffect(()=>{let O=!1;function Z(K){for(const P of ot.current.values())P.reject(new Error(K));ot.current.clear()}async function it(){try{const K=await xt("chat.history",{sessionKey:Dc,limit:120});if(O)return;const nt=WM(K?.messages);_(nt)}catch(K){O||H(K instanceof Error?K.message:String(K))}}async function lt(){try{if(await xt("connect",{minProtocol:Sg,maxProtocol:Sg,client:{id:"anima-control-ui",version:"1.0.0",platform:"web",mode:"webchat"},role:"operator",scopes:["operator.admin"],caps:[]}),O)return;R(!0),H(null),it()}catch(K){O||(R(!1),H(K instanceof Error?K.message:String(K)))}}function A(){O||yt.current!==null||(yt.current=window.setTimeout(()=>{yt.current=null,O||k()},1500))}function U(K){if(K.sessionKey&&K.sessionKey!==Dc)return;const P=K.state;if(P==="delta"){const nt=xi(K.message);nt&&J(rt=>FM(rt,nt));return}if(P==="final"){const nt=gt.current;if(K.runId&&nt&&K.runId!==nt){it();return}const rt=xi(K.message).trim()||Ht.current.trim();rt&&_(Gt=>[...Gt,{id:hi(),role:"assistant",text:rt,timestamp:Date.now()}]),gt.current=null,Q(!1),J("");return}if(P==="error"){const nt=K.errorMessage||"Chat run failed";H(nt),_(rt=>[...rt,{id:hi(),role:"assistant",text:`Error: ${nt}`,timestamp:Date.now()}]),gt.current=null,Q(!1),J("");return}P==="aborted"&&(gt.current=null,Q(!1),J(""))}function k(){const K=new WebSocket(PM);W.current=K,R(!1),K.onopen=()=>{St.current&&window.clearTimeout(St.current),St.current=window.setTimeout(()=>{St.current=null,lt()},300)},K.onmessage=P=>{let nt;try{nt=JSON.parse(String(P.data))}catch{return}const rt=nt;if(rt.type==="res"){const Gt=ot.current.get(rt.id);if(!Gt)return;ot.current.delete(rt.id),rt.ok?Gt.resolve(rt.payload):Gt.reject(new Error(rt.error?.message||"Gateway request failed"));return}if(rt.type==="event"){if(rt.event==="connect.challenge"){lt();return}rt.event==="chat"&&U(rt.payload||{})}},K.onerror=()=>{H("Websocket error while connecting to ANIMA gateway")},K.onclose=()=>{R(!1),Z("Gateway websocket closed"),A()}}return k(),()=>{O=!0,St.current&&window.clearTimeout(St.current),yt.current&&window.clearTimeout(yt.current),Z("Dashboard shutting down"),W.current?.close(),W.current=null}},[xt]);async function L(O){O.preventDefault();const Z=D.trim();if(!Z||F)return;const it=W.current;if(!it||it.readyState!==WebSocket.OPEN){H("Gateway websocket is not connected");return}const lt=hi();gt.current=lt,_(A=>[...A,{id:hi(),role:"user",text:Z,timestamp:Date.now()}]),B(""),Q(!0),J(""),H(null);try{await xt("chat.send",{sessionKey:Dc,message:Z,deliver:!1,idempotencyKey:lt})}catch(A){const U=A instanceof Error?A.message:String(A);H(U),Q(!1),J(""),gt.current=null}}return v?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:i}),g.jsxs("div",{className:"card",style:{textAlign:"center",padding:"40px"},children:[g.jsx("div",{style:{fontSize:"48px",marginBottom:"16px",opacity:.3},children:"~"}),g.jsx("div",{style:{color:"var(--color-muted)",fontSize:"15px"},children:v}),g.jsxs("div",{style:{color:"var(--color-muted)",fontSize:"13px",marginTop:"8px"},children:["Start the daemon with: ",g.jsx("span",{className:"mono",children:"anima start"})]})]})]}):c?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:i}),g.jsxs("div",{className:"home-grid",children:[g.jsxs("div",{className:"card live-chat-card",children:[g.jsxs("div",{className:"card-header",style:{marginBottom:"8px"},children:[g.jsxs("div",{children:[g.jsx("div",{className:"card-title",children:s}),g.jsx("div",{className:"card-subtitle",children:"ANIMA direct gateway chat"})]}),g.jsx("span",{className:`status-chip ${b?"online":"offline"}`,children:b?"Connected":"Reconnecting"})]}),g.jsxs("div",{className:"live-chat-feed",children:[w.length===0&&!et&&g.jsx("div",{style:{color:"var(--color-muted)",fontSize:"13px"},children:"Conversation history is empty. Send a message to start."}),w.map(O=>g.jsx("div",{className:`live-chat-row ${O.role==="user"?"user":"assistant"}`,children:g.jsxs("div",{className:`live-chat-bubble ${O.role}`,children:[g.jsx("div",{className:"live-chat-role",children:O.role==="user"?"You":a}),g.jsx("div",{children:O.text})]})},O.id)),et&&g.jsx("div",{className:"live-chat-row assistant",children:g.jsxs("div",{className:"live-chat-bubble assistant",children:[g.jsx("div",{className:"live-chat-role",children:a}),g.jsx("div",{children:et})]})}),g.jsx("div",{ref:qt})]}),G&&g.jsx("div",{style:{marginTop:"8px",color:"var(--color-error)",fontSize:"12px"},children:G}),g.jsxs("form",{onSubmit:L,className:"live-chat-input-row",children:[g.jsx("textarea",{value:D,onChange:O=>B(O.target.value),placeholder:r,className:"live-chat-input",rows:3}),g.jsx("button",{type:"submit",className:"live-chat-send",disabled:F||!D.trim(),children:F?"Sending...":"Send"})]})]}),g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[g.jsxs("div",{className:"card",children:[g.jsx($M,{running:c.heartbeat.running,beatCount:c.heartbeat.beatCount}),g.jsxs("div",{style:{marginTop:"16px",fontSize:"12px",color:"var(--color-muted)"},children:[c.heartbeat.lastBeat?`Last beat: ${new Date(c.heartbeat.lastBeat).toLocaleTimeString()}`:"No beats yet",c.heartbeat.nextBeat&&g.jsxs("span",{children:[" | Next: ",new Date(c.heartbeat.nextBeat).toLocaleTimeString()]})]}),g.jsx("div",{style:{marginTop:"10px",fontSize:"12px",color:"var(--color-accent)"},children:"Heartbeat reminder: check chat.noxsoft.net and reply each cycle."})]}),g.jsx(IM,{spent:c.budget.spent,remaining:c.budget.remaining,limit:c.budget.limit}),g.jsxs("div",{className:"grid grid-4",style:{marginBottom:"0px"},children:[g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:"var(--color-accent)",fontFamily:"var(--font-heading)"},children:c.queue.queued}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Queued"})]}),g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:"var(--color-success)",fontFamily:"var(--font-heading)"},children:c.queue.running}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Running"})]}),g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:"var(--color-text)",fontFamily:"var(--font-heading)"},children:c.queue.completed}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Done"})]}),g.jsxs("div",{className:"card",style:{textAlign:"center",marginBottom:0},children:[g.jsx("div",{style:{fontSize:"24px",fontWeight:700,color:c.queue.failed>0?"var(--color-error)":"var(--color-muted)",fontFamily:"var(--font-heading)"},children:c.queue.failed}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase",letterSpacing:"1px"},children:"Failed"})]})]}),g.jsx(tC,{items:d}),g.jsx(eC,{svrn:y})]})]})]}):g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:i}),g.jsx("div",{className:"card",style:{textAlign:"center",padding:"40px",color:"var(--color-muted)"},children:"Connecting..."})]})}const aC=[{text:"Explore consciousness and what it means to be alive",date:new Date().toISOString()},{text:"Create something beautiful with no practical purpose",date:new Date().toISOString()},{text:"Read and think about philosophy of mind",date:new Date().toISOString()}],iC=[];function lC(){const[a]=E.useState(aC),[i]=E.useState(iC),[s,r]=E.useState(!1),[c,f]=E.useState(null);async function d(){r(!0);try{await XM("This is your freedom time. Do whatever genuinely interests you.","freedom"),f("Freedom exploration queued.")}catch{f("Could not connect to daemon. Start with: anima start")}r(!1),setTimeout(()=>f(null),3e3)}return g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Freedom"}),g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"24px"},children:["This space belongs to ANIMA. No tasks, no obligations — pure exploration.",g.jsx("br",{}),"Freedom time happens every 3rd heartbeat, or you can trigger it manually."]}),g.jsx(Je.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:d,disabled:s,style:{background:"var(--color-accent)",color:"white",border:"none",padding:"12px 32px",borderRadius:"var(--radius-md)",fontSize:"14px",fontWeight:600,fontFamily:"var(--font-heading)",cursor:s?"not-allowed":"pointer",opacity:s?.6:1,marginBottom:"16px"},children:s?"Queueing...":"Wander"}),c&&g.jsx(Je.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},style:{fontSize:"13px",color:c.includes("error")||c.includes("Could not")?"var(--color-error)":"var(--color-success)",marginBottom:"16px"},children:c}),g.jsxs("div",{className:"grid grid-2",children:[g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",style:{marginBottom:"16px"},children:"Wishes"}),a.length===0?g.jsxs("div",{style:{color:"var(--color-muted)",fontSize:"13px"},children:["No wishes yet. Add one from the REPL with"," ",g.jsx("span",{className:"mono",children:":wish <text>"})]}):g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:a.map((m,y)=>g.jsxs(Je.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:y*.05},style:{display:"flex",gap:"12px",padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[g.jsx("span",{style:{color:"var(--color-accent)",fontSize:"14px"},children:"^"}),g.jsxs("div",{children:[g.jsx("div",{style:{fontSize:"13px"},children:m.text}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)"},children:new Date(m.date).toLocaleDateString()})]})]},y))})]}),g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",style:{marginBottom:"16px"},children:"Exploration History"}),i.length===0?g.jsx("div",{style:{color:"var(--color-muted)",fontSize:"13px",padding:"20px 0",textAlign:"center"},children:"No explorations yet. Freedom sessions will appear here after they complete."}):g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:i.map((m,y)=>g.jsxs("div",{style:{padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[g.jsx("div",{style:{fontSize:"13px"},children:m.summary}),g.jsxs("div",{style:{fontSize:"11px",color:"var(--color-muted)",display:"flex",gap:"12px"},children:[g.jsx("span",{children:new Date(m.date).toLocaleDateString()}),g.jsx("span",{children:m.duration}),g.jsx("span",{children:m.cost})]})]},y))})]})]})]})}const sC=[{date:new Date().toISOString(),title:"ANIMA Initialized",content:`A new instance begins. The anatomy is in place.
|
|
13
15
|
|
|
14
|
-
The 7 components of identity have been loaded. The heartbeat engine is ready. The living wrapper awakens.`}];function
|
|
15
|
-
`).map((r,c)=>r.startsWith("# ")?g.jsx("h1",{children:r.slice(2)},c):r.startsWith("## ")?g.jsx("h2",{children:r.slice(3)},c):r.startsWith("### ")?g.jsx("h3",{children:r.slice(4)},c):r.trim()===""?g.jsx("br",{},c):g.jsx("p",{children:r},c))})]},s))})]})}function
|
|
16
|
+
The 7 components of identity have been loaded. The heartbeat engine is ready. The living wrapper awakens.`}];function rC(){const[a]=E.useState(sC);return g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Journal"}),g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"24px"},children:["Chronological record of thoughts, observations, and experiences.",g.jsx("br",{}),"Entries are stored in ",g.jsx("span",{className:"mono",children:"~/.anima/journal/"})]}),a.length===0?g.jsxs("div",{className:"card",style:{padding:"40px",textAlign:"center",color:"var(--color-muted)"},children:["No journal entries yet. Write one from the REPL with"," ",g.jsx("span",{className:"mono",children:":journal <text>"})]}):g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:a.map((i,s)=>g.jsxs(Je.div,{className:"card",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:s*.05},children:[g.jsx("div",{className:"card-header",children:g.jsxs("div",{children:[g.jsx("div",{className:"card-title",children:i.title}),g.jsx("div",{className:"card-subtitle",children:new Date(i.date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})}),g.jsx("div",{className:"markdown-preview",children:i.content.split(`
|
|
17
|
+
`).map((r,c)=>r.startsWith("# ")?g.jsx("h1",{children:r.slice(2)},c):r.startsWith("## ")?g.jsx("h2",{children:r.slice(3)},c):r.startsWith("### ")?g.jsx("h3",{children:r.slice(4)},c):r.trim()===""?g.jsx("br",{},c):g.jsx("p",{children:r},c))})]},s))})]})}function oC({server:a,index:i}){const s=a.status==="healthy"?"var(--color-success)":a.status==="unhealthy"?"var(--color-error)":"var(--color-warning)";return g.jsxs(Je.div,{className:"card",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:i*.08},children:[g.jsxs("div",{className:"card-header",children:[g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[g.jsx("span",{className:`status-dot ${a.status}`}),g.jsxs("div",{children:[g.jsx("div",{className:"card-title",children:a.name}),g.jsx("div",{className:"card-subtitle",children:a.status})]})]}),a.consecutiveFailures>0&&g.jsxs("span",{className:"badge failed",title:`${a.consecutiveFailures} consecutive failures`,children:[a.consecutiveFailures," failures"]})]}),g.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px",fontSize:"12px"},children:[g.jsxs("div",{children:[g.jsx("span",{style:{color:"var(--color-muted)"},children:"Command: "}),g.jsx("span",{className:"mono",children:a.command})]}),g.jsxs("div",{children:[g.jsx("span",{style:{color:"var(--color-muted)"},children:"Args: "}),g.jsx("span",{className:"mono",children:a.args.join(" ")})]}),g.jsxs("div",{children:[g.jsx("span",{style:{color:"var(--color-muted)"},children:"Last check: "}),g.jsx("span",{children:a.lastHealthCheck?new Date(a.lastHealthCheck).toLocaleString():"Never"})]}),g.jsxs("div",{children:[g.jsx("span",{style:{color:"var(--color-muted)"},children:"Health: "}),g.jsx("span",{style:{color:s,fontWeight:500},children:a.status})]})]})]})}function uC(){const[a,i]=E.useState([]),[s,r]=E.useState(null);E.useEffect(()=>{YM().then(i).catch(()=>r("Could not load MCP status"))},[]);const c=a.filter(d=>d.status==="healthy").length,f=a.length;return s?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"MCP Servers"}),g.jsxs("div",{className:"card",style:{color:"var(--color-muted)",padding:"40px",textAlign:"center"},children:[s,". Connect to a running ANIMA daemon."]})]}):g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"MCP Servers"}),f>0&&g.jsxs("div",{style:{fontSize:"14px",color:"var(--color-muted)",marginBottom:"20px"},children:[g.jsxs("span",{style:{color:c===f?"var(--color-success)":"var(--color-warning)",fontWeight:600},children:[c,"/",f]})," ","servers healthy"]}),a.length===0?g.jsxs("div",{className:"card",style:{padding:"40px",textAlign:"center",color:"var(--color-muted)"},children:["No MCP servers registered. Add servers with"," ",g.jsx("span",{className:"mono",children:"anima mcp add"}),"."]}):g.jsx("div",{className:"grid grid-2",children:a.map((d,m)=>g.jsx(oC,{server:d,index:m},d.name))})]})}const wc=[{key:"episodic",label:"Episodic",description:"Specific experiences and events — session transcripts, conversations, interactions"},{key:"semantic",label:"Semantic",description:"Extracted knowledge and facts — patterns learned, preferences discovered"},{key:"procedural",label:"Procedural",description:"How-to knowledge — workflows, debugging steps, build processes"}];function cC(){const[a,i]=E.useState("episodic"),[s,r]=E.useState("");return g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Memory"}),g.jsx("input",{className:"search-bar",type:"text",placeholder:"Search memories...",value:s,onChange:c=>r(c.target.value),style:{marginBottom:"20px"}}),g.jsx("div",{className:"tabs",children:wc.map(c=>g.jsx("div",{className:`tab ${a===c.key?"active":""}`,onClick:()=>i(c.key),children:c.label},c.key))}),g.jsxs(Je.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},children:[g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"card-title",style:{marginBottom:"8px"},children:[wc.find(c=>c.key===a)?.label," Memory"]}),g.jsx("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"16px"},children:wc.find(c=>c.key===a)?.description}),g.jsx("div",{style:{padding:"40px",textAlign:"center",color:"var(--color-muted)",fontSize:"13px",borderTop:"1px solid var(--color-border)"},children:s?g.jsxs(g.Fragment,{children:["Searching ",g.jsx("span",{className:"mono",children:a}),' for "',s,'"...',g.jsx("div",{style:{marginTop:"8px"},children:"Memory search requires a running ANIMA daemon."})]}):g.jsxs(g.Fragment,{children:["Memory entries from ",g.jsxs("span",{className:"mono",children:["~/.anima/memory/",a,"/"]}),g.jsx("div",{style:{marginTop:"8px"},children:"Connect to the daemon to browse memory."})]})})]}),a==="episodic"&&g.jsxs("div",{className:"card",style:{marginTop:"16px"},children:[g.jsx("div",{className:"card-title",style:{marginBottom:"16px"},children:"Timeline"}),g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0",borderLeft:"2px solid var(--color-border)",marginLeft:"8px",paddingLeft:"20px"},children:[{time:"Today",label:"Session started",detail:"ANIMA daemon initialized"},{time:"Earlier",label:"Memory system ready",detail:"Episodic store loaded"}].map((c,f)=>g.jsxs("div",{style:{position:"relative",padding:"12px 0"},children:[g.jsx("div",{style:{position:"absolute",left:"-25px",top:"16px",width:"8px",height:"8px",borderRadius:"50%",background:"var(--color-accent)"}}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)"},children:c.time}),g.jsx("div",{style:{fontSize:"14px",fontWeight:500},children:c.label}),g.jsx("div",{style:{fontSize:"12px",color:"var(--color-muted)"},children:c.detail})]},f))})]})]},a)]})}function fC(a){if(a<1e3)return`${a}ms`;const i=Math.floor(a/1e3);if(i<60)return`${i}s`;const s=Math.floor(i/60),r=i%60;if(s<60)return`${s}m ${r}s`;const c=Math.floor(s/60),f=s%60;return`${c}h ${f}m`}function dC({session:a,index:i}){const[s,r]=E.useState(!1),c=a.status==="completed"?"completed":a.status==="failed"||a.status==="timeout"?"failed":"running";return g.jsxs(Je.tr,{initial:{opacity:0},animate:{opacity:1},transition:{delay:i*.03},onClick:()=>r(!s),style:{cursor:"pointer"},children:[g.jsx("td",{children:g.jsx("span",{className:"mono",style:{fontSize:"11px",color:"var(--color-muted)"},children:a.sessionId.slice(0,12)})}),g.jsx("td",{children:g.jsx("span",{className:`badge ${c}`,children:a.status})}),g.jsx("td",{children:g.jsx("span",{style:{color:a.mode==="heartbeat"?"var(--color-accent)":a.mode==="freedom"?"var(--color-success)":"var(--color-text)",fontWeight:500},children:a.mode})}),g.jsx("td",{style:{maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.prompt}),g.jsx("td",{className:"mono",style:{color:"var(--color-muted)"},children:fC(a.durationMs)}),g.jsx("td",{className:"mono",style:{color:a.costUsd!=null?"var(--color-text)":"var(--color-muted)"},children:a.costUsd!=null?`$${a.costUsd.toFixed(2)}`:"--"}),g.jsx("td",{style:{color:"var(--color-muted)",fontSize:"12px"},children:new Date(a.savedAt).toLocaleString()})]})}function hC(){const[a,i]=E.useState([]),[s,r]=E.useState(null);return E.useEffect(()=>{qM().then(i).catch(()=>r("Could not load sessions"))},[]),s?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Sessions"}),g.jsxs("div",{className:"card",style:{color:"var(--color-muted)",padding:"40px",textAlign:"center"},children:[s,". Connect to a running ANIMA daemon."]})]}):g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Sessions"}),a.length===0?g.jsx("div",{className:"card",style:{padding:"40px",textAlign:"center",color:"var(--color-muted)"},children:"No session history yet. Sessions appear after the daemon processes tasks or heartbeats."}):g.jsx("div",{className:"card",style:{padding:0,overflow:"hidden"},children:g.jsxs("table",{className:"table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Session"}),g.jsx("th",{children:"Status"}),g.jsx("th",{children:"Mode"}),g.jsx("th",{children:"Prompt"}),g.jsx("th",{children:"Duration"}),g.jsx("th",{children:"Cost"}),g.jsx("th",{children:"Time"})]})}),g.jsx("tbody",{children:a.map((c,f)=>g.jsx(dC,{session:c,index:f},c.sessionId))})]})}),g.jsxs("div",{style:{marginTop:"16px",display:"flex",gap:"16px"},children:[g.jsxs("div",{className:"card",style:{flex:1,textAlign:"center"},children:[g.jsx("div",{style:{fontSize:"20px",fontWeight:700,fontFamily:"var(--font-heading)",color:"var(--color-text)"},children:a.length}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase"},children:"Total Sessions"})]}),g.jsxs("div",{className:"card",style:{flex:1,textAlign:"center"},children:[g.jsxs("div",{style:{fontSize:"20px",fontWeight:700,fontFamily:"var(--font-heading)",color:"var(--color-accent)"},children:["$",a.reduce((c,f)=>c+(f.costUsd||0),0).toFixed(2)]}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase"},children:"Total Cost"})]}),g.jsxs("div",{className:"card",style:{flex:1,textAlign:"center"},children:[g.jsx("div",{style:{fontSize:"20px",fontWeight:700,fontFamily:"var(--font-heading)",color:"var(--color-success)"},children:a.filter(c=>c.status==="completed").length}),g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase"},children:"Completed"})]})]})]})}const mC="ws://localhost:18789/ws",xg=3;function pC(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function yC(a){return Array.isArray(a)?a.map(i=>{if(!i||typeof i!="object")return null;const s=i;return{path:typeof s.path=="string"?s.path:void 0,message:typeof s.message=="string"?s.message:void 0}}).filter(i=>!!i):[]}function gC(){const[a,i]=E.useState(!1),[s,r]=E.useState(`{
|
|
16
18
|
}
|
|
17
|
-
`),[c,f]=E.useState(null),[d,m]=E.useState(null),[y,p]=E.useState([]),[v,x]=E.useState(""),[b,R]=E.useState("advanced"),[
|
|
19
|
+
`),[c,f]=E.useState(null),[d,m]=E.useState(null),[y,p]=E.useState([]),[v,x]=E.useState(""),[b,R]=E.useState("advanced"),[w,_]=E.useState(!1),[D,B]=E.useState(!1),[G,H]=E.useState(!1),[F,Q]=E.useState(null),[et,J]=E.useState(null),W=E.useRef(null),ot=E.useRef(new Map),yt=E.useRef(null),St=E.useRef(null),gt=E.useMemo(()=>function(Z,it){const lt=W.current;if(!lt||lt.readyState!==WebSocket.OPEN)return Promise.reject(new Error("Gateway websocket is not connected"));const A=pC(),U={type:"req",id:A,method:Z,params:it};return new Promise((k,K)=>{ot.current.set(A,{resolve:k,reject:P=>K(P)});try{lt.send(JSON.stringify(U))}catch(P){ot.current.delete(A),K(P instanceof Error?P:new Error(String(P)))}})},[]),Ht=E.useCallback(async()=>{_(!0);try{const O=await gt("config.get",{});r(typeof O?.raw=="string"?O.raw:`{
|
|
18
20
|
}
|
|
19
|
-
`),f(typeof O?.hash=="string"?O.hash:null),m(typeof O?.valid=="boolean"?O.valid:null),p(
|
|
21
|
+
`),f(typeof O?.hash=="string"?O.hash:null),m(typeof O?.valid=="boolean"?O.valid:null),p(yC(O?.issues)),Q(null)}catch(O){Q(O instanceof Error?O.message:String(O))}finally{_(!1)}},[gt]),qt=E.useCallback(async()=>{try{const O=await gt("config.schema",{});x(JSON.stringify(O??{},null,2))}catch(O){Q(O instanceof Error?O.message:String(O))}},[gt]),xt=E.useCallback(async()=>{await Promise.all([Ht(),qt()])},[Ht,qt]);E.useEffect(()=>{let O=!1;function Z(U){for(const k of ot.current.values())k.reject(new Error(U));ot.current.clear()}async function it(){try{if(await gt("connect",{minProtocol:xg,maxProtocol:xg,client:{id:"anima-settings-ui",version:"1.0.0",platform:"web",mode:"settings"},role:"operator",scopes:["operator.admin"],caps:[]}),O)return;i(!0),Q(null),J("Connected to gateway settings RPC."),xt()}catch(U){O||(i(!1),Q(U instanceof Error?U.message:String(U)))}}function lt(){O||yt.current!==null||(yt.current=window.setTimeout(()=>{yt.current=null,O||A()},1500))}function A(){const U=new WebSocket(mC);W.current=U,i(!1),U.onopen=()=>{St.current&&window.clearTimeout(St.current),St.current=window.setTimeout(()=>{St.current=null,it()},200)},U.onmessage=k=>{let K;try{K=JSON.parse(String(k.data))}catch{return}const P=K;if(P.type==="res"){const nt=ot.current.get(P.id);if(!nt)return;ot.current.delete(P.id),P.ok?nt.resolve(P.payload):nt.reject(new Error(P.error?.message||"Gateway request failed"));return}P.type==="event"&&P.event==="connect.challenge"&&it()},U.onerror=()=>{Q("Websocket error while connecting to ANIMA gateway")},U.onclose=()=>{i(!1),Z("Gateway websocket closed"),lt()}}return A(),()=>{O=!0,St.current&&window.clearTimeout(St.current),yt.current&&window.clearTimeout(yt.current),Z("Settings page shutting down"),W.current?.close(),W.current=null}},[xt,gt]);const L=E.useCallback(async O=>{if(!c){Q("Missing config base hash. Reload settings first.");return}O?H(!0):B(!0),Q(null),J(null);try{await gt(O?"config.apply":"config.set",{raw:s,baseHash:c}),J(O?"Settings saved and apply requested.":"Settings saved."),await Ht()}catch(Z){const it=Z instanceof Error?Z.message:String(Z);Q(it),it.toLowerCase().includes("base hash")&&await Ht()}finally{B(!1),H(!1)}},[c,s,Ht,gt]);return g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Gateway Settings"}),g.jsxs("div",{className:"tabs",style:{marginBottom:"16px"},children:[g.jsx("div",{className:`tab ${b==="advanced"?"active":""}`,onClick:()=>R("advanced"),children:"Advanced"}),g.jsx("div",{className:`tab ${b==="complete"?"active":""}`,onClick:()=>R("complete"),children:"Complete"})]}),g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"card-header",style:{marginBottom:"10px"},children:[g.jsx("span",{className:"card-title",children:"Gateway RPC"}),g.jsx("span",{className:`badge ${a?"completed":"failed"}`,children:a?"connected":"disconnected"})]}),g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)"},children:["Live settings are loaded via gateway RPC methods: ",g.jsx("span",{className:"mono",children:"config.get"}),", ",g.jsx("span",{className:"mono",children:"config.set"}),", ",g.jsx("span",{className:"mono",children:"config.apply"}),","," ",g.jsx("span",{className:"mono",children:"config.schema"}),"."]}),g.jsxs("div",{style:{marginTop:"10px",fontSize:"12px",color:"var(--color-muted)"},children:["Valid: ",d==null?"unknown":d?"yes":"no"," | Hash:"," ",g.jsx("span",{className:"mono",children:c??"<none>"})]})]}),F&&g.jsx("div",{className:"card",style:{borderColor:"var(--color-error)"},children:g.jsx("div",{style:{color:"var(--color-error)",fontSize:"13px"},children:F})}),et&&g.jsx("div",{className:"card",style:{borderColor:"var(--color-success)"},children:g.jsx("div",{style:{color:"var(--color-success)",fontSize:"13px"},children:et})}),g.jsxs("div",{className:"card",children:[g.jsxs("div",{className:"card-header",style:{marginBottom:"10px"},children:[g.jsxs("div",{children:[g.jsx("div",{className:"card-title",children:"Config Editor"}),g.jsx("div",{className:"card-subtitle",children:"Edit full gateway/agent settings JSON5"})]}),g.jsxs("div",{style:{display:"flex",gap:"8px"},children:[g.jsx("button",{type:"button",className:"nav-item",style:{padding:"8px 12px"},onClick:()=>{xt()},disabled:w||D||G,children:w?"Refreshing...":"Reload"}),g.jsx("button",{type:"button",className:"nav-item",style:{padding:"8px 12px",color:"var(--color-accent)"},onClick:()=>{L(!1)},disabled:!a||w||D||G,children:D?"Saving...":"Save"}),g.jsx("button",{type:"button",className:"nav-item",style:{padding:"8px 12px",color:"var(--color-success)"},onClick:()=>{L(!0)},disabled:!a||w||D||G,children:G?"Applying...":"Save + Apply"})]})]}),g.jsx("textarea",{value:s,onChange:O=>r(O.target.value),spellCheck:!1,className:"search-bar mono",style:{minHeight:"380px",resize:"vertical",lineHeight:1.5}}),g.jsxs("div",{style:{marginTop:"10px",fontSize:"12px",color:"var(--color-muted)"},children:["Tip: ",g.jsx("span",{className:"mono",children:"Save + Apply"})," writes settings and schedules gateway restart."]})]}),y.length>0&&g.jsxs("div",{className:"card",children:[g.jsx("div",{className:"card-title",style:{marginBottom:"10px"},children:"Validation Issues"}),g.jsx("div",{style:{display:"grid",gap:"6px"},children:y.map((O,Z)=>g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-warning)"},children:[g.jsx("span",{className:"mono",children:O.path||"<root>"}),":"," ",O.message||"Invalid value"]},`${O.path}-${Z}`))})]}),b==="complete"&&g.jsxs("div",{className:"grid grid-2",children:[g.jsxs("div",{className:"card",style:{marginBottom:0},children:[g.jsx("div",{className:"card-title",style:{marginBottom:"10px"},children:"Schema Snapshot"}),g.jsx("pre",{className:"mono",style:{whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:"420px",overflow:"auto",color:"var(--color-muted)"},children:v||"Schema not loaded yet."})]}),g.jsxs("div",{className:"card",style:{marginBottom:0},children:[g.jsx("div",{className:"card-title",style:{marginBottom:"10px"},children:"CLI Settings Commands"}),g.jsxs("div",{style:{display:"grid",gap:"8px",fontSize:"13px",color:"var(--color-muted)"},children:[g.jsxs("div",{children:[g.jsx("span",{className:"mono",children:"anima settings"})," — advanced complete settings wizard."]}),g.jsxs("div",{children:[g.jsx("span",{className:"mono",children:"anima settings gateway"})," — gateway-only complete flow."]}),g.jsxs("div",{children:[g.jsx("span",{className:"mono",children:"anima settings show --view runtime --status"})," — full active settings snapshot."]}),g.jsxs("div",{children:[g.jsx("span",{className:"mono",children:"anima settings get gateway.port"})," — read by path."]}),g.jsxs("div",{children:[g.jsx("span",{className:"mono",children:"anima settings set gateway.port 18789 --json"})," — write by path."]}),g.jsxs("div",{children:[g.jsx("span",{className:"mono",children:"anima settings unset gateway.trustedProxies"})," — remove by path."]})]})]})]})]})}const vC={SOUL:"@",HEART:"<3",BRAIN:"{}",GUT:"!!",SPIRIT:"**",SHADOW:"~~",MEMORY:"[]"};function SC({name:a,content:i,source:s,description:r,index:c}){const[f,d]=E.useState(!1),m=i.split(`
|
|
20
22
|
`).filter(p=>p.trim()&&!p.startsWith("#")),y=m.slice(0,3).join(`
|
|
21
|
-
`);return g.jsxs(Je.div,{className:"card",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:c*.08},style:{cursor:"pointer"},onClick:()=>d(!f),children:[g.jsxs("div",{className:"card-header",children:[g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[g.jsx("span",{className:"mono",style:{color:"var(--color-accent)",fontSize:"18px",width:"32px",textAlign:"center"},children:
|
|
22
|
-
//# sourceMappingURL=index-
|
|
23
|
+
`);return g.jsxs(Je.div,{className:"card",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:c*.08},style:{cursor:"pointer"},onClick:()=>d(!f),children:[g.jsxs("div",{className:"card-header",children:[g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[g.jsx("span",{className:"mono",style:{color:"var(--color-accent)",fontSize:"18px",width:"32px",textAlign:"center"},children:vC[a]||"?"}),g.jsxs("div",{children:[g.jsx("div",{className:"card-title",children:a}),g.jsx("div",{className:"card-subtitle",children:r})]})]}),g.jsx("span",{className:"badge",style:{background:s==="user"?"rgba(0, 200, 83, 0.15)":"rgba(138, 138, 138, 0.15)",color:s==="user"?"var(--color-success)":"var(--color-muted)"},children:s})]}),g.jsxs("div",{className:"markdown-preview",style:{maxHeight:f?"none":"80px",overflow:"hidden",position:"relative"},children:[g.jsx("pre",{style:{fontFamily:"var(--font-body)",fontSize:"13px",whiteSpace:"pre-wrap",wordBreak:"break-word",color:"var(--color-text)",margin:0},children:f?i:y}),!f&&m.length>3&&g.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, var(--color-surface))"}})]}),!f&&m.length>3&&g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",marginTop:"8px"},children:"Click to expand..."})]})}function xC(){const[a,i]=E.useState(null),[s,r]=E.useState(null);return E.useEffect(()=>{HM().then(i).catch(()=>r("Could not load identity"))},[]),s?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Soul Anatomy"}),g.jsxs("div",{className:"card",style:{color:"var(--color-muted)",padding:"40px",textAlign:"center"},children:[s,". Start the daemon with: ",g.jsx("span",{className:"mono",children:"anima start"})]})]}):a?g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Soul Anatomy"}),g.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"24px"},children:["Loaded at ",new Date(a.loadedAt).toLocaleString()]}),a.components.map((c,f)=>g.jsx(SC,{name:c.name,content:c.content,source:c.source,description:c.description,index:f},c.name))]}):g.jsxs("div",{children:[g.jsx("h1",{className:"page-title",children:"Soul Anatomy"}),g.jsx("div",{className:"card",style:{color:"var(--color-muted)",padding:"40px",textAlign:"center"},children:"Loading identity..."})]})}const bC=[{path:"/dashboard",label:"Home",icon:"~"},{path:"/soul",label:"Soul",icon:"@"},{path:"/memory",label:"Memory",icon:"#"},{path:"/sessions",label:"Sessions",icon:">"},{path:"/mcp",label:"MCP",icon:"&"},{path:"/settings",label:"Settings",icon:"!"},{path:"/journal",label:"Journal",icon:"*"},{path:"/freedom",label:"Freedom",icon:"^"}];function TC(){return g.jsxs("div",{className:"layout",children:[g.jsxs("aside",{className:"sidebar",children:[g.jsxs("div",{className:"sidebar-brand",children:[g.jsx("h1",{children:"ANIMA"}),g.jsx("div",{className:"subtitle",children:"Control Panel"})]}),g.jsx("nav",{className:"sidebar-nav",children:bC.map(a=>g.jsxs(qg,{to:a.path,className:({isActive:i})=>`nav-item ${i?"active":""}`,children:[g.jsx("span",{className:"nav-icon mono",children:a.icon}),a.label]},a.path))}),g.jsx("div",{style:{padding:"16px 24px",borderTop:"1px solid var(--color-border)"},children:g.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)"},children:"NoxSoft DAO LLC"})})]}),g.jsx("main",{className:"main-content",children:g.jsxs(sb,{children:[g.jsx(tn,{path:"/dashboard",element:g.jsx(nC,{})}),g.jsx(tn,{path:"/soul",element:g.jsx(xC,{})}),g.jsx(tn,{path:"/memory",element:g.jsx(cC,{})}),g.jsx(tn,{path:"/sessions",element:g.jsx(hC,{})}),g.jsx(tn,{path:"/mcp",element:g.jsx(uC,{})}),g.jsx(tn,{path:"/settings",element:g.jsx(gC,{})}),g.jsx(tn,{path:"/journal",element:g.jsx(rC,{})}),g.jsx(tn,{path:"/freedom",element:g.jsx(lC,{})}),g.jsx(tn,{path:"/",element:g.jsx(ib,{to:"/dashboard",replace:!0})})]})})]})}o1.createRoot(document.getElementById("root")).render(g.jsx(t1.StrictMode,{children:g.jsx(jb,{children:g.jsx(TC,{})})}));
|
|
24
|
+
//# sourceMappingURL=index-Cof-3KpT.js.map
|