morpheus-cli 0.1.2 → 0.1.4
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/README.md +27 -0
- package/dist/channels/telegram.js +80 -0
- package/dist/cli/commands/init.js +66 -9
- package/dist/cli/commands/start.js +1 -1
- package/dist/config/schemas.js +7 -0
- package/dist/runtime/__tests__/manual_start_verify.js +6 -1
- package/dist/runtime/audio-agent.js +45 -0
- package/dist/runtime/display.js +3 -0
- package/dist/types/config.js +5 -0
- package/dist/ui/assets/{index-ySbKLOXZ.js → index-Az60Fu0M.js} +10 -10
- package/dist/ui/index.html +1 -1
- package/package.json +2 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const c of f.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerPolicy&&(f.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?f.credentials="include":l.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(l){if(l.ep)return;l.ep=!0;const f=r(l);fetch(l.href,f)}})();function hE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gf={exports:{}},So={};var My;function mE(){if(My)return So;My=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(o,l,f){var c=null;if(f!==void 0&&(c=""+f),l.key!==void 0&&(c=""+l.key),"key"in l){f={};for(var h in l)h!=="key"&&(f[h]=l[h])}else f=l;return l=f.ref,{$$typeof:e,type:o,key:c,ref:l!==void 0?l:null,props:f}}return So.Fragment=a,So.jsx=r,So.jsxs=r,So}var Dy;function pE(){return Dy||(Dy=1,gf.exports=mE()),gf.exports}var L=pE(),yf={exports:{}},de={};var Ny;function gE(){if(Ny)return de;Ny=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function x(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,O={};function V(w,Z,K){this.props=w,this.context=Z,this.refs=O,this.updater=K||R}V.prototype.isReactComponent={},V.prototype.setState=function(w,Z){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,Z,"setState")},V.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function C(){}C.prototype=V.prototype;function j(w,Z,K){this.props=w,this.context=Z,this.refs=O,this.updater=K||R}var Q=j.prototype=new C;Q.constructor=j,E(Q,V.prototype),Q.isPureReactComponent=!0;var q=Array.isArray;function I(){}var F={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function W(w,Z,K){var J=K.ref;return{$$typeof:e,type:w,key:Z,ref:J!==void 0?J:null,props:K}}function xe(w,Z){return W(w.type,Z,w.props)}function Ae(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function Ce(w){var Z={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(K){return Z[K]})}var rt=/\/+/g;function je(w,Z){return typeof w=="object"&&w!==null&&w.key!=null?Ce(""+w.key):Z.toString(36)}function ke(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(I,I):(w.status="pending",w.then(function(Z){w.status==="pending"&&(w.status="fulfilled",w.value=Z)},function(Z){w.status==="pending"&&(w.status="rejected",w.reason=Z)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function U(w,Z,K,J,le){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var re=!1;if(w===null)re=!0;else switch(fe){case"bigint":case"string":case"number":re=!0;break;case"object":switch(w.$$typeof){case e:case a:re=!0;break;case y:return re=w._init,U(re(w._payload),Z,K,J,le)}}if(re)return le=le(w),re=J===""?"."+je(w,0):J,q(le)?(K="",re!=null&&(K=re.replace(rt,"$&/")+"/"),U(le,Z,K,"",function(qt){return qt})):le!=null&&(Ae(le)&&(le=xe(le,K+(le.key==null||w&&w.key===le.key?"":(""+le.key).replace(rt,"$&/")+"/")+re)),Z.push(le)),1;re=0;var ot=J===""?".":J+":";if(q(w))for(var Re=0;Re<w.length;Re++)J=w[Re],fe=ot+je(J,Re),re+=U(J,Z,K,fe,le);else if(Re=x(w),typeof Re=="function")for(w=Re.call(w),Re=0;!(J=w.next()).done;)J=J.value,fe=ot+je(J,Re++),re+=U(J,Z,K,fe,le);else if(fe==="object"){if(typeof w.then=="function")return U(ke(w),Z,K,J,le);throw Z=String(w),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return re}function X(w,Z,K){if(w==null)return w;var J=[],le=0;return U(w,J,"","",function(fe){return Z.call(K,fe,le++)}),J}function Y(w){if(w._status===-1){var Z=w._result;Z=Z(),Z.then(function(K){(w._status===0||w._status===-1)&&(w._status=1,w._result=K)},function(K){(w._status===0||w._status===-1)&&(w._status=2,w._result=K)}),w._status===-1&&(w._status=0,w._result=Z)}if(w._status===1)return w._result.default;throw w._result}var ce=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},pe={map:X,forEach:function(w,Z,K){X(w,function(){Z.apply(this,arguments)},K)},count:function(w){var Z=0;return X(w,function(){Z++}),Z},toArray:function(w){return X(w,function(Z){return Z})||[]},only:function(w){if(!Ae(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return de.Activity=v,de.Children=pe,de.Component=V,de.Fragment=r,de.Profiler=l,de.PureComponent=j,de.StrictMode=o,de.Suspense=m,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,de.__COMPILER_RUNTIME={__proto__:null,c:function(w){return F.H.useMemoCache(w)}},de.cache=function(w){return function(){return w.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(w,Z,K){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var J=E({},w.props),le=w.key;if(Z!=null)for(fe in Z.key!==void 0&&(le=""+Z.key),Z)!P.call(Z,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&Z.ref===void 0||(J[fe]=Z[fe]);var fe=arguments.length-2;if(fe===1)J.children=K;else if(1<fe){for(var re=Array(fe),ot=0;ot<fe;ot++)re[ot]=arguments[ot+2];J.children=re}return W(w.type,le,J)},de.createContext=function(w){return w={$$typeof:c,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},de.createElement=function(w,Z,K){var J,le={},fe=null;if(Z!=null)for(J in Z.key!==void 0&&(fe=""+Z.key),Z)P.call(Z,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(le[J]=Z[J]);var re=arguments.length-2;if(re===1)le.children=K;else if(1<re){for(var ot=Array(re),Re=0;Re<re;Re++)ot[Re]=arguments[Re+2];le.children=ot}if(w&&w.defaultProps)for(J in re=w.defaultProps,re)le[J]===void 0&&(le[J]=re[J]);return W(w,fe,le)},de.createRef=function(){return{current:null}},de.forwardRef=function(w){return{$$typeof:h,render:w}},de.isValidElement=Ae,de.lazy=function(w){return{$$typeof:y,_payload:{_status:-1,_result:w},_init:Y}},de.memo=function(w,Z){return{$$typeof:p,type:w,compare:Z===void 0?null:Z}},de.startTransition=function(w){var Z=F.T,K={};F.T=K;try{var J=w(),le=F.S;le!==null&&le(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,ce)}catch(fe){ce(fe)}finally{Z!==null&&K.types!==null&&(Z.types=K.types),F.T=Z}},de.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},de.use=function(w){return F.H.use(w)},de.useActionState=function(w,Z,K){return F.H.useActionState(w,Z,K)},de.useCallback=function(w,Z){return F.H.useCallback(w,Z)},de.useContext=function(w){return F.H.useContext(w)},de.useDebugValue=function(){},de.useDeferredValue=function(w,Z){return F.H.useDeferredValue(w,Z)},de.useEffect=function(w,Z){return F.H.useEffect(w,Z)},de.useEffectEvent=function(w){return F.H.useEffectEvent(w)},de.useId=function(){return F.H.useId()},de.useImperativeHandle=function(w,Z,K){return F.H.useImperativeHandle(w,Z,K)},de.useInsertionEffect=function(w,Z){return F.H.useInsertionEffect(w,Z)},de.useLayoutEffect=function(w,Z){return F.H.useLayoutEffect(w,Z)},de.useMemo=function(w,Z){return F.H.useMemo(w,Z)},de.useOptimistic=function(w,Z){return F.H.useOptimistic(w,Z)},de.useReducer=function(w,Z,K){return F.H.useReducer(w,Z,K)},de.useRef=function(w){return F.H.useRef(w)},de.useState=function(w){return F.H.useState(w)},de.useSyncExternalStore=function(w,Z,K){return F.H.useSyncExternalStore(w,Z,K)},de.useTransition=function(){return F.H.useTransition()},de.version="19.2.4",de}var jy;function Yl(){return jy||(jy=1,yf.exports=gE()),yf.exports}var A=Yl();const Ld=hE(A);var vf={exports:{}},xo={},bf={exports:{}},Sf={};var ky;function yE(){return ky||(ky=1,(function(e){function a(U,X){var Y=U.length;U.push(X);e:for(;0<Y;){var ce=Y-1>>>1,pe=U[ce];if(0<l(pe,X))U[ce]=X,U[Y]=pe,Y=ce;else break e}}function r(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var X=U[0],Y=U.pop();if(Y!==X){U[0]=Y;e:for(var ce=0,pe=U.length,w=pe>>>1;ce<w;){var Z=2*(ce+1)-1,K=U[Z],J=Z+1,le=U[J];if(0>l(K,Y))J<pe&&0>l(le,K)?(U[ce]=le,U[J]=Y,ce=J):(U[ce]=K,U[Z]=Y,ce=Z);else if(J<pe&&0>l(le,Y))U[ce]=le,U[J]=Y,ce=J;else break e}}return X}function l(U,X){var Y=U.sortIndex-X.sortIndex;return Y!==0?Y:U.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var m=[],p=[],y=1,v=null,S=3,x=!1,R=!1,E=!1,O=!1,V=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function Q(U){for(var X=r(p);X!==null;){if(X.callback===null)o(p);else if(X.startTime<=U)o(p),X.sortIndex=X.expirationTime,a(m,X);else break;X=r(p)}}function q(U){if(E=!1,Q(U),!R)if(r(m)!==null)R=!0,I||(I=!0,Ce());else{var X=r(p);X!==null&&ke(q,X.startTime-U)}}var I=!1,F=-1,P=5,W=-1;function xe(){return O?!0:!(e.unstable_now()-W<P)}function Ae(){if(O=!1,I){var U=e.unstable_now();W=U;var X=!0;try{e:{R=!1,E&&(E=!1,C(F),F=-1),x=!0;var Y=S;try{t:{for(Q(U),v=r(m);v!==null&&!(v.expirationTime>U&&xe());){var ce=v.callback;if(typeof ce=="function"){v.callback=null,S=v.priorityLevel;var pe=ce(v.expirationTime<=U);if(U=e.unstable_now(),typeof pe=="function"){v.callback=pe,Q(U),X=!0;break t}v===r(m)&&o(m),Q(U)}else o(m);v=r(m)}if(v!==null)X=!0;else{var w=r(p);w!==null&&ke(q,w.startTime-U),X=!1}}break e}finally{v=null,S=Y,x=!1}X=void 0}}finally{X?Ce():I=!1}}}var Ce;if(typeof j=="function")Ce=function(){j(Ae)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,je=rt.port2;rt.port1.onmessage=Ae,Ce=function(){je.postMessage(null)}}else Ce=function(){V(Ae,0)};function ke(U,X){F=V(function(){U(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(U){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var Y=S;S=X;try{return U()}finally{S=Y}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(U,X){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Y=S;S=U;try{return X()}finally{S=Y}},e.unstable_scheduleCallback=function(U,X,Y){var ce=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ce+Y:ce):Y=ce,U){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=Y+pe,U={id:y++,callback:X,priorityLevel:U,startTime:Y,expirationTime:pe,sortIndex:-1},Y>ce?(U.sortIndex=Y,a(p,U),r(m)===null&&U===r(p)&&(E?(C(F),F=-1):E=!0,ke(q,Y-ce))):(U.sortIndex=pe,a(m,U),R||x||(R=!0,I||(I=!0,Ce()))),U},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(U){var X=S;return function(){var Y=S;S=X;try{return U.apply(this,arguments)}finally{S=Y}}}})(Sf)),Sf}var Vy;function vE(){return Vy||(Vy=1,bf.exports=yE()),bf.exports}var xf={exports:{}},Ct={};var Uy;function bE(){if(Uy)return Ct;Uy=1;var e=Yl();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function f(m,p,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:m,containerInfo:p,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ct.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(m,p,null,y)},Ct.flushSync=function(m){var p=c.T,y=o.p;try{if(c.T=null,o.p=2,m)return m()}finally{c.T=p,o.p=y,o.d.f()}},Ct.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},Ct.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},Ct.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,v=h(y,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:x}):y==="script"&&o.d.X(m,{crossOrigin:v,integrity:S,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ct.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=h(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},Ct.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,v=h(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:v,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})}},Ct.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=h(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},Ct.requestFormReset=function(m){o.d.r(m)},Ct.unstable_batchedUpdates=function(m,p){return m(p)},Ct.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},Ct.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ct.version="19.2.4",Ct}var Ly;function SE(){if(Ly)return xf.exports;Ly=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),xf.exports=bE(),xf.exports}var By;function xE(){if(By)return xo;By=1;var e=vE(),a=Yl(),r=SE();function o(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function c(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function h(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function m(t){if(f(t)!==t)throw Error(o(188))}function p(t){var n=t.alternate;if(!n){if(n=f(t),n===null)throw Error(o(188));return n!==t?null:t}for(var i=t,s=n;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(s=u.return,s!==null){i=s;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return m(u),t;if(d===s)return m(u),n;d=d.sibling}throw Error(o(188))}if(i.return!==s.return)i=u,s=d;else{for(var g=!1,b=u.child;b;){if(b===i){g=!0,i=u,s=d;break}if(b===s){g=!0,s=u,i=d;break}b=b.sibling}if(!g){for(b=d.child;b;){if(b===i){g=!0,i=d,s=u;break}if(b===s){g=!0,s=d,i=u;break}b=b.sibling}if(!g)throw Error(o(189))}}if(i.alternate!==s)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:n}function y(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=y(t),n!==null)return n;t=t.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),j=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Ce(t){return t===null||typeof t!="object"?null:(t=Ae&&t[Ae]||t["@@iterator"],typeof t=="function"?t:null)}var rt=Symbol.for("react.client.reference");function je(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case V:return"Profiler";case O:return"StrictMode";case q:return"Suspense";case I:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case R:return"Portal";case j:return t.displayName||"Context";case C:return(t._context.displayName||"Context")+".Consumer";case Q:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return n=t.displayName||null,n!==null?n:je(t.type)||"Memo";case P:n=t._payload,t=t._init;try{return je(t(n))}catch{}}return null}var ke=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},ce=[],pe=-1;function w(t){return{current:t}}function Z(t){0>pe||(t.current=ce[pe],ce[pe]=null,pe--)}function K(t,n){pe++,ce[pe]=t.current,t.current=n}var J=w(null),le=w(null),fe=w(null),re=w(null);function ot(t,n){switch(K(fe,n),K(le,t),K(J,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?ey(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=ey(n),t=ty(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Z(J),K(J,t)}function Re(){Z(J),Z(le),Z(fe)}function qt(t){t.memoizedState!==null&&K(re,t);var n=J.current,i=ty(n,t.type);n!==i&&(K(le,t),K(J,i))}function _n(t){le.current===t&&(Z(J),Z(le)),re.current===t&&(Z(re),go._currentValue=Y)}var wn,la;function An(t){if(wn===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);wn=n&&n[1]||"",la=-1<i.stack.indexOf(`
|
|
1
|
+
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const c of f.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerPolicy&&(f.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?f.credentials="include":l.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(l){if(l.ep)return;l.ep=!0;const f=r(l);fetch(l.href,f)}})();function hE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gf={exports:{}},So={};var Ny;function mE(){if(Ny)return So;Ny=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(o,l,f){var c=null;if(f!==void 0&&(c=""+f),l.key!==void 0&&(c=""+l.key),"key"in l){f={};for(var h in l)h!=="key"&&(f[h]=l[h])}else f=l;return l=f.ref,{$$typeof:e,type:o,key:c,ref:l!==void 0?l:null,props:f}}return So.Fragment=a,So.jsx=r,So.jsxs=r,So}var jy;function pE(){return jy||(jy=1,gf.exports=mE()),gf.exports}var L=pE(),yf={exports:{}},de={};var ky;function gE(){if(ky)return de;ky=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function x(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,O={};function V(w,Z,K){this.props=w,this.context=Z,this.refs=O,this.updater=K||R}V.prototype.isReactComponent={},V.prototype.setState=function(w,Z){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,Z,"setState")},V.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function C(){}C.prototype=V.prototype;function j(w,Z,K){this.props=w,this.context=Z,this.refs=O,this.updater=K||R}var Q=j.prototype=new C;Q.constructor=j,E(Q,V.prototype),Q.isPureReactComponent=!0;var q=Array.isArray;function I(){}var F={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function W(w,Z,K){var J=K.ref;return{$$typeof:e,type:w,key:Z,ref:J!==void 0?J:null,props:K}}function xe(w,Z){return W(w.type,Z,w.props)}function Ae(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function Ce(w){var Z={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(K){return Z[K]})}var ot=/\/+/g;function je(w,Z){return typeof w=="object"&&w!==null&&w.key!=null?Ce(""+w.key):Z.toString(36)}function ke(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(I,I):(w.status="pending",w.then(function(Z){w.status==="pending"&&(w.status="fulfilled",w.value=Z)},function(Z){w.status==="pending"&&(w.status="rejected",w.reason=Z)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function U(w,Z,K,J,le){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var re=!1;if(w===null)re=!0;else switch(fe){case"bigint":case"string":case"number":re=!0;break;case"object":switch(w.$$typeof){case e:case a:re=!0;break;case y:return re=w._init,U(re(w._payload),Z,K,J,le)}}if(re)return le=le(w),re=J===""?"."+je(w,0):J,q(le)?(K="",re!=null&&(K=re.replace(ot,"$&/")+"/"),U(le,Z,K,"",function(qt){return qt})):le!=null&&(Ae(le)&&(le=xe(le,K+(le.key==null||w&&w.key===le.key?"":(""+le.key).replace(ot,"$&/")+"/")+re)),Z.push(le)),1;re=0;var st=J===""?".":J+":";if(q(w))for(var Re=0;Re<w.length;Re++)J=w[Re],fe=st+je(J,Re),re+=U(J,Z,K,fe,le);else if(Re=x(w),typeof Re=="function")for(w=Re.call(w),Re=0;!(J=w.next()).done;)J=J.value,fe=st+je(J,Re++),re+=U(J,Z,K,fe,le);else if(fe==="object"){if(typeof w.then=="function")return U(ke(w),Z,K,J,le);throw Z=String(w),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return re}function X(w,Z,K){if(w==null)return w;var J=[],le=0;return U(w,J,"","",function(fe){return Z.call(K,fe,le++)}),J}function Y(w){if(w._status===-1){var Z=w._result;Z=Z(),Z.then(function(K){(w._status===0||w._status===-1)&&(w._status=1,w._result=K)},function(K){(w._status===0||w._status===-1)&&(w._status=2,w._result=K)}),w._status===-1&&(w._status=0,w._result=Z)}if(w._status===1)return w._result.default;throw w._result}var ce=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},pe={map:X,forEach:function(w,Z,K){X(w,function(){Z.apply(this,arguments)},K)},count:function(w){var Z=0;return X(w,function(){Z++}),Z},toArray:function(w){return X(w,function(Z){return Z})||[]},only:function(w){if(!Ae(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return de.Activity=v,de.Children=pe,de.Component=V,de.Fragment=r,de.Profiler=l,de.PureComponent=j,de.StrictMode=o,de.Suspense=m,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,de.__COMPILER_RUNTIME={__proto__:null,c:function(w){return F.H.useMemoCache(w)}},de.cache=function(w){return function(){return w.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(w,Z,K){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var J=E({},w.props),le=w.key;if(Z!=null)for(fe in Z.key!==void 0&&(le=""+Z.key),Z)!P.call(Z,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&Z.ref===void 0||(J[fe]=Z[fe]);var fe=arguments.length-2;if(fe===1)J.children=K;else if(1<fe){for(var re=Array(fe),st=0;st<fe;st++)re[st]=arguments[st+2];J.children=re}return W(w.type,le,J)},de.createContext=function(w){return w={$$typeof:c,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},de.createElement=function(w,Z,K){var J,le={},fe=null;if(Z!=null)for(J in Z.key!==void 0&&(fe=""+Z.key),Z)P.call(Z,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(le[J]=Z[J]);var re=arguments.length-2;if(re===1)le.children=K;else if(1<re){for(var st=Array(re),Re=0;Re<re;Re++)st[Re]=arguments[Re+2];le.children=st}if(w&&w.defaultProps)for(J in re=w.defaultProps,re)le[J]===void 0&&(le[J]=re[J]);return W(w,fe,le)},de.createRef=function(){return{current:null}},de.forwardRef=function(w){return{$$typeof:h,render:w}},de.isValidElement=Ae,de.lazy=function(w){return{$$typeof:y,_payload:{_status:-1,_result:w},_init:Y}},de.memo=function(w,Z){return{$$typeof:p,type:w,compare:Z===void 0?null:Z}},de.startTransition=function(w){var Z=F.T,K={};F.T=K;try{var J=w(),le=F.S;le!==null&&le(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,ce)}catch(fe){ce(fe)}finally{Z!==null&&K.types!==null&&(Z.types=K.types),F.T=Z}},de.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},de.use=function(w){return F.H.use(w)},de.useActionState=function(w,Z,K){return F.H.useActionState(w,Z,K)},de.useCallback=function(w,Z){return F.H.useCallback(w,Z)},de.useContext=function(w){return F.H.useContext(w)},de.useDebugValue=function(){},de.useDeferredValue=function(w,Z){return F.H.useDeferredValue(w,Z)},de.useEffect=function(w,Z){return F.H.useEffect(w,Z)},de.useEffectEvent=function(w){return F.H.useEffectEvent(w)},de.useId=function(){return F.H.useId()},de.useImperativeHandle=function(w,Z,K){return F.H.useImperativeHandle(w,Z,K)},de.useInsertionEffect=function(w,Z){return F.H.useInsertionEffect(w,Z)},de.useLayoutEffect=function(w,Z){return F.H.useLayoutEffect(w,Z)},de.useMemo=function(w,Z){return F.H.useMemo(w,Z)},de.useOptimistic=function(w,Z){return F.H.useOptimistic(w,Z)},de.useReducer=function(w,Z,K){return F.H.useReducer(w,Z,K)},de.useRef=function(w){return F.H.useRef(w)},de.useState=function(w){return F.H.useState(w)},de.useSyncExternalStore=function(w,Z,K){return F.H.useSyncExternalStore(w,Z,K)},de.useTransition=function(){return F.H.useTransition()},de.version="19.2.4",de}var Vy;function Yl(){return Vy||(Vy=1,yf.exports=gE()),yf.exports}var A=Yl();const Bd=hE(A);var vf={exports:{}},xo={},bf={exports:{}},Sf={};var Uy;function yE(){return Uy||(Uy=1,(function(e){function a(U,X){var Y=U.length;U.push(X);e:for(;0<Y;){var ce=Y-1>>>1,pe=U[ce];if(0<l(pe,X))U[ce]=X,U[Y]=pe,Y=ce;else break e}}function r(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var X=U[0],Y=U.pop();if(Y!==X){U[0]=Y;e:for(var ce=0,pe=U.length,w=pe>>>1;ce<w;){var Z=2*(ce+1)-1,K=U[Z],J=Z+1,le=U[J];if(0>l(K,Y))J<pe&&0>l(le,K)?(U[ce]=le,U[J]=Y,ce=J):(U[ce]=K,U[Z]=Y,ce=Z);else if(J<pe&&0>l(le,Y))U[ce]=le,U[J]=Y,ce=J;else break e}}return X}function l(U,X){var Y=U.sortIndex-X.sortIndex;return Y!==0?Y:U.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var m=[],p=[],y=1,v=null,S=3,x=!1,R=!1,E=!1,O=!1,V=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function Q(U){for(var X=r(p);X!==null;){if(X.callback===null)o(p);else if(X.startTime<=U)o(p),X.sortIndex=X.expirationTime,a(m,X);else break;X=r(p)}}function q(U){if(E=!1,Q(U),!R)if(r(m)!==null)R=!0,I||(I=!0,Ce());else{var X=r(p);X!==null&&ke(q,X.startTime-U)}}var I=!1,F=-1,P=5,W=-1;function xe(){return O?!0:!(e.unstable_now()-W<P)}function Ae(){if(O=!1,I){var U=e.unstable_now();W=U;var X=!0;try{e:{R=!1,E&&(E=!1,C(F),F=-1),x=!0;var Y=S;try{t:{for(Q(U),v=r(m);v!==null&&!(v.expirationTime>U&&xe());){var ce=v.callback;if(typeof ce=="function"){v.callback=null,S=v.priorityLevel;var pe=ce(v.expirationTime<=U);if(U=e.unstable_now(),typeof pe=="function"){v.callback=pe,Q(U),X=!0;break t}v===r(m)&&o(m),Q(U)}else o(m);v=r(m)}if(v!==null)X=!0;else{var w=r(p);w!==null&&ke(q,w.startTime-U),X=!1}}break e}finally{v=null,S=Y,x=!1}X=void 0}}finally{X?Ce():I=!1}}}var Ce;if(typeof j=="function")Ce=function(){j(Ae)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,je=ot.port2;ot.port1.onmessage=Ae,Ce=function(){je.postMessage(null)}}else Ce=function(){V(Ae,0)};function ke(U,X){F=V(function(){U(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(U){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var Y=S;S=X;try{return U()}finally{S=Y}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(U,X){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Y=S;S=U;try{return X()}finally{S=Y}},e.unstable_scheduleCallback=function(U,X,Y){var ce=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ce+Y:ce):Y=ce,U){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=Y+pe,U={id:y++,callback:X,priorityLevel:U,startTime:Y,expirationTime:pe,sortIndex:-1},Y>ce?(U.sortIndex=Y,a(p,U),r(m)===null&&U===r(p)&&(E?(C(F),F=-1):E=!0,ke(q,Y-ce))):(U.sortIndex=pe,a(m,U),R||x||(R=!0,I||(I=!0,Ce()))),U},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(U){var X=S;return function(){var Y=S;S=X;try{return U.apply(this,arguments)}finally{S=Y}}}})(Sf)),Sf}var Ly;function vE(){return Ly||(Ly=1,bf.exports=yE()),bf.exports}var xf={exports:{}},Ct={};var By;function bE(){if(By)return Ct;By=1;var e=Yl();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function f(m,p,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:m,containerInfo:p,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ct.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(m,p,null,y)},Ct.flushSync=function(m){var p=c.T,y=o.p;try{if(c.T=null,o.p=2,m)return m()}finally{c.T=p,o.p=y,o.d.f()}},Ct.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},Ct.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},Ct.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,v=h(y,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:x}):y==="script"&&o.d.X(m,{crossOrigin:v,integrity:S,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ct.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=h(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},Ct.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,v=h(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:v,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})}},Ct.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=h(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},Ct.requestFormReset=function(m){o.d.r(m)},Ct.unstable_batchedUpdates=function(m,p){return m(p)},Ct.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},Ct.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ct.version="19.2.4",Ct}var Zy;function SE(){if(Zy)return xf.exports;Zy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),xf.exports=bE(),xf.exports}var Hy;function xE(){if(Hy)return xo;Hy=1;var e=vE(),a=Yl(),r=SE();function o(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function c(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function h(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function m(t){if(f(t)!==t)throw Error(o(188))}function p(t){var n=t.alternate;if(!n){if(n=f(t),n===null)throw Error(o(188));return n!==t?null:t}for(var i=t,s=n;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(s=u.return,s!==null){i=s;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return m(u),t;if(d===s)return m(u),n;d=d.sibling}throw Error(o(188))}if(i.return!==s.return)i=u,s=d;else{for(var g=!1,b=u.child;b;){if(b===i){g=!0,i=u,s=d;break}if(b===s){g=!0,s=u,i=d;break}b=b.sibling}if(!g){for(b=d.child;b;){if(b===i){g=!0,i=d,s=u;break}if(b===s){g=!0,s=d,i=u;break}b=b.sibling}if(!g)throw Error(o(189))}}if(i.alternate!==s)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:n}function y(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=y(t),n!==null)return n;t=t.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),j=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Ce(t){return t===null||typeof t!="object"?null:(t=Ae&&t[Ae]||t["@@iterator"],typeof t=="function"?t:null)}var ot=Symbol.for("react.client.reference");function je(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ot?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case V:return"Profiler";case O:return"StrictMode";case q:return"Suspense";case I:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case R:return"Portal";case j:return t.displayName||"Context";case C:return(t._context.displayName||"Context")+".Consumer";case Q:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return n=t.displayName||null,n!==null?n:je(t.type)||"Memo";case P:n=t._payload,t=t._init;try{return je(t(n))}catch{}}return null}var ke=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},ce=[],pe=-1;function w(t){return{current:t}}function Z(t){0>pe||(t.current=ce[pe],ce[pe]=null,pe--)}function K(t,n){pe++,ce[pe]=t.current,t.current=n}var J=w(null),le=w(null),fe=w(null),re=w(null);function st(t,n){switch(K(fe,n),K(le,t),K(J,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?ny(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=ny(n),t=ay(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Z(J),K(J,t)}function Re(){Z(J),Z(le),Z(fe)}function qt(t){t.memoizedState!==null&&K(re,t);var n=J.current,i=ay(n,t.type);n!==i&&(K(le,t),K(J,i))}function _n(t){le.current===t&&(Z(J),Z(le)),re.current===t&&(Z(re),go._currentValue=Y)}var wn,ca;function An(t){if(wn===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);wn=n&&n[1]||"",ca=-1<i.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+wn+t+
|
|
3
|
+
`+wn+t+ca}var Jo=!1;function Oe(t,n){if(!t||Jo)return"";Jo=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(k){var N=k}Reflect.construct(t,[],$)}else{try{$.call()}catch(k){N=k}t.call($.prototype)}}else{try{throw Error()}catch(k){N=k}($=t())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(k){if(k&&N&&typeof k.stack=="string")return[k.stack,N.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),g=d[0],b=d[1];if(g&&b){var T=g.split(`
|
|
4
4
|
`),D=b.split(`
|
|
5
5
|
`);for(u=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;if(s===T.length||u===D.length)for(s=T.length-1,u=D.length-1;1<=s&&0<=u&&T[s]!==D[u];)u--;for(;1<=s&&0<=u;s--,u--)if(T[s]!==D[u]){if(s!==1||u!==1)do if(s--,u--,0>u||T[s]!==D[u]){var B=`
|
|
6
|
-
`+T[s].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=s&&0<=u);break}}}finally{
|
|
6
|
+
`+T[s].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=s&&0<=u);break}}}finally{Jo=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?An(i):""}function qe(t,n){switch(t.tag){case 26:case 27:case 5:return An(t.type);case 16:return An("Lazy");case 13:return t.child!==n&&n!==null?An("Suspense Fallback"):An("Suspense");case 19:return An("SuspenseList");case 0:case 15:return Oe(t.type,!1);case 11:return Oe(t.type.render,!1);case 1:return Oe(t.type,!0);case 31:return An("Activity");default:return""}}function Ke(t){try{var n="",i=null;do n+=qe(t,i),i=t,t=t.return;while(t);return n}catch(s){return`
|
|
7
7
|
Error generating stack: `+s.message+`
|
|
8
|
-
`+s.stack}}var Ze=Object.prototype.hasOwnProperty,Mt=e.unstable_scheduleCallback,zn=e.unstable_cancelCallback,dt=e.unstable_shouldYield,vt=e.unstable_requestPaint,Qe=e.unstable_now,Jo=e.unstable_getCurrentPriorityLevel,_r=e.unstable_ImmediatePriority,wr=e.unstable_UserBlockingPriority,bt=e.unstable_NormalPriority,yn=e.unstable_LowPriority,vi=e.unstable_IdlePriority,nu=e.log,Ar=e.unstable_setDisableYieldValue,zr=null,Yt=null;function ua(t){if(typeof nu=="function"&&Ar(t),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(zr,t)}catch{}}var Pt=Math.clz32?Math.clz32:WS,JS=Math.log,IS=Math.LN2;function WS(t){return t>>>=0,t===0?32:31-(JS(t)/IS|0)|0}var Io=256,Wo=262144,es=4194304;function Ya(t){var n=t&42;if(n!==0)return n;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 ts(t,n,i){var s=t.pendingLanes;if(s===0)return 0;var u=0,d=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var b=s&134217727;return b!==0?(s=b&~d,s!==0?u=Ya(s):(g&=b,g!==0?u=Ya(g):i||(i=b&~t,i!==0&&(u=Ya(i))))):(b=s&~d,b!==0?u=Ya(b):g!==0?u=Ya(g):i||(i=s&~t,i!==0&&(u=Ya(i)))),u===0?0:n!==0&&n!==u&&(n&d)===0&&(d=u&-u,i=n&-n,d>=i||d===32&&(i&4194048)!==0)?n:u}function Cr(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function ex(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 kh(){var t=es;return es<<=1,(es&62914560)===0&&(es=4194304),t}function au(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Rr(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function tx(t,n,i,s,u,d){var g=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,D=t.hiddenUpdates;for(i=g&~i;0<i;){var B=31-Pt(i),$=1<<B;b[B]=0,T[B]=-1;var N=D[B];if(N!==null)for(D[B]=null,B=0;B<N.length;B++){var k=N[B];k!==null&&(k.lane&=-536870913)}i&=~$}s!==0&&Vh(t,s,0),d!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=d&~(g&~n))}function Vh(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-Pt(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|i&261930}function Uh(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var s=31-Pt(i),u=1<<s;u&n|t[s]&n&&(t[s]|=n),i&=~u}}function Lh(t,n){var i=n&-n;return i=(i&42)!==0?1:iu(i),(i&(t.suspendedLanes|n))!==0?0:i}function iu(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 ru(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Bh(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:_y(t.type))}function Zh(t,n){var i=X.p;try{return X.p=t,n()}finally{X.p=i}}var ca=Math.random().toString(36).slice(2),St="__reactFiber$"+ca,Vt="__reactProps$"+ca,bi="__reactContainer$"+ca,ou="__reactEvents$"+ca,nx="__reactListeners$"+ca,ax="__reactHandles$"+ca,Hh="__reactResources$"+ca,Or="__reactMarker$"+ca;function su(t){delete t[St],delete t[Vt],delete t[ou],delete t[nx],delete t[ax]}function Si(t){var n=t[St];if(n)return n;for(var i=t.parentNode;i;){if(n=i[bi]||i[St]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=ly(t);t!==null;){if(i=t[St])return i;t=ly(t)}return n}t=i,i=t.parentNode}return null}function xi(t){if(t=t[St]||t[bi]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Mr(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(o(33))}function Ti(t){var n=t[Hh];return n||(n=t[Hh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(t){t[Or]=!0}var $h=new Set,Gh={};function Pa(t,n){Ei(t,n),Ei(t+"Capture",n)}function Ei(t,n){for(Gh[t]=n,t=0;t<n.length;t++)$h.add(n[t])}var ix=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]*$"),qh={},Yh={};function rx(t){return Ze.call(Yh,t)?!0:Ze.call(qh,t)?!1:ix.test(t)?Yh[t]=!0:(qh[t]=!0,!1)}function ns(t,n,i){if(rx(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function as(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function Vn(t,n,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+s)}}function tn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ph(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ox(t,n,i){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,d=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return u.call(this)},set:function(g){i=""+g,d.call(this,g)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function lu(t){if(!t._valueTracker){var n=Ph(t)?"checked":"value";t._valueTracker=ox(t,n,""+t[n])}}function Xh(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return t&&(s=Ph(t)?t.checked?"true":"false":t.value),t=s,t!==i?(n.setValue(t),!0):!1}function is(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 sx=/[\n"\\]/g;function nn(t){return t.replace(sx,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function uu(t,n,i,s,u,d,g,b){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),n!=null?g==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+tn(n)):t.value!==""+tn(n)&&(t.value=""+tn(n)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),n!=null?cu(t,g,tn(n)):i!=null?cu(t,g,tn(i)):s!=null&&t.removeAttribute("value"),u==null&&d!=null&&(t.defaultChecked=!!d),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+tn(b):t.removeAttribute("name")}function Kh(t,n,i,s,u,d,g,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.type=d),n!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){lu(t);return}i=i!=null?""+tn(i):"",n=n!=null?""+tn(n):i,b||n===t.value||(t.value=n),t.defaultValue=n}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=b?t.checked:!!s,t.defaultChecked=!!s,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),lu(t)}function cu(t,n,i){n==="number"&&is(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function _i(t,n,i,s){if(t=t.options,n){n={};for(var u=0;u<i.length;u++)n["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=n.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&s&&(t[i].defaultSelected=!0)}else{for(i=""+tn(i),n=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,s&&(t[u].defaultSelected=!0);return}n!==null||t[u].disabled||(n=t[u])}n!==null&&(n.selected=!0)}}function Qh(t,n,i){if(n!=null&&(n=""+tn(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+tn(i):""}function Fh(t,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(o(92));if(ke(s)){if(1<s.length)throw Error(o(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=tn(n),t.defaultValue=i,s=t.textContent,s===i&&s!==""&&s!==null&&(t.value=s),lu(t)}function wi(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var lx=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 Jh(t,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,i):typeof i!="number"||i===0||lx.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function Ih(t,n,i){if(n!=null&&typeof n!="object")throw Error(o(62));if(t=t.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var u in n)s=n[u],n.hasOwnProperty(u)&&i[u]!==s&&Jh(t,u,s)}else for(var d in n)n.hasOwnProperty(d)&&Jh(t,d,n[d])}function fu(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 ux=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"]]),cx=/^[\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 rs(t){return cx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Un(){}var du=null;function hu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ai=null,zi=null;function Wh(t){var n=xi(t);if(n&&(t=n.stateNode)){var i=t[Vt]||null;e:switch(t=n.stateNode,n.type){case"input":if(uu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+nn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==t&&s.form===t.form){var u=s[Vt]||null;if(!u)throw Error(o(90));uu(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===t.form&&Xh(s)}break e;case"textarea":Qh(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&_i(t,!!i.multiple,n,!1)}}}var mu=!1;function em(t,n,i){if(mu)return t(n,i);mu=!0;try{var s=t(n);return s}finally{if(mu=!1,(Ai!==null||zi!==null)&&(Ps(),Ai&&(n=Ai,t=zi,zi=Ai=null,Wh(n),t)))for(n=0;n<t.length;n++)Wh(t[n])}}function Dr(t,n){var i=t.stateNode;if(i===null)return null;var s=i[Vt]||null;if(s===null)return null;i=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,n,typeof i));return i}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pu=!1;if(Ln)try{var Nr={};Object.defineProperty(Nr,"passive",{get:function(){pu=!0}}),window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{pu=!1}var fa=null,gu=null,os=null;function tm(){if(os)return os;var t,n=gu,i=n.length,s,u="value"in fa?fa.value:fa.textContent,d=u.length;for(t=0;t<i&&n[t]===u[t];t++);var g=i-t;for(s=1;s<=g&&n[i-s]===u[d-s];s++);return os=u.slice(t,1<s?1-s:void 0)}function ss(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function ls(){return!0}function nm(){return!1}function Ut(t){function n(i,s,u,d,g){this._reactName=i,this._targetInst=u,this.type=s,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(i=t[b],this[b]=i?i(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ls:nm,this.isPropagationStopped=nm,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),n}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},us=Ut(Xa),jr=v({},Xa,{view:0,detail:0}),fx=Ut(jr),yu,vu,kr,cs=v({},jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Su,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!==kr&&(kr&&t.type==="mousemove"?(yu=t.screenX-kr.screenX,vu=t.screenY-kr.screenY):vu=yu=0,kr=t),yu)},movementY:function(t){return"movementY"in t?t.movementY:vu}}),am=Ut(cs),dx=v({},cs,{dataTransfer:0}),hx=Ut(dx),mx=v({},jr,{relatedTarget:0}),bu=Ut(mx),px=v({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),gx=Ut(px),yx=v({},Xa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vx=Ut(yx),bx=v({},Xa,{data:0}),im=Ut(bx),Sx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xx={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"},Tx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ex(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Tx[t])?!!n[t]:!1}function Su(){return Ex}var _x=v({},jr,{key:function(t){if(t.key){var n=Sx[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=ss(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?xx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Su,charCode:function(t){return t.type==="keypress"?ss(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ss(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),wx=Ut(_x),Ax=v({},cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rm=Ut(Ax),zx=v({},jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Su}),Cx=Ut(zx),Rx=v({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ox=Ut(Rx),Mx=v({},cs,{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}),Dx=Ut(Mx),Nx=v({},Xa,{newState:0,oldState:0}),jx=Ut(Nx),kx=[9,13,27,32],xu=Ln&&"CompositionEvent"in window,Vr=null;Ln&&"documentMode"in document&&(Vr=document.documentMode);var Vx=Ln&&"TextEvent"in window&&!Vr,om=Ln&&(!xu||Vr&&8<Vr&&11>=Vr),sm=" ",lm=!1;function um(t,n){switch(t){case"keyup":return kx.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function Ux(t,n){switch(t){case"compositionend":return cm(n);case"keypress":return n.which!==32?null:(lm=!0,sm);case"textInput":return t=n.data,t===sm&&lm?null:t;default:return null}}function Lx(t,n){if(Ci)return t==="compositionend"||!xu&&um(t,n)?(t=tm(),os=gu=fa=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return om&&n.locale!=="ko"?null:n.data;default:return null}}var Bx={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 fm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!Bx[t.type]:n==="textarea"}function dm(t,n,i,s){Ai?zi?zi.push(s):zi=[s]:Ai=s,n=Ws(n,"onChange"),0<n.length&&(i=new us("onChange","change",null,i,s),t.push({event:i,listeners:n}))}var Ur=null,Lr=null;function Zx(t){Kg(t,0)}function fs(t){var n=Mr(t);if(Xh(n))return t}function hm(t,n){if(t==="change")return n}var mm=!1;if(Ln){var Tu;if(Ln){var Eu="oninput"in document;if(!Eu){var pm=document.createElement("div");pm.setAttribute("oninput","return;"),Eu=typeof pm.oninput=="function"}Tu=Eu}else Tu=!1;mm=Tu&&(!document.documentMode||9<document.documentMode)}function gm(){Ur&&(Ur.detachEvent("onpropertychange",ym),Lr=Ur=null)}function ym(t){if(t.propertyName==="value"&&fs(Lr)){var n=[];dm(n,Lr,t,hu(t)),em(Zx,n)}}function Hx(t,n,i){t==="focusin"?(gm(),Ur=n,Lr=i,Ur.attachEvent("onpropertychange",ym)):t==="focusout"&&gm()}function $x(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return fs(Lr)}function Gx(t,n){if(t==="click")return fs(n)}function qx(t,n){if(t==="input"||t==="change")return fs(n)}function Yx(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Xt=typeof Object.is=="function"?Object.is:Yx;function Br(t,n){if(Xt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var u=i[s];if(!Ze.call(n,u)||!Xt(t[u],n[u]))return!1}return!0}function vm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function bm(t,n){var i=vm(t);t=0;for(var s;i;){if(i.nodeType===3){if(s=t+i.textContent.length,t<=n&&s>=n)return{node:i,offset:n-t};t=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=vm(i)}}function Sm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Sm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function xm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=is(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=is(t.document)}return n}function _u(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var Px=Ln&&"documentMode"in document&&11>=document.documentMode,Ri=null,wu=null,Zr=null,Au=!1;function Tm(t,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Au||Ri==null||Ri!==is(s)||(s=Ri,"selectionStart"in s&&_u(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Zr&&Br(Zr,s)||(Zr=s,s=Ws(wu,"onSelect"),0<s.length&&(n=new us("onSelect","select",null,n,i),t.push({event:n,listeners:s}),n.target=Ri)))}function Ka(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Oi={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionrun:Ka("Transition","TransitionRun"),transitionstart:Ka("Transition","TransitionStart"),transitioncancel:Ka("Transition","TransitionCancel"),transitionend:Ka("Transition","TransitionEnd")},zu={},Em={};Ln&&(Em=document.createElement("div").style,"AnimationEvent"in window||(delete Oi.animationend.animation,delete Oi.animationiteration.animation,delete Oi.animationstart.animation),"TransitionEvent"in window||delete Oi.transitionend.transition);function Qa(t){if(zu[t])return zu[t];if(!Oi[t])return t;var n=Oi[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in Em)return zu[t]=n[i];return t}var _m=Qa("animationend"),wm=Qa("animationiteration"),Am=Qa("animationstart"),Xx=Qa("transitionrun"),Kx=Qa("transitionstart"),Qx=Qa("transitioncancel"),zm=Qa("transitionend"),Cm=new Map,Cu="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(" ");Cu.push("scrollEnd");function vn(t,n){Cm.set(t,n),Pa(n,[t])}var ds=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},an=[],Mi=0,Ru=0;function hs(){for(var t=Mi,n=Ru=Mi=0;n<t;){var i=an[n];an[n++]=null;var s=an[n];an[n++]=null;var u=an[n];an[n++]=null;var d=an[n];if(an[n++]=null,s!==null&&u!==null){var g=s.pending;g===null?u.next=u:(u.next=g.next,g.next=u),s.pending=u}d!==0&&Rm(i,u,d)}}function ms(t,n,i,s){an[Mi++]=t,an[Mi++]=n,an[Mi++]=i,an[Mi++]=s,Ru|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Ou(t,n,i,s){return ms(t,n,i,s),ps(t)}function Fa(t,n){return ms(t,null,null,n),ps(t)}function Rm(t,n,i){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i);for(var u=!1,d=t.return;d!==null;)d.childLanes|=i,s=d.alternate,s!==null&&(s.childLanes|=i),d.tag===22&&(t=d.stateNode,t===null||t._visibility&1||(u=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,u&&n!==null&&(u=31-Pt(i),t=d.hiddenUpdates,s=t[u],s===null?t[u]=[n]:s.push(n),n.lane=i|536870912),d):null}function ps(t){if(50<lo)throw lo=0,Bc=null,Error(o(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Di={};function Fx(t,n,i,s){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(t,n,i,s){return new Fx(t,n,i,s)}function Mu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Bn(t,n){var i=t.alternate;return i===null?(i=Kt(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Om(t,n){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function gs(t,n,i,s,u,d){var g=0;if(s=t,typeof t=="function")Mu(t)&&(g=1);else if(typeof t=="string")g=tE(t,i,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case W:return t=Kt(31,i,n,u),t.elementType=W,t.lanes=d,t;case E:return Ja(i.children,u,d,n);case O:g=8,u|=24;break;case V:return t=Kt(12,i,n,u|2),t.elementType=V,t.lanes=d,t;case q:return t=Kt(13,i,n,u),t.elementType=q,t.lanes=d,t;case I:return t=Kt(19,i,n,u),t.elementType=I,t.lanes=d,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:g=10;break e;case C:g=9;break e;case Q:g=11;break e;case F:g=14;break e;case P:g=16,s=null;break e}g=29,i=Error(o(130,t===null?"null":typeof t,"")),s=null}return n=Kt(g,i,n,u),n.elementType=t,n.type=s,n.lanes=d,n}function Ja(t,n,i,s){return t=Kt(7,t,s,n),t.lanes=i,t}function Du(t,n,i){return t=Kt(6,t,null,n),t.lanes=i,t}function Mm(t){var n=Kt(18,null,null,0);return n.stateNode=t,n}function Nu(t,n,i){return n=Kt(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Dm=new WeakMap;function rn(t,n){if(typeof t=="object"&&t!==null){var i=Dm.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Ke(n)},Dm.set(t,n),n)}return{value:t,source:n,stack:Ke(n)}}var Ni=[],ji=0,ys=null,Hr=0,on=[],sn=0,da=null,Cn=1,Rn="";function Zn(t,n){Ni[ji++]=Hr,Ni[ji++]=ys,ys=t,Hr=n}function Nm(t,n,i){on[sn++]=Cn,on[sn++]=Rn,on[sn++]=da,da=t;var s=Cn;t=Rn;var u=32-Pt(s)-1;s&=~(1<<u),i+=1;var d=32-Pt(n)+u;if(30<d){var g=u-u%5;d=(s&(1<<g)-1).toString(32),s>>=g,u-=g,Cn=1<<32-Pt(n)+u|i<<u|s,Rn=d+t}else Cn=1<<d|i<<u|s,Rn=t}function ju(t){t.return!==null&&(Zn(t,1),Nm(t,1,0))}function ku(t){for(;t===ys;)ys=Ni[--ji],Ni[ji]=null,Hr=Ni[--ji],Ni[ji]=null;for(;t===da;)da=on[--sn],on[sn]=null,Rn=on[--sn],on[sn]=null,Cn=on[--sn],on[sn]=null}function jm(t,n){on[sn++]=Cn,on[sn++]=Rn,on[sn++]=da,Cn=n.id,Rn=n.overflow,da=t}var xt=null,He=null,Te=!1,ha=null,ln=!1,Vu=Error(o(519));function ma(t){var n=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $r(rn(n,t)),Vu}function km(t){var n=t.stateNode,i=t.type,s=t.memoizedProps;switch(n[St]=t,n[Vt]=s,i){case"dialog":ve("cancel",n),ve("close",n);break;case"iframe":case"object":case"embed":ve("load",n);break;case"video":case"audio":for(i=0;i<co.length;i++)ve(co[i],n);break;case"source":ve("error",n);break;case"img":case"image":case"link":ve("error",n),ve("load",n);break;case"details":ve("toggle",n);break;case"input":ve("invalid",n),Kh(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ve("invalid",n);break;case"textarea":ve("invalid",n),Fh(n,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||Ig(n.textContent,i)?(s.popover!=null&&(ve("beforetoggle",n),ve("toggle",n)),s.onScroll!=null&&ve("scroll",n),s.onScrollEnd!=null&&ve("scrollend",n),s.onClick!=null&&(n.onclick=Un),n=!0):n=!1,n||ma(t,!0)}function Vm(t){for(xt=t.return;xt;)switch(xt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:xt=xt.return}}function ki(t){if(t!==xt)return!1;if(!Te)return Vm(t),Te=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ef(t.type,t.memoizedProps)),i=!i),i&&He&&ma(t),Vm(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));He=sy(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));He=sy(t)}else n===27?(n=He,Ca(t.type)?(t=of,of=null,He=t):He=n):He=xt?cn(t.stateNode.nextSibling):null;return!0}function Ia(){He=xt=null,Te=!1}function Uu(){var t=ha;return t!==null&&(Ht===null?Ht=t:Ht.push.apply(Ht,t),ha=null),t}function $r(t){ha===null?ha=[t]:ha.push(t)}var Lu=w(null),Wa=null,Hn=null;function pa(t,n,i){K(Lu,n._currentValue),n._currentValue=i}function $n(t){t._currentValue=Lu.current,Z(Lu)}function Bu(t,n,i){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===i)break;t=t.return}}function Zu(t,n,i,s){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var d=u.dependencies;if(d!==null){var g=u.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=u;for(var T=0;T<n.length;T++)if(b.context===n[T]){d.lanes|=i,b=d.alternate,b!==null&&(b.lanes|=i),Bu(d.return,i,t),s||(g=null);break e}d=b.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(o(341));g.lanes|=i,d=g.alternate,d!==null&&(d.lanes|=i),Bu(g,i,t),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===t){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function Vi(t,n,i,s){t=null;for(var u=n,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var b=u.type;Xt(u.pendingProps.value,g.value)||(t!==null?t.push(b):t=[b])}}else if(u===re.current){if(g=u.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(go):t=[go])}u=u.return}t!==null&&Zu(n,t,i,s),n.flags|=262144}function vs(t){for(t=t.firstContext;t!==null;){if(!Xt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ei(t){Wa=t,Hn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Tt(t){return Um(Wa,t)}function bs(t,n){return Wa===null&&ei(t),Um(t,n)}function Um(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Hn===null){if(t===null)throw Error(o(308));Hn=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Hn=Hn.next=n;return i}var Jx=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},Ix=e.unstable_scheduleCallback,Wx=e.unstable_NormalPriority,st={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hu(){return{controller:new Jx,data:new Map,refCount:0}}function Gr(t){t.refCount--,t.refCount===0&&Ix(Wx,function(){t.controller.abort()})}var qr=null,$u=0,Ui=0,Li=null;function eT(t,n){if(qr===null){var i=qr=[];$u=0,Ui=Yc(),Li={status:"pending",value:void 0,then:function(s){i.push(s)}}}return $u++,n.then(Lm,Lm),n}function Lm(){if(--$u===0&&qr!==null){Li!==null&&(Li.status="fulfilled");var t=qr;qr=null,Ui=0,Li=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function tT(t,n){var i=[],s={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var u=0;u<i.length;u++)(0,i[u])(n)},function(u){for(s.status="rejected",s.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),s}var Bm=U.S;U.S=function(t,n){Tg=Qe(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&eT(t,n),Bm!==null&&Bm(t,n)};var ti=w(null);function Gu(){var t=ti.current;return t!==null?t:Be.pooledCache}function Ss(t,n){n===null?K(ti,ti.current):K(ti,n.pool)}function Zm(){var t=Gu();return t===null?null:{parent:st._currentValue,pool:t}}var Bi=Error(o(460)),qu=Error(o(474)),xs=Error(o(542)),Ts={then:function(){}};function Hm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function $m(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Un,Un),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,qm(t),t;default:if(typeof n.status=="string")n.then(Un,Un);else{if(t=Be,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=n,t.status="pending",t.then(function(s){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=s}},function(s){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,qm(t),t}throw ai=n,Bi}}function ni(t){try{var n=t._init;return n(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ai=i,Bi):i}}var ai=null;function Gm(){if(ai===null)throw Error(o(459));var t=ai;return ai=null,t}function qm(t){if(t===Bi||t===xs)throw Error(o(483))}var Zi=null,Yr=0;function Es(t){var n=Yr;return Yr+=1,Zi===null&&(Zi=[]),$m(Zi,t,n)}function Pr(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function _s(t,n){throw n.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(n),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Ym(t){function n(z,_){if(t){var M=z.deletions;M===null?(z.deletions=[_],z.flags|=16):M.push(_)}}function i(z,_){if(!t)return null;for(;_!==null;)n(z,_),_=_.sibling;return null}function s(z){for(var _=new Map;z!==null;)z.key!==null?_.set(z.key,z):_.set(z.index,z),z=z.sibling;return _}function u(z,_){return z=Bn(z,_),z.index=0,z.sibling=null,z}function d(z,_,M){return z.index=M,t?(M=z.alternate,M!==null?(M=M.index,M<_?(z.flags|=67108866,_):M):(z.flags|=67108866,_)):(z.flags|=1048576,_)}function g(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function b(z,_,M,H){return _===null||_.tag!==6?(_=Du(M,z.mode,H),_.return=z,_):(_=u(_,M),_.return=z,_)}function T(z,_,M,H){var oe=M.type;return oe===E?B(z,_,M.props.children,H,M.key):_!==null&&(_.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&ni(oe)===_.type)?(_=u(_,M.props),Pr(_,M),_.return=z,_):(_=gs(M.type,M.key,M.props,null,z.mode,H),Pr(_,M),_.return=z,_)}function D(z,_,M,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==M.containerInfo||_.stateNode.implementation!==M.implementation?(_=Nu(M,z.mode,H),_.return=z,_):(_=u(_,M.children||[]),_.return=z,_)}function B(z,_,M,H,oe){return _===null||_.tag!==7?(_=Ja(M,z.mode,H,oe),_.return=z,_):(_=u(_,M),_.return=z,_)}function $(z,_,M){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Du(""+_,z.mode,M),_.return=z,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case x:return M=gs(_.type,_.key,_.props,null,z.mode,M),Pr(M,_),M.return=z,M;case R:return _=Nu(_,z.mode,M),_.return=z,_;case P:return _=ni(_),$(z,_,M)}if(ke(_)||Ce(_))return _=Ja(_,z.mode,M,null),_.return=z,_;if(typeof _.then=="function")return $(z,Es(_),M);if(_.$$typeof===j)return $(z,bs(z,_),M);_s(z,_)}return null}function N(z,_,M,H){var oe=_!==null?_.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return oe!==null?null:b(z,_,""+M,H);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return M.key===oe?T(z,_,M,H):null;case R:return M.key===oe?D(z,_,M,H):null;case P:return M=ni(M),N(z,_,M,H)}if(ke(M)||Ce(M))return oe!==null?null:B(z,_,M,H,null);if(typeof M.then=="function")return N(z,_,Es(M),H);if(M.$$typeof===j)return N(z,_,bs(z,M),H);_s(z,M)}return null}function k(z,_,M,H,oe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return z=z.get(M)||null,b(_,z,""+H,oe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return z=z.get(H.key===null?M:H.key)||null,T(_,z,H,oe);case R:return z=z.get(H.key===null?M:H.key)||null,D(_,z,H,oe);case P:return H=ni(H),k(z,_,M,H,oe)}if(ke(H)||Ce(H))return z=z.get(M)||null,B(_,z,H,oe,null);if(typeof H.then=="function")return k(z,_,M,Es(H),oe);if(H.$$typeof===j)return k(z,_,M,bs(_,H),oe);_s(_,H)}return null}function ee(z,_,M,H){for(var oe=null,_e=null,ie=_,me=_=0,Se=null;ie!==null&&me<M.length;me++){ie.index>me?(Se=ie,ie=null):Se=ie.sibling;var we=N(z,ie,M[me],H);if(we===null){ie===null&&(ie=Se);break}t&&ie&&we.alternate===null&&n(z,ie),_=d(we,_,me),_e===null?oe=we:_e.sibling=we,_e=we,ie=Se}if(me===M.length)return i(z,ie),Te&&Zn(z,me),oe;if(ie===null){for(;me<M.length;me++)ie=$(z,M[me],H),ie!==null&&(_=d(ie,_,me),_e===null?oe=ie:_e.sibling=ie,_e=ie);return Te&&Zn(z,me),oe}for(ie=s(ie);me<M.length;me++)Se=k(ie,z,me,M[me],H),Se!==null&&(t&&Se.alternate!==null&&ie.delete(Se.key===null?me:Se.key),_=d(Se,_,me),_e===null?oe=Se:_e.sibling=Se,_e=Se);return t&&ie.forEach(function(Na){return n(z,Na)}),Te&&Zn(z,me),oe}function ue(z,_,M,H){if(M==null)throw Error(o(151));for(var oe=null,_e=null,ie=_,me=_=0,Se=null,we=M.next();ie!==null&&!we.done;me++,we=M.next()){ie.index>me?(Se=ie,ie=null):Se=ie.sibling;var Na=N(z,ie,we.value,H);if(Na===null){ie===null&&(ie=Se);break}t&&ie&&Na.alternate===null&&n(z,ie),_=d(Na,_,me),_e===null?oe=Na:_e.sibling=Na,_e=Na,ie=Se}if(we.done)return i(z,ie),Te&&Zn(z,me),oe;if(ie===null){for(;!we.done;me++,we=M.next())we=$(z,we.value,H),we!==null&&(_=d(we,_,me),_e===null?oe=we:_e.sibling=we,_e=we);return Te&&Zn(z,me),oe}for(ie=s(ie);!we.done;me++,we=M.next())we=k(ie,z,me,we.value,H),we!==null&&(t&&we.alternate!==null&&ie.delete(we.key===null?me:we.key),_=d(we,_,me),_e===null?oe=we:_e.sibling=we,_e=we);return t&&ie.forEach(function(dE){return n(z,dE)}),Te&&Zn(z,me),oe}function Le(z,_,M,H){if(typeof M=="object"&&M!==null&&M.type===E&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case x:e:{for(var oe=M.key;_!==null;){if(_.key===oe){if(oe=M.type,oe===E){if(_.tag===7){i(z,_.sibling),H=u(_,M.props.children),H.return=z,z=H;break e}}else if(_.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&ni(oe)===_.type){i(z,_.sibling),H=u(_,M.props),Pr(H,M),H.return=z,z=H;break e}i(z,_);break}else n(z,_);_=_.sibling}M.type===E?(H=Ja(M.props.children,z.mode,H,M.key),H.return=z,z=H):(H=gs(M.type,M.key,M.props,null,z.mode,H),Pr(H,M),H.return=z,z=H)}return g(z);case R:e:{for(oe=M.key;_!==null;){if(_.key===oe)if(_.tag===4&&_.stateNode.containerInfo===M.containerInfo&&_.stateNode.implementation===M.implementation){i(z,_.sibling),H=u(_,M.children||[]),H.return=z,z=H;break e}else{i(z,_);break}else n(z,_);_=_.sibling}H=Nu(M,z.mode,H),H.return=z,z=H}return g(z);case P:return M=ni(M),Le(z,_,M,H)}if(ke(M))return ee(z,_,M,H);if(Ce(M)){if(oe=Ce(M),typeof oe!="function")throw Error(o(150));return M=oe.call(M),ue(z,_,M,H)}if(typeof M.then=="function")return Le(z,_,Es(M),H);if(M.$$typeof===j)return Le(z,_,bs(z,M),H);_s(z,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,_!==null&&_.tag===6?(i(z,_.sibling),H=u(_,M),H.return=z,z=H):(i(z,_),H=Du(M,z.mode,H),H.return=z,z=H),g(z)):i(z,_)}return function(z,_,M,H){try{Yr=0;var oe=Le(z,_,M,H);return Zi=null,oe}catch(ie){if(ie===Bi||ie===xs)throw ie;var _e=Kt(29,ie,null,z.mode);return _e.lanes=H,_e.return=z,_e}}}var ii=Ym(!0),Pm=Ym(!1),ga=!1;function Yu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pu(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ya(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function va(t,n,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(ze&2)!==0){var u=s.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),s.pending=n,n=ps(t),Rm(t,null,i),n}return ms(t,s,n,i),ps(t)}function Xr(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,i|=s,n.lanes=i,Uh(t,i)}}function Xu(t,n){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?u=d=n:d=d.next=n}else u=d=n;i={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var Ku=!1;function Kr(){if(Ku){var t=Li;if(t!==null)throw t}}function Qr(t,n,i,s){Ku=!1;var u=t.updateQueue;ga=!1;var d=u.firstBaseUpdate,g=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var T=b,D=T.next;T.next=null,g===null?d=D:g.next=D,g=T;var B=t.alternate;B!==null&&(B=B.updateQueue,b=B.lastBaseUpdate,b!==g&&(b===null?B.firstBaseUpdate=D:b.next=D,B.lastBaseUpdate=T))}if(d!==null){var $=u.baseState;g=0,B=D=T=null,b=d;do{var N=b.lane&-536870913,k=N!==b.lane;if(k?(be&N)===N:(s&N)===N){N!==0&&N===Ui&&(Ku=!0),B!==null&&(B=B.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ee=t,ue=b;N=n;var Le=i;switch(ue.tag){case 1:if(ee=ue.payload,typeof ee=="function"){$=ee.call(Le,$,N);break e}$=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ue.payload,N=typeof ee=="function"?ee.call(Le,$,N):ee,N==null)break e;$=v({},$,N);break e;case 2:ga=!0}}N=b.callback,N!==null&&(t.flags|=64,k&&(t.flags|=8192),k=u.callbacks,k===null?u.callbacks=[N]:k.push(N))}else k={lane:N,tag:b.tag,payload:b.payload,callback:b.callback,next:null},B===null?(D=B=k,T=$):B=B.next=k,g|=N;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;k=b,b=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);B===null&&(T=$),u.baseState=T,u.firstBaseUpdate=D,u.lastBaseUpdate=B,d===null&&(u.shared.lanes=0),Ea|=g,t.lanes=g,t.memoizedState=$}}function Xm(t,n){if(typeof t!="function")throw Error(o(191,t));t.call(n)}function Km(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Xm(i[t],n)}var Hi=w(null),ws=w(0);function Qm(t,n){t=Jn,K(ws,t),K(Hi,n),Jn=t|n.baseLanes}function Qu(){K(ws,Jn),K(Hi,Hi.current)}function Fu(){Jn=ws.current,Z(Hi),Z(ws)}var Qt=w(null),un=null;function ba(t){var n=t.alternate;K(tt,tt.current&1),K(Qt,t),un===null&&(n===null||Hi.current!==null||n.memoizedState!==null)&&(un=t)}function Ju(t){K(tt,tt.current),K(Qt,t),un===null&&(un=t)}function Fm(t){t.tag===22?(K(tt,tt.current),K(Qt,t),un===null&&(un=t)):Sa()}function Sa(){K(tt,tt.current),K(Qt,Qt.current)}function Ft(t){Z(Qt),un===t&&(un=null),Z(tt)}var tt=w(0);function As(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||af(i)||rf(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Gn=0,he=null,Ve=null,lt=null,zs=!1,$i=!1,ri=!1,Cs=0,Fr=0,Gi=null,nT=0;function Ie(){throw Error(o(321))}function Iu(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!Xt(t[i],n[i]))return!1;return!0}function Wu(t,n,i,s,u,d){return Gn=d,he=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,U.H=t===null||t.memoizedState===null?Np:mc,ri=!1,d=i(s,u),ri=!1,$i&&(d=Im(n,i,s,u)),Jm(t),d}function Jm(t){U.H=Wr;var n=Ve!==null&&Ve.next!==null;if(Gn=0,lt=Ve=he=null,zs=!1,Fr=0,Gi=null,n)throw Error(o(300));t===null||ut||(t=t.dependencies,t!==null&&vs(t)&&(ut=!0))}function Im(t,n,i,s){he=t;var u=0;do{if($i&&(Gi=null),Fr=0,$i=!1,25<=u)throw Error(o(301));if(u+=1,lt=Ve=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}U.H=jp,d=n(i,s)}while($i);return d}function aT(){var t=U.H,n=t.useState()[0];return n=typeof n.then=="function"?Jr(n):n,t=t.useState()[0],(Ve!==null?Ve.memoizedState:null)!==t&&(he.flags|=1024),n}function ec(){var t=Cs!==0;return Cs=0,t}function tc(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function nc(t){if(zs){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}zs=!1}Gn=0,lt=Ve=he=null,$i=!1,Fr=Cs=0,Gi=null}function Dt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?he.memoizedState=lt=t:lt=lt.next=t,lt}function nt(){if(Ve===null){var t=he.alternate;t=t!==null?t.memoizedState:null}else t=Ve.next;var n=lt===null?he.memoizedState:lt.next;if(n!==null)lt=n,Ve=t;else{if(t===null)throw he.alternate===null?Error(o(467)):Error(o(310));Ve=t,t={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},lt===null?he.memoizedState=lt=t:lt=lt.next=t}return lt}function Rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jr(t){var n=Fr;return Fr+=1,Gi===null&&(Gi=[]),t=$m(Gi,t,n),n=he,(lt===null?n.memoizedState:lt.next)===null&&(n=n.alternate,U.H=n===null||n.memoizedState===null?Np:mc),t}function Os(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Jr(t);if(t.$$typeof===j)return Tt(t)}throw Error(o(438,String(t)))}function ac(t){var n=null,i=he.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=he.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Rs(),he.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),s=0;s<t;s++)i[s]=xe;return n.index++,i}function qn(t,n){return typeof n=="function"?n(t):n}function Ms(t){var n=nt();return ic(n,Ve,t)}function ic(t,n,i){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=i;var u=t.baseQueue,d=s.pending;if(d!==null){if(u!==null){var g=u.next;u.next=d.next,d.next=g}n.baseQueue=u=d,s.pending=null}if(d=t.baseState,u===null)t.memoizedState=d;else{n=u.next;var b=g=null,T=null,D=n,B=!1;do{var $=D.lane&-536870913;if($!==D.lane?(be&$)===$:(Gn&$)===$){var N=D.revertLane;if(N===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),$===Ui&&(B=!0);else if((Gn&N)===N){D=D.next,N===Ui&&(B=!0);continue}else $={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=$,g=d):T=T.next=$,he.lanes|=N,Ea|=N;$=D.action,ri&&i(d,$),d=D.hasEagerState?D.eagerState:i(d,$)}else N={lane:$,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=N,g=d):T=T.next=N,he.lanes|=$,Ea|=$;D=D.next}while(D!==null&&D!==n);if(T===null?g=d:T.next=b,!Xt(d,t.memoizedState)&&(ut=!0,B&&(i=Li,i!==null)))throw i;t.memoizedState=d,t.baseState=g,t.baseQueue=T,s.lastRenderedState=d}return u===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function rc(t){var n=nt(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var s=i.dispatch,u=i.pending,d=n.memoizedState;if(u!==null){i.pending=null;var g=u=u.next;do d=t(d,g.action),g=g.next;while(g!==u);Xt(d,n.memoizedState)||(ut=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,s]}function Wm(t,n,i){var s=he,u=nt(),d=Te;if(d){if(i===void 0)throw Error(o(407));i=i()}else i=n();var g=!Xt((Ve||u).memoizedState,i);if(g&&(u.memoizedState=i,ut=!0),u=u.queue,lc(np.bind(null,s,u,t),[t]),u.getSnapshot!==n||g||lt!==null&<.memoizedState.tag&1){if(s.flags|=2048,qi(9,{destroy:void 0},tp.bind(null,s,u,i,n),null),Be===null)throw Error(o(349));d||(Gn&127)!==0||ep(s,n,i)}return i}function ep(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=he.updateQueue,n===null?(n=Rs(),he.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function tp(t,n,i,s){n.value=i,n.getSnapshot=s,ap(n)&&ip(t)}function np(t,n,i){return i(function(){ap(n)&&ip(t)})}function ap(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!Xt(t,i)}catch{return!0}}function ip(t){var n=Fa(t,2);n!==null&&$t(n,t,2)}function oc(t){var n=Dt();if(typeof t=="function"){var i=t;if(t=i(),ri){ua(!0);try{i()}finally{ua(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:t},n}function rp(t,n,i,s){return t.baseState=i,ic(t,Ve,typeof s=="function"?s:qn)}function iT(t,n,i,s,u){if(js(t))throw Error(o(485));if(t=n.action,t!==null){var d={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){d.listeners.push(g)}};U.T!==null?i(!0):d.isTransition=!1,s(d),i=n.pending,i===null?(d.next=n.pending=d,op(n,d)):(d.next=i.next,n.pending=i.next=d)}}function op(t,n){var i=n.action,s=n.payload,u=t.state;if(n.isTransition){var d=U.T,g={};U.T=g;try{var b=i(u,s),T=U.S;T!==null&&T(g,b),sp(t,n,b)}catch(D){sc(t,n,D)}finally{d!==null&&g.types!==null&&(d.types=g.types),U.T=d}}else try{d=i(u,s),sp(t,n,d)}catch(D){sc(t,n,D)}}function sp(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){lp(t,n,s)},function(s){return sc(t,n,s)}):lp(t,n,i)}function lp(t,n,i){n.status="fulfilled",n.value=i,up(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,op(t,i)))}function sc(t,n,i){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,up(n),n=n.next;while(n!==s)}t.action=null}function up(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function cp(t,n){return n}function fp(t,n){if(Te){var i=Be.formState;if(i!==null){e:{var s=he;if(Te){if(He){t:{for(var u=He,d=ln;u.nodeType!==8;){if(!d){u=null;break t}if(u=cn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){He=cn(u.nextSibling),s=u.data==="F!";break e}}ma(s)}s=!1}s&&(n=i[0])}}return i=Dt(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cp,lastRenderedState:n},i.queue=s,i=Op.bind(null,he,s),s.dispatch=i,s=oc(!1),d=hc.bind(null,he,!1,s.queue),s=Dt(),u={state:n,dispatch:null,action:t,pending:null},s.queue=u,i=iT.bind(null,he,u,d,i),u.dispatch=i,s.memoizedState=t,[n,i,!1]}function dp(t){var n=nt();return hp(n,Ve,t)}function hp(t,n,i){if(n=ic(t,n,cp)[0],t=Ms(qn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Jr(n)}catch(g){throw g===Bi?xs:g}else s=n;n=nt();var u=n.queue,d=u.dispatch;return i!==n.memoizedState&&(he.flags|=2048,qi(9,{destroy:void 0},rT.bind(null,u,i),null)),[s,d,t]}function rT(t,n){t.action=n}function mp(t){var n=nt(),i=Ve;if(i!==null)return hp(n,i,t);nt(),n=n.memoizedState,i=nt();var s=i.queue.dispatch;return i.memoizedState=t,[n,s,!1]}function qi(t,n,i,s){return t={tag:t,create:i,deps:s,inst:n,next:null},n=he.updateQueue,n===null&&(n=Rs(),he.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(s=i.next,i.next=t,t.next=s,n.lastEffect=t),t}function pp(){return nt().memoizedState}function Ds(t,n,i,s){var u=Dt();he.flags|=t,u.memoizedState=qi(1|n,{destroy:void 0},i,s===void 0?null:s)}function Ns(t,n,i,s){var u=nt();s=s===void 0?null:s;var d=u.memoizedState.inst;Ve!==null&&s!==null&&Iu(s,Ve.memoizedState.deps)?u.memoizedState=qi(n,d,i,s):(he.flags|=t,u.memoizedState=qi(1|n,d,i,s))}function gp(t,n){Ds(8390656,8,t,n)}function lc(t,n){Ns(2048,8,t,n)}function oT(t){he.flags|=4;var n=he.updateQueue;if(n===null)n=Rs(),he.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function yp(t){var n=nt().memoizedState;return oT({ref:n,nextImpl:t}),function(){if((ze&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}function vp(t,n){return Ns(4,2,t,n)}function bp(t,n){return Ns(4,4,t,n)}function Sp(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function xp(t,n,i){i=i!=null?i.concat([t]):null,Ns(4,4,Sp.bind(null,n,t),i)}function uc(){}function Tp(t,n){var i=nt();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&Iu(n,s[1])?s[0]:(i.memoizedState=[t,n],t)}function Ep(t,n){var i=nt();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&Iu(n,s[1]))return s[0];if(s=t(),ri){ua(!0);try{t()}finally{ua(!1)}}return i.memoizedState=[s,n],s}function cc(t,n,i){return i===void 0||(Gn&1073741824)!==0&&(be&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=_g(),he.lanes|=t,Ea|=t,i)}function _p(t,n,i,s){return Xt(i,n)?i:Hi.current!==null?(t=cc(t,i,s),Xt(t,n)||(ut=!0),t):(Gn&42)===0||(Gn&1073741824)!==0&&(be&261930)===0?(ut=!0,t.memoizedState=i):(t=_g(),he.lanes|=t,Ea|=t,n)}function wp(t,n,i,s,u){var d=X.p;X.p=d!==0&&8>d?d:8;var g=U.T,b={};U.T=b,hc(t,!1,n,i);try{var T=u(),D=U.S;if(D!==null&&D(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=tT(T,s);Ir(t,n,B,Wt(t))}else Ir(t,n,s,Wt(t))}catch($){Ir(t,n,{then:function(){},status:"rejected",reason:$},Wt())}finally{X.p=d,g!==null&&b.types!==null&&(g.types=b.types),U.T=g}}function sT(){}function fc(t,n,i,s){if(t.tag!==5)throw Error(o(476));var u=Ap(t).queue;wp(t,u,n,Y,i===null?sT:function(){return zp(t),i(s)})}function Ap(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:Y},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function zp(t){var n=Ap(t);n.next===null&&(n=t.alternate.memoizedState),Ir(t,n.next.queue,{},Wt())}function dc(){return Tt(go)}function Cp(){return nt().memoizedState}function Rp(){return nt().memoizedState}function lT(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=Wt();t=ya(i);var s=va(n,t,i);s!==null&&($t(s,n,i),Xr(s,n,i)),n={cache:Hu()},t.payload=n;return}n=n.return}}function uT(t,n,i){var s=Wt();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},js(t)?Mp(n,i):(i=Ou(t,n,i,s),i!==null&&($t(i,t,s),Dp(i,n,s)))}function Op(t,n,i){var s=Wt();Ir(t,n,i,s)}function Ir(t,n,i,s){var u={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(js(t))Mp(n,u);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var g=n.lastRenderedState,b=d(g,i);if(u.hasEagerState=!0,u.eagerState=b,Xt(b,g))return ms(t,n,u,0),Be===null&&hs(),!1}catch{}if(i=Ou(t,n,u,s),i!==null)return $t(i,t,s),Dp(i,n,s),!0}return!1}function hc(t,n,i,s){if(s={lane:2,revertLane:Yc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},js(t)){if(n)throw Error(o(479))}else n=Ou(t,i,s,2),n!==null&&$t(n,t,2)}function js(t){var n=t.alternate;return t===he||n!==null&&n===he}function Mp(t,n){$i=zs=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function Dp(t,n,i){if((i&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,i|=s,n.lanes=i,Uh(t,i)}}var Wr={readContext:Tt,use:Os,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Wr.useEffectEvent=Ie;var Np={readContext:Tt,use:Os,useCallback:function(t,n){return Dt().memoizedState=[t,n===void 0?null:n],t},useContext:Tt,useEffect:gp,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,Ds(4194308,4,Sp.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Ds(4194308,4,t,n)},useInsertionEffect:function(t,n){Ds(4,2,t,n)},useMemo:function(t,n){var i=Dt();n=n===void 0?null:n;var s=t();if(ri){ua(!0);try{t()}finally{ua(!1)}}return i.memoizedState=[s,n],s},useReducer:function(t,n,i){var s=Dt();if(i!==void 0){var u=i(n);if(ri){ua(!0);try{i(n)}finally{ua(!1)}}}else u=n;return s.memoizedState=s.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},s.queue=t,t=t.dispatch=uT.bind(null,he,t),[s.memoizedState,t]},useRef:function(t){var n=Dt();return t={current:t},n.memoizedState=t},useState:function(t){t=oc(t);var n=t.queue,i=Op.bind(null,he,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:uc,useDeferredValue:function(t,n){var i=Dt();return cc(i,t,n)},useTransition:function(){var t=oc(!1);return t=wp.bind(null,he,t.queue,!0,!1),Dt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var s=he,u=Dt();if(Te){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),Be===null)throw Error(o(349));(be&127)!==0||ep(s,n,i)}u.memoizedState=i;var d={value:i,getSnapshot:n};return u.queue=d,gp(np.bind(null,s,d,t),[t]),s.flags|=2048,qi(9,{destroy:void 0},tp.bind(null,s,d,i,n),null),i},useId:function(){var t=Dt(),n=Be.identifierPrefix;if(Te){var i=Rn,s=Cn;i=(s&~(1<<32-Pt(s)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Cs++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=nT++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:dc,useFormState:fp,useActionState:fp,useOptimistic:function(t){var n=Dt();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=hc.bind(null,he,!0,i),i.dispatch=n,[t,n]},useMemoCache:ac,useCacheRefresh:function(){return Dt().memoizedState=lT.bind(null,he)},useEffectEvent:function(t){var n=Dt(),i={impl:t};return n.memoizedState=i,function(){if((ze&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},mc={readContext:Tt,use:Os,useCallback:Tp,useContext:Tt,useEffect:lc,useImperativeHandle:xp,useInsertionEffect:vp,useLayoutEffect:bp,useMemo:Ep,useReducer:Ms,useRef:pp,useState:function(){return Ms(qn)},useDebugValue:uc,useDeferredValue:function(t,n){var i=nt();return _p(i,Ve.memoizedState,t,n)},useTransition:function(){var t=Ms(qn)[0],n=nt().memoizedState;return[typeof t=="boolean"?t:Jr(t),n]},useSyncExternalStore:Wm,useId:Cp,useHostTransitionStatus:dc,useFormState:dp,useActionState:dp,useOptimistic:function(t,n){var i=nt();return rp(i,Ve,t,n)},useMemoCache:ac,useCacheRefresh:Rp};mc.useEffectEvent=yp;var jp={readContext:Tt,use:Os,useCallback:Tp,useContext:Tt,useEffect:lc,useImperativeHandle:xp,useInsertionEffect:vp,useLayoutEffect:bp,useMemo:Ep,useReducer:rc,useRef:pp,useState:function(){return rc(qn)},useDebugValue:uc,useDeferredValue:function(t,n){var i=nt();return Ve===null?cc(i,t,n):_p(i,Ve.memoizedState,t,n)},useTransition:function(){var t=rc(qn)[0],n=nt().memoizedState;return[typeof t=="boolean"?t:Jr(t),n]},useSyncExternalStore:Wm,useId:Cp,useHostTransitionStatus:dc,useFormState:mp,useActionState:mp,useOptimistic:function(t,n){var i=nt();return Ve!==null?rp(i,Ve,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:ac,useCacheRefresh:Rp};jp.useEffectEvent=yp;function pc(t,n,i,s){n=t.memoizedState,i=i(s,n),i=i==null?n:v({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var gc={enqueueSetState:function(t,n,i){t=t._reactInternals;var s=Wt(),u=ya(s);u.payload=n,i!=null&&(u.callback=i),n=va(t,u,s),n!==null&&($t(n,t,s),Xr(n,t,s))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var s=Wt(),u=ya(s);u.tag=1,u.payload=n,i!=null&&(u.callback=i),n=va(t,u,s),n!==null&&($t(n,t,s),Xr(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=Wt(),s=ya(i);s.tag=2,n!=null&&(s.callback=n),n=va(t,s,i),n!==null&&($t(n,t,i),Xr(n,t,i))}};function kp(t,n,i,s,u,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,d,g):n.prototype&&n.prototype.isPureReactComponent?!Br(i,s)||!Br(u,d):!0}function Vp(t,n,i,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==t&&gc.enqueueReplaceState(n,n.state,null)}function oi(t,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(t=t.defaultProps){i===n&&(i=v({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}function Up(t){ds(t)}function Lp(t){console.error(t)}function Bp(t){ds(t)}function ks(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Zp(t,n,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function yc(t,n,i){return i=ya(i),i.tag=3,i.payload={element:null},i.callback=function(){ks(t,n)},i}function Hp(t){return t=ya(t),t.tag=3,t}function $p(t,n,i,s){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=s.value;t.payload=function(){return u(d)},t.callback=function(){Zp(n,i,s)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){Zp(n,i,s),typeof u!="function"&&(_a===null?_a=new Set([this]):_a.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function cT(t,n,i,s,u){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&Vi(n,i,u,!0),i=Qt.current,i!==null){switch(i.tag){case 31:case 13:return un===null?Xs():i.alternate===null&&We===0&&(We=3),i.flags&=-257,i.flags|=65536,i.lanes=u,s===Ts?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),$c(t,s,u)),!1;case 22:return i.flags|=65536,s===Ts?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),$c(t,s,u)),!1}throw Error(o(435,i.tag))}return $c(t,s,u),Xs(),!1}if(Te)return n=Qt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,s!==Vu&&(t=Error(o(422),{cause:s}),$r(rn(t,i)))):(s!==Vu&&(n=Error(o(423),{cause:s}),$r(rn(n,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,s=rn(s,i),u=yc(t.stateNode,s,u),Xu(t,u),We!==4&&(We=2)),!1;var d=Error(o(520),{cause:s});if(d=rn(d,i),so===null?so=[d]:so.push(d),We!==4&&(We=2),n===null)return!0;s=rn(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=yc(i.stateNode,s,t),Xu(i,t),!1;case 1:if(n=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(_a===null||!_a.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Hp(u),$p(u,t,i,s),Xu(i,u),!1}i=i.return}while(i!==null);return!1}var vc=Error(o(461)),ut=!1;function Et(t,n,i,s){n.child=t===null?Pm(n,null,i,s):ii(n,t.child,i,s)}function Gp(t,n,i,s,u){i=i.render;var d=n.ref;if("ref"in s){var g={};for(var b in s)b!=="ref"&&(g[b]=s[b])}else g=s;return ei(n),s=Wu(t,n,i,g,d,u),b=ec(),t!==null&&!ut?(tc(t,n,u),Yn(t,n,u)):(Te&&b&&ju(n),n.flags|=1,Et(t,n,s,u),n.child)}function qp(t,n,i,s,u){if(t===null){var d=i.type;return typeof d=="function"&&!Mu(d)&&d.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=d,Yp(t,n,d,s,u)):(t=gs(i.type,null,s,n,n.mode,u),t.ref=n.ref,t.return=n,n.child=t)}if(d=t.child,!Ac(t,u)){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:Br,i(g,s)&&t.ref===n.ref)return Yn(t,n,u)}return n.flags|=1,t=Bn(d,s),t.ref=n.ref,t.return=n,n.child=t}function Yp(t,n,i,s,u){if(t!==null){var d=t.memoizedProps;if(Br(d,s)&&t.ref===n.ref)if(ut=!1,n.pendingProps=s=d,Ac(t,u))(t.flags&131072)!==0&&(ut=!0);else return n.lanes=t.lanes,Yn(t,n,u)}return bc(t,n,i,s,u)}function Pp(t,n,i,s){var u=s.children,d=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,t!==null){for(s=n.child=t.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~d}else s=0,n.child=null;return Xp(t,n,d,i,s)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ss(n,d!==null?d.cachePool:null),d!==null?Qm(n,d):Qu(),Fm(n);else return s=n.lanes=536870912,Xp(t,n,d!==null?d.baseLanes|i:i,i,s)}else d!==null?(Ss(n,d.cachePool),Qm(n,d),Sa(),n.memoizedState=null):(t!==null&&Ss(n,null),Qu(),Sa());return Et(t,n,u,i),n.child}function eo(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Xp(t,n,i,s,u){var d=Gu();return d=d===null?null:{parent:st._currentValue,pool:d},n.memoizedState={baseLanes:i,cachePool:d},t!==null&&Ss(n,null),Qu(),Fm(n),t!==null&&Vi(t,n,s,!0),n.childLanes=u,null}function Vs(t,n){return n=Ls({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function Kp(t,n,i){return ii(n,t.child,null,i),t=Vs(n,n.pendingProps),t.flags|=2,Ft(n),n.memoizedState=null,t}function fT(t,n,i){var s=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Te){if(s.mode==="hidden")return t=Vs(n,s),n.lanes=536870912,eo(null,t);if(Ju(n),(t=He)?(t=oy(t,ln),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:da!==null?{id:Cn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},i=Mm(t),i.return=n,n.child=i,xt=n,He=null)):t=null,t===null)throw ma(n);return n.lanes=536870912,null}return Vs(n,s)}var d=t.memoizedState;if(d!==null){var g=d.dehydrated;if(Ju(n),u)if(n.flags&256)n.flags&=-257,n=Kp(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(o(558));else if(ut||Vi(t,n,i,!1),u=(i&t.childLanes)!==0,ut||u){if(s=Be,s!==null&&(g=Lh(s,i),g!==0&&g!==d.retryLane))throw d.retryLane=g,Fa(t,g),$t(s,t,g),vc;Xs(),n=Kp(t,n,i)}else t=d.treeContext,He=cn(g.nextSibling),xt=n,Te=!0,ha=null,ln=!1,t!==null&&jm(n,t),n=Vs(n,s),n.flags|=4096;return n}return t=Bn(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function Us(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(n.flags|=4194816)}}function bc(t,n,i,s,u){return ei(n),i=Wu(t,n,i,s,void 0,u),s=ec(),t!==null&&!ut?(tc(t,n,u),Yn(t,n,u)):(Te&&s&&ju(n),n.flags|=1,Et(t,n,i,u),n.child)}function Qp(t,n,i,s,u,d){return ei(n),n.updateQueue=null,i=Im(n,s,i,u),Jm(t),s=ec(),t!==null&&!ut?(tc(t,n,d),Yn(t,n,d)):(Te&&s&&ju(n),n.flags|=1,Et(t,n,i,d),n.child)}function Fp(t,n,i,s,u){if(ei(n),n.stateNode===null){var d=Di,g=i.contextType;typeof g=="object"&&g!==null&&(d=Tt(g)),d=new i(s,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=gc,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=s,d.state=n.memoizedState,d.refs={},Yu(n),g=i.contextType,d.context=typeof g=="object"&&g!==null?Tt(g):Di,d.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(pc(n,i,g,s),d.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&gc.enqueueReplaceState(d,d.state,null),Qr(n,s,d,u),Kr(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){d=n.stateNode;var b=n.memoizedProps,T=oi(i,b);d.props=T;var D=d.context,B=i.contextType;g=Di,typeof B=="object"&&B!==null&&(g=Tt(B));var $=i.getDerivedStateFromProps;B=typeof $=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,B||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||D!==g)&&Vp(n,d,s,g),ga=!1;var N=n.memoizedState;d.state=N,Qr(n,s,d,u),Kr(),D=n.memoizedState,b||N!==D||ga?(typeof $=="function"&&(pc(n,i,$,s),D=n.memoizedState),(T=ga||kp(n,i,T,s,N,D,g))?(B||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=D),d.props=s,d.state=D,d.context=g,s=T):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{d=n.stateNode,Pu(t,n),g=n.memoizedProps,B=oi(i,g),d.props=B,$=n.pendingProps,N=d.context,D=i.contextType,T=Di,typeof D=="object"&&D!==null&&(T=Tt(D)),b=i.getDerivedStateFromProps,(D=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==$||N!==T)&&Vp(n,d,s,T),ga=!1,N=n.memoizedState,d.state=N,Qr(n,s,d,u),Kr();var k=n.memoizedState;g!==$||N!==k||ga||t!==null&&t.dependencies!==null&&vs(t.dependencies)?(typeof b=="function"&&(pc(n,i,b,s),k=n.memoizedState),(B=ga||kp(n,i,B,s,N,k,T)||t!==null&&t.dependencies!==null&&vs(t.dependencies))?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,k,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,k,T)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=k),d.props=s,d.state=k,d.context=T,s=B):(typeof d.componentDidUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=1024),s=!1)}return d=s,Us(t,n),s=(n.flags&128)!==0,d||s?(d=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,t!==null&&s?(n.child=ii(n,t.child,null,u),n.child=ii(n,null,i,u)):Et(t,n,i,u),n.memoizedState=d.state,t=n.child):t=Yn(t,n,u),t}function Jp(t,n,i,s){return Ia(),n.flags|=256,Et(t,n,i,s),n.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(t){return{baseLanes:t,cachePool:Zm()}}function Tc(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=It),t}function Ip(t,n,i){var s=n.pendingProps,u=!1,d=(n.flags&128)!==0,g;if((g=d)||(g=t!==null&&t.memoizedState===null?!1:(tt.current&2)!==0),g&&(u=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,t===null){if(Te){if(u?ba(n):Sa(),(t=He)?(t=oy(t,ln),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:da!==null?{id:Cn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},i=Mm(t),i.return=n,n.child=i,xt=n,He=null)):t=null,t===null)throw ma(n);return rf(t)?n.lanes=32:n.lanes=536870912,null}var b=s.children;return s=s.fallback,u?(Sa(),u=n.mode,b=Ls({mode:"hidden",children:b},u),s=Ja(s,u,i,null),b.return=n,s.return=n,b.sibling=s,n.child=b,s=n.child,s.memoizedState=xc(i),s.childLanes=Tc(t,g,i),n.memoizedState=Sc,eo(null,s)):(ba(n),Ec(n,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(d)n.flags&256?(ba(n),n.flags&=-257,n=_c(t,n,i)):n.memoizedState!==null?(Sa(),n.child=t.child,n.flags|=128,n=null):(Sa(),b=s.fallback,u=n.mode,s=Ls({mode:"visible",children:s.children},u),b=Ja(b,u,i,null),b.flags|=2,s.return=n,b.return=n,s.sibling=b,n.child=s,ii(n,t.child,null,i),s=n.child,s.memoizedState=xc(i),s.childLanes=Tc(t,g,i),n.memoizedState=Sc,n=eo(null,s));else if(ba(n),rf(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var D=g.dgst;g=D,s=Error(o(419)),s.stack="",s.digest=g,$r({value:s,source:null,stack:null}),n=_c(t,n,i)}else if(ut||Vi(t,n,i,!1),g=(i&t.childLanes)!==0,ut||g){if(g=Be,g!==null&&(s=Lh(g,i),s!==0&&s!==T.retryLane))throw T.retryLane=s,Fa(t,s),$t(g,t,s),vc;af(b)||Xs(),n=_c(t,n,i)}else af(b)?(n.flags|=192,n.child=t.child,n=null):(t=T.treeContext,He=cn(b.nextSibling),xt=n,Te=!0,ha=null,ln=!1,t!==null&&jm(n,t),n=Ec(n,s.children),n.flags|=4096);return n}return u?(Sa(),b=s.fallback,u=n.mode,T=t.child,D=T.sibling,s=Bn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,D!==null?b=Bn(D,b):(b=Ja(b,u,i,null),b.flags|=2),b.return=n,s.return=n,s.sibling=b,n.child=s,eo(null,s),s=n.child,b=t.child.memoizedState,b===null?b=xc(i):(u=b.cachePool,u!==null?(T=st._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=Zm(),b={baseLanes:b.baseLanes|i,cachePool:u}),s.memoizedState=b,s.childLanes=Tc(t,g,i),n.memoizedState=Sc,eo(t.child,s)):(ba(n),i=t.child,t=i.sibling,i=Bn(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,t!==null&&(g=n.deletions,g===null?(n.deletions=[t],n.flags|=16):g.push(t)),n.child=i,n.memoizedState=null,i)}function Ec(t,n){return n=Ls({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Ls(t,n){return t=Kt(22,t,null,n),t.lanes=0,t}function _c(t,n,i){return ii(n,t.child,null,i),t=Ec(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function Wp(t,n,i){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),Bu(t.return,n,i)}function wc(t,n,i,s,u,d){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:u,treeForkCount:d}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=i,g.tailMode=u,g.treeForkCount=d)}function eg(t,n,i){var s=n.pendingProps,u=s.revealOrder,d=s.tail;s=s.children;var g=tt.current,b=(g&2)!==0;if(b?(g=g&1|2,n.flags|=128):g&=1,K(tt,g),Et(t,n,s,i),s=Te?Hr:0,!b&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wp(t,i,n);else if(t.tag===19)Wp(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(i=n.child,u=null;i!==null;)t=i.alternate,t!==null&&As(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=n.child,n.child=null):(u=i.sibling,i.sibling=null),wc(n,!1,u,i,d,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=n.child,n.child=null;u!==null;){if(t=u.alternate,t!==null&&As(t)===null){n.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}wc(n,!0,i,null,d,s);break;case"together":wc(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Yn(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),Ea|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(Vi(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(o(153));if(n.child!==null){for(t=n.child,i=Bn(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=Bn(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Ac(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&vs(t)))}function dT(t,n,i){switch(n.tag){case 3:ot(n,n.stateNode.containerInfo),pa(n,st,t.memoizedState.cache),Ia();break;case 27:case 5:qt(n);break;case 4:ot(n,n.stateNode.containerInfo);break;case 10:pa(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ju(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(ba(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Ip(t,n,i):(ba(n),t=Yn(t,n,i),t!==null?t.sibling:null);ba(n);break;case 19:var u=(t.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(Vi(t,n,i,!1),s=(i&n.childLanes)!==0),u){if(s)return eg(t,n,i);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(tt,tt.current),s)break;return null;case 22:return n.lanes=0,Pp(t,n,i,n.pendingProps);case 24:pa(n,st,t.memoizedState.cache)}return Yn(t,n,i)}function tg(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)ut=!0;else{if(!Ac(t,i)&&(n.flags&128)===0)return ut=!1,dT(t,n,i);ut=(t.flags&131072)!==0}else ut=!1,Te&&(n.flags&1048576)!==0&&Nm(n,Hr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=ni(n.elementType),n.type=t,typeof t=="function")Mu(t)?(s=oi(t,s),n.tag=1,n=Fp(null,n,t,s,i)):(n.tag=0,n=bc(null,n,t,s,i));else{if(t!=null){var u=t.$$typeof;if(u===Q){n.tag=11,n=Gp(null,n,t,s,i);break e}else if(u===F){n.tag=14,n=qp(null,n,t,s,i);break e}}throw n=je(t)||t,Error(o(306,n,""))}}return n;case 0:return bc(t,n,n.type,n.pendingProps,i);case 1:return s=n.type,u=oi(s,n.pendingProps),Fp(t,n,s,u,i);case 3:e:{if(ot(n,n.stateNode.containerInfo),t===null)throw Error(o(387));s=n.pendingProps;var d=n.memoizedState;u=d.element,Pu(t,n),Qr(n,s,null,i);var g=n.memoizedState;if(s=g.cache,pa(n,st,s),s!==d.cache&&Zu(n,[st],i,!0),Kr(),s=g.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Jp(t,n,s,i);break e}else if(s!==u){u=rn(Error(o(424)),n),$r(u),n=Jp(t,n,s,i);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,He=cn(t.firstChild),xt=n,Te=!0,ha=null,ln=!0,i=Pm(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ia(),s===u){n=Yn(t,n,i);break e}Et(t,n,s,i)}n=n.child}return n;case 26:return Us(t,n),t===null?(i=dy(n.type,null,n.pendingProps,null))?n.memoizedState=i:Te||(i=n.type,t=n.pendingProps,s=el(fe.current).createElement(i),s[St]=n,s[Vt]=t,_t(s,i,t),gt(s),n.stateNode=s):n.memoizedState=dy(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return qt(n),t===null&&Te&&(s=n.stateNode=uy(n.type,n.pendingProps,fe.current),xt=n,ln=!0,u=He,Ca(n.type)?(of=u,He=cn(s.firstChild)):He=u),Et(t,n,n.pendingProps.children,i),Us(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Te&&((u=s=He)&&(s=$T(s,n.type,n.pendingProps,ln),s!==null?(n.stateNode=s,xt=n,He=cn(s.firstChild),ln=!1,u=!0):u=!1),u||ma(n)),qt(n),u=n.type,d=n.pendingProps,g=t!==null?t.memoizedProps:null,s=d.children,ef(u,d)?s=null:g!==null&&ef(u,g)&&(n.flags|=32),n.memoizedState!==null&&(u=Wu(t,n,aT,null,null,i),go._currentValue=u),Us(t,n),Et(t,n,s,i),n.child;case 6:return t===null&&Te&&((t=i=He)&&(i=GT(i,n.pendingProps,ln),i!==null?(n.stateNode=i,xt=n,He=null,t=!0):t=!1),t||ma(n)),null;case 13:return Ip(t,n,i);case 4:return ot(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=ii(n,null,s,i):Et(t,n,s,i),n.child;case 11:return Gp(t,n,n.type,n.pendingProps,i);case 7:return Et(t,n,n.pendingProps,i),n.child;case 8:return Et(t,n,n.pendingProps.children,i),n.child;case 12:return Et(t,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,pa(n,n.type,s.value),Et(t,n,s.children,i),n.child;case 9:return u=n.type._context,s=n.pendingProps.children,ei(n),u=Tt(u),s=s(u),n.flags|=1,Et(t,n,s,i),n.child;case 14:return qp(t,n,n.type,n.pendingProps,i);case 15:return Yp(t,n,n.type,n.pendingProps,i);case 19:return eg(t,n,i);case 31:return fT(t,n,i);case 22:return Pp(t,n,i,n.pendingProps);case 24:return ei(n),s=Tt(st),t===null?(u=Gu(),u===null&&(u=Be,d=Hu(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),n.memoizedState={parent:s,cache:u},Yu(n),pa(n,st,u)):((t.lanes&i)!==0&&(Pu(t,n),Qr(n,null,null,i),Kr()),u=t.memoizedState,d=n.memoizedState,u.parent!==s?(u={parent:s,cache:s},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),pa(n,st,s)):(s=d.cache,pa(n,st,s),s!==u.cache&&Zu(n,[st],i,!0))),Et(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function Pn(t){t.flags|=4}function zc(t,n,i,s,u){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Cg())t.flags|=8192;else throw ai=Ts,qu}else t.flags&=-16777217}function ng(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!yy(n))if(Cg())t.flags|=8192;else throw ai=Ts,qu}function Bs(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?kh():536870912,t.lanes|=n,Ki|=n)}function to(t,n){if(!Te)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function $e(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,s=0;if(n)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=s,t.childLanes=i,n}function hT(t,n,i){var s=n.pendingProps;switch(ku(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(n),null;case 1:return $e(n),null;case 3:return i=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),$n(st),Re(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ki(n)?Pn(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Uu())),$e(n),null;case 26:var u=n.type,d=n.memoizedState;return t===null?(Pn(n),d!==null?($e(n),ng(n,d)):($e(n),zc(n,u,null,s,i))):d?d!==t.memoizedState?(Pn(n),$e(n),ng(n,d)):($e(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&Pn(n),$e(n),zc(n,u,t,s,i)),null;case 27:if(_n(n),i=fe.current,u=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Pn(n);else{if(!s){if(n.stateNode===null)throw Error(o(166));return $e(n),null}t=J.current,ki(n)?km(n):(t=uy(u,s,i),n.stateNode=t,Pn(n))}return $e(n),null;case 5:if(_n(n),u=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Pn(n);else{if(!s){if(n.stateNode===null)throw Error(o(166));return $e(n),null}if(d=J.current,ki(n))km(n);else{var g=el(fe.current);switch(d){case 1:d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=g.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof s.is=="string"?g.createElement("select",{is:s.is}):g.createElement("select"),s.multiple?d.multiple=!0:s.size&&(d.size=s.size);break;default:d=typeof s.is=="string"?g.createElement(u,{is:s.is}):g.createElement(u)}}d[St]=n,d[Vt]=s;e:for(g=n.child;g!==null;){if(g.tag===5||g.tag===6)d.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===n)break e;for(;g.sibling===null;){if(g.return===null||g.return===n)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}n.stateNode=d;e:switch(_t(d,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Pn(n)}}return $e(n),zc(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&Pn(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(o(166));if(t=fe.current,ki(n)){if(t=n.stateNode,i=n.memoizedProps,s=null,u=xt,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}t[St]=n,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||Ig(t.nodeValue,i)),t||ma(n,!0)}else t=el(t).createTextNode(s),t[St]=n,n.stateNode=t}return $e(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(s=ki(n),i!==null){if(t===null){if(!s)throw Error(o(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[St]=n}else Ia(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),t=!1}else i=Uu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(Ft(n),n):(Ft(n),null);if((n.flags&128)!==0)throw Error(o(558))}return $e(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=ki(n),s!==null&&s.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[St]=n}else Ia(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),u=!1}else u=Uu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(Ft(n),n):(Ft(n),null)}return Ft(n),(n.flags&128)!==0?(n.lanes=i,n):(i=s!==null,t=t!==null&&t.memoizedState!==null,i&&(s=n.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==u&&(s.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),Bs(n,n.updateQueue),$e(n),null);case 4:return Re(),t===null&&Qc(n.stateNode.containerInfo),$e(n),null;case 10:return $n(n.type),$e(n),null;case 19:if(Z(tt),s=n.memoizedState,s===null)return $e(n),null;if(u=(n.flags&128)!==0,d=s.rendering,d===null)if(u)to(s,!1);else{if(We!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(d=As(t),d!==null){for(n.flags|=128,to(s,!1),t=d.updateQueue,n.updateQueue=t,Bs(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)Om(i,t),i=i.sibling;return K(tt,tt.current&1|2),Te&&Zn(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&Qe()>qs&&(n.flags|=128,u=!0,to(s,!1),n.lanes=4194304)}else{if(!u)if(t=As(d),t!==null){if(n.flags|=128,u=!0,t=t.updateQueue,n.updateQueue=t,Bs(n,t),to(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Te)return $e(n),null}else 2*Qe()-s.renderingStartTime>qs&&i!==536870912&&(n.flags|=128,u=!0,to(s,!1),n.lanes=4194304);s.isBackwards?(d.sibling=n.child,n.child=d):(t=s.last,t!==null?t.sibling=d:n.child=d,s.last=d)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,i=tt.current,K(tt,u?i&1|2:i&1),Te&&Zn(n,s.treeForkCount),t):($e(n),null);case 22:case 23:return Ft(n),Fu(),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&($e(n),n.subtreeFlags&6&&(n.flags|=8192)):$e(n),i=n.updateQueue,i!==null&&Bs(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),t!==null&&Z(ti),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),$n(st),$e(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function mT(t,n){switch(ku(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return $n(st),Re(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return _n(n),null;case 31:if(n.memoizedState!==null){if(Ft(n),n.alternate===null)throw Error(o(340));Ia()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Ft(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Ia()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Z(tt),null;case 4:return Re(),null;case 10:return $n(n.type),null;case 22:case 23:return Ft(n),Fu(),t!==null&&Z(ti),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return $n(st),null;case 25:return null;default:return null}}function ag(t,n){switch(ku(n),n.tag){case 3:$n(st),Re();break;case 26:case 27:case 5:_n(n);break;case 4:Re();break;case 31:n.memoizedState!==null&&Ft(n);break;case 13:Ft(n);break;case 19:Z(tt);break;case 10:$n(n.type);break;case 22:case 23:Ft(n),Fu(),t!==null&&Z(ti);break;case 24:$n(st)}}function no(t,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var u=s.next;i=u;do{if((i.tag&t)===t){s=void 0;var d=i.create,g=i.inst;s=d(),g.destroy=s}i=i.next}while(i!==u)}}catch(b){De(n,n.return,b)}}function xa(t,n,i){try{var s=n.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var d=u.next;s=d;do{if((s.tag&t)===t){var g=s.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,u=n;var T=i,D=b;try{D()}catch(B){De(u,T,B)}}}s=s.next}while(s!==d)}}catch(B){De(n,n.return,B)}}function ig(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{Km(n,i)}catch(s){De(t,t.return,s)}}}function rg(t,n,i){i.props=oi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){De(t,n,s)}}function ao(t,n){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof i=="function"?t.refCleanup=i(s):i.current=s}}catch(u){De(t,n,u)}}function On(t,n){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(u){De(t,n,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){De(t,n,u)}else i.current=null}function og(t){var n=t.type,i=t.memoizedProps,s=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(u){De(t,t.return,u)}}function Cc(t,n,i){try{var s=t.stateNode;VT(s,t.type,i,n),s[Vt]=n}catch(u){De(t,t.return,u)}}function sg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ca(t.type)||t.tag===4}function Rc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||sg(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&&Ca(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Oc(t,n,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Un));else if(s!==4&&(s===27&&Ca(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(Oc(t,n,i),t=t.sibling;t!==null;)Oc(t,n,i),t=t.sibling}function Zs(t,n,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(s!==4&&(s===27&&Ca(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Zs(t,n,i),t=t.sibling;t!==null;)Zs(t,n,i),t=t.sibling}function lg(t){var n=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);_t(n,s,i),n[St]=t,n[Vt]=i}catch(d){De(t,t.return,d)}}var Xn=!1,ct=!1,Mc=!1,ug=typeof WeakSet=="function"?WeakSet:Set,yt=null;function pT(t,n){if(t=t.containerInfo,Ic=sl,t=xm(t),_u(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var u=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var g=0,b=-1,T=-1,D=0,B=0,$=t,N=null;t:for(;;){for(var k;$!==i||u!==0&&$.nodeType!==3||(b=g+u),$!==d||s!==0&&$.nodeType!==3||(T=g+s),$.nodeType===3&&(g+=$.nodeValue.length),(k=$.firstChild)!==null;)N=$,$=k;for(;;){if($===t)break t;if(N===i&&++D===u&&(b=g),N===d&&++B===s&&(T=g),(k=$.nextSibling)!==null)break;$=N,N=$.parentNode}$=k}i=b===-1||T===-1?null:{start:b,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(Wc={focusedElem:t,selectionRange:i},sl=!1,yt=n;yt!==null;)if(n=yt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,yt=t;else for(;yt!==null;){switch(n=yt,d=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)u=t[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&d!==null){t=void 0,i=n,u=d.memoizedProps,d=d.memoizedState,s=i.stateNode;try{var ee=oi(i.type,u);t=s.getSnapshotBeforeUpdate(ee,d),s.__reactInternalSnapshotBeforeUpdate=t}catch(ue){De(i,i.return,ue)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)nf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":nf(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(o(163))}if(t=n.sibling,t!==null){t.return=n.return,yt=t;break}yt=n.return}}function cg(t,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Qn(t,i),s&4&&no(5,i);break;case 1:if(Qn(t,i),s&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(g){De(i,i.return,g)}else{var u=oi(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(u,n,t.__reactInternalSnapshotBeforeUpdate)}catch(g){De(i,i.return,g)}}s&64&&ig(i),s&512&&ao(i,i.return);break;case 3:if(Qn(t,i),s&64&&(t=i.updateQueue,t!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Km(t,n)}catch(g){De(i,i.return,g)}}break;case 27:n===null&&s&4&&lg(i);case 26:case 5:Qn(t,i),n===null&&s&4&&og(i),s&512&&ao(i,i.return);break;case 12:Qn(t,i);break;case 31:Qn(t,i),s&4&&hg(t,i);break;case 13:Qn(t,i),s&4&&mg(t,i),s&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=_T.bind(null,i),qT(t,i))));break;case 22:if(s=i.memoizedState!==null||Xn,!s){n=n!==null&&n.memoizedState!==null||ct,u=Xn;var d=ct;Xn=s,(ct=n)&&!d?Fn(t,i,(i.subtreeFlags&8772)!==0):Qn(t,i),Xn=u,ct=d}break;case 30:break;default:Qn(t,i)}}function fg(t){var n=t.alternate;n!==null&&(t.alternate=null,fg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&su(n)),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 Ye=null,Lt=!1;function Kn(t,n,i){for(i=i.child;i!==null;)dg(t,n,i),i=i.sibling}function dg(t,n,i){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(zr,i)}catch{}switch(i.tag){case 26:ct||On(i,n),Kn(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ct||On(i,n);var s=Ye,u=Lt;Ca(i.type)&&(Ye=i.stateNode,Lt=!1),Kn(t,n,i),ho(i.stateNode),Ye=s,Lt=u;break;case 5:ct||On(i,n);case 6:if(s=Ye,u=Lt,Ye=null,Kn(t,n,i),Ye=s,Lt=u,Ye!==null)if(Lt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(i.stateNode)}catch(d){De(i,n,d)}else try{Ye.removeChild(i.stateNode)}catch(d){De(i,n,d)}break;case 18:Ye!==null&&(Lt?(t=Ye,iy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),nr(t)):iy(Ye,i.stateNode));break;case 4:s=Ye,u=Lt,Ye=i.stateNode.containerInfo,Lt=!0,Kn(t,n,i),Ye=s,Lt=u;break;case 0:case 11:case 14:case 15:xa(2,i,n),ct||xa(4,i,n),Kn(t,n,i);break;case 1:ct||(On(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&rg(i,n,s)),Kn(t,n,i);break;case 21:Kn(t,n,i);break;case 22:ct=(s=ct)||i.memoizedState!==null,Kn(t,n,i),ct=s;break;default:Kn(t,n,i)}}function hg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{nr(t)}catch(i){De(n,n.return,i)}}}function mg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{nr(t)}catch(i){De(n,n.return,i)}}function gT(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new ug),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new ug),n;default:throw Error(o(435,t.tag))}}function Hs(t,n){var i=gT(t);n.forEach(function(s){if(!i.has(s)){i.add(s);var u=wT.bind(null,t,s);s.then(u,u)}})}function Bt(t,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var u=i[s],d=t,g=n,b=g;e:for(;b!==null;){switch(b.tag){case 27:if(Ca(b.type)){Ye=b.stateNode,Lt=!1;break e}break;case 5:Ye=b.stateNode,Lt=!1;break e;case 3:case 4:Ye=b.stateNode.containerInfo,Lt=!0;break e}b=b.return}if(Ye===null)throw Error(o(160));dg(d,g,u),Ye=null,Lt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)pg(n,t),n=n.sibling}var bn=null;function pg(t,n){var i=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Bt(n,t),Zt(t),s&4&&(xa(3,t,t.return),no(3,t),xa(5,t,t.return));break;case 1:Bt(n,t),Zt(t),s&512&&(ct||i===null||On(i,i.return)),s&64&&Xn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var u=bn;if(Bt(n,t),Zt(t),s&512&&(ct||i===null||On(i,i.return)),s&4){var d=i!==null?i.memoizedState:null;if(s=t.memoizedState,i===null)if(s===null)if(t.stateNode===null){e:{s=t.type,i=t.memoizedProps,u=u.ownerDocument||u;t:switch(s){case"title":d=u.getElementsByTagName("title")[0],(!d||d[Or]||d[St]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(s),u.head.insertBefore(d,u.querySelector("head > title"))),_t(d,s,i),d[St]=t,gt(d),s=d;break e;case"link":var g=py("link","href",u).get(s+(i.href||""));if(g){for(var b=0;b<g.length;b++)if(d=g[b],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){g.splice(b,1);break t}}d=u.createElement(s),_t(d,s,i),u.head.appendChild(d);break;case"meta":if(g=py("meta","content",u).get(s+(i.content||""))){for(b=0;b<g.length;b++)if(d=g[b],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(b,1);break t}}d=u.createElement(s),_t(d,s,i),u.head.appendChild(d);break;default:throw Error(o(468,s))}d[St]=t,gt(d),s=d}t.stateNode=s}else gy(u,t.type,t.stateNode);else t.stateNode=my(u,s,t.memoizedProps);else d!==s?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,s===null?gy(u,t.type,t.stateNode):my(u,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Cc(t,t.memoizedProps,i.memoizedProps)}break;case 27:Bt(n,t),Zt(t),s&512&&(ct||i===null||On(i,i.return)),i!==null&&s&4&&Cc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Bt(n,t),Zt(t),s&512&&(ct||i===null||On(i,i.return)),t.flags&32){u=t.stateNode;try{wi(u,"")}catch(ee){De(t,t.return,ee)}}s&4&&t.stateNode!=null&&(u=t.memoizedProps,Cc(t,u,i!==null?i.memoizedProps:u)),s&1024&&(Mc=!0);break;case 6:if(Bt(n,t),Zt(t),s&4){if(t.stateNode===null)throw Error(o(162));s=t.memoizedProps,i=t.stateNode;try{i.nodeValue=s}catch(ee){De(t,t.return,ee)}}break;case 3:if(al=null,u=bn,bn=tl(n.containerInfo),Bt(n,t),bn=u,Zt(t),s&4&&i!==null&&i.memoizedState.isDehydrated)try{nr(n.containerInfo)}catch(ee){De(t,t.return,ee)}Mc&&(Mc=!1,gg(t));break;case 4:s=bn,bn=tl(t.stateNode.containerInfo),Bt(n,t),Zt(t),bn=s;break;case 12:Bt(n,t),Zt(t);break;case 31:Bt(n,t),Zt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Hs(t,s)));break;case 13:Bt(n,t),Zt(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Gs=Qe()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Hs(t,s)));break;case 22:u=t.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,D=Xn,B=ct;if(Xn=D||u,ct=B||T,Bt(n,t),ct=B,Xn=D,Zt(t),s&8192)e:for(n=t.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(i===null||T||Xn||ct||si(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){T=i=n;try{if(d=T.stateNode,u)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=T.stateNode;var $=T.memoizedProps.style,N=$!=null&&$.hasOwnProperty("display")?$.display:null;b.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(ee){De(T,T.return,ee)}}}else if(n.tag===6){if(i===null){T=n;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(ee){De(T,T.return,ee)}}}else if(n.tag===18){if(i===null){T=n;try{var k=T.stateNode;u?ry(k,!0):ry(T.stateNode,!1)}catch(ee){De(T,T.return,ee)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Hs(t,i))));break;case 19:Bt(n,t),Zt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Hs(t,s)));break;case 30:break;case 21:break;default:Bt(n,t),Zt(t)}}function Zt(t){var n=t.flags;if(n&2){try{for(var i,s=t.return;s!==null;){if(sg(s)){i=s;break}s=s.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,d=Rc(t);Zs(t,d,u);break;case 5:var g=i.stateNode;i.flags&32&&(wi(g,""),i.flags&=-33);var b=Rc(t);Zs(t,b,g);break;case 3:case 4:var T=i.stateNode.containerInfo,D=Rc(t);Oc(t,D,T);break;default:throw Error(o(161))}}catch(B){De(t,t.return,B)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function gg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;gg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Qn(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)cg(t,n.alternate,n),n=n.sibling}function si(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:xa(4,n,n.return),si(n);break;case 1:On(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&rg(n,n.return,i),si(n);break;case 27:ho(n.stateNode);case 26:case 5:On(n,n.return),si(n);break;case 22:n.memoizedState===null&&si(n);break;case 30:si(n);break;default:si(n)}t=t.sibling}}function Fn(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,u=t,d=n,g=d.flags;switch(d.tag){case 0:case 11:case 15:Fn(u,d,i),no(4,d);break;case 1:if(Fn(u,d,i),s=d,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(D){De(s,s.return,D)}if(s=d,u=s.updateQueue,u!==null){var b=s.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)Xm(T[u],b)}catch(D){De(s,s.return,D)}}i&&g&64&&ig(d),ao(d,d.return);break;case 27:lg(d);case 26:case 5:Fn(u,d,i),i&&s===null&&g&4&&og(d),ao(d,d.return);break;case 12:Fn(u,d,i);break;case 31:Fn(u,d,i),i&&g&4&&hg(u,d);break;case 13:Fn(u,d,i),i&&g&4&&mg(u,d);break;case 22:d.memoizedState===null&&Fn(u,d,i),ao(d,d.return);break;case 30:break;default:Fn(u,d,i)}n=n.sibling}}function Dc(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Gr(i))}function Nc(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Gr(t))}function Sn(t,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)yg(t,n,i,s),n=n.sibling}function yg(t,n,i,s){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(t,n,i,s),u&2048&&no(9,n);break;case 1:Sn(t,n,i,s);break;case 3:Sn(t,n,i,s),u&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Gr(t)));break;case 12:if(u&2048){Sn(t,n,i,s),t=n.stateNode;try{var d=n.memoizedProps,g=d.id,b=d.onPostCommit;typeof b=="function"&&b(g,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){De(n,n.return,T)}}else Sn(t,n,i,s);break;case 31:Sn(t,n,i,s);break;case 13:Sn(t,n,i,s);break;case 23:break;case 22:d=n.stateNode,g=n.alternate,n.memoizedState!==null?d._visibility&2?Sn(t,n,i,s):io(t,n):d._visibility&2?Sn(t,n,i,s):(d._visibility|=2,Yi(t,n,i,s,(n.subtreeFlags&10256)!==0||!1)),u&2048&&Dc(g,n);break;case 24:Sn(t,n,i,s),u&2048&&Nc(n.alternate,n);break;default:Sn(t,n,i,s)}}function Yi(t,n,i,s,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=t,g=n,b=i,T=s,D=g.flags;switch(g.tag){case 0:case 11:case 15:Yi(d,g,b,T,u),no(8,g);break;case 23:break;case 22:var B=g.stateNode;g.memoizedState!==null?B._visibility&2?Yi(d,g,b,T,u):io(d,g):(B._visibility|=2,Yi(d,g,b,T,u)),u&&D&2048&&Dc(g.alternate,g);break;case 24:Yi(d,g,b,T,u),u&&D&2048&&Nc(g.alternate,g);break;default:Yi(d,g,b,T,u)}n=n.sibling}}function io(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,s=n,u=s.flags;switch(s.tag){case 22:io(i,s),u&2048&&Dc(s.alternate,s);break;case 24:io(i,s),u&2048&&Nc(s.alternate,s);break;default:io(i,s)}n=n.sibling}}var ro=8192;function Pi(t,n,i){if(t.subtreeFlags&ro)for(t=t.child;t!==null;)vg(t,n,i),t=t.sibling}function vg(t,n,i){switch(t.tag){case 26:Pi(t,n,i),t.flags&ro&&t.memoizedState!==null&&nE(i,bn,t.memoizedState,t.memoizedProps);break;case 5:Pi(t,n,i);break;case 3:case 4:var s=bn;bn=tl(t.stateNode.containerInfo),Pi(t,n,i),bn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=ro,ro=16777216,Pi(t,n,i),ro=s):Pi(t,n,i));break;default:Pi(t,n,i)}}function bg(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function oo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];yt=s,xg(s,t)}bg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sg(t),t=t.sibling}function Sg(t){switch(t.tag){case 0:case 11:case 15:oo(t),t.flags&2048&&xa(9,t,t.return);break;case 3:oo(t);break;case 12:oo(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,$s(t)):oo(t);break;default:oo(t)}}function $s(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];yt=s,xg(s,t)}bg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:xa(8,n,n.return),$s(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,$s(n));break;default:$s(n)}t=t.sibling}}function xg(t,n){for(;yt!==null;){var i=yt;switch(i.tag){case 0:case 11:case 15:xa(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Gr(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,yt=s;else e:for(i=t;yt!==null;){s=yt;var u=s.sibling,d=s.return;if(fg(s),s===i){yt=null;break e}if(u!==null){u.return=d,yt=u;break e}yt=d}}}var yT={getCacheForType:function(t){var n=Tt(st),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return Tt(st).controller.signal}},vT=typeof WeakMap=="function"?WeakMap:Map,ze=0,Be=null,ye=null,be=0,Me=0,Jt=null,Ta=!1,Xi=!1,jc=!1,Jn=0,We=0,Ea=0,li=0,kc=0,It=0,Ki=0,so=null,Ht=null,Vc=!1,Gs=0,Tg=0,qs=1/0,Ys=null,_a=null,ht=0,wa=null,Qi=null,In=0,Uc=0,Lc=null,Eg=null,lo=0,Bc=null;function Wt(){return(ze&2)!==0&&be!==0?be&-be:U.T!==null?Yc():Bh()}function _g(){if(It===0)if((be&536870912)===0||Te){var t=Wo;Wo<<=1,(Wo&3932160)===0&&(Wo=262144),It=t}else It=536870912;return t=Qt.current,t!==null&&(t.flags|=32),It}function $t(t,n,i){(t===Be&&(Me===2||Me===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),Aa(t,be,It,!1)),Rr(t,i),((ze&2)===0||t!==Be)&&(t===Be&&((ze&2)===0&&(li|=i),We===4&&Aa(t,be,It,!1)),Mn(t))}function wg(t,n,i){if((ze&6)!==0)throw Error(o(327));var s=!i&&(n&127)===0&&(n&t.expiredLanes)===0||Cr(t,n),u=s?xT(t,n):Hc(t,n,!0),d=s;do{if(u===0){Xi&&!s&&Aa(t,n,0,!1);break}else{if(i=t.current.alternate,d&&!bT(i)){u=Hc(t,n,!1),d=!1;continue}if(u===2){if(d=n,t.errorRecoveryDisabledLanes&d)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var b=t;u=so;var T=b.current.memoizedState.isDehydrated;if(T&&(Fi(b,g).flags|=256),g=Hc(b,g,!1),g!==2){if(jc&&!T){b.errorRecoveryDisabledLanes|=d,li|=d,u=4;break e}d=Ht,Ht=u,d!==null&&(Ht===null?Ht=d:Ht.push.apply(Ht,d))}u=g}if(d=!1,u!==2)continue}}if(u===1){Fi(t,0),Aa(t,n,0,!0);break}e:{switch(s=t,d=u,d){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:Aa(s,n,It,!Ta);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(u=Gs+300-Qe(),10<u)){if(Aa(s,n,It,!Ta),ts(s,0,!0)!==0)break e;In=n,s.timeoutHandle=ny(Ag.bind(null,s,i,Ht,Ys,Vc,n,It,li,Ki,Ta,d,"Throttled",-0,0),u);break e}Ag(s,i,Ht,Ys,Vc,n,It,li,Ki,Ta,d,null,-0,0)}}break}while(!0);Mn(t)}function Ag(t,n,i,s,u,d,g,b,T,D,B,$,N,k){if(t.timeoutHandle=-1,$=n.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},vg(n,d,$);var ee=(d&62914560)===d?Gs-Qe():(d&4194048)===d?Tg-Qe():0;if(ee=aE($,ee),ee!==null){In=d,t.cancelPendingCommit=ee(jg.bind(null,t,n,d,i,s,u,g,b,T,B,$,null,N,k)),Aa(t,d,g,!D);return}}jg(t,n,d,i,s,u,g,b,T)}function bT(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var u=i[s],d=u.getSnapshot;u=u.value;try{if(!Xt(d(),u))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Aa(t,n,i,s){n&=~kc,n&=~li,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var u=n;0<u;){var d=31-Pt(u),g=1<<d;s[d]=-1,u&=~g}i!==0&&Vh(t,i,n)}function Ps(){return(ze&6)===0?(uo(0),!1):!0}function Zc(){if(ye!==null){if(Me===0)var t=ye.return;else t=ye,Hn=Wa=null,nc(t),Zi=null,Yr=0,t=ye;for(;t!==null;)ag(t.alternate,t),t=t.return;ye=null}}function Fi(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,BT(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),In=0,Zc(),Be=t,ye=i=Bn(t.current,null),be=n,Me=0,Jt=null,Ta=!1,Xi=Cr(t,n),jc=!1,Ki=It=kc=li=Ea=We=0,Ht=so=null,Vc=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var u=31-Pt(s),d=1<<u;n|=t[u],s&=~d}return Jn=n,hs(),i}function zg(t,n){he=null,U.H=Wr,n===Bi||n===xs?(n=Gm(),Me=3):n===qu?(n=Gm(),Me=4):Me=n===vc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Jt=n,ye===null&&(We=1,ks(t,rn(n,t.current)))}function Cg(){var t=Qt.current;return t===null?!0:(be&4194048)===be?un===null:(be&62914560)===be||(be&536870912)!==0?t===un:!1}function Rg(){var t=U.H;return U.H=Wr,t===null?Wr:t}function Og(){var t=U.A;return U.A=yT,t}function Xs(){We=4,Ta||(be&4194048)!==be&&Qt.current!==null||(Xi=!0),(Ea&134217727)===0&&(li&134217727)===0||Be===null||Aa(Be,be,It,!1)}function Hc(t,n,i){var s=ze;ze|=2;var u=Rg(),d=Og();(Be!==t||be!==n)&&(Ys=null,Fi(t,n)),n=!1;var g=We;e:do try{if(Me!==0&&ye!==null){var b=ye,T=Jt;switch(Me){case 8:Zc(),g=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(n=!0);var D=Me;if(Me=0,Jt=null,Ji(t,b,T,D),i&&Xi){g=0;break e}break;default:D=Me,Me=0,Jt=null,Ji(t,b,T,D)}}ST(),g=We;break}catch(B){zg(t,B)}while(!0);return n&&t.shellSuspendCounter++,Hn=Wa=null,ze=s,U.H=u,U.A=d,ye===null&&(Be=null,be=0,hs()),g}function ST(){for(;ye!==null;)Mg(ye)}function xT(t,n){var i=ze;ze|=2;var s=Rg(),u=Og();Be!==t||be!==n?(Ys=null,qs=Qe()+500,Fi(t,n)):Xi=Cr(t,n);e:do try{if(Me!==0&&ye!==null){n=ye;var d=Jt;t:switch(Me){case 1:Me=0,Jt=null,Ji(t,n,d,1);break;case 2:case 9:if(Hm(d)){Me=0,Jt=null,Dg(n);break}n=function(){Me!==2&&Me!==9||Be!==t||(Me=7),Mn(t)},d.then(n,n);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Hm(d)?(Me=0,Jt=null,Dg(n)):(Me=0,Jt=null,Ji(t,n,d,7));break;case 5:var g=null;switch(ye.tag){case 26:g=ye.memoizedState;case 5:case 27:var b=ye;if(g?yy(g):b.stateNode.complete){Me=0,Jt=null;var T=b.sibling;if(T!==null)ye=T;else{var D=b.return;D!==null?(ye=D,Ks(D)):ye=null}break t}}Me=0,Jt=null,Ji(t,n,d,5);break;case 6:Me=0,Jt=null,Ji(t,n,d,6);break;case 8:Zc(),We=6;break e;default:throw Error(o(462))}}TT();break}catch(B){zg(t,B)}while(!0);return Hn=Wa=null,U.H=s,U.A=u,ze=i,ye!==null?0:(Be=null,be=0,hs(),We)}function TT(){for(;ye!==null&&!dt();)Mg(ye)}function Mg(t){var n=tg(t.alternate,t,Jn);t.memoizedProps=t.pendingProps,n===null?Ks(t):ye=n}function Dg(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=Qp(i,n,n.pendingProps,n.type,void 0,be);break;case 11:n=Qp(i,n,n.pendingProps,n.type.render,n.ref,be);break;case 5:nc(n);default:ag(i,n),n=ye=Om(n,Jn),n=tg(i,n,Jn)}t.memoizedProps=t.pendingProps,n===null?Ks(t):ye=n}function Ji(t,n,i,s){Hn=Wa=null,nc(n),Zi=null,Yr=0;var u=n.return;try{if(cT(t,u,n,i,be)){We=1,ks(t,rn(i,t.current)),ye=null;return}}catch(d){if(u!==null)throw ye=u,d;We=1,ks(t,rn(i,t.current)),ye=null;return}n.flags&32768?(Te||s===1?t=!0:Xi||(be&536870912)!==0?t=!1:(Ta=t=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),Ng(n,t)):Ks(n)}function Ks(t){var n=t;do{if((n.flags&32768)!==0){Ng(n,Ta);return}t=n.return;var i=hT(n.alternate,n,Jn);if(i!==null){ye=i;return}if(n=n.sibling,n!==null){ye=n;return}ye=n=t}while(n!==null);We===0&&(We=5)}function Ng(t,n){do{var i=mT(t.alternate,t);if(i!==null){i.flags&=32767,ye=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){ye=t;return}ye=t=i}while(t!==null);We=6,ye=null}function jg(t,n,i,s,u,d,g,b,T){t.cancelPendingCommit=null;do Qs();while(ht!==0);if((ze&6)!==0)throw Error(o(327));if(n!==null){if(n===t.current)throw Error(o(177));if(d=n.lanes|n.childLanes,d|=Ru,tx(t,i,d,g,b,T),t===Be&&(ye=Be=null,be=0),Qi=n,wa=t,In=i,Uc=d,Lc=u,Eg=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,AT(bt,function(){return Bg(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,u=X.p,X.p=2,g=ze,ze|=4;try{pT(t,n,i)}finally{ze=g,X.p=u,U.T=s}}ht=1,kg(),Vg(),Ug()}}function kg(){if(ht===1){ht=0;var t=wa,n=Qi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var s=X.p;X.p=2;var u=ze;ze|=4;try{pg(n,t);var d=Wc,g=xm(t.containerInfo),b=d.focusedElem,T=d.selectionRange;if(g!==b&&b&&b.ownerDocument&&Sm(b.ownerDocument.documentElement,b)){if(T!==null&&_u(b)){var D=T.start,B=T.end;if(B===void 0&&(B=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(B,b.value.length);else{var $=b.ownerDocument||document,N=$&&$.defaultView||window;if(N.getSelection){var k=N.getSelection(),ee=b.textContent.length,ue=Math.min(T.start,ee),Le=T.end===void 0?ue:Math.min(T.end,ee);!k.extend&&ue>Le&&(g=Le,Le=ue,ue=g);var z=bm(b,ue),_=bm(b,Le);if(z&&_&&(k.rangeCount!==1||k.anchorNode!==z.node||k.anchorOffset!==z.offset||k.focusNode!==_.node||k.focusOffset!==_.offset)){var M=$.createRange();M.setStart(z.node,z.offset),k.removeAllRanges(),ue>Le?(k.addRange(M),k.extend(_.node,_.offset)):(M.setEnd(_.node,_.offset),k.addRange(M))}}}}for($=[],k=b;k=k.parentNode;)k.nodeType===1&&$.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var H=$[b];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}sl=!!Ic,Wc=Ic=null}finally{ze=u,X.p=s,U.T=i}}t.current=n,ht=2}}function Vg(){if(ht===2){ht=0;var t=wa,n=Qi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var s=X.p;X.p=2;var u=ze;ze|=4;try{cg(t,n.alternate,n)}finally{ze=u,X.p=s,U.T=i}}ht=3}}function Ug(){if(ht===4||ht===3){ht=0,vt();var t=wa,n=Qi,i=In,s=Eg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Qi=wa=null,Lg(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(_a=null),ru(i),n=n.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(zr,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=U.T,u=X.p,X.p=2,U.T=null;try{for(var d=t.onRecoverableError,g=0;g<s.length;g++){var b=s[g];d(b.value,{componentStack:b.stack})}}finally{U.T=n,X.p=u}}(In&3)!==0&&Qs(),Mn(t),u=t.pendingLanes,(i&261930)!==0&&(u&42)!==0?t===Bc?lo++:(lo=0,Bc=t):lo=0,uo(0)}}function Lg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Gr(n)))}function Qs(){return kg(),Vg(),Ug(),Bg()}function Bg(){if(ht!==5)return!1;var t=wa,n=Uc;Uc=0;var i=ru(In),s=U.T,u=X.p;try{X.p=32>i?32:i,U.T=null,i=Lc,Lc=null;var d=wa,g=In;if(ht=0,Qi=wa=null,In=0,(ze&6)!==0)throw Error(o(331));var b=ze;if(ze|=4,Sg(d.current),yg(d,d.current,g,i),ze=b,uo(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(zr,d)}catch{}return!0}finally{X.p=u,U.T=s,Lg(t,n)}}function Zg(t,n,i){n=rn(i,n),n=yc(t.stateNode,n,2),t=va(t,n,2),t!==null&&(Rr(t,2),Mn(t))}function De(t,n,i){if(t.tag===3)Zg(t,t,i);else for(;n!==null;){if(n.tag===3){Zg(n,t,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(_a===null||!_a.has(s))){t=rn(i,t),i=Hp(2),s=va(n,i,2),s!==null&&($p(i,s,n,t),Rr(s,2),Mn(s));break}}n=n.return}}function $c(t,n,i){var s=t.pingCache;if(s===null){s=t.pingCache=new vT;var u=new Set;s.set(n,u)}else u=s.get(n),u===void 0&&(u=new Set,s.set(n,u));u.has(i)||(jc=!0,u.add(i),t=ET.bind(null,t,n,i),n.then(t,t))}function ET(t,n,i){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Be===t&&(be&i)===i&&(We===4||We===3&&(be&62914560)===be&&300>Qe()-Gs?(ze&2)===0&&Fi(t,0):kc|=i,Ki===be&&(Ki=0)),Mn(t)}function Hg(t,n){n===0&&(n=kh()),t=Fa(t,n),t!==null&&(Rr(t,n),Mn(t))}function _T(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Hg(t,i)}function wT(t,n){var i=0;switch(t.tag){case 31:case 13:var s=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(n),Hg(t,i)}function AT(t,n){return Mt(t,n)}var Fs=null,Ii=null,Gc=!1,Js=!1,qc=!1,za=0;function Mn(t){t!==Ii&&t.next===null&&(Ii===null?Fs=Ii=t:Ii=Ii.next=t),Js=!0,Gc||(Gc=!0,CT())}function uo(t,n){if(!qc&&Js){qc=!0;do for(var i=!1,s=Fs;s!==null;){if(t!==0){var u=s.pendingLanes;if(u===0)var d=0;else{var g=s.suspendedLanes,b=s.pingedLanes;d=(1<<31-Pt(42|t)+1)-1,d&=u&~(g&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Yg(s,d))}else d=be,d=ts(s,s===Be?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||Cr(s,d)||(i=!0,Yg(s,d));s=s.next}while(i);qc=!1}}function zT(){$g()}function $g(){Js=Gc=!1;var t=0;za!==0&<()&&(t=za);for(var n=Qe(),i=null,s=Fs;s!==null;){var u=s.next,d=Gg(s,n);d===0?(s.next=null,i===null?Fs=u:i.next=u,u===null&&(Ii=i)):(i=s,(t!==0||(d&3)!==0)&&(Js=!0)),s=u}ht!==0&&ht!==5||uo(t),za!==0&&(za=0)}function Gg(t,n){for(var i=t.suspendedLanes,s=t.pingedLanes,u=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var g=31-Pt(d),b=1<<g,T=u[g];T===-1?((b&i)===0||(b&s)!==0)&&(u[g]=ex(b,n)):T<=n&&(t.expiredLanes|=b),d&=~b}if(n=Be,i=be,i=ts(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,i===0||t===n&&(Me===2||Me===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&zn(s),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Cr(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(s!==null&&zn(s),ru(i)){case 2:case 8:i=wr;break;case 32:i=bt;break;case 268435456:i=vi;break;default:i=bt}return s=qg.bind(null,t),i=Mt(i,s),t.callbackPriority=n,t.callbackNode=i,n}return s!==null&&s!==null&&zn(s),t.callbackPriority=2,t.callbackNode=null,2}function qg(t,n){if(ht!==0&&ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Qs()&&t.callbackNode!==i)return null;var s=be;return s=ts(t,t===Be?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(wg(t,s,n),Gg(t,Qe()),t.callbackNode!=null&&t.callbackNode===i?qg.bind(null,t):null)}function Yg(t,n){if(Qs())return null;wg(t,n,!0)}function CT(){ZT(function(){(ze&6)!==0?Mt(_r,zT):$g()})}function Yc(){if(za===0){var t=Ui;t===0&&(t=Io,Io<<=1,(Io&261888)===0&&(Io=256)),za=t}return za}function Pg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:rs(""+t)}function Xg(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function RT(t,n,i,s,u){if(n==="submit"&&i&&i.stateNode===u){var d=Pg((u[Vt]||null).action),g=s.submitter;g&&(n=(n=g[Vt]||null)?Pg(n.formAction):g.getAttribute("formAction"),n!==null&&(d=n,g=null));var b=new us("action","action",null,s,u);t.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(za!==0){var T=g?Xg(u,g):new FormData(u);fc(i,{pending:!0,data:T,method:u.method,action:d},null,T)}}else typeof d=="function"&&(b.preventDefault(),T=g?Xg(u,g):new FormData(u),fc(i,{pending:!0,data:T,method:u.method,action:d},d,T))},currentTarget:u}]})}}for(var Pc=0;Pc<Cu.length;Pc++){var Xc=Cu[Pc],OT=Xc.toLowerCase(),MT=Xc[0].toUpperCase()+Xc.slice(1);vn(OT,"on"+MT)}vn(_m,"onAnimationEnd"),vn(wm,"onAnimationIteration"),vn(Am,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(Xx,"onTransitionRun"),vn(Kx,"onTransitionStart"),vn(Qx,"onTransitionCancel"),vn(zm,"onTransitionEnd"),Ei("onMouseEnter",["mouseout","mouseover"]),Ei("onMouseLeave",["mouseout","mouseover"]),Ei("onPointerEnter",["pointerout","pointerover"]),Ei("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var co="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(" "),DT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(co));function Kg(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var s=t[i],u=s.event;s=s.listeners;e:{var d=void 0;if(n)for(var g=s.length-1;0<=g;g--){var b=s[g],T=b.instance,D=b.currentTarget;if(b=b.listener,T!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=D;try{d(u)}catch(B){ds(B)}u.currentTarget=null,d=T}else for(g=0;g<s.length;g++){if(b=s[g],T=b.instance,D=b.currentTarget,b=b.listener,T!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=D;try{d(u)}catch(B){ds(B)}u.currentTarget=null,d=T}}}}function ve(t,n){var i=n[ou];i===void 0&&(i=n[ou]=new Set);var s=t+"__bubble";i.has(s)||(Qg(n,t,2,!1),i.add(s))}function Kc(t,n,i){var s=0;n&&(s|=4),Qg(i,t,s,n)}var Is="_reactListening"+Math.random().toString(36).slice(2);function Qc(t){if(!t[Is]){t[Is]=!0,$h.forEach(function(i){i!=="selectionchange"&&(DT.has(i)||Kc(i,!1,t),Kc(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Is]||(n[Is]=!0,Kc("selectionchange",!1,n))}}function Qg(t,n,i,s){switch(_y(n)){case 2:var u=oE;break;case 8:u=sE;break;default:u=ff}i=u.bind(null,n,i,t),u=void 0,!pu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),s?u!==void 0?t.addEventListener(n,i,{capture:!0,passive:u}):t.addEventListener(n,i,!0):u!==void 0?t.addEventListener(n,i,{passive:u}):t.addEventListener(n,i,!1)}function Fc(t,n,i,s,u){var d=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var g=s.tag;if(g===3||g===4){var b=s.stateNode.containerInfo;if(b===u)break;if(g===4)for(g=s.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;b!==null;){if(g=Si(b),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){s=d=g;continue e}b=b.parentNode}}s=s.return}em(function(){var D=d,B=hu(i),$=[];e:{var N=Cm.get(t);if(N!==void 0){var k=us,ee=t;switch(t){case"keypress":if(ss(i)===0)break e;case"keydown":case"keyup":k=wx;break;case"focusin":ee="focus",k=bu;break;case"focusout":ee="blur",k=bu;break;case"beforeblur":case"afterblur":k=bu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=hx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Cx;break;case _m:case wm:case Am:k=gx;break;case zm:k=Ox;break;case"scroll":case"scrollend":k=fx;break;case"wheel":k=Dx;break;case"copy":case"cut":case"paste":k=vx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=rm;break;case"toggle":case"beforetoggle":k=jx}var ue=(n&4)!==0,Le=!ue&&(t==="scroll"||t==="scrollend"),z=ue?N!==null?N+"Capture":null:N;ue=[];for(var _=D,M;_!==null;){var H=_;if(M=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||M===null||z===null||(H=Dr(_,z),H!=null&&ue.push(fo(_,H,M))),Le)break;_=_.return}0<ue.length&&(N=new k(N,ee,null,i,B),$.push({event:N,listeners:ue}))}}if((n&7)===0){e:{if(N=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",N&&i!==du&&(ee=i.relatedTarget||i.fromElement)&&(Si(ee)||ee[bi]))break e;if((k||N)&&(N=B.window===B?B:(N=B.ownerDocument)?N.defaultView||N.parentWindow:window,k?(ee=i.relatedTarget||i.toElement,k=D,ee=ee?Si(ee):null,ee!==null&&(Le=f(ee),ue=ee.tag,ee!==Le||ue!==5&&ue!==27&&ue!==6)&&(ee=null)):(k=null,ee=D),k!==ee)){if(ue=am,H="onMouseLeave",z="onMouseEnter",_="mouse",(t==="pointerout"||t==="pointerover")&&(ue=rm,H="onPointerLeave",z="onPointerEnter",_="pointer"),Le=k==null?N:Mr(k),M=ee==null?N:Mr(ee),N=new ue(H,_+"leave",k,i,B),N.target=Le,N.relatedTarget=M,H=null,Si(B)===D&&(ue=new ue(z,_+"enter",ee,i,B),ue.target=M,ue.relatedTarget=Le,H=ue),Le=H,k&&ee)t:{for(ue=NT,z=k,_=ee,M=0,H=z;H;H=ue(H))M++;H=0;for(var oe=_;oe;oe=ue(oe))H++;for(;0<M-H;)z=ue(z),M--;for(;0<H-M;)_=ue(_),H--;for(;M--;){if(z===_||_!==null&&z===_.alternate){ue=z;break t}z=ue(z),_=ue(_)}ue=null}else ue=null;k!==null&&Fg($,N,k,ue,!1),ee!==null&&Le!==null&&Fg($,Le,ee,ue,!0)}}e:{if(N=D?Mr(D):window,k=N.nodeName&&N.nodeName.toLowerCase(),k==="select"||k==="input"&&N.type==="file")var _e=hm;else if(fm(N))if(mm)_e=qx;else{_e=$x;var ie=Hx}else k=N.nodeName,!k||k.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?D&&fu(D.elementType)&&(_e=hm):_e=Gx;if(_e&&(_e=_e(t,D))){dm($,_e,i,B);break e}ie&&ie(t,N,D),t==="focusout"&&D&&N.type==="number"&&D.memoizedProps.value!=null&&cu(N,"number",N.value)}switch(ie=D?Mr(D):window,t){case"focusin":(fm(ie)||ie.contentEditable==="true")&&(Ri=ie,wu=D,Zr=null);break;case"focusout":Zr=wu=Ri=null;break;case"mousedown":Au=!0;break;case"contextmenu":case"mouseup":case"dragend":Au=!1,Tm($,i,B);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":Tm($,i,B)}var me;if(xu)e:{switch(t){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Ci?um(t,i)&&(Se="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Se="onCompositionStart");Se&&(om&&i.locale!=="ko"&&(Ci||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Ci&&(me=tm()):(fa=B,gu="value"in fa?fa.value:fa.textContent,Ci=!0)),ie=Ws(D,Se),0<ie.length&&(Se=new im(Se,t,null,i,B),$.push({event:Se,listeners:ie}),me?Se.data=me:(me=cm(i),me!==null&&(Se.data=me)))),(me=Vx?Ux(t,i):Lx(t,i))&&(Se=Ws(D,"onBeforeInput"),0<Se.length&&(ie=new im("onBeforeInput","beforeinput",null,i,B),$.push({event:ie,listeners:Se}),ie.data=me)),RT($,t,D,i,B)}Kg($,n)})}function fo(t,n,i){return{instance:t,listener:n,currentTarget:i}}function Ws(t,n){for(var i=n+"Capture",s=[];t!==null;){var u=t,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Dr(t,i),u!=null&&s.unshift(fo(t,u,d)),u=Dr(t,n),u!=null&&s.push(fo(t,u,d))),t.tag===3)return s;t=t.return}return[]}function NT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Fg(t,n,i,s,u){for(var d=n._reactName,g=[];i!==null&&i!==s;){var b=i,T=b.alternate,D=b.stateNode;if(b=b.tag,T!==null&&T===s)break;b!==5&&b!==26&&b!==27||D===null||(T=D,u?(D=Dr(i,d),D!=null&&g.unshift(fo(i,D,T))):u||(D=Dr(i,d),D!=null&&g.push(fo(i,D,T)))),i=i.return}g.length!==0&&t.push({event:n,listeners:g})}var jT=/\r\n?/g,kT=/\u0000|\uFFFD/g;function Jg(t){return(typeof t=="string"?t:""+t).replace(jT,`
|
|
9
|
-
`).replace(kT,"")}function Ig(t,n){return n=Jg(n),Jg(t)===n}function Ue(t,n,i,s,u,d){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||wi(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&wi(t,""+s);break;case"className":as(t,"class",s);break;case"tabIndex":as(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":as(t,i,s);break;case"style":Ih(t,s,d);break;case"data":if(n!=="object"){as(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=rs(""+s),t.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(i,"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 d=="function"&&(i==="formAction"?(n!=="input"&&Ue(t,n,"name",u.name,u,null),Ue(t,n,"formEncType",u.formEncType,u,null),Ue(t,n,"formMethod",u.formMethod,u,null),Ue(t,n,"formTarget",u.formTarget,u,null)):(Ue(t,n,"encType",u.encType,u,null),Ue(t,n,"method",u.method,u,null),Ue(t,n,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=rs(""+s),t.setAttribute(i,s);break;case"onClick":s!=null&&(t.onclick=Un);break;case"onScroll":s!=null&&ve("scroll",t);break;case"onScrollEnd":s!=null&&ve("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}i=rs(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""+s):t.removeAttribute(i);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":s===!0?t.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,s):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(i,s):t.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(i):t.setAttribute(i,s);break;case"popover":ve("beforetoggle",t),ve("toggle",t),ns(t,"popover",s);break;case"xlinkActuate":Vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Vn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Vn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Vn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Vn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ns(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=ux.get(i)||i,ns(t,i,s))}}function Jc(t,n,i,s,u,d){switch(i){case"style":Ih(t,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof s=="string"?wi(t,s):(typeof s=="number"||typeof s=="bigint")&&wi(t,""+s);break;case"onScroll":s!=null&&ve("scroll",t);break;case"onScrollEnd":s!=null&&ve("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),n=i.slice(2,u?i.length-7:void 0),d=t[Vt]||null,d=d!=null?d[i]:null,typeof d=="function"&&t.removeEventListener(n,d,u),typeof s=="function")){typeof d!="function"&&d!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,s,u);break e}i in t?t[i]=s:s===!0?t.setAttribute(i,""):ns(t,i,s)}}}function _t(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",t),ve("load",t);var s=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var g=i[d];if(g!=null)switch(d){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ue(t,n,d,g,i,null)}}u&&Ue(t,n,"srcSet",i.srcSet,i,null),s&&Ue(t,n,"src",i.src,i,null);return;case"input":ve("invalid",t);var b=d=g=u=null,T=null,D=null;for(s in i)if(i.hasOwnProperty(s)){var B=i[s];if(B!=null)switch(s){case"name":u=B;break;case"type":g=B;break;case"checked":T=B;break;case"defaultChecked":D=B;break;case"value":d=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,n));break;default:Ue(t,n,s,B,i,null)}}Kh(t,d,b,T,D,g,u,!1);return;case"select":ve("invalid",t),s=g=d=null;for(u in i)if(i.hasOwnProperty(u)&&(b=i[u],b!=null))switch(u){case"value":d=b;break;case"defaultValue":g=b;break;case"multiple":s=b;default:Ue(t,n,u,b,i,null)}n=d,i=g,t.multiple=!!s,n!=null?_i(t,!!s,n,!1):i!=null&&_i(t,!!s,i,!0);return;case"textarea":ve("invalid",t),d=u=s=null;for(g in i)if(i.hasOwnProperty(g)&&(b=i[g],b!=null))switch(g){case"value":s=b;break;case"defaultValue":u=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Ue(t,n,g,b,i,null)}Fh(t,s,u,d);return;case"option":for(T in i)i.hasOwnProperty(T)&&(s=i[T],s!=null)&&(T==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":Ue(t,n,T,s,i,null));return;case"dialog":ve("beforetoggle",t),ve("toggle",t),ve("cancel",t),ve("close",t);break;case"iframe":case"object":ve("load",t);break;case"video":case"audio":for(s=0;s<co.length;s++)ve(co[s],t);break;case"image":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"embed":case"source":case"link":ve("error",t),ve("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(D in i)if(i.hasOwnProperty(D)&&(s=i[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ue(t,n,D,s,i,null)}return;default:if(fu(n)){for(B in i)i.hasOwnProperty(B)&&(s=i[B],s!==void 0&&Jc(t,n,B,s,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(s=i[b],s!=null&&Ue(t,n,b,s,i,null))}function VT(t,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,g=null,b=null,T=null,D=null,B=null;for(k in i){var $=i[k];if(i.hasOwnProperty(k)&&$!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":T=$;default:s.hasOwnProperty(k)||Ue(t,n,k,null,s,$)}}for(var N in s){var k=s[N];if($=i[N],s.hasOwnProperty(N)&&(k!=null||$!=null))switch(N){case"type":d=k;break;case"name":u=k;break;case"checked":D=k;break;case"defaultChecked":B=k;break;case"value":g=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,n));break;default:k!==$&&Ue(t,n,N,k,s,$)}}uu(t,g,b,T,D,B,d,u);return;case"select":k=g=b=N=null;for(d in i)if(T=i[d],i.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":k=T;default:s.hasOwnProperty(d)||Ue(t,n,d,null,s,T)}for(u in s)if(d=s[u],T=i[u],s.hasOwnProperty(u)&&(d!=null||T!=null))switch(u){case"value":N=d;break;case"defaultValue":b=d;break;case"multiple":g=d;default:d!==T&&Ue(t,n,u,d,s,T)}n=b,i=g,s=k,N!=null?_i(t,!!i,N,!1):!!s!=!!i&&(n!=null?_i(t,!!i,n,!0):_i(t,!!i,i?[]:"",!1));return;case"textarea":k=N=null;for(b in i)if(u=i[b],i.hasOwnProperty(b)&&u!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ue(t,n,b,null,s,u)}for(g in s)if(u=s[g],d=i[g],s.hasOwnProperty(g)&&(u!=null||d!=null))switch(g){case"value":N=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==d&&Ue(t,n,g,u,s,d)}Qh(t,N,k);return;case"option":for(var ee in i)N=i[ee],i.hasOwnProperty(ee)&&N!=null&&!s.hasOwnProperty(ee)&&(ee==="selected"?t.selected=!1:Ue(t,n,ee,null,s,N));for(T in s)N=s[T],k=i[T],s.hasOwnProperty(T)&&N!==k&&(N!=null||k!=null)&&(T==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":Ue(t,n,T,N,s,k));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 ue in i)N=i[ue],i.hasOwnProperty(ue)&&N!=null&&!s.hasOwnProperty(ue)&&Ue(t,n,ue,null,s,N);for(D in s)if(N=s[D],k=i[D],s.hasOwnProperty(D)&&N!==k&&(N!=null||k!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,n));break;default:Ue(t,n,D,N,s,k)}return;default:if(fu(n)){for(var Le in i)N=i[Le],i.hasOwnProperty(Le)&&N!==void 0&&!s.hasOwnProperty(Le)&&Jc(t,n,Le,void 0,s,N);for(B in s)N=s[B],k=i[B],!s.hasOwnProperty(B)||N===k||N===void 0&&k===void 0||Jc(t,n,B,N,s,k);return}}for(var z in i)N=i[z],i.hasOwnProperty(z)&&N!=null&&!s.hasOwnProperty(z)&&Ue(t,n,z,null,s,N);for($ in s)N=s[$],k=i[$],!s.hasOwnProperty($)||N===k||N==null&&k==null||Ue(t,n,$,N,s,k)}function Wg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var u=i[s],d=u.transferSize,g=u.initiatorType,b=u.duration;if(d&&b&&Wg(g)){for(g=0,b=u.responseEnd,s+=1;s<i.length;s++){var T=i[s],D=T.startTime;if(D>b)break;var B=T.transferSize,$=T.initiatorType;B&&Wg($)&&(T=T.responseEnd,g+=B*(T<b?1:(b-D)/(T-D)))}if(--s,n+=8*(d+g)/(u.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ic=null,Wc=null;function el(t){return t.nodeType===9?t:t.ownerDocument}function ey(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 ty(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function ef(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var tf=null;function LT(){var t=window.event;return t&&t.type==="popstate"?t===tf?!1:(tf=t,!0):(tf=null,!1)}var ny=typeof setTimeout=="function"?setTimeout:void 0,BT=typeof clearTimeout=="function"?clearTimeout:void 0,ay=typeof Promise=="function"?Promise:void 0,ZT=typeof queueMicrotask=="function"?queueMicrotask:typeof ay<"u"?function(t){return ay.resolve(null).then(t).catch(HT)}:ny;function HT(t){setTimeout(function(){throw t})}function Ca(t){return t==="head"}function iy(t,n){var i=n,s=0;do{var u=i.nextSibling;if(t.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(s===0){t.removeChild(u),nr(n);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")ho(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,ho(i);for(var d=i.firstChild;d;){var g=d.nextSibling,b=d.nodeName;d[Or]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=g}}else i==="body"&&ho(t.ownerDocument.body);i=u}while(i);nr(n)}function ry(t,n){var i=t;t=0;do{var s=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=s}while(i)}function nf(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":nf(i),su(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function $T(t,n,i,s){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Or])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(d=t.getAttribute("rel"),d==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(d!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=cn(t.nextSibling),t===null)break}return null}function GT(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=cn(t.nextSibling),t===null))return null;return t}function oy(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=cn(t.nextSibling),t===null))return null;return t}function af(t){return t.data==="$?"||t.data==="$~"}function rf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function qT(t,n){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||i.readyState!=="loading")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function cn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var of=null;function sy(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(n===0)return cn(t.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}t=t.nextSibling}return null}function ly(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return t;n--}else i!=="/$"&&i!=="/&"||n++}t=t.previousSibling}return null}function uy(t,n,i){switch(n=el(i),t){case"html":if(t=n.documentElement,!t)throw Error(o(452));return t;case"head":if(t=n.head,!t)throw Error(o(453));return t;case"body":if(t=n.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function ho(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);su(t)}var fn=new Map,cy=new Set;function tl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Wn=X.d;X.d={f:YT,r:PT,D:XT,C:KT,L:QT,m:FT,X:IT,S:JT,M:WT};function YT(){var t=Wn.f(),n=Ps();return t||n}function PT(t){var n=xi(t);n!==null&&n.tag===5&&n.type==="form"?zp(n):Wn.r(t)}var Wi=typeof document>"u"?null:document;function fy(t,n,i){var s=Wi;if(s&&typeof n=="string"&&n){var u=nn(n);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),cy.has(u)||(cy.add(u),t={rel:t,crossOrigin:i,href:n},s.querySelector(u)===null&&(n=s.createElement("link"),_t(n,"link",t),gt(n),s.head.appendChild(n)))}}function XT(t){Wn.D(t),fy("dns-prefetch",t,null)}function KT(t,n){Wn.C(t,n),fy("preconnect",t,n)}function QT(t,n,i){Wn.L(t,n,i);var s=Wi;if(s&&t&&n){var u='link[rel="preload"][as="'+nn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+nn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+nn(i.imageSizes)+'"]')):u+='[href="'+nn(t)+'"]';var d=u;switch(n){case"style":d=er(t);break;case"script":d=tr(t)}fn.has(d)||(t=v({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),fn.set(d,t),s.querySelector(u)!==null||n==="style"&&s.querySelector(mo(d))||n==="script"&&s.querySelector(po(d))||(n=s.createElement("link"),_t(n,"link",t),gt(n),s.head.appendChild(n)))}}function FT(t,n){Wn.m(t,n);var i=Wi;if(i&&t){var s=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+nn(s)+'"][href="'+nn(t)+'"]',d=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=tr(t)}if(!fn.has(d)&&(t=v({rel:"modulepreload",href:t},n),fn.set(d,t),i.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(po(d)))return}s=i.createElement("link"),_t(s,"link",t),gt(s),i.head.appendChild(s)}}}function JT(t,n,i){Wn.S(t,n,i);var s=Wi;if(s&&t){var u=Ti(s).hoistableStyles,d=er(t);n=n||"default";var g=u.get(d);if(!g){var b={loading:0,preload:null};if(g=s.querySelector(mo(d)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":n},i),(i=fn.get(d))&&sf(t,i);var T=g=s.createElement("link");gt(T),_t(T,"link",t),T._p=new Promise(function(D,B){T.onload=D,T.onerror=B}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,nl(g,n,s)}g={type:"stylesheet",instance:g,count:1,state:b},u.set(d,g)}}}function IT(t,n){Wn.X(t,n);var i=Wi;if(i&&t){var s=Ti(i).hoistableScripts,u=tr(t),d=s.get(u);d||(d=i.querySelector(po(u)),d||(t=v({src:t,async:!0},n),(n=fn.get(u))&&lf(t,n),d=i.createElement("script"),gt(d),_t(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(u,d))}}function WT(t,n){Wn.M(t,n);var i=Wi;if(i&&t){var s=Ti(i).hoistableScripts,u=tr(t),d=s.get(u);d||(d=i.querySelector(po(u)),d||(t=v({src:t,async:!0,type:"module"},n),(n=fn.get(u))&&lf(t,n),d=i.createElement("script"),gt(d),_t(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(u,d))}}function dy(t,n,i,s){var u=(u=fe.current)?tl(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=er(i.href),i=Ti(u).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=er(i.href);var d=Ti(u).hoistableStyles,g=d.get(t);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(t,g),(d=u.querySelector(mo(t)))&&!d._p&&(g.instance=d,g.state.loading=5),fn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},fn.set(t,i),d||eE(u,t,i,g.state))),n&&s===null)throw Error(o(528,""));return g}if(n&&s!==null)throw Error(o(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=tr(i),i=Ti(u).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function er(t){return'href="'+nn(t)+'"'}function mo(t){return'link[rel="stylesheet"]['+t+"]"}function hy(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function eE(t,n,i,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),_t(n,"link",i),gt(n),t.head.appendChild(n))}function tr(t){return'[src="'+nn(t)+'"]'}function po(t){return"script[async]"+t}function my(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+nn(i.href)+'"]');if(s)return n.instance=s,gt(s),s;var u=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),gt(s),_t(s,"style",u),nl(s,i.precedence,t),n.instance=s;case"stylesheet":u=er(i.href);var d=t.querySelector(mo(u));if(d)return n.state.loading|=4,n.instance=d,gt(d),d;s=hy(i),(u=fn.get(u))&&sf(s,u),d=(t.ownerDocument||t).createElement("link"),gt(d);var g=d;return g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),_t(d,"link",s),n.state.loading|=4,nl(d,i.precedence,t),n.instance=d;case"script":return d=tr(i.src),(u=t.querySelector(po(d)))?(n.instance=u,gt(u),u):(s=i,(u=fn.get(d))&&(s=v({},i),lf(s,u)),t=t.ownerDocument||t,u=t.createElement("script"),gt(u),_t(u,"link",s),t.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,nl(s,i.precedence,t));return n.instance}function nl(t,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,d=u,g=0;g<s.length;g++){var b=s[g];if(b.dataset.precedence===n)d=b;else if(d!==u)break}d?d.parentNode.insertBefore(t,d.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function sf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function lf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var al=null;function py(t,n,i){if(al===null){var s=new Map,u=al=new Map;u.set(i,s)}else u=al,s=u.get(i),s||(s=new Map,u.set(i,s));if(s.has(t))return s;for(s.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var d=i[u];if(!(d[Or]||d[St]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var g=d.getAttribute(n)||"";g=t+g;var b=s.get(g);b?b.push(d):s.set(g,[d])}}return s}function gy(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function tE(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(t=n.disabled,typeof n.precedence=="string"&&t==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function yy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function nE(t,n,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=er(s.href),d=n.querySelector(mo(u));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=il.bind(t),n.then(t,t)),i.state.loading|=4,i.instance=d,gt(d);return}d=n.ownerDocument||n,s=hy(s),(u=fn.get(u))&&sf(s,u),d=d.createElement("link"),gt(d);var g=d;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),_t(d,"link",s),i.instance=d}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=il.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}var uf=0;function aE(t,n){return t.stylesheets&&t.count===0&&ol(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var s=setTimeout(function(){if(t.stylesheets&&ol(t,t.stylesheets),t.unsuspend){var d=t.unsuspend;t.unsuspend=null,d()}},6e4+n);0<t.imgBytes&&uf===0&&(uf=62500*UT());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ol(t,t.stylesheets),t.unsuspend)){var d=t.unsuspend;t.unsuspend=null,d()}},(t.imgBytes>uf?50:800)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function il(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ol(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var rl=null;function ol(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,rl=new Map,n.forEach(iE,t),rl=null,il.call(t))}function iE(t,n){if(!(n.state.loading&4)){var i=rl.get(t);if(i)var s=i.get(null);else{i=new Map,rl.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var g=u[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),s=g)}s&&i.set(null,s)}u=n.instance,g=u.getAttribute("data-precedence"),d=i.get(g)||s,d===s&&i.set(null,u),i.set(g,u),this.count++,s=il.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),d?d.parentNode.insertBefore(u,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),n.state.loading|=4}}var go={$$typeof:j,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function rE(t,n,i,s,u,d,g,b,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=au(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=au(0),this.hiddenUpdates=au(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function vy(t,n,i,s,u,d,g,b,T,D,B,$){return t=new rE(t,n,i,g,T,D,B,$,b),n=1,d===!0&&(n|=24),d=Kt(3,null,null,n),t.current=d,d.stateNode=t,n=Hu(),n.refCount++,t.pooledCache=n,n.refCount++,d.memoizedState={element:s,isDehydrated:i,cache:n},Yu(d),t}function by(t){return t?(t=Di,t):Di}function Sy(t,n,i,s,u,d){u=by(u),s.context===null?s.context=u:s.pendingContext=u,s=ya(n),s.payload={element:i},d=d===void 0?null:d,d!==null&&(s.callback=d),i=va(t,s,n),i!==null&&($t(i,t,n),Xr(i,t,n))}function xy(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function cf(t,n){xy(t,n),(t=t.alternate)&&xy(t,n)}function Ty(t){if(t.tag===13||t.tag===31){var n=Fa(t,67108864);n!==null&&$t(n,t,67108864),cf(t,67108864)}}function Ey(t){if(t.tag===13||t.tag===31){var n=Wt();n=iu(n);var i=Fa(t,n);i!==null&&$t(i,t,n),cf(t,n)}}var sl=!0;function oE(t,n,i,s){var u=U.T;U.T=null;var d=X.p;try{X.p=2,ff(t,n,i,s)}finally{X.p=d,U.T=u}}function sE(t,n,i,s){var u=U.T;U.T=null;var d=X.p;try{X.p=8,ff(t,n,i,s)}finally{X.p=d,U.T=u}}function ff(t,n,i,s){if(sl){var u=df(s);if(u===null)Fc(t,n,s,ll,i),wy(t,s);else if(uE(u,t,n,i,s))s.stopPropagation();else if(wy(t,s),n&4&&-1<lE.indexOf(t)){for(;u!==null;){var d=xi(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=Ya(d.pendingLanes);if(g!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var T=1<<31-Pt(g);b.entanglements[1]|=T,g&=~T}Mn(d),(ze&6)===0&&(qs=Qe()+500,uo(0))}}break;case 31:case 13:b=Fa(d,2),b!==null&&$t(b,d,2),Ps(),cf(d,2)}if(d=df(s),d===null&&Fc(t,n,s,ll,i),d===u)break;u=d}u!==null&&s.stopPropagation()}else Fc(t,n,s,null,i)}}function df(t){return t=hu(t),hf(t)}var ll=null;function hf(t){if(ll=null,t=Si(t),t!==null){var n=f(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=c(n),t!==null)return t;t=null}else if(i===31){if(t=h(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return ll=t,null}function _y(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(Jo()){case _r:return 2;case wr:return 8;case bt:case yn:return 32;case vi:return 268435456;default:return 32}default:return 32}}var mf=!1,Ra=null,Oa=null,Ma=null,yo=new Map,vo=new Map,Da=[],lE="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 wy(t,n){switch(t){case"focusin":case"focusout":Ra=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":yo.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vo.delete(n.pointerId)}}function bo(t,n,i,s,u,d){return t===null||t.nativeEvent!==d?(t={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]},n!==null&&(n=xi(n),n!==null&&Ty(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),t)}function uE(t,n,i,s,u){switch(n){case"focusin":return Ra=bo(Ra,t,n,i,s,u),!0;case"dragenter":return Oa=bo(Oa,t,n,i,s,u),!0;case"mouseover":return Ma=bo(Ma,t,n,i,s,u),!0;case"pointerover":var d=u.pointerId;return yo.set(d,bo(yo.get(d)||null,t,n,i,s,u)),!0;case"gotpointercapture":return d=u.pointerId,vo.set(d,bo(vo.get(d)||null,t,n,i,s,u)),!0}return!1}function Ay(t){var n=Si(t.target);if(n!==null){var i=f(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){t.blockedOn=n,Zh(t.priority,function(){Ey(i)});return}}else if(n===31){if(n=h(i),n!==null){t.blockedOn=n,Zh(t.priority,function(){Ey(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ul(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=df(t.nativeEvent);if(i===null){i=t.nativeEvent;var s=new i.constructor(i.type,i);du=s,i.target.dispatchEvent(s),du=null}else return n=xi(i),n!==null&&Ty(n),t.blockedOn=i,!1;n.shift()}return!0}function zy(t,n,i){ul(t)&&i.delete(n)}function cE(){mf=!1,Ra!==null&&ul(Ra)&&(Ra=null),Oa!==null&&ul(Oa)&&(Oa=null),Ma!==null&&ul(Ma)&&(Ma=null),yo.forEach(zy),vo.forEach(zy)}function cl(t,n){t.blockedOn===n&&(t.blockedOn=null,mf||(mf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,cE)))}var fl=null;function Cy(t){fl!==t&&(fl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){fl===t&&(fl=null);for(var n=0;n<t.length;n+=3){var i=t[n],s=t[n+1],u=t[n+2];if(typeof s!="function"){if(hf(s||i)===null)continue;break}var d=xi(i);d!==null&&(t.splice(n,3),n-=3,fc(d,{pending:!0,data:u,method:i.method,action:s},s,u))}}))}function nr(t){function n(T){return cl(T,t)}Ra!==null&&cl(Ra,t),Oa!==null&&cl(Oa,t),Ma!==null&&cl(Ma,t),yo.forEach(n),vo.forEach(n);for(var i=0;i<Da.length;i++){var s=Da[i];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Da.length&&(i=Da[0],i.blockedOn===null);)Ay(i),i.blockedOn===null&&Da.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var u=i[s],d=i[s+1],g=u[Vt]||null;if(typeof d=="function")g||Cy(i);else if(g){var b=null;if(d&&d.hasAttribute("formAction")){if(u=d,g=d[Vt]||null)b=g.formAction;else if(hf(u)!==null)continue}else b=g.action;typeof b=="function"?i[s+1]=b:(i.splice(s,3),s-=3),Cy(i)}}}function Ry(){function t(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function pf(t){this._internalRoot=t}dl.prototype.render=pf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(o(409));var i=n.current,s=Wt();Sy(i,s,t,n,null,null)},dl.prototype.unmount=pf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Sy(t.current,2,null,t,null,null),Ps(),n[bi]=null}};function dl(t){this._internalRoot=t}dl.prototype.unstable_scheduleHydration=function(t){if(t){var n=Bh();t={blockedOn:null,target:t,priority:n};for(var i=0;i<Da.length&&n!==0&&n<Da[i].priority;i++);Da.splice(i,0,t),i===0&&Ay(t)}};var Oy=a.version;if(Oy!=="19.2.4")throw Error(o(527,Oy,"19.2.4"));X.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(n),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var fE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hl.isDisabled&&hl.supportsFiber)try{zr=hl.inject(fE),Yt=hl}catch{}}return xo.createRoot=function(t,n){if(!l(t))throw Error(o(299));var i=!1,s="",u=Up,d=Lp,g=Bp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),n=vy(t,1,!1,null,null,i,s,null,u,d,g,Ry),t[bi]=n.current,Qc(t),new pf(n)},xo.hydrateRoot=function(t,n,i){if(!l(t))throw Error(o(299));var s=!1,u="",d=Up,g=Lp,b=Bp,T=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.formState!==void 0&&(T=i.formState)),n=vy(t,1,!0,n,i??null,s,u,T,d,g,b,Ry),n.context=by(null),i=n.current,s=Wt(),s=iu(s),u=ya(s),u.callback=null,va(i,u,s),i=s,n.current.lanes=i,Rr(n,i),Mn(n),t[bi]=n.current,Qc(t),new dl(n)},xo.version="19.2.4",xo}var Zy;function TE(){if(Zy)return vf.exports;Zy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),vf.exports=xE(),vf.exports}var EE=TE();var Hy="popstate";function _E(e={}){function a(o,l){let{pathname:f,search:c,hash:h}=o.location;return ed("",{pathname:f,search:c,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(o,l){return typeof l=="string"?l:ko(l)}return AE(a,r,null,e)}function Pe(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function En(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function wE(){return Math.random().toString(36).substring(2,10)}function $y(e,a){return{usr:e.state,key:e.key,idx:a}}function ed(e,a,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?pr(a):a,state:r,key:a&&a.key||o||wE()}}function ko({pathname:e="/",search:a="",hash:r=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function pr(e){let a={};if(e){let r=e.indexOf("#");r>=0&&(a.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(a.search=e.substring(o),e=e.substring(0,o)),e&&(a.pathname=e)}return a}function AE(e,a,r,o={}){let{window:l=document.defaultView,v5Compat:f=!1}=o,c=l.history,h="POP",m=null,p=y();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function y(){return(c.state||{idx:null}).idx}function v(){h="POP";let O=y(),V=O==null?null:O-p;p=O,m&&m({action:h,location:E.location,delta:V})}function S(O,V){h="PUSH";let C=ed(E.location,O,V);p=y()+1;let j=$y(C,p),Q=E.createHref(C);try{c.pushState(j,"",Q)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;l.location.assign(Q)}f&&m&&m({action:h,location:E.location,delta:1})}function x(O,V){h="REPLACE";let C=ed(E.location,O,V);p=y();let j=$y(C,p),Q=E.createHref(C);c.replaceState(j,"",Q),f&&m&&m({action:h,location:E.location,delta:0})}function R(O){return zE(O)}let E={get action(){return h},get location(){return e(l,c)},listen(O){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(Hy,v),m=O,()=>{l.removeEventListener(Hy,v),m=null}},createHref(O){return a(l,O)},createURL:R,encodeLocation(O){let V=R(O);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:S,replace:x,go(O){return c.go(O)}};return E}function zE(e,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:ko(e);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Q0(e,a,r="/"){return CE(e,a,r,!1)}function CE(e,a,r,o){let l=typeof a=="string"?pr(a):a,f=ra(l.pathname||"/",r);if(f==null)return null;let c=F0(e);RE(c);let h=null;for(let m=0;h==null&&m<c.length;++m){let p=ZE(f);h=LE(c[m],p,o)}return h}function F0(e,a=[],r=[],o="",l=!1){let f=(c,h,m=l,p)=>{let y={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&m)return;Pe(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let v=aa([o,y.relativePath]),S=r.concat(y);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),F0(c.children,a,S,v,m)),!(c.path==null&&!c.index)&&a.push({path:v,score:VE(v,c.index),routesMeta:S})};return e.forEach((c,h)=>{if(c.path===""||!c.path?.includes("?"))f(c,h);else for(let m of J0(c.path))f(c,h,!0,m)}),a}function J0(e){let a=e.split("/");if(a.length===0)return[];let[r,...o]=a,l=r.endsWith("?"),f=r.replace(/\?$/,"");if(o.length===0)return l?[f,""]:[f];let c=J0(o.join("/")),h=[];return h.push(...c.map(m=>m===""?f:[f,m].join("/"))),l&&h.push(...c),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function RE(e){e.sort((a,r)=>a.score!==r.score?r.score-a.score:UE(a.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var OE=/^:[\w-]+$/,ME=3,DE=2,NE=1,jE=10,kE=-2,Gy=e=>e==="*";function VE(e,a){let r=e.split("/"),o=r.length;return r.some(Gy)&&(o+=kE),a&&(o+=DE),r.filter(l=>!Gy(l)).reduce((l,f)=>l+(OE.test(f)?ME:f===""?NE:jE),o)}function UE(e,a){return e.length===a.length&&e.slice(0,-1).every((o,l)=>o===a[l])?e[e.length-1]-a[a.length-1]:0}function LE(e,a,r=!1){let{routesMeta:o}=e,l={},f="/",c=[];for(let h=0;h<o.length;++h){let m=o[h],p=h===o.length-1,y=f==="/"?a:a.slice(f.length)||"/",v=Dl({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},y),S=m.route;if(!v&&p&&r&&!o[o.length-1].route.index&&(v=Dl({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(l,v.params),c.push({params:l,pathname:aa([f,v.pathname]),pathnameBase:qE(aa([f,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(f=aa([f,v.pathnameBase]))}return c}function Dl(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=BE(e.path,e.caseSensitive,e.end),l=a.match(r);if(!l)return null;let f=l[0],c=f.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:o.reduce((p,{paramName:y,isOptional:v},S)=>{if(y==="*"){let R=h[S]||"";c=f.slice(0,f.length-R.length).replace(/(.)\/+$/,"$1")}const x=h[S];return v&&!x?p[y]=void 0:p[y]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:c,pattern:e}}function BE(e,a=!1,r=!0){En(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,m)=>(o.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,a?void 0:"i"),o]}function ZE(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return En(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),e}}function ra(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}var HE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function $E(e,a="/"){let{pathname:r,search:o="",hash:l=""}=typeof e=="string"?pr(e):e,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=qy(r.substring(1),"/"):f=qy(r,a)):f=a,{pathname:f,search:YE(o),hash:PE(l)}}function qy(e,a){let r=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Tf(e,a,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function GE(e){return e.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Bd(e){let a=GE(e);return a.map((r,o)=>o===a.length-1?r.pathname:r.pathnameBase)}function Zd(e,a,r,o=!1){let l;typeof e=="string"?l=pr(e):(l={...e},Pe(!l.pathname||!l.pathname.includes("?"),Tf("?","pathname","search",l)),Pe(!l.pathname||!l.pathname.includes("#"),Tf("#","pathname","hash",l)),Pe(!l.search||!l.search.includes("#"),Tf("#","search","hash",l)));let f=e===""||l.pathname==="",c=f?"/":l.pathname,h;if(c==null)h=r;else{let v=a.length-1;if(!o&&c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),v-=1;l.pathname=S.join("/")}h=v>=0?a[v]:"/"}let m=$E(l,h),p=c&&c!=="/"&&c.endsWith("/"),y=(f||c===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var aa=e=>e.join("/").replace(/\/\/+/g,"/"),qE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),YE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,XE=class{constructor(e,a,r,o=!1){this.status=e,this.statusText=a||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function KE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function QE(e){return e.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var I0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function W0(e,a){let r=e;if(typeof r!="string"||!HE.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,l=!1;if(I0)try{let f=new URL(window.location.href),c=r.startsWith("//")?new URL(f.protocol+r):new URL(r),h=ra(c.pathname,a);c.origin===f.origin&&h!=null?r=h+c.search+c.hash:l=!0}catch{En(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:l,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var eb=["POST","PUT","PATCH","DELETE"];new Set(eb);var FE=["GET",...eb];new Set(FE);var gr=A.createContext(null);gr.displayName="DataRouter";var Pl=A.createContext(null);Pl.displayName="DataRouterState";var JE=A.createContext(!1),tb=A.createContext({isTransitioning:!1});tb.displayName="ViewTransition";var IE=A.createContext(new Map);IE.displayName="Fetchers";var WE=A.createContext(null);WE.displayName="Await";var en=A.createContext(null);en.displayName="Navigation";var Go=A.createContext(null);Go.displayName="Location";var kn=A.createContext({outlet:null,matches:[],isDataRoute:!1});kn.displayName="Route";var Hd=A.createContext(null);Hd.displayName="RouteError";var nb="REACT_ROUTER_ERROR",e_="REDIRECT",t_="ROUTE_ERROR_RESPONSE";function n_(e){if(e.startsWith(`${nb}:${e_}:{`))try{let a=JSON.parse(e.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function a_(e){if(e.startsWith(`${nb}:${t_}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new XE(a.status,a.statusText,a.data)}catch{}}function i_(e,{relative:a}={}){Pe(yr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=A.useContext(en),{hash:l,pathname:f,search:c}=qo(e,{relative:a}),h=f;return r!=="/"&&(h=f==="/"?r:aa([r,f])),o.createHref({pathname:h,search:c,hash:l})}function yr(){return A.useContext(Go)!=null}function sa(){return Pe(yr(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Go).location}var ab="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ib(e){A.useContext(en).static||A.useLayoutEffect(e)}function rb(){let{isDataRoute:e}=A.useContext(kn);return e?y_():r_()}function r_(){Pe(yr(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(gr),{basename:a,navigator:r}=A.useContext(en),{matches:o}=A.useContext(kn),{pathname:l}=sa(),f=JSON.stringify(Bd(o)),c=A.useRef(!1);return ib(()=>{c.current=!0}),A.useCallback((m,p={})=>{if(En(c.current,ab),!c.current)return;if(typeof m=="number"){r.go(m);return}let y=Zd(m,JSON.parse(f),l,p.relative==="path");e==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:aa([a,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[a,r,f,l,e])}A.createContext(null);function qo(e,{relative:a}={}){let{matches:r}=A.useContext(kn),{pathname:o}=sa(),l=JSON.stringify(Bd(r));return A.useMemo(()=>Zd(e,JSON.parse(l),o,a==="path"),[e,l,o,a])}function o_(e,a){return ob(e,a)}function ob(e,a,r,o,l){Pe(yr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=A.useContext(en),{matches:c}=A.useContext(kn),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",y=h?h.pathnameBase:"/",v=h&&h.route;{let C=v&&v.path||"";lb(p,!v||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${C}">) 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
|
+
`+s.stack}}var Ze=Object.prototype.hasOwnProperty,Mt=e.unstable_scheduleCallback,zn=e.unstable_cancelCallback,ht=e.unstable_shouldYield,bt=e.unstable_requestPaint,Qe=e.unstable_now,Io=e.unstable_getCurrentPriorityLevel,_r=e.unstable_ImmediatePriority,wr=e.unstable_UserBlockingPriority,St=e.unstable_NormalPriority,yn=e.unstable_LowPriority,vi=e.unstable_IdlePriority,nu=e.log,Ar=e.unstable_setDisableYieldValue,zr=null,Yt=null;function fa(t){if(typeof nu=="function"&&Ar(t),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(zr,t)}catch{}}var Pt=Math.clz32?Math.clz32:WS,JS=Math.log,IS=Math.LN2;function WS(t){return t>>>=0,t===0?32:31-(JS(t)/IS|0)|0}var Wo=256,es=262144,ts=4194304;function Ya(t){var n=t&42;if(n!==0)return n;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 ns(t,n,i){var s=t.pendingLanes;if(s===0)return 0;var u=0,d=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var b=s&134217727;return b!==0?(s=b&~d,s!==0?u=Ya(s):(g&=b,g!==0?u=Ya(g):i||(i=b&~t,i!==0&&(u=Ya(i))))):(b=s&~d,b!==0?u=Ya(b):g!==0?u=Ya(g):i||(i=s&~t,i!==0&&(u=Ya(i)))),u===0?0:n!==0&&n!==u&&(n&d)===0&&(d=u&-u,i=n&-n,d>=i||d===32&&(i&4194048)!==0)?n:u}function Cr(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function ex(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Uh(){var t=ts;return ts<<=1,(ts&62914560)===0&&(ts=4194304),t}function au(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Rr(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function tx(t,n,i,s,u,d){var g=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,D=t.hiddenUpdates;for(i=g&~i;0<i;){var B=31-Pt(i),$=1<<B;b[B]=0,T[B]=-1;var N=D[B];if(N!==null)for(D[B]=null,B=0;B<N.length;B++){var k=N[B];k!==null&&(k.lane&=-536870913)}i&=~$}s!==0&&Lh(t,s,0),d!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=d&~(g&~n))}function Lh(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-Pt(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|i&261930}function Bh(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var s=31-Pt(i),u=1<<s;u&n|t[s]&n&&(t[s]|=n),i&=~u}}function Zh(t,n){var i=n&-n;return i=(i&42)!==0?1:iu(i),(i&(t.suspendedLanes|n))!==0?0:i}function iu(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 ru(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Hh(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Ay(t.type))}function $h(t,n){var i=X.p;try{return X.p=t,n()}finally{X.p=i}}var da=Math.random().toString(36).slice(2),xt="__reactFiber$"+da,Vt="__reactProps$"+da,bi="__reactContainer$"+da,ou="__reactEvents$"+da,nx="__reactListeners$"+da,ax="__reactHandles$"+da,Gh="__reactResources$"+da,Or="__reactMarker$"+da;function su(t){delete t[xt],delete t[Vt],delete t[ou],delete t[nx],delete t[ax]}function Si(t){var n=t[xt];if(n)return n;for(var i=t.parentNode;i;){if(n=i[bi]||i[xt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=cy(t);t!==null;){if(i=t[xt])return i;t=cy(t)}return n}t=i,i=t.parentNode}return null}function xi(t){if(t=t[xt]||t[bi]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Mr(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(o(33))}function Ti(t){var n=t[Gh];return n||(n=t[Gh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function yt(t){t[Or]=!0}var qh=new Set,Yh={};function Pa(t,n){Ei(t,n),Ei(t+"Capture",n)}function Ei(t,n){for(Yh[t]=n,t=0;t<n.length;t++)qh.add(n[t])}var ix=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]*$"),Ph={},Xh={};function rx(t){return Ze.call(Xh,t)?!0:Ze.call(Ph,t)?!1:ix.test(t)?Xh[t]=!0:(Ph[t]=!0,!1)}function as(t,n,i){if(rx(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function is(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function Un(t,n,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+s)}}function tn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Kh(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ox(t,n,i){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,d=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return u.call(this)},set:function(g){i=""+g,d.call(this,g)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function lu(t){if(!t._valueTracker){var n=Kh(t)?"checked":"value";t._valueTracker=ox(t,n,""+t[n])}}function Qh(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return t&&(s=Kh(t)?t.checked?"true":"false":t.value),t=s,t!==i?(n.setValue(t),!0):!1}function rs(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 sx=/[\n"\\]/g;function nn(t){return t.replace(sx,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function uu(t,n,i,s,u,d,g,b){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),n!=null?g==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+tn(n)):t.value!==""+tn(n)&&(t.value=""+tn(n)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),n!=null?cu(t,g,tn(n)):i!=null?cu(t,g,tn(i)):s!=null&&t.removeAttribute("value"),u==null&&d!=null&&(t.defaultChecked=!!d),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+tn(b):t.removeAttribute("name")}function Fh(t,n,i,s,u,d,g,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.type=d),n!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){lu(t);return}i=i!=null?""+tn(i):"",n=n!=null?""+tn(n):i,b||n===t.value||(t.value=n),t.defaultValue=n}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=b?t.checked:!!s,t.defaultChecked=!!s,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),lu(t)}function cu(t,n,i){n==="number"&&rs(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function _i(t,n,i,s){if(t=t.options,n){n={};for(var u=0;u<i.length;u++)n["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=n.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&s&&(t[i].defaultSelected=!0)}else{for(i=""+tn(i),n=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,s&&(t[u].defaultSelected=!0);return}n!==null||t[u].disabled||(n=t[u])}n!==null&&(n.selected=!0)}}function Jh(t,n,i){if(n!=null&&(n=""+tn(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+tn(i):""}function Ih(t,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(o(92));if(ke(s)){if(1<s.length)throw Error(o(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=tn(n),t.defaultValue=i,s=t.textContent,s===i&&s!==""&&s!==null&&(t.value=s),lu(t)}function wi(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var lx=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 Wh(t,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,i):typeof i!="number"||i===0||lx.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function em(t,n,i){if(n!=null&&typeof n!="object")throw Error(o(62));if(t=t.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var u in n)s=n[u],n.hasOwnProperty(u)&&i[u]!==s&&Wh(t,u,s)}else for(var d in n)n.hasOwnProperty(d)&&Wh(t,d,n[d])}function fu(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 ux=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"]]),cx=/^[\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 os(t){return cx.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ln(){}var du=null;function hu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ai=null,zi=null;function tm(t){var n=xi(t);if(n&&(t=n.stateNode)){var i=t[Vt]||null;e:switch(t=n.stateNode,n.type){case"input":if(uu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+nn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==t&&s.form===t.form){var u=s[Vt]||null;if(!u)throw Error(o(90));uu(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===t.form&&Qh(s)}break e;case"textarea":Jh(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&_i(t,!!i.multiple,n,!1)}}}var mu=!1;function nm(t,n,i){if(mu)return t(n,i);mu=!0;try{var s=t(n);return s}finally{if(mu=!1,(Ai!==null||zi!==null)&&(Xs(),Ai&&(n=Ai,t=zi,zi=Ai=null,tm(n),t)))for(n=0;n<t.length;n++)tm(t[n])}}function Dr(t,n){var i=t.stateNode;if(i===null)return null;var s=i[Vt]||null;if(s===null)return null;i=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,n,typeof i));return i}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pu=!1;if(Bn)try{var Nr={};Object.defineProperty(Nr,"passive",{get:function(){pu=!0}}),window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{pu=!1}var ha=null,gu=null,ss=null;function am(){if(ss)return ss;var t,n=gu,i=n.length,s,u="value"in ha?ha.value:ha.textContent,d=u.length;for(t=0;t<i&&n[t]===u[t];t++);var g=i-t;for(s=1;s<=g&&n[i-s]===u[d-s];s++);return ss=u.slice(t,1<s?1-s:void 0)}function ls(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function us(){return!0}function im(){return!1}function Ut(t){function n(i,s,u,d,g){this._reactName=i,this._targetInst=u,this.type=s,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(i=t[b],this[b]=i?i(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?us:im,this.isPropagationStopped=im,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=us)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=us)},persist:function(){},isPersistent:us}),n}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cs=Ut(Xa),jr=v({},Xa,{view:0,detail:0}),fx=Ut(jr),yu,vu,kr,fs=v({},jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Su,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!==kr&&(kr&&t.type==="mousemove"?(yu=t.screenX-kr.screenX,vu=t.screenY-kr.screenY):vu=yu=0,kr=t),yu)},movementY:function(t){return"movementY"in t?t.movementY:vu}}),rm=Ut(fs),dx=v({},fs,{dataTransfer:0}),hx=Ut(dx),mx=v({},jr,{relatedTarget:0}),bu=Ut(mx),px=v({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),gx=Ut(px),yx=v({},Xa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vx=Ut(yx),bx=v({},Xa,{data:0}),om=Ut(bx),Sx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xx={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"},Tx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ex(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Tx[t])?!!n[t]:!1}function Su(){return Ex}var _x=v({},jr,{key:function(t){if(t.key){var n=Sx[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=ls(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?xx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Su,charCode:function(t){return t.type==="keypress"?ls(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ls(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),wx=Ut(_x),Ax=v({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sm=Ut(Ax),zx=v({},jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Su}),Cx=Ut(zx),Rx=v({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ox=Ut(Rx),Mx=v({},fs,{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}),Dx=Ut(Mx),Nx=v({},Xa,{newState:0,oldState:0}),jx=Ut(Nx),kx=[9,13,27,32],xu=Bn&&"CompositionEvent"in window,Vr=null;Bn&&"documentMode"in document&&(Vr=document.documentMode);var Vx=Bn&&"TextEvent"in window&&!Vr,lm=Bn&&(!xu||Vr&&8<Vr&&11>=Vr),um=" ",cm=!1;function fm(t,n){switch(t){case"keyup":return kx.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function Ux(t,n){switch(t){case"compositionend":return dm(n);case"keypress":return n.which!==32?null:(cm=!0,um);case"textInput":return t=n.data,t===um&&cm?null:t;default:return null}}function Lx(t,n){if(Ci)return t==="compositionend"||!xu&&fm(t,n)?(t=am(),ss=gu=ha=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return lm&&n.locale!=="ko"?null:n.data;default:return null}}var Bx={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 hm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!Bx[t.type]:n==="textarea"}function mm(t,n,i,s){Ai?zi?zi.push(s):zi=[s]:Ai=s,n=el(n,"onChange"),0<n.length&&(i=new cs("onChange","change",null,i,s),t.push({event:i,listeners:n}))}var Ur=null,Lr=null;function Zx(t){Fg(t,0)}function ds(t){var n=Mr(t);if(Qh(n))return t}function pm(t,n){if(t==="change")return n}var gm=!1;if(Bn){var Tu;if(Bn){var Eu="oninput"in document;if(!Eu){var ym=document.createElement("div");ym.setAttribute("oninput","return;"),Eu=typeof ym.oninput=="function"}Tu=Eu}else Tu=!1;gm=Tu&&(!document.documentMode||9<document.documentMode)}function vm(){Ur&&(Ur.detachEvent("onpropertychange",bm),Lr=Ur=null)}function bm(t){if(t.propertyName==="value"&&ds(Lr)){var n=[];mm(n,Lr,t,hu(t)),nm(Zx,n)}}function Hx(t,n,i){t==="focusin"?(vm(),Ur=n,Lr=i,Ur.attachEvent("onpropertychange",bm)):t==="focusout"&&vm()}function $x(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ds(Lr)}function Gx(t,n){if(t==="click")return ds(n)}function qx(t,n){if(t==="input"||t==="change")return ds(n)}function Yx(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Xt=typeof Object.is=="function"?Object.is:Yx;function Br(t,n){if(Xt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var u=i[s];if(!Ze.call(n,u)||!Xt(t[u],n[u]))return!1}return!0}function Sm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function xm(t,n){var i=Sm(t);t=0;for(var s;i;){if(i.nodeType===3){if(s=t+i.textContent.length,t<=n&&s>=n)return{node:i,offset:n-t};t=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Sm(i)}}function Tm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Tm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Em(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=rs(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=rs(t.document)}return n}function _u(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var Px=Bn&&"documentMode"in document&&11>=document.documentMode,Ri=null,wu=null,Zr=null,Au=!1;function _m(t,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Au||Ri==null||Ri!==rs(s)||(s=Ri,"selectionStart"in s&&_u(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Zr&&Br(Zr,s)||(Zr=s,s=el(wu,"onSelect"),0<s.length&&(n=new cs("onSelect","select",null,n,i),t.push({event:n,listeners:s}),n.target=Ri)))}function Ka(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Oi={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionrun:Ka("Transition","TransitionRun"),transitionstart:Ka("Transition","TransitionStart"),transitioncancel:Ka("Transition","TransitionCancel"),transitionend:Ka("Transition","TransitionEnd")},zu={},wm={};Bn&&(wm=document.createElement("div").style,"AnimationEvent"in window||(delete Oi.animationend.animation,delete Oi.animationiteration.animation,delete Oi.animationstart.animation),"TransitionEvent"in window||delete Oi.transitionend.transition);function Qa(t){if(zu[t])return zu[t];if(!Oi[t])return t;var n=Oi[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in wm)return zu[t]=n[i];return t}var Am=Qa("animationend"),zm=Qa("animationiteration"),Cm=Qa("animationstart"),Xx=Qa("transitionrun"),Kx=Qa("transitionstart"),Qx=Qa("transitioncancel"),Rm=Qa("transitionend"),Om=new Map,Cu="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(" ");Cu.push("scrollEnd");function vn(t,n){Om.set(t,n),Pa(n,[t])}var hs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},an=[],Mi=0,Ru=0;function ms(){for(var t=Mi,n=Ru=Mi=0;n<t;){var i=an[n];an[n++]=null;var s=an[n];an[n++]=null;var u=an[n];an[n++]=null;var d=an[n];if(an[n++]=null,s!==null&&u!==null){var g=s.pending;g===null?u.next=u:(u.next=g.next,g.next=u),s.pending=u}d!==0&&Mm(i,u,d)}}function ps(t,n,i,s){an[Mi++]=t,an[Mi++]=n,an[Mi++]=i,an[Mi++]=s,Ru|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Ou(t,n,i,s){return ps(t,n,i,s),gs(t)}function Fa(t,n){return ps(t,null,null,n),gs(t)}function Mm(t,n,i){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i);for(var u=!1,d=t.return;d!==null;)d.childLanes|=i,s=d.alternate,s!==null&&(s.childLanes|=i),d.tag===22&&(t=d.stateNode,t===null||t._visibility&1||(u=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,u&&n!==null&&(u=31-Pt(i),t=d.hiddenUpdates,s=t[u],s===null?t[u]=[n]:s.push(n),n.lane=i|536870912),d):null}function gs(t){if(50<lo)throw lo=0,Bc=null,Error(o(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Di={};function Fx(t,n,i,s){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(t,n,i,s){return new Fx(t,n,i,s)}function Mu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Zn(t,n){var i=t.alternate;return i===null?(i=Kt(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Dm(t,n){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function ys(t,n,i,s,u,d){var g=0;if(s=t,typeof t=="function")Mu(t)&&(g=1);else if(typeof t=="string")g=tE(t,i,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case W:return t=Kt(31,i,n,u),t.elementType=W,t.lanes=d,t;case E:return Ja(i.children,u,d,n);case O:g=8,u|=24;break;case V:return t=Kt(12,i,n,u|2),t.elementType=V,t.lanes=d,t;case q:return t=Kt(13,i,n,u),t.elementType=q,t.lanes=d,t;case I:return t=Kt(19,i,n,u),t.elementType=I,t.lanes=d,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:g=10;break e;case C:g=9;break e;case Q:g=11;break e;case F:g=14;break e;case P:g=16,s=null;break e}g=29,i=Error(o(130,t===null?"null":typeof t,"")),s=null}return n=Kt(g,i,n,u),n.elementType=t,n.type=s,n.lanes=d,n}function Ja(t,n,i,s){return t=Kt(7,t,s,n),t.lanes=i,t}function Du(t,n,i){return t=Kt(6,t,null,n),t.lanes=i,t}function Nm(t){var n=Kt(18,null,null,0);return n.stateNode=t,n}function Nu(t,n,i){return n=Kt(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var jm=new WeakMap;function rn(t,n){if(typeof t=="object"&&t!==null){var i=jm.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Ke(n)},jm.set(t,n),n)}return{value:t,source:n,stack:Ke(n)}}var Ni=[],ji=0,vs=null,Hr=0,on=[],sn=0,ma=null,Cn=1,Rn="";function Hn(t,n){Ni[ji++]=Hr,Ni[ji++]=vs,vs=t,Hr=n}function km(t,n,i){on[sn++]=Cn,on[sn++]=Rn,on[sn++]=ma,ma=t;var s=Cn;t=Rn;var u=32-Pt(s)-1;s&=~(1<<u),i+=1;var d=32-Pt(n)+u;if(30<d){var g=u-u%5;d=(s&(1<<g)-1).toString(32),s>>=g,u-=g,Cn=1<<32-Pt(n)+u|i<<u|s,Rn=d+t}else Cn=1<<d|i<<u|s,Rn=t}function ju(t){t.return!==null&&(Hn(t,1),km(t,1,0))}function ku(t){for(;t===vs;)vs=Ni[--ji],Ni[ji]=null,Hr=Ni[--ji],Ni[ji]=null;for(;t===ma;)ma=on[--sn],on[sn]=null,Rn=on[--sn],on[sn]=null,Cn=on[--sn],on[sn]=null}function Vm(t,n){on[sn++]=Cn,on[sn++]=Rn,on[sn++]=ma,Cn=n.id,Rn=n.overflow,ma=t}var Tt=null,He=null,Te=!1,pa=null,ln=!1,Vu=Error(o(519));function ga(t){var n=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $r(rn(n,t)),Vu}function Um(t){var n=t.stateNode,i=t.type,s=t.memoizedProps;switch(n[xt]=t,n[Vt]=s,i){case"dialog":ve("cancel",n),ve("close",n);break;case"iframe":case"object":case"embed":ve("load",n);break;case"video":case"audio":for(i=0;i<co.length;i++)ve(co[i],n);break;case"source":ve("error",n);break;case"img":case"image":case"link":ve("error",n),ve("load",n);break;case"details":ve("toggle",n);break;case"input":ve("invalid",n),Fh(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ve("invalid",n);break;case"textarea":ve("invalid",n),Ih(n,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||ey(n.textContent,i)?(s.popover!=null&&(ve("beforetoggle",n),ve("toggle",n)),s.onScroll!=null&&ve("scroll",n),s.onScrollEnd!=null&&ve("scrollend",n),s.onClick!=null&&(n.onclick=Ln),n=!0):n=!1,n||ga(t,!0)}function Lm(t){for(Tt=t.return;Tt;)switch(Tt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:Tt=Tt.return}}function ki(t){if(t!==Tt)return!1;if(!Te)return Lm(t),Te=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ef(t.type,t.memoizedProps)),i=!i),i&&He&&ga(t),Lm(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));He=uy(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));He=uy(t)}else n===27?(n=He,Oa(t.type)?(t=of,of=null,He=t):He=n):He=Tt?cn(t.stateNode.nextSibling):null;return!0}function Ia(){He=Tt=null,Te=!1}function Uu(){var t=pa;return t!==null&&(Ht===null?Ht=t:Ht.push.apply(Ht,t),pa=null),t}function $r(t){pa===null?pa=[t]:pa.push(t)}var Lu=w(null),Wa=null,$n=null;function ya(t,n,i){K(Lu,n._currentValue),n._currentValue=i}function Gn(t){t._currentValue=Lu.current,Z(Lu)}function Bu(t,n,i){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===i)break;t=t.return}}function Zu(t,n,i,s){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var d=u.dependencies;if(d!==null){var g=u.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=u;for(var T=0;T<n.length;T++)if(b.context===n[T]){d.lanes|=i,b=d.alternate,b!==null&&(b.lanes|=i),Bu(d.return,i,t),s||(g=null);break e}d=b.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(o(341));g.lanes|=i,d=g.alternate,d!==null&&(d.lanes|=i),Bu(g,i,t),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===t){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function Vi(t,n,i,s){t=null;for(var u=n,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var b=u.type;Xt(u.pendingProps.value,g.value)||(t!==null?t.push(b):t=[b])}}else if(u===re.current){if(g=u.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(go):t=[go])}u=u.return}t!==null&&Zu(n,t,i,s),n.flags|=262144}function bs(t){for(t=t.firstContext;t!==null;){if(!Xt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ei(t){Wa=t,$n=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Et(t){return Bm(Wa,t)}function Ss(t,n){return Wa===null&&ei(t),Bm(t,n)}function Bm(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},$n===null){if(t===null)throw Error(o(308));$n=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else $n=$n.next=n;return i}var Jx=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},Ix=e.unstable_scheduleCallback,Wx=e.unstable_NormalPriority,lt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hu(){return{controller:new Jx,data:new Map,refCount:0}}function Gr(t){t.refCount--,t.refCount===0&&Ix(Wx,function(){t.controller.abort()})}var qr=null,$u=0,Ui=0,Li=null;function eT(t,n){if(qr===null){var i=qr=[];$u=0,Ui=Yc(),Li={status:"pending",value:void 0,then:function(s){i.push(s)}}}return $u++,n.then(Zm,Zm),n}function Zm(){if(--$u===0&&qr!==null){Li!==null&&(Li.status="fulfilled");var t=qr;qr=null,Ui=0,Li=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function tT(t,n){var i=[],s={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var u=0;u<i.length;u++)(0,i[u])(n)},function(u){for(s.status="rejected",s.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),s}var Hm=U.S;U.S=function(t,n){_g=Qe(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&eT(t,n),Hm!==null&&Hm(t,n)};var ti=w(null);function Gu(){var t=ti.current;return t!==null?t:Be.pooledCache}function xs(t,n){n===null?K(ti,ti.current):K(ti,n.pool)}function $m(){var t=Gu();return t===null?null:{parent:lt._currentValue,pool:t}}var Bi=Error(o(460)),qu=Error(o(474)),Ts=Error(o(542)),Es={then:function(){}};function Gm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qm(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Ln,Ln),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Pm(t),t;default:if(typeof n.status=="string")n.then(Ln,Ln);else{if(t=Be,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=n,t.status="pending",t.then(function(s){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=s}},function(s){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Pm(t),t}throw ai=n,Bi}}function ni(t){try{var n=t._init;return n(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ai=i,Bi):i}}var ai=null;function Ym(){if(ai===null)throw Error(o(459));var t=ai;return ai=null,t}function Pm(t){if(t===Bi||t===Ts)throw Error(o(483))}var Zi=null,Yr=0;function _s(t){var n=Yr;return Yr+=1,Zi===null&&(Zi=[]),qm(Zi,t,n)}function Pr(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function ws(t,n){throw n.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(n),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Xm(t){function n(z,_){if(t){var M=z.deletions;M===null?(z.deletions=[_],z.flags|=16):M.push(_)}}function i(z,_){if(!t)return null;for(;_!==null;)n(z,_),_=_.sibling;return null}function s(z){for(var _=new Map;z!==null;)z.key!==null?_.set(z.key,z):_.set(z.index,z),z=z.sibling;return _}function u(z,_){return z=Zn(z,_),z.index=0,z.sibling=null,z}function d(z,_,M){return z.index=M,t?(M=z.alternate,M!==null?(M=M.index,M<_?(z.flags|=67108866,_):M):(z.flags|=67108866,_)):(z.flags|=1048576,_)}function g(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function b(z,_,M,H){return _===null||_.tag!==6?(_=Du(M,z.mode,H),_.return=z,_):(_=u(_,M),_.return=z,_)}function T(z,_,M,H){var oe=M.type;return oe===E?B(z,_,M.props.children,H,M.key):_!==null&&(_.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&ni(oe)===_.type)?(_=u(_,M.props),Pr(_,M),_.return=z,_):(_=ys(M.type,M.key,M.props,null,z.mode,H),Pr(_,M),_.return=z,_)}function D(z,_,M,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==M.containerInfo||_.stateNode.implementation!==M.implementation?(_=Nu(M,z.mode,H),_.return=z,_):(_=u(_,M.children||[]),_.return=z,_)}function B(z,_,M,H,oe){return _===null||_.tag!==7?(_=Ja(M,z.mode,H,oe),_.return=z,_):(_=u(_,M),_.return=z,_)}function $(z,_,M){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Du(""+_,z.mode,M),_.return=z,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case x:return M=ys(_.type,_.key,_.props,null,z.mode,M),Pr(M,_),M.return=z,M;case R:return _=Nu(_,z.mode,M),_.return=z,_;case P:return _=ni(_),$(z,_,M)}if(ke(_)||Ce(_))return _=Ja(_,z.mode,M,null),_.return=z,_;if(typeof _.then=="function")return $(z,_s(_),M);if(_.$$typeof===j)return $(z,Ss(z,_),M);ws(z,_)}return null}function N(z,_,M,H){var oe=_!==null?_.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return oe!==null?null:b(z,_,""+M,H);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return M.key===oe?T(z,_,M,H):null;case R:return M.key===oe?D(z,_,M,H):null;case P:return M=ni(M),N(z,_,M,H)}if(ke(M)||Ce(M))return oe!==null?null:B(z,_,M,H,null);if(typeof M.then=="function")return N(z,_,_s(M),H);if(M.$$typeof===j)return N(z,_,Ss(z,M),H);ws(z,M)}return null}function k(z,_,M,H,oe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return z=z.get(M)||null,b(_,z,""+H,oe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return z=z.get(H.key===null?M:H.key)||null,T(_,z,H,oe);case R:return z=z.get(H.key===null?M:H.key)||null,D(_,z,H,oe);case P:return H=ni(H),k(z,_,M,H,oe)}if(ke(H)||Ce(H))return z=z.get(M)||null,B(_,z,H,oe,null);if(typeof H.then=="function")return k(z,_,M,_s(H),oe);if(H.$$typeof===j)return k(z,_,M,Ss(_,H),oe);ws(_,H)}return null}function ee(z,_,M,H){for(var oe=null,_e=null,ie=_,me=_=0,Se=null;ie!==null&&me<M.length;me++){ie.index>me?(Se=ie,ie=null):Se=ie.sibling;var we=N(z,ie,M[me],H);if(we===null){ie===null&&(ie=Se);break}t&&ie&&we.alternate===null&&n(z,ie),_=d(we,_,me),_e===null?oe=we:_e.sibling=we,_e=we,ie=Se}if(me===M.length)return i(z,ie),Te&&Hn(z,me),oe;if(ie===null){for(;me<M.length;me++)ie=$(z,M[me],H),ie!==null&&(_=d(ie,_,me),_e===null?oe=ie:_e.sibling=ie,_e=ie);return Te&&Hn(z,me),oe}for(ie=s(ie);me<M.length;me++)Se=k(ie,z,me,M[me],H),Se!==null&&(t&&Se.alternate!==null&&ie.delete(Se.key===null?me:Se.key),_=d(Se,_,me),_e===null?oe=Se:_e.sibling=Se,_e=Se);return t&&ie.forEach(function(ka){return n(z,ka)}),Te&&Hn(z,me),oe}function ue(z,_,M,H){if(M==null)throw Error(o(151));for(var oe=null,_e=null,ie=_,me=_=0,Se=null,we=M.next();ie!==null&&!we.done;me++,we=M.next()){ie.index>me?(Se=ie,ie=null):Se=ie.sibling;var ka=N(z,ie,we.value,H);if(ka===null){ie===null&&(ie=Se);break}t&&ie&&ka.alternate===null&&n(z,ie),_=d(ka,_,me),_e===null?oe=ka:_e.sibling=ka,_e=ka,ie=Se}if(we.done)return i(z,ie),Te&&Hn(z,me),oe;if(ie===null){for(;!we.done;me++,we=M.next())we=$(z,we.value,H),we!==null&&(_=d(we,_,me),_e===null?oe=we:_e.sibling=we,_e=we);return Te&&Hn(z,me),oe}for(ie=s(ie);!we.done;me++,we=M.next())we=k(ie,z,me,we.value,H),we!==null&&(t&&we.alternate!==null&&ie.delete(we.key===null?me:we.key),_=d(we,_,me),_e===null?oe=we:_e.sibling=we,_e=we);return t&&ie.forEach(function(dE){return n(z,dE)}),Te&&Hn(z,me),oe}function Le(z,_,M,H){if(typeof M=="object"&&M!==null&&M.type===E&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case x:e:{for(var oe=M.key;_!==null;){if(_.key===oe){if(oe=M.type,oe===E){if(_.tag===7){i(z,_.sibling),H=u(_,M.props.children),H.return=z,z=H;break e}}else if(_.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&ni(oe)===_.type){i(z,_.sibling),H=u(_,M.props),Pr(H,M),H.return=z,z=H;break e}i(z,_);break}else n(z,_);_=_.sibling}M.type===E?(H=Ja(M.props.children,z.mode,H,M.key),H.return=z,z=H):(H=ys(M.type,M.key,M.props,null,z.mode,H),Pr(H,M),H.return=z,z=H)}return g(z);case R:e:{for(oe=M.key;_!==null;){if(_.key===oe)if(_.tag===4&&_.stateNode.containerInfo===M.containerInfo&&_.stateNode.implementation===M.implementation){i(z,_.sibling),H=u(_,M.children||[]),H.return=z,z=H;break e}else{i(z,_);break}else n(z,_);_=_.sibling}H=Nu(M,z.mode,H),H.return=z,z=H}return g(z);case P:return M=ni(M),Le(z,_,M,H)}if(ke(M))return ee(z,_,M,H);if(Ce(M)){if(oe=Ce(M),typeof oe!="function")throw Error(o(150));return M=oe.call(M),ue(z,_,M,H)}if(typeof M.then=="function")return Le(z,_,_s(M),H);if(M.$$typeof===j)return Le(z,_,Ss(z,M),H);ws(z,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,_!==null&&_.tag===6?(i(z,_.sibling),H=u(_,M),H.return=z,z=H):(i(z,_),H=Du(M,z.mode,H),H.return=z,z=H),g(z)):i(z,_)}return function(z,_,M,H){try{Yr=0;var oe=Le(z,_,M,H);return Zi=null,oe}catch(ie){if(ie===Bi||ie===Ts)throw ie;var _e=Kt(29,ie,null,z.mode);return _e.lanes=H,_e.return=z,_e}}}var ii=Xm(!0),Km=Xm(!1),va=!1;function Yu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pu(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ba(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sa(t,n,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(ze&2)!==0){var u=s.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),s.pending=n,n=gs(t),Mm(t,null,i),n}return ps(t,s,n,i),gs(t)}function Xr(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,i|=s,n.lanes=i,Bh(t,i)}}function Xu(t,n){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?u=d=n:d=d.next=n}else u=d=n;i={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var Ku=!1;function Kr(){if(Ku){var t=Li;if(t!==null)throw t}}function Qr(t,n,i,s){Ku=!1;var u=t.updateQueue;va=!1;var d=u.firstBaseUpdate,g=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var T=b,D=T.next;T.next=null,g===null?d=D:g.next=D,g=T;var B=t.alternate;B!==null&&(B=B.updateQueue,b=B.lastBaseUpdate,b!==g&&(b===null?B.firstBaseUpdate=D:b.next=D,B.lastBaseUpdate=T))}if(d!==null){var $=u.baseState;g=0,B=D=T=null,b=d;do{var N=b.lane&-536870913,k=N!==b.lane;if(k?(be&N)===N:(s&N)===N){N!==0&&N===Ui&&(Ku=!0),B!==null&&(B=B.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ee=t,ue=b;N=n;var Le=i;switch(ue.tag){case 1:if(ee=ue.payload,typeof ee=="function"){$=ee.call(Le,$,N);break e}$=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ue.payload,N=typeof ee=="function"?ee.call(Le,$,N):ee,N==null)break e;$=v({},$,N);break e;case 2:va=!0}}N=b.callback,N!==null&&(t.flags|=64,k&&(t.flags|=8192),k=u.callbacks,k===null?u.callbacks=[N]:k.push(N))}else k={lane:N,tag:b.tag,payload:b.payload,callback:b.callback,next:null},B===null?(D=B=k,T=$):B=B.next=k,g|=N;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;k=b,b=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);B===null&&(T=$),u.baseState=T,u.firstBaseUpdate=D,u.lastBaseUpdate=B,d===null&&(u.shared.lanes=0),wa|=g,t.lanes=g,t.memoizedState=$}}function Qm(t,n){if(typeof t!="function")throw Error(o(191,t));t.call(n)}function Fm(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Qm(i[t],n)}var Hi=w(null),As=w(0);function Jm(t,n){t=In,K(As,t),K(Hi,n),In=t|n.baseLanes}function Qu(){K(As,In),K(Hi,Hi.current)}function Fu(){In=As.current,Z(Hi),Z(As)}var Qt=w(null),un=null;function xa(t){var n=t.alternate;K(tt,tt.current&1),K(Qt,t),un===null&&(n===null||Hi.current!==null||n.memoizedState!==null)&&(un=t)}function Ju(t){K(tt,tt.current),K(Qt,t),un===null&&(un=t)}function Im(t){t.tag===22?(K(tt,tt.current),K(Qt,t),un===null&&(un=t)):Ta()}function Ta(){K(tt,tt.current),K(Qt,Qt.current)}function Ft(t){Z(Qt),un===t&&(un=null),Z(tt)}var tt=w(0);function zs(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||af(i)||rf(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var qn=0,he=null,Ve=null,ut=null,Cs=!1,$i=!1,ri=!1,Rs=0,Fr=0,Gi=null,nT=0;function Ie(){throw Error(o(321))}function Iu(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!Xt(t[i],n[i]))return!1;return!0}function Wu(t,n,i,s,u,d){return qn=d,he=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,U.H=t===null||t.memoizedState===null?kp:mc,ri=!1,d=i(s,u),ri=!1,$i&&(d=ep(n,i,s,u)),Wm(t),d}function Wm(t){U.H=Wr;var n=Ve!==null&&Ve.next!==null;if(qn=0,ut=Ve=he=null,Cs=!1,Fr=0,Gi=null,n)throw Error(o(300));t===null||ct||(t=t.dependencies,t!==null&&bs(t)&&(ct=!0))}function ep(t,n,i,s){he=t;var u=0;do{if($i&&(Gi=null),Fr=0,$i=!1,25<=u)throw Error(o(301));if(u+=1,ut=Ve=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}U.H=Vp,d=n(i,s)}while($i);return d}function aT(){var t=U.H,n=t.useState()[0];return n=typeof n.then=="function"?Jr(n):n,t=t.useState()[0],(Ve!==null?Ve.memoizedState:null)!==t&&(he.flags|=1024),n}function ec(){var t=Rs!==0;return Rs=0,t}function tc(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function nc(t){if(Cs){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Cs=!1}qn=0,ut=Ve=he=null,$i=!1,Fr=Rs=0,Gi=null}function Dt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?he.memoizedState=ut=t:ut=ut.next=t,ut}function nt(){if(Ve===null){var t=he.alternate;t=t!==null?t.memoizedState:null}else t=Ve.next;var n=ut===null?he.memoizedState:ut.next;if(n!==null)ut=n,Ve=t;else{if(t===null)throw he.alternate===null?Error(o(467)):Error(o(310));Ve=t,t={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},ut===null?he.memoizedState=ut=t:ut=ut.next=t}return ut}function Os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jr(t){var n=Fr;return Fr+=1,Gi===null&&(Gi=[]),t=qm(Gi,t,n),n=he,(ut===null?n.memoizedState:ut.next)===null&&(n=n.alternate,U.H=n===null||n.memoizedState===null?kp:mc),t}function Ms(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Jr(t);if(t.$$typeof===j)return Et(t)}throw Error(o(438,String(t)))}function ac(t){var n=null,i=he.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=he.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Os(),he.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),s=0;s<t;s++)i[s]=xe;return n.index++,i}function Yn(t,n){return typeof n=="function"?n(t):n}function Ds(t){var n=nt();return ic(n,Ve,t)}function ic(t,n,i){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=i;var u=t.baseQueue,d=s.pending;if(d!==null){if(u!==null){var g=u.next;u.next=d.next,d.next=g}n.baseQueue=u=d,s.pending=null}if(d=t.baseState,u===null)t.memoizedState=d;else{n=u.next;var b=g=null,T=null,D=n,B=!1;do{var $=D.lane&-536870913;if($!==D.lane?(be&$)===$:(qn&$)===$){var N=D.revertLane;if(N===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),$===Ui&&(B=!0);else if((qn&N)===N){D=D.next,N===Ui&&(B=!0);continue}else $={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=$,g=d):T=T.next=$,he.lanes|=N,wa|=N;$=D.action,ri&&i(d,$),d=D.hasEagerState?D.eagerState:i(d,$)}else N={lane:$,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=N,g=d):T=T.next=N,he.lanes|=$,wa|=$;D=D.next}while(D!==null&&D!==n);if(T===null?g=d:T.next=b,!Xt(d,t.memoizedState)&&(ct=!0,B&&(i=Li,i!==null)))throw i;t.memoizedState=d,t.baseState=g,t.baseQueue=T,s.lastRenderedState=d}return u===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function rc(t){var n=nt(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var s=i.dispatch,u=i.pending,d=n.memoizedState;if(u!==null){i.pending=null;var g=u=u.next;do d=t(d,g.action),g=g.next;while(g!==u);Xt(d,n.memoizedState)||(ct=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,s]}function tp(t,n,i){var s=he,u=nt(),d=Te;if(d){if(i===void 0)throw Error(o(407));i=i()}else i=n();var g=!Xt((Ve||u).memoizedState,i);if(g&&(u.memoizedState=i,ct=!0),u=u.queue,lc(ip.bind(null,s,u,t),[t]),u.getSnapshot!==n||g||ut!==null&&ut.memoizedState.tag&1){if(s.flags|=2048,qi(9,{destroy:void 0},ap.bind(null,s,u,i,n),null),Be===null)throw Error(o(349));d||(qn&127)!==0||np(s,n,i)}return i}function np(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=he.updateQueue,n===null?(n=Os(),he.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function ap(t,n,i,s){n.value=i,n.getSnapshot=s,rp(n)&&op(t)}function ip(t,n,i){return i(function(){rp(n)&&op(t)})}function rp(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!Xt(t,i)}catch{return!0}}function op(t){var n=Fa(t,2);n!==null&&$t(n,t,2)}function oc(t){var n=Dt();if(typeof t=="function"){var i=t;if(t=i(),ri){fa(!0);try{i()}finally{fa(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:t},n}function sp(t,n,i,s){return t.baseState=i,ic(t,Ve,typeof s=="function"?s:Yn)}function iT(t,n,i,s,u){if(ks(t))throw Error(o(485));if(t=n.action,t!==null){var d={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){d.listeners.push(g)}};U.T!==null?i(!0):d.isTransition=!1,s(d),i=n.pending,i===null?(d.next=n.pending=d,lp(n,d)):(d.next=i.next,n.pending=i.next=d)}}function lp(t,n){var i=n.action,s=n.payload,u=t.state;if(n.isTransition){var d=U.T,g={};U.T=g;try{var b=i(u,s),T=U.S;T!==null&&T(g,b),up(t,n,b)}catch(D){sc(t,n,D)}finally{d!==null&&g.types!==null&&(d.types=g.types),U.T=d}}else try{d=i(u,s),up(t,n,d)}catch(D){sc(t,n,D)}}function up(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){cp(t,n,s)},function(s){return sc(t,n,s)}):cp(t,n,i)}function cp(t,n,i){n.status="fulfilled",n.value=i,fp(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,lp(t,i)))}function sc(t,n,i){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,fp(n),n=n.next;while(n!==s)}t.action=null}function fp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function dp(t,n){return n}function hp(t,n){if(Te){var i=Be.formState;if(i!==null){e:{var s=he;if(Te){if(He){t:{for(var u=He,d=ln;u.nodeType!==8;){if(!d){u=null;break t}if(u=cn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){He=cn(u.nextSibling),s=u.data==="F!";break e}}ga(s)}s=!1}s&&(n=i[0])}}return i=Dt(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dp,lastRenderedState:n},i.queue=s,i=Dp.bind(null,he,s),s.dispatch=i,s=oc(!1),d=hc.bind(null,he,!1,s.queue),s=Dt(),u={state:n,dispatch:null,action:t,pending:null},s.queue=u,i=iT.bind(null,he,u,d,i),u.dispatch=i,s.memoizedState=t,[n,i,!1]}function mp(t){var n=nt();return pp(n,Ve,t)}function pp(t,n,i){if(n=ic(t,n,dp)[0],t=Ds(Yn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Jr(n)}catch(g){throw g===Bi?Ts:g}else s=n;n=nt();var u=n.queue,d=u.dispatch;return i!==n.memoizedState&&(he.flags|=2048,qi(9,{destroy:void 0},rT.bind(null,u,i),null)),[s,d,t]}function rT(t,n){t.action=n}function gp(t){var n=nt(),i=Ve;if(i!==null)return pp(n,i,t);nt(),n=n.memoizedState,i=nt();var s=i.queue.dispatch;return i.memoizedState=t,[n,s,!1]}function qi(t,n,i,s){return t={tag:t,create:i,deps:s,inst:n,next:null},n=he.updateQueue,n===null&&(n=Os(),he.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(s=i.next,i.next=t,t.next=s,n.lastEffect=t),t}function yp(){return nt().memoizedState}function Ns(t,n,i,s){var u=Dt();he.flags|=t,u.memoizedState=qi(1|n,{destroy:void 0},i,s===void 0?null:s)}function js(t,n,i,s){var u=nt();s=s===void 0?null:s;var d=u.memoizedState.inst;Ve!==null&&s!==null&&Iu(s,Ve.memoizedState.deps)?u.memoizedState=qi(n,d,i,s):(he.flags|=t,u.memoizedState=qi(1|n,d,i,s))}function vp(t,n){Ns(8390656,8,t,n)}function lc(t,n){js(2048,8,t,n)}function oT(t){he.flags|=4;var n=he.updateQueue;if(n===null)n=Os(),he.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function bp(t){var n=nt().memoizedState;return oT({ref:n,nextImpl:t}),function(){if((ze&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}function Sp(t,n){return js(4,2,t,n)}function xp(t,n){return js(4,4,t,n)}function Tp(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Ep(t,n,i){i=i!=null?i.concat([t]):null,js(4,4,Tp.bind(null,n,t),i)}function uc(){}function _p(t,n){var i=nt();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&Iu(n,s[1])?s[0]:(i.memoizedState=[t,n],t)}function wp(t,n){var i=nt();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&Iu(n,s[1]))return s[0];if(s=t(),ri){fa(!0);try{t()}finally{fa(!1)}}return i.memoizedState=[s,n],s}function cc(t,n,i){return i===void 0||(qn&1073741824)!==0&&(be&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=Ag(),he.lanes|=t,wa|=t,i)}function Ap(t,n,i,s){return Xt(i,n)?i:Hi.current!==null?(t=cc(t,i,s),Xt(t,n)||(ct=!0),t):(qn&42)===0||(qn&1073741824)!==0&&(be&261930)===0?(ct=!0,t.memoizedState=i):(t=Ag(),he.lanes|=t,wa|=t,n)}function zp(t,n,i,s,u){var d=X.p;X.p=d!==0&&8>d?d:8;var g=U.T,b={};U.T=b,hc(t,!1,n,i);try{var T=u(),D=U.S;if(D!==null&&D(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=tT(T,s);Ir(t,n,B,Wt(t))}else Ir(t,n,s,Wt(t))}catch($){Ir(t,n,{then:function(){},status:"rejected",reason:$},Wt())}finally{X.p=d,g!==null&&b.types!==null&&(g.types=b.types),U.T=g}}function sT(){}function fc(t,n,i,s){if(t.tag!==5)throw Error(o(476));var u=Cp(t).queue;zp(t,u,n,Y,i===null?sT:function(){return Rp(t),i(s)})}function Cp(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:Y},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Rp(t){var n=Cp(t);n.next===null&&(n=t.alternate.memoizedState),Ir(t,n.next.queue,{},Wt())}function dc(){return Et(go)}function Op(){return nt().memoizedState}function Mp(){return nt().memoizedState}function lT(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=Wt();t=ba(i);var s=Sa(n,t,i);s!==null&&($t(s,n,i),Xr(s,n,i)),n={cache:Hu()},t.payload=n;return}n=n.return}}function uT(t,n,i){var s=Wt();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ks(t)?Np(n,i):(i=Ou(t,n,i,s),i!==null&&($t(i,t,s),jp(i,n,s)))}function Dp(t,n,i){var s=Wt();Ir(t,n,i,s)}function Ir(t,n,i,s){var u={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ks(t))Np(n,u);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var g=n.lastRenderedState,b=d(g,i);if(u.hasEagerState=!0,u.eagerState=b,Xt(b,g))return ps(t,n,u,0),Be===null&&ms(),!1}catch{}if(i=Ou(t,n,u,s),i!==null)return $t(i,t,s),jp(i,n,s),!0}return!1}function hc(t,n,i,s){if(s={lane:2,revertLane:Yc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ks(t)){if(n)throw Error(o(479))}else n=Ou(t,i,s,2),n!==null&&$t(n,t,2)}function ks(t){var n=t.alternate;return t===he||n!==null&&n===he}function Np(t,n){$i=Cs=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function jp(t,n,i){if((i&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,i|=s,n.lanes=i,Bh(t,i)}}var Wr={readContext:Et,use:Ms,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Wr.useEffectEvent=Ie;var kp={readContext:Et,use:Ms,useCallback:function(t,n){return Dt().memoizedState=[t,n===void 0?null:n],t},useContext:Et,useEffect:vp,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,Ns(4194308,4,Tp.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Ns(4194308,4,t,n)},useInsertionEffect:function(t,n){Ns(4,2,t,n)},useMemo:function(t,n){var i=Dt();n=n===void 0?null:n;var s=t();if(ri){fa(!0);try{t()}finally{fa(!1)}}return i.memoizedState=[s,n],s},useReducer:function(t,n,i){var s=Dt();if(i!==void 0){var u=i(n);if(ri){fa(!0);try{i(n)}finally{fa(!1)}}}else u=n;return s.memoizedState=s.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},s.queue=t,t=t.dispatch=uT.bind(null,he,t),[s.memoizedState,t]},useRef:function(t){var n=Dt();return t={current:t},n.memoizedState=t},useState:function(t){t=oc(t);var n=t.queue,i=Dp.bind(null,he,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:uc,useDeferredValue:function(t,n){var i=Dt();return cc(i,t,n)},useTransition:function(){var t=oc(!1);return t=zp.bind(null,he,t.queue,!0,!1),Dt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var s=he,u=Dt();if(Te){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),Be===null)throw Error(o(349));(be&127)!==0||np(s,n,i)}u.memoizedState=i;var d={value:i,getSnapshot:n};return u.queue=d,vp(ip.bind(null,s,d,t),[t]),s.flags|=2048,qi(9,{destroy:void 0},ap.bind(null,s,d,i,n),null),i},useId:function(){var t=Dt(),n=Be.identifierPrefix;if(Te){var i=Rn,s=Cn;i=(s&~(1<<32-Pt(s)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Rs++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=nT++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:dc,useFormState:hp,useActionState:hp,useOptimistic:function(t){var n=Dt();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=hc.bind(null,he,!0,i),i.dispatch=n,[t,n]},useMemoCache:ac,useCacheRefresh:function(){return Dt().memoizedState=lT.bind(null,he)},useEffectEvent:function(t){var n=Dt(),i={impl:t};return n.memoizedState=i,function(){if((ze&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},mc={readContext:Et,use:Ms,useCallback:_p,useContext:Et,useEffect:lc,useImperativeHandle:Ep,useInsertionEffect:Sp,useLayoutEffect:xp,useMemo:wp,useReducer:Ds,useRef:yp,useState:function(){return Ds(Yn)},useDebugValue:uc,useDeferredValue:function(t,n){var i=nt();return Ap(i,Ve.memoizedState,t,n)},useTransition:function(){var t=Ds(Yn)[0],n=nt().memoizedState;return[typeof t=="boolean"?t:Jr(t),n]},useSyncExternalStore:tp,useId:Op,useHostTransitionStatus:dc,useFormState:mp,useActionState:mp,useOptimistic:function(t,n){var i=nt();return sp(i,Ve,t,n)},useMemoCache:ac,useCacheRefresh:Mp};mc.useEffectEvent=bp;var Vp={readContext:Et,use:Ms,useCallback:_p,useContext:Et,useEffect:lc,useImperativeHandle:Ep,useInsertionEffect:Sp,useLayoutEffect:xp,useMemo:wp,useReducer:rc,useRef:yp,useState:function(){return rc(Yn)},useDebugValue:uc,useDeferredValue:function(t,n){var i=nt();return Ve===null?cc(i,t,n):Ap(i,Ve.memoizedState,t,n)},useTransition:function(){var t=rc(Yn)[0],n=nt().memoizedState;return[typeof t=="boolean"?t:Jr(t),n]},useSyncExternalStore:tp,useId:Op,useHostTransitionStatus:dc,useFormState:gp,useActionState:gp,useOptimistic:function(t,n){var i=nt();return Ve!==null?sp(i,Ve,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:ac,useCacheRefresh:Mp};Vp.useEffectEvent=bp;function pc(t,n,i,s){n=t.memoizedState,i=i(s,n),i=i==null?n:v({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var gc={enqueueSetState:function(t,n,i){t=t._reactInternals;var s=Wt(),u=ba(s);u.payload=n,i!=null&&(u.callback=i),n=Sa(t,u,s),n!==null&&($t(n,t,s),Xr(n,t,s))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var s=Wt(),u=ba(s);u.tag=1,u.payload=n,i!=null&&(u.callback=i),n=Sa(t,u,s),n!==null&&($t(n,t,s),Xr(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=Wt(),s=ba(i);s.tag=2,n!=null&&(s.callback=n),n=Sa(t,s,i),n!==null&&($t(n,t,i),Xr(n,t,i))}};function Up(t,n,i,s,u,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,d,g):n.prototype&&n.prototype.isPureReactComponent?!Br(i,s)||!Br(u,d):!0}function Lp(t,n,i,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==t&&gc.enqueueReplaceState(n,n.state,null)}function oi(t,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(t=t.defaultProps){i===n&&(i=v({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}function Bp(t){hs(t)}function Zp(t){console.error(t)}function Hp(t){hs(t)}function Vs(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function $p(t,n,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function yc(t,n,i){return i=ba(i),i.tag=3,i.payload={element:null},i.callback=function(){Vs(t,n)},i}function Gp(t){return t=ba(t),t.tag=3,t}function qp(t,n,i,s){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=s.value;t.payload=function(){return u(d)},t.callback=function(){$p(n,i,s)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){$p(n,i,s),typeof u!="function"&&(Aa===null?Aa=new Set([this]):Aa.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function cT(t,n,i,s,u){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&Vi(n,i,u,!0),i=Qt.current,i!==null){switch(i.tag){case 31:case 13:return un===null?Ks():i.alternate===null&&We===0&&(We=3),i.flags&=-257,i.flags|=65536,i.lanes=u,s===Es?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),$c(t,s,u)),!1;case 22:return i.flags|=65536,s===Es?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),$c(t,s,u)),!1}throw Error(o(435,i.tag))}return $c(t,s,u),Ks(),!1}if(Te)return n=Qt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,s!==Vu&&(t=Error(o(422),{cause:s}),$r(rn(t,i)))):(s!==Vu&&(n=Error(o(423),{cause:s}),$r(rn(n,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,s=rn(s,i),u=yc(t.stateNode,s,u),Xu(t,u),We!==4&&(We=2)),!1;var d=Error(o(520),{cause:s});if(d=rn(d,i),so===null?so=[d]:so.push(d),We!==4&&(We=2),n===null)return!0;s=rn(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=yc(i.stateNode,s,t),Xu(i,t),!1;case 1:if(n=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Aa===null||!Aa.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Gp(u),qp(u,t,i,s),Xu(i,u),!1}i=i.return}while(i!==null);return!1}var vc=Error(o(461)),ct=!1;function _t(t,n,i,s){n.child=t===null?Km(n,null,i,s):ii(n,t.child,i,s)}function Yp(t,n,i,s,u){i=i.render;var d=n.ref;if("ref"in s){var g={};for(var b in s)b!=="ref"&&(g[b]=s[b])}else g=s;return ei(n),s=Wu(t,n,i,g,d,u),b=ec(),t!==null&&!ct?(tc(t,n,u),Pn(t,n,u)):(Te&&b&&ju(n),n.flags|=1,_t(t,n,s,u),n.child)}function Pp(t,n,i,s,u){if(t===null){var d=i.type;return typeof d=="function"&&!Mu(d)&&d.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=d,Xp(t,n,d,s,u)):(t=ys(i.type,null,s,n,n.mode,u),t.ref=n.ref,t.return=n,n.child=t)}if(d=t.child,!Ac(t,u)){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:Br,i(g,s)&&t.ref===n.ref)return Pn(t,n,u)}return n.flags|=1,t=Zn(d,s),t.ref=n.ref,t.return=n,n.child=t}function Xp(t,n,i,s,u){if(t!==null){var d=t.memoizedProps;if(Br(d,s)&&t.ref===n.ref)if(ct=!1,n.pendingProps=s=d,Ac(t,u))(t.flags&131072)!==0&&(ct=!0);else return n.lanes=t.lanes,Pn(t,n,u)}return bc(t,n,i,s,u)}function Kp(t,n,i,s){var u=s.children,d=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,t!==null){for(s=n.child=t.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~d}else s=0,n.child=null;return Qp(t,n,d,i,s)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&xs(n,d!==null?d.cachePool:null),d!==null?Jm(n,d):Qu(),Im(n);else return s=n.lanes=536870912,Qp(t,n,d!==null?d.baseLanes|i:i,i,s)}else d!==null?(xs(n,d.cachePool),Jm(n,d),Ta(),n.memoizedState=null):(t!==null&&xs(n,null),Qu(),Ta());return _t(t,n,u,i),n.child}function eo(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Qp(t,n,i,s,u){var d=Gu();return d=d===null?null:{parent:lt._currentValue,pool:d},n.memoizedState={baseLanes:i,cachePool:d},t!==null&&xs(n,null),Qu(),Im(n),t!==null&&Vi(t,n,s,!0),n.childLanes=u,null}function Us(t,n){return n=Bs({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function Fp(t,n,i){return ii(n,t.child,null,i),t=Us(n,n.pendingProps),t.flags|=2,Ft(n),n.memoizedState=null,t}function fT(t,n,i){var s=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Te){if(s.mode==="hidden")return t=Us(n,s),n.lanes=536870912,eo(null,t);if(Ju(n),(t=He)?(t=ly(t,ln),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:ma!==null?{id:Cn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},i=Nm(t),i.return=n,n.child=i,Tt=n,He=null)):t=null,t===null)throw ga(n);return n.lanes=536870912,null}return Us(n,s)}var d=t.memoizedState;if(d!==null){var g=d.dehydrated;if(Ju(n),u)if(n.flags&256)n.flags&=-257,n=Fp(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(o(558));else if(ct||Vi(t,n,i,!1),u=(i&t.childLanes)!==0,ct||u){if(s=Be,s!==null&&(g=Zh(s,i),g!==0&&g!==d.retryLane))throw d.retryLane=g,Fa(t,g),$t(s,t,g),vc;Ks(),n=Fp(t,n,i)}else t=d.treeContext,He=cn(g.nextSibling),Tt=n,Te=!0,pa=null,ln=!1,t!==null&&Vm(n,t),n=Us(n,s),n.flags|=4096;return n}return t=Zn(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function Ls(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(n.flags|=4194816)}}function bc(t,n,i,s,u){return ei(n),i=Wu(t,n,i,s,void 0,u),s=ec(),t!==null&&!ct?(tc(t,n,u),Pn(t,n,u)):(Te&&s&&ju(n),n.flags|=1,_t(t,n,i,u),n.child)}function Jp(t,n,i,s,u,d){return ei(n),n.updateQueue=null,i=ep(n,s,i,u),Wm(t),s=ec(),t!==null&&!ct?(tc(t,n,d),Pn(t,n,d)):(Te&&s&&ju(n),n.flags|=1,_t(t,n,i,d),n.child)}function Ip(t,n,i,s,u){if(ei(n),n.stateNode===null){var d=Di,g=i.contextType;typeof g=="object"&&g!==null&&(d=Et(g)),d=new i(s,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=gc,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=s,d.state=n.memoizedState,d.refs={},Yu(n),g=i.contextType,d.context=typeof g=="object"&&g!==null?Et(g):Di,d.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(pc(n,i,g,s),d.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&gc.enqueueReplaceState(d,d.state,null),Qr(n,s,d,u),Kr(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){d=n.stateNode;var b=n.memoizedProps,T=oi(i,b);d.props=T;var D=d.context,B=i.contextType;g=Di,typeof B=="object"&&B!==null&&(g=Et(B));var $=i.getDerivedStateFromProps;B=typeof $=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,B||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||D!==g)&&Lp(n,d,s,g),va=!1;var N=n.memoizedState;d.state=N,Qr(n,s,d,u),Kr(),D=n.memoizedState,b||N!==D||va?(typeof $=="function"&&(pc(n,i,$,s),D=n.memoizedState),(T=va||Up(n,i,T,s,N,D,g))?(B||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=D),d.props=s,d.state=D,d.context=g,s=T):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{d=n.stateNode,Pu(t,n),g=n.memoizedProps,B=oi(i,g),d.props=B,$=n.pendingProps,N=d.context,D=i.contextType,T=Di,typeof D=="object"&&D!==null&&(T=Et(D)),b=i.getDerivedStateFromProps,(D=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==$||N!==T)&&Lp(n,d,s,T),va=!1,N=n.memoizedState,d.state=N,Qr(n,s,d,u),Kr();var k=n.memoizedState;g!==$||N!==k||va||t!==null&&t.dependencies!==null&&bs(t.dependencies)?(typeof b=="function"&&(pc(n,i,b,s),k=n.memoizedState),(B=va||Up(n,i,B,s,N,k,T)||t!==null&&t.dependencies!==null&&bs(t.dependencies))?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,k,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,k,T)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=k),d.props=s,d.state=k,d.context=T,s=B):(typeof d.componentDidUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&N===t.memoizedState||(n.flags|=1024),s=!1)}return d=s,Ls(t,n),s=(n.flags&128)!==0,d||s?(d=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,t!==null&&s?(n.child=ii(n,t.child,null,u),n.child=ii(n,null,i,u)):_t(t,n,i,u),n.memoizedState=d.state,t=n.child):t=Pn(t,n,u),t}function Wp(t,n,i,s){return Ia(),n.flags|=256,_t(t,n,i,s),n.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(t){return{baseLanes:t,cachePool:$m()}}function Tc(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=It),t}function eg(t,n,i){var s=n.pendingProps,u=!1,d=(n.flags&128)!==0,g;if((g=d)||(g=t!==null&&t.memoizedState===null?!1:(tt.current&2)!==0),g&&(u=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,t===null){if(Te){if(u?xa(n):Ta(),(t=He)?(t=ly(t,ln),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:ma!==null?{id:Cn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},i=Nm(t),i.return=n,n.child=i,Tt=n,He=null)):t=null,t===null)throw ga(n);return rf(t)?n.lanes=32:n.lanes=536870912,null}var b=s.children;return s=s.fallback,u?(Ta(),u=n.mode,b=Bs({mode:"hidden",children:b},u),s=Ja(s,u,i,null),b.return=n,s.return=n,b.sibling=s,n.child=b,s=n.child,s.memoizedState=xc(i),s.childLanes=Tc(t,g,i),n.memoizedState=Sc,eo(null,s)):(xa(n),Ec(n,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(d)n.flags&256?(xa(n),n.flags&=-257,n=_c(t,n,i)):n.memoizedState!==null?(Ta(),n.child=t.child,n.flags|=128,n=null):(Ta(),b=s.fallback,u=n.mode,s=Bs({mode:"visible",children:s.children},u),b=Ja(b,u,i,null),b.flags|=2,s.return=n,b.return=n,s.sibling=b,n.child=s,ii(n,t.child,null,i),s=n.child,s.memoizedState=xc(i),s.childLanes=Tc(t,g,i),n.memoizedState=Sc,n=eo(null,s));else if(xa(n),rf(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var D=g.dgst;g=D,s=Error(o(419)),s.stack="",s.digest=g,$r({value:s,source:null,stack:null}),n=_c(t,n,i)}else if(ct||Vi(t,n,i,!1),g=(i&t.childLanes)!==0,ct||g){if(g=Be,g!==null&&(s=Zh(g,i),s!==0&&s!==T.retryLane))throw T.retryLane=s,Fa(t,s),$t(g,t,s),vc;af(b)||Ks(),n=_c(t,n,i)}else af(b)?(n.flags|=192,n.child=t.child,n=null):(t=T.treeContext,He=cn(b.nextSibling),Tt=n,Te=!0,pa=null,ln=!1,t!==null&&Vm(n,t),n=Ec(n,s.children),n.flags|=4096);return n}return u?(Ta(),b=s.fallback,u=n.mode,T=t.child,D=T.sibling,s=Zn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,D!==null?b=Zn(D,b):(b=Ja(b,u,i,null),b.flags|=2),b.return=n,s.return=n,s.sibling=b,n.child=s,eo(null,s),s=n.child,b=t.child.memoizedState,b===null?b=xc(i):(u=b.cachePool,u!==null?(T=lt._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=$m(),b={baseLanes:b.baseLanes|i,cachePool:u}),s.memoizedState=b,s.childLanes=Tc(t,g,i),n.memoizedState=Sc,eo(t.child,s)):(xa(n),i=t.child,t=i.sibling,i=Zn(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,t!==null&&(g=n.deletions,g===null?(n.deletions=[t],n.flags|=16):g.push(t)),n.child=i,n.memoizedState=null,i)}function Ec(t,n){return n=Bs({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Bs(t,n){return t=Kt(22,t,null,n),t.lanes=0,t}function _c(t,n,i){return ii(n,t.child,null,i),t=Ec(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function tg(t,n,i){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),Bu(t.return,n,i)}function wc(t,n,i,s,u,d){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:u,treeForkCount:d}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=i,g.tailMode=u,g.treeForkCount=d)}function ng(t,n,i){var s=n.pendingProps,u=s.revealOrder,d=s.tail;s=s.children;var g=tt.current,b=(g&2)!==0;if(b?(g=g&1|2,n.flags|=128):g&=1,K(tt,g),_t(t,n,s,i),s=Te?Hr:0,!b&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&tg(t,i,n);else if(t.tag===19)tg(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(i=n.child,u=null;i!==null;)t=i.alternate,t!==null&&zs(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=n.child,n.child=null):(u=i.sibling,i.sibling=null),wc(n,!1,u,i,d,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=n.child,n.child=null;u!==null;){if(t=u.alternate,t!==null&&zs(t)===null){n.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}wc(n,!0,i,null,d,s);break;case"together":wc(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Pn(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),wa|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(Vi(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(o(153));if(n.child!==null){for(t=n.child,i=Zn(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=Zn(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Ac(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&bs(t)))}function dT(t,n,i){switch(n.tag){case 3:st(n,n.stateNode.containerInfo),ya(n,lt,t.memoizedState.cache),Ia();break;case 27:case 5:qt(n);break;case 4:st(n,n.stateNode.containerInfo);break;case 10:ya(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ju(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(xa(n),n.flags|=128,null):(i&n.child.childLanes)!==0?eg(t,n,i):(xa(n),t=Pn(t,n,i),t!==null?t.sibling:null);xa(n);break;case 19:var u=(t.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(Vi(t,n,i,!1),s=(i&n.childLanes)!==0),u){if(s)return ng(t,n,i);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(tt,tt.current),s)break;return null;case 22:return n.lanes=0,Kp(t,n,i,n.pendingProps);case 24:ya(n,lt,t.memoizedState.cache)}return Pn(t,n,i)}function ag(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)ct=!0;else{if(!Ac(t,i)&&(n.flags&128)===0)return ct=!1,dT(t,n,i);ct=(t.flags&131072)!==0}else ct=!1,Te&&(n.flags&1048576)!==0&&km(n,Hr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=ni(n.elementType),n.type=t,typeof t=="function")Mu(t)?(s=oi(t,s),n.tag=1,n=Ip(null,n,t,s,i)):(n.tag=0,n=bc(null,n,t,s,i));else{if(t!=null){var u=t.$$typeof;if(u===Q){n.tag=11,n=Yp(null,n,t,s,i);break e}else if(u===F){n.tag=14,n=Pp(null,n,t,s,i);break e}}throw n=je(t)||t,Error(o(306,n,""))}}return n;case 0:return bc(t,n,n.type,n.pendingProps,i);case 1:return s=n.type,u=oi(s,n.pendingProps),Ip(t,n,s,u,i);case 3:e:{if(st(n,n.stateNode.containerInfo),t===null)throw Error(o(387));s=n.pendingProps;var d=n.memoizedState;u=d.element,Pu(t,n),Qr(n,s,null,i);var g=n.memoizedState;if(s=g.cache,ya(n,lt,s),s!==d.cache&&Zu(n,[lt],i,!0),Kr(),s=g.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Wp(t,n,s,i);break e}else if(s!==u){u=rn(Error(o(424)),n),$r(u),n=Wp(t,n,s,i);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,He=cn(t.firstChild),Tt=n,Te=!0,pa=null,ln=!0,i=Km(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ia(),s===u){n=Pn(t,n,i);break e}_t(t,n,s,i)}n=n.child}return n;case 26:return Ls(t,n),t===null?(i=my(n.type,null,n.pendingProps,null))?n.memoizedState=i:Te||(i=n.type,t=n.pendingProps,s=tl(fe.current).createElement(i),s[xt]=n,s[Vt]=t,wt(s,i,t),yt(s),n.stateNode=s):n.memoizedState=my(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return qt(n),t===null&&Te&&(s=n.stateNode=fy(n.type,n.pendingProps,fe.current),Tt=n,ln=!0,u=He,Oa(n.type)?(of=u,He=cn(s.firstChild)):He=u),_t(t,n,n.pendingProps.children,i),Ls(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Te&&((u=s=He)&&(s=$T(s,n.type,n.pendingProps,ln),s!==null?(n.stateNode=s,Tt=n,He=cn(s.firstChild),ln=!1,u=!0):u=!1),u||ga(n)),qt(n),u=n.type,d=n.pendingProps,g=t!==null?t.memoizedProps:null,s=d.children,ef(u,d)?s=null:g!==null&&ef(u,g)&&(n.flags|=32),n.memoizedState!==null&&(u=Wu(t,n,aT,null,null,i),go._currentValue=u),Ls(t,n),_t(t,n,s,i),n.child;case 6:return t===null&&Te&&((t=i=He)&&(i=GT(i,n.pendingProps,ln),i!==null?(n.stateNode=i,Tt=n,He=null,t=!0):t=!1),t||ga(n)),null;case 13:return eg(t,n,i);case 4:return st(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=ii(n,null,s,i):_t(t,n,s,i),n.child;case 11:return Yp(t,n,n.type,n.pendingProps,i);case 7:return _t(t,n,n.pendingProps,i),n.child;case 8:return _t(t,n,n.pendingProps.children,i),n.child;case 12:return _t(t,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,ya(n,n.type,s.value),_t(t,n,s.children,i),n.child;case 9:return u=n.type._context,s=n.pendingProps.children,ei(n),u=Et(u),s=s(u),n.flags|=1,_t(t,n,s,i),n.child;case 14:return Pp(t,n,n.type,n.pendingProps,i);case 15:return Xp(t,n,n.type,n.pendingProps,i);case 19:return ng(t,n,i);case 31:return fT(t,n,i);case 22:return Kp(t,n,i,n.pendingProps);case 24:return ei(n),s=Et(lt),t===null?(u=Gu(),u===null&&(u=Be,d=Hu(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),n.memoizedState={parent:s,cache:u},Yu(n),ya(n,lt,u)):((t.lanes&i)!==0&&(Pu(t,n),Qr(n,null,null,i),Kr()),u=t.memoizedState,d=n.memoizedState,u.parent!==s?(u={parent:s,cache:s},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),ya(n,lt,s)):(s=d.cache,ya(n,lt,s),s!==u.cache&&Zu(n,[lt],i,!0))),_t(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function Xn(t){t.flags|=4}function zc(t,n,i,s,u){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Og())t.flags|=8192;else throw ai=Es,qu}else t.flags&=-16777217}function ig(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!by(n))if(Og())t.flags|=8192;else throw ai=Es,qu}function Zs(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Uh():536870912,t.lanes|=n,Ki|=n)}function to(t,n){if(!Te)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function $e(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,s=0;if(n)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=s,t.childLanes=i,n}function hT(t,n,i){var s=n.pendingProps;switch(ku(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(n),null;case 1:return $e(n),null;case 3:return i=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Gn(lt),Re(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ki(n)?Xn(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Uu())),$e(n),null;case 26:var u=n.type,d=n.memoizedState;return t===null?(Xn(n),d!==null?($e(n),ig(n,d)):($e(n),zc(n,u,null,s,i))):d?d!==t.memoizedState?(Xn(n),$e(n),ig(n,d)):($e(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&Xn(n),$e(n),zc(n,u,t,s,i)),null;case 27:if(_n(n),i=fe.current,u=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Xn(n);else{if(!s){if(n.stateNode===null)throw Error(o(166));return $e(n),null}t=J.current,ki(n)?Um(n):(t=fy(u,s,i),n.stateNode=t,Xn(n))}return $e(n),null;case 5:if(_n(n),u=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Xn(n);else{if(!s){if(n.stateNode===null)throw Error(o(166));return $e(n),null}if(d=J.current,ki(n))Um(n);else{var g=tl(fe.current);switch(d){case 1:d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=g.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof s.is=="string"?g.createElement("select",{is:s.is}):g.createElement("select"),s.multiple?d.multiple=!0:s.size&&(d.size=s.size);break;default:d=typeof s.is=="string"?g.createElement(u,{is:s.is}):g.createElement(u)}}d[xt]=n,d[Vt]=s;e:for(g=n.child;g!==null;){if(g.tag===5||g.tag===6)d.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===n)break e;for(;g.sibling===null;){if(g.return===null||g.return===n)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}n.stateNode=d;e:switch(wt(d,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Xn(n)}}return $e(n),zc(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&Xn(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(o(166));if(t=fe.current,ki(n)){if(t=n.stateNode,i=n.memoizedProps,s=null,u=Tt,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}t[xt]=n,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||ey(t.nodeValue,i)),t||ga(n,!0)}else t=tl(t).createTextNode(s),t[xt]=n,n.stateNode=t}return $e(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(s=ki(n),i!==null){if(t===null){if(!s)throw Error(o(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[xt]=n}else Ia(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),t=!1}else i=Uu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(Ft(n),n):(Ft(n),null);if((n.flags&128)!==0)throw Error(o(558))}return $e(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=ki(n),s!==null&&s.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[xt]=n}else Ia(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),u=!1}else u=Uu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(Ft(n),n):(Ft(n),null)}return Ft(n),(n.flags&128)!==0?(n.lanes=i,n):(i=s!==null,t=t!==null&&t.memoizedState!==null,i&&(s=n.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==u&&(s.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),Zs(n,n.updateQueue),$e(n),null);case 4:return Re(),t===null&&Qc(n.stateNode.containerInfo),$e(n),null;case 10:return Gn(n.type),$e(n),null;case 19:if(Z(tt),s=n.memoizedState,s===null)return $e(n),null;if(u=(n.flags&128)!==0,d=s.rendering,d===null)if(u)to(s,!1);else{if(We!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(d=zs(t),d!==null){for(n.flags|=128,to(s,!1),t=d.updateQueue,n.updateQueue=t,Zs(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)Dm(i,t),i=i.sibling;return K(tt,tt.current&1|2),Te&&Hn(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&Qe()>Ys&&(n.flags|=128,u=!0,to(s,!1),n.lanes=4194304)}else{if(!u)if(t=zs(d),t!==null){if(n.flags|=128,u=!0,t=t.updateQueue,n.updateQueue=t,Zs(n,t),to(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Te)return $e(n),null}else 2*Qe()-s.renderingStartTime>Ys&&i!==536870912&&(n.flags|=128,u=!0,to(s,!1),n.lanes=4194304);s.isBackwards?(d.sibling=n.child,n.child=d):(t=s.last,t!==null?t.sibling=d:n.child=d,s.last=d)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,i=tt.current,K(tt,u?i&1|2:i&1),Te&&Hn(n,s.treeForkCount),t):($e(n),null);case 22:case 23:return Ft(n),Fu(),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&($e(n),n.subtreeFlags&6&&(n.flags|=8192)):$e(n),i=n.updateQueue,i!==null&&Zs(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),t!==null&&Z(ti),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Gn(lt),$e(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function mT(t,n){switch(ku(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Gn(lt),Re(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return _n(n),null;case 31:if(n.memoizedState!==null){if(Ft(n),n.alternate===null)throw Error(o(340));Ia()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Ft(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Ia()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Z(tt),null;case 4:return Re(),null;case 10:return Gn(n.type),null;case 22:case 23:return Ft(n),Fu(),t!==null&&Z(ti),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Gn(lt),null;case 25:return null;default:return null}}function rg(t,n){switch(ku(n),n.tag){case 3:Gn(lt),Re();break;case 26:case 27:case 5:_n(n);break;case 4:Re();break;case 31:n.memoizedState!==null&&Ft(n);break;case 13:Ft(n);break;case 19:Z(tt);break;case 10:Gn(n.type);break;case 22:case 23:Ft(n),Fu(),t!==null&&Z(ti);break;case 24:Gn(lt)}}function no(t,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var u=s.next;i=u;do{if((i.tag&t)===t){s=void 0;var d=i.create,g=i.inst;s=d(),g.destroy=s}i=i.next}while(i!==u)}}catch(b){De(n,n.return,b)}}function Ea(t,n,i){try{var s=n.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var d=u.next;s=d;do{if((s.tag&t)===t){var g=s.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,u=n;var T=i,D=b;try{D()}catch(B){De(u,T,B)}}}s=s.next}while(s!==d)}}catch(B){De(n,n.return,B)}}function og(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{Fm(n,i)}catch(s){De(t,t.return,s)}}}function sg(t,n,i){i.props=oi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){De(t,n,s)}}function ao(t,n){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof i=="function"?t.refCleanup=i(s):i.current=s}}catch(u){De(t,n,u)}}function On(t,n){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(u){De(t,n,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){De(t,n,u)}else i.current=null}function lg(t){var n=t.type,i=t.memoizedProps,s=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(u){De(t,t.return,u)}}function Cc(t,n,i){try{var s=t.stateNode;VT(s,t.type,i,n),s[Vt]=n}catch(u){De(t,t.return,u)}}function ug(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Oa(t.type)||t.tag===4}function Rc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ug(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&&Oa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Oc(t,n,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ln));else if(s!==4&&(s===27&&Oa(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(Oc(t,n,i),t=t.sibling;t!==null;)Oc(t,n,i),t=t.sibling}function Hs(t,n,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(s!==4&&(s===27&&Oa(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Hs(t,n,i),t=t.sibling;t!==null;)Hs(t,n,i),t=t.sibling}function cg(t){var n=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);wt(n,s,i),n[xt]=t,n[Vt]=i}catch(d){De(t,t.return,d)}}var Kn=!1,ft=!1,Mc=!1,fg=typeof WeakSet=="function"?WeakSet:Set,vt=null;function pT(t,n){if(t=t.containerInfo,Ic=ll,t=Em(t),_u(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var u=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var g=0,b=-1,T=-1,D=0,B=0,$=t,N=null;t:for(;;){for(var k;$!==i||u!==0&&$.nodeType!==3||(b=g+u),$!==d||s!==0&&$.nodeType!==3||(T=g+s),$.nodeType===3&&(g+=$.nodeValue.length),(k=$.firstChild)!==null;)N=$,$=k;for(;;){if($===t)break t;if(N===i&&++D===u&&(b=g),N===d&&++B===s&&(T=g),(k=$.nextSibling)!==null)break;$=N,N=$.parentNode}$=k}i=b===-1||T===-1?null:{start:b,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(Wc={focusedElem:t,selectionRange:i},ll=!1,vt=n;vt!==null;)if(n=vt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,vt=t;else for(;vt!==null;){switch(n=vt,d=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)u=t[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&d!==null){t=void 0,i=n,u=d.memoizedProps,d=d.memoizedState,s=i.stateNode;try{var ee=oi(i.type,u);t=s.getSnapshotBeforeUpdate(ee,d),s.__reactInternalSnapshotBeforeUpdate=t}catch(ue){De(i,i.return,ue)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)nf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":nf(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(o(163))}if(t=n.sibling,t!==null){t.return=n.return,vt=t;break}vt=n.return}}function dg(t,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Fn(t,i),s&4&&no(5,i);break;case 1:if(Fn(t,i),s&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(g){De(i,i.return,g)}else{var u=oi(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(u,n,t.__reactInternalSnapshotBeforeUpdate)}catch(g){De(i,i.return,g)}}s&64&&og(i),s&512&&ao(i,i.return);break;case 3:if(Fn(t,i),s&64&&(t=i.updateQueue,t!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Fm(t,n)}catch(g){De(i,i.return,g)}}break;case 27:n===null&&s&4&&cg(i);case 26:case 5:Fn(t,i),n===null&&s&4&&lg(i),s&512&&ao(i,i.return);break;case 12:Fn(t,i);break;case 31:Fn(t,i),s&4&&pg(t,i);break;case 13:Fn(t,i),s&4&&gg(t,i),s&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=_T.bind(null,i),qT(t,i))));break;case 22:if(s=i.memoizedState!==null||Kn,!s){n=n!==null&&n.memoizedState!==null||ft,u=Kn;var d=ft;Kn=s,(ft=n)&&!d?Jn(t,i,(i.subtreeFlags&8772)!==0):Fn(t,i),Kn=u,ft=d}break;case 30:break;default:Fn(t,i)}}function hg(t){var n=t.alternate;n!==null&&(t.alternate=null,hg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&su(n)),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 Ye=null,Lt=!1;function Qn(t,n,i){for(i=i.child;i!==null;)mg(t,n,i),i=i.sibling}function mg(t,n,i){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(zr,i)}catch{}switch(i.tag){case 26:ft||On(i,n),Qn(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ft||On(i,n);var s=Ye,u=Lt;Oa(i.type)&&(Ye=i.stateNode,Lt=!1),Qn(t,n,i),ho(i.stateNode),Ye=s,Lt=u;break;case 5:ft||On(i,n);case 6:if(s=Ye,u=Lt,Ye=null,Qn(t,n,i),Ye=s,Lt=u,Ye!==null)if(Lt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(i.stateNode)}catch(d){De(i,n,d)}else try{Ye.removeChild(i.stateNode)}catch(d){De(i,n,d)}break;case 18:Ye!==null&&(Lt?(t=Ye,oy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),nr(t)):oy(Ye,i.stateNode));break;case 4:s=Ye,u=Lt,Ye=i.stateNode.containerInfo,Lt=!0,Qn(t,n,i),Ye=s,Lt=u;break;case 0:case 11:case 14:case 15:Ea(2,i,n),ft||Ea(4,i,n),Qn(t,n,i);break;case 1:ft||(On(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&sg(i,n,s)),Qn(t,n,i);break;case 21:Qn(t,n,i);break;case 22:ft=(s=ft)||i.memoizedState!==null,Qn(t,n,i),ft=s;break;default:Qn(t,n,i)}}function pg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{nr(t)}catch(i){De(n,n.return,i)}}}function gg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{nr(t)}catch(i){De(n,n.return,i)}}function gT(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new fg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new fg),n;default:throw Error(o(435,t.tag))}}function $s(t,n){var i=gT(t);n.forEach(function(s){if(!i.has(s)){i.add(s);var u=wT.bind(null,t,s);s.then(u,u)}})}function Bt(t,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var u=i[s],d=t,g=n,b=g;e:for(;b!==null;){switch(b.tag){case 27:if(Oa(b.type)){Ye=b.stateNode,Lt=!1;break e}break;case 5:Ye=b.stateNode,Lt=!1;break e;case 3:case 4:Ye=b.stateNode.containerInfo,Lt=!0;break e}b=b.return}if(Ye===null)throw Error(o(160));mg(d,g,u),Ye=null,Lt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)yg(n,t),n=n.sibling}var bn=null;function yg(t,n){var i=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Bt(n,t),Zt(t),s&4&&(Ea(3,t,t.return),no(3,t),Ea(5,t,t.return));break;case 1:Bt(n,t),Zt(t),s&512&&(ft||i===null||On(i,i.return)),s&64&&Kn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var u=bn;if(Bt(n,t),Zt(t),s&512&&(ft||i===null||On(i,i.return)),s&4){var d=i!==null?i.memoizedState:null;if(s=t.memoizedState,i===null)if(s===null)if(t.stateNode===null){e:{s=t.type,i=t.memoizedProps,u=u.ownerDocument||u;t:switch(s){case"title":d=u.getElementsByTagName("title")[0],(!d||d[Or]||d[xt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(s),u.head.insertBefore(d,u.querySelector("head > title"))),wt(d,s,i),d[xt]=t,yt(d),s=d;break e;case"link":var g=yy("link","href",u).get(s+(i.href||""));if(g){for(var b=0;b<g.length;b++)if(d=g[b],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){g.splice(b,1);break t}}d=u.createElement(s),wt(d,s,i),u.head.appendChild(d);break;case"meta":if(g=yy("meta","content",u).get(s+(i.content||""))){for(b=0;b<g.length;b++)if(d=g[b],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(b,1);break t}}d=u.createElement(s),wt(d,s,i),u.head.appendChild(d);break;default:throw Error(o(468,s))}d[xt]=t,yt(d),s=d}t.stateNode=s}else vy(u,t.type,t.stateNode);else t.stateNode=gy(u,s,t.memoizedProps);else d!==s?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,s===null?vy(u,t.type,t.stateNode):gy(u,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Cc(t,t.memoizedProps,i.memoizedProps)}break;case 27:Bt(n,t),Zt(t),s&512&&(ft||i===null||On(i,i.return)),i!==null&&s&4&&Cc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Bt(n,t),Zt(t),s&512&&(ft||i===null||On(i,i.return)),t.flags&32){u=t.stateNode;try{wi(u,"")}catch(ee){De(t,t.return,ee)}}s&4&&t.stateNode!=null&&(u=t.memoizedProps,Cc(t,u,i!==null?i.memoizedProps:u)),s&1024&&(Mc=!0);break;case 6:if(Bt(n,t),Zt(t),s&4){if(t.stateNode===null)throw Error(o(162));s=t.memoizedProps,i=t.stateNode;try{i.nodeValue=s}catch(ee){De(t,t.return,ee)}}break;case 3:if(il=null,u=bn,bn=nl(n.containerInfo),Bt(n,t),bn=u,Zt(t),s&4&&i!==null&&i.memoizedState.isDehydrated)try{nr(n.containerInfo)}catch(ee){De(t,t.return,ee)}Mc&&(Mc=!1,vg(t));break;case 4:s=bn,bn=nl(t.stateNode.containerInfo),Bt(n,t),Zt(t),bn=s;break;case 12:Bt(n,t),Zt(t);break;case 31:Bt(n,t),Zt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,$s(t,s)));break;case 13:Bt(n,t),Zt(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(qs=Qe()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,$s(t,s)));break;case 22:u=t.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,D=Kn,B=ft;if(Kn=D||u,ft=B||T,Bt(n,t),ft=B,Kn=D,Zt(t),s&8192)e:for(n=t.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(i===null||T||Kn||ft||si(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){T=i=n;try{if(d=T.stateNode,u)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=T.stateNode;var $=T.memoizedProps.style,N=$!=null&&$.hasOwnProperty("display")?$.display:null;b.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(ee){De(T,T.return,ee)}}}else if(n.tag===6){if(i===null){T=n;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(ee){De(T,T.return,ee)}}}else if(n.tag===18){if(i===null){T=n;try{var k=T.stateNode;u?sy(k,!0):sy(T.stateNode,!1)}catch(ee){De(T,T.return,ee)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,$s(t,i))));break;case 19:Bt(n,t),Zt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,$s(t,s)));break;case 30:break;case 21:break;default:Bt(n,t),Zt(t)}}function Zt(t){var n=t.flags;if(n&2){try{for(var i,s=t.return;s!==null;){if(ug(s)){i=s;break}s=s.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,d=Rc(t);Hs(t,d,u);break;case 5:var g=i.stateNode;i.flags&32&&(wi(g,""),i.flags&=-33);var b=Rc(t);Hs(t,b,g);break;case 3:case 4:var T=i.stateNode.containerInfo,D=Rc(t);Oc(t,D,T);break;default:throw Error(o(161))}}catch(B){De(t,t.return,B)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function vg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;vg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Fn(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)dg(t,n.alternate,n),n=n.sibling}function si(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Ea(4,n,n.return),si(n);break;case 1:On(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&sg(n,n.return,i),si(n);break;case 27:ho(n.stateNode);case 26:case 5:On(n,n.return),si(n);break;case 22:n.memoizedState===null&&si(n);break;case 30:si(n);break;default:si(n)}t=t.sibling}}function Jn(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,u=t,d=n,g=d.flags;switch(d.tag){case 0:case 11:case 15:Jn(u,d,i),no(4,d);break;case 1:if(Jn(u,d,i),s=d,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(D){De(s,s.return,D)}if(s=d,u=s.updateQueue,u!==null){var b=s.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)Qm(T[u],b)}catch(D){De(s,s.return,D)}}i&&g&64&&og(d),ao(d,d.return);break;case 27:cg(d);case 26:case 5:Jn(u,d,i),i&&s===null&&g&4&&lg(d),ao(d,d.return);break;case 12:Jn(u,d,i);break;case 31:Jn(u,d,i),i&&g&4&&pg(u,d);break;case 13:Jn(u,d,i),i&&g&4&&gg(u,d);break;case 22:d.memoizedState===null&&Jn(u,d,i),ao(d,d.return);break;case 30:break;default:Jn(u,d,i)}n=n.sibling}}function Dc(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Gr(i))}function Nc(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Gr(t))}function Sn(t,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)bg(t,n,i,s),n=n.sibling}function bg(t,n,i,s){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(t,n,i,s),u&2048&&no(9,n);break;case 1:Sn(t,n,i,s);break;case 3:Sn(t,n,i,s),u&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Gr(t)));break;case 12:if(u&2048){Sn(t,n,i,s),t=n.stateNode;try{var d=n.memoizedProps,g=d.id,b=d.onPostCommit;typeof b=="function"&&b(g,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){De(n,n.return,T)}}else Sn(t,n,i,s);break;case 31:Sn(t,n,i,s);break;case 13:Sn(t,n,i,s);break;case 23:break;case 22:d=n.stateNode,g=n.alternate,n.memoizedState!==null?d._visibility&2?Sn(t,n,i,s):io(t,n):d._visibility&2?Sn(t,n,i,s):(d._visibility|=2,Yi(t,n,i,s,(n.subtreeFlags&10256)!==0||!1)),u&2048&&Dc(g,n);break;case 24:Sn(t,n,i,s),u&2048&&Nc(n.alternate,n);break;default:Sn(t,n,i,s)}}function Yi(t,n,i,s,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=t,g=n,b=i,T=s,D=g.flags;switch(g.tag){case 0:case 11:case 15:Yi(d,g,b,T,u),no(8,g);break;case 23:break;case 22:var B=g.stateNode;g.memoizedState!==null?B._visibility&2?Yi(d,g,b,T,u):io(d,g):(B._visibility|=2,Yi(d,g,b,T,u)),u&&D&2048&&Dc(g.alternate,g);break;case 24:Yi(d,g,b,T,u),u&&D&2048&&Nc(g.alternate,g);break;default:Yi(d,g,b,T,u)}n=n.sibling}}function io(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,s=n,u=s.flags;switch(s.tag){case 22:io(i,s),u&2048&&Dc(s.alternate,s);break;case 24:io(i,s),u&2048&&Nc(s.alternate,s);break;default:io(i,s)}n=n.sibling}}var ro=8192;function Pi(t,n,i){if(t.subtreeFlags&ro)for(t=t.child;t!==null;)Sg(t,n,i),t=t.sibling}function Sg(t,n,i){switch(t.tag){case 26:Pi(t,n,i),t.flags&ro&&t.memoizedState!==null&&nE(i,bn,t.memoizedState,t.memoizedProps);break;case 5:Pi(t,n,i);break;case 3:case 4:var s=bn;bn=nl(t.stateNode.containerInfo),Pi(t,n,i),bn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=ro,ro=16777216,Pi(t,n,i),ro=s):Pi(t,n,i));break;default:Pi(t,n,i)}}function xg(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function oo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];vt=s,Eg(s,t)}xg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tg(t),t=t.sibling}function Tg(t){switch(t.tag){case 0:case 11:case 15:oo(t),t.flags&2048&&Ea(9,t,t.return);break;case 3:oo(t);break;case 12:oo(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,Gs(t)):oo(t);break;default:oo(t)}}function Gs(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];vt=s,Eg(s,t)}xg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Ea(8,n,n.return),Gs(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Gs(n));break;default:Gs(n)}t=t.sibling}}function Eg(t,n){for(;vt!==null;){var i=vt;switch(i.tag){case 0:case 11:case 15:Ea(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Gr(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,vt=s;else e:for(i=t;vt!==null;){s=vt;var u=s.sibling,d=s.return;if(hg(s),s===i){vt=null;break e}if(u!==null){u.return=d,vt=u;break e}vt=d}}}var yT={getCacheForType:function(t){var n=Et(lt),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return Et(lt).controller.signal}},vT=typeof WeakMap=="function"?WeakMap:Map,ze=0,Be=null,ye=null,be=0,Me=0,Jt=null,_a=!1,Xi=!1,jc=!1,In=0,We=0,wa=0,li=0,kc=0,It=0,Ki=0,so=null,Ht=null,Vc=!1,qs=0,_g=0,Ys=1/0,Ps=null,Aa=null,mt=0,za=null,Qi=null,Wn=0,Uc=0,Lc=null,wg=null,lo=0,Bc=null;function Wt(){return(ze&2)!==0&&be!==0?be&-be:U.T!==null?Yc():Hh()}function Ag(){if(It===0)if((be&536870912)===0||Te){var t=es;es<<=1,(es&3932160)===0&&(es=262144),It=t}else It=536870912;return t=Qt.current,t!==null&&(t.flags|=32),It}function $t(t,n,i){(t===Be&&(Me===2||Me===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),Ca(t,be,It,!1)),Rr(t,i),((ze&2)===0||t!==Be)&&(t===Be&&((ze&2)===0&&(li|=i),We===4&&Ca(t,be,It,!1)),Mn(t))}function zg(t,n,i){if((ze&6)!==0)throw Error(o(327));var s=!i&&(n&127)===0&&(n&t.expiredLanes)===0||Cr(t,n),u=s?xT(t,n):Hc(t,n,!0),d=s;do{if(u===0){Xi&&!s&&Ca(t,n,0,!1);break}else{if(i=t.current.alternate,d&&!bT(i)){u=Hc(t,n,!1),d=!1;continue}if(u===2){if(d=n,t.errorRecoveryDisabledLanes&d)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var b=t;u=so;var T=b.current.memoizedState.isDehydrated;if(T&&(Fi(b,g).flags|=256),g=Hc(b,g,!1),g!==2){if(jc&&!T){b.errorRecoveryDisabledLanes|=d,li|=d,u=4;break e}d=Ht,Ht=u,d!==null&&(Ht===null?Ht=d:Ht.push.apply(Ht,d))}u=g}if(d=!1,u!==2)continue}}if(u===1){Fi(t,0),Ca(t,n,0,!0);break}e:{switch(s=t,d=u,d){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:Ca(s,n,It,!_a);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(u=qs+300-Qe(),10<u)){if(Ca(s,n,It,!_a),ns(s,0,!0)!==0)break e;Wn=n,s.timeoutHandle=iy(Cg.bind(null,s,i,Ht,Ps,Vc,n,It,li,Ki,_a,d,"Throttled",-0,0),u);break e}Cg(s,i,Ht,Ps,Vc,n,It,li,Ki,_a,d,null,-0,0)}}break}while(!0);Mn(t)}function Cg(t,n,i,s,u,d,g,b,T,D,B,$,N,k){if(t.timeoutHandle=-1,$=n.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},Sg(n,d,$);var ee=(d&62914560)===d?qs-Qe():(d&4194048)===d?_g-Qe():0;if(ee=aE($,ee),ee!==null){Wn=d,t.cancelPendingCommit=ee(Vg.bind(null,t,n,d,i,s,u,g,b,T,B,$,null,N,k)),Ca(t,d,g,!D);return}}Vg(t,n,d,i,s,u,g,b,T)}function bT(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var u=i[s],d=u.getSnapshot;u=u.value;try{if(!Xt(d(),u))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ca(t,n,i,s){n&=~kc,n&=~li,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var u=n;0<u;){var d=31-Pt(u),g=1<<d;s[d]=-1,u&=~g}i!==0&&Lh(t,i,n)}function Xs(){return(ze&6)===0?(uo(0),!1):!0}function Zc(){if(ye!==null){if(Me===0)var t=ye.return;else t=ye,$n=Wa=null,nc(t),Zi=null,Yr=0,t=ye;for(;t!==null;)rg(t.alternate,t),t=t.return;ye=null}}function Fi(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,BT(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Wn=0,Zc(),Be=t,ye=i=Zn(t.current,null),be=n,Me=0,Jt=null,_a=!1,Xi=Cr(t,n),jc=!1,Ki=It=kc=li=wa=We=0,Ht=so=null,Vc=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var u=31-Pt(s),d=1<<u;n|=t[u],s&=~d}return In=n,ms(),i}function Rg(t,n){he=null,U.H=Wr,n===Bi||n===Ts?(n=Ym(),Me=3):n===qu?(n=Ym(),Me=4):Me=n===vc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Jt=n,ye===null&&(We=1,Vs(t,rn(n,t.current)))}function Og(){var t=Qt.current;return t===null?!0:(be&4194048)===be?un===null:(be&62914560)===be||(be&536870912)!==0?t===un:!1}function Mg(){var t=U.H;return U.H=Wr,t===null?Wr:t}function Dg(){var t=U.A;return U.A=yT,t}function Ks(){We=4,_a||(be&4194048)!==be&&Qt.current!==null||(Xi=!0),(wa&134217727)===0&&(li&134217727)===0||Be===null||Ca(Be,be,It,!1)}function Hc(t,n,i){var s=ze;ze|=2;var u=Mg(),d=Dg();(Be!==t||be!==n)&&(Ps=null,Fi(t,n)),n=!1;var g=We;e:do try{if(Me!==0&&ye!==null){var b=ye,T=Jt;switch(Me){case 8:Zc(),g=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(n=!0);var D=Me;if(Me=0,Jt=null,Ji(t,b,T,D),i&&Xi){g=0;break e}break;default:D=Me,Me=0,Jt=null,Ji(t,b,T,D)}}ST(),g=We;break}catch(B){Rg(t,B)}while(!0);return n&&t.shellSuspendCounter++,$n=Wa=null,ze=s,U.H=u,U.A=d,ye===null&&(Be=null,be=0,ms()),g}function ST(){for(;ye!==null;)Ng(ye)}function xT(t,n){var i=ze;ze|=2;var s=Mg(),u=Dg();Be!==t||be!==n?(Ps=null,Ys=Qe()+500,Fi(t,n)):Xi=Cr(t,n);e:do try{if(Me!==0&&ye!==null){n=ye;var d=Jt;t:switch(Me){case 1:Me=0,Jt=null,Ji(t,n,d,1);break;case 2:case 9:if(Gm(d)){Me=0,Jt=null,jg(n);break}n=function(){Me!==2&&Me!==9||Be!==t||(Me=7),Mn(t)},d.then(n,n);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Gm(d)?(Me=0,Jt=null,jg(n)):(Me=0,Jt=null,Ji(t,n,d,7));break;case 5:var g=null;switch(ye.tag){case 26:g=ye.memoizedState;case 5:case 27:var b=ye;if(g?by(g):b.stateNode.complete){Me=0,Jt=null;var T=b.sibling;if(T!==null)ye=T;else{var D=b.return;D!==null?(ye=D,Qs(D)):ye=null}break t}}Me=0,Jt=null,Ji(t,n,d,5);break;case 6:Me=0,Jt=null,Ji(t,n,d,6);break;case 8:Zc(),We=6;break e;default:throw Error(o(462))}}TT();break}catch(B){Rg(t,B)}while(!0);return $n=Wa=null,U.H=s,U.A=u,ze=i,ye!==null?0:(Be=null,be=0,ms(),We)}function TT(){for(;ye!==null&&!ht();)Ng(ye)}function Ng(t){var n=ag(t.alternate,t,In);t.memoizedProps=t.pendingProps,n===null?Qs(t):ye=n}function jg(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=Jp(i,n,n.pendingProps,n.type,void 0,be);break;case 11:n=Jp(i,n,n.pendingProps,n.type.render,n.ref,be);break;case 5:nc(n);default:rg(i,n),n=ye=Dm(n,In),n=ag(i,n,In)}t.memoizedProps=t.pendingProps,n===null?Qs(t):ye=n}function Ji(t,n,i,s){$n=Wa=null,nc(n),Zi=null,Yr=0;var u=n.return;try{if(cT(t,u,n,i,be)){We=1,Vs(t,rn(i,t.current)),ye=null;return}}catch(d){if(u!==null)throw ye=u,d;We=1,Vs(t,rn(i,t.current)),ye=null;return}n.flags&32768?(Te||s===1?t=!0:Xi||(be&536870912)!==0?t=!1:(_a=t=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),kg(n,t)):Qs(n)}function Qs(t){var n=t;do{if((n.flags&32768)!==0){kg(n,_a);return}t=n.return;var i=hT(n.alternate,n,In);if(i!==null){ye=i;return}if(n=n.sibling,n!==null){ye=n;return}ye=n=t}while(n!==null);We===0&&(We=5)}function kg(t,n){do{var i=mT(t.alternate,t);if(i!==null){i.flags&=32767,ye=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){ye=t;return}ye=t=i}while(t!==null);We=6,ye=null}function Vg(t,n,i,s,u,d,g,b,T){t.cancelPendingCommit=null;do Fs();while(mt!==0);if((ze&6)!==0)throw Error(o(327));if(n!==null){if(n===t.current)throw Error(o(177));if(d=n.lanes|n.childLanes,d|=Ru,tx(t,i,d,g,b,T),t===Be&&(ye=Be=null,be=0),Qi=n,za=t,Wn=i,Uc=d,Lc=u,wg=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,AT(St,function(){return Hg(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,u=X.p,X.p=2,g=ze,ze|=4;try{pT(t,n,i)}finally{ze=g,X.p=u,U.T=s}}mt=1,Ug(),Lg(),Bg()}}function Ug(){if(mt===1){mt=0;var t=za,n=Qi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var s=X.p;X.p=2;var u=ze;ze|=4;try{yg(n,t);var d=Wc,g=Em(t.containerInfo),b=d.focusedElem,T=d.selectionRange;if(g!==b&&b&&b.ownerDocument&&Tm(b.ownerDocument.documentElement,b)){if(T!==null&&_u(b)){var D=T.start,B=T.end;if(B===void 0&&(B=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(B,b.value.length);else{var $=b.ownerDocument||document,N=$&&$.defaultView||window;if(N.getSelection){var k=N.getSelection(),ee=b.textContent.length,ue=Math.min(T.start,ee),Le=T.end===void 0?ue:Math.min(T.end,ee);!k.extend&&ue>Le&&(g=Le,Le=ue,ue=g);var z=xm(b,ue),_=xm(b,Le);if(z&&_&&(k.rangeCount!==1||k.anchorNode!==z.node||k.anchorOffset!==z.offset||k.focusNode!==_.node||k.focusOffset!==_.offset)){var M=$.createRange();M.setStart(z.node,z.offset),k.removeAllRanges(),ue>Le?(k.addRange(M),k.extend(_.node,_.offset)):(M.setEnd(_.node,_.offset),k.addRange(M))}}}}for($=[],k=b;k=k.parentNode;)k.nodeType===1&&$.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var H=$[b];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}ll=!!Ic,Wc=Ic=null}finally{ze=u,X.p=s,U.T=i}}t.current=n,mt=2}}function Lg(){if(mt===2){mt=0;var t=za,n=Qi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var s=X.p;X.p=2;var u=ze;ze|=4;try{dg(t,n.alternate,n)}finally{ze=u,X.p=s,U.T=i}}mt=3}}function Bg(){if(mt===4||mt===3){mt=0,bt();var t=za,n=Qi,i=Wn,s=wg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?mt=5:(mt=0,Qi=za=null,Zg(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Aa=null),ru(i),n=n.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(zr,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=U.T,u=X.p,X.p=2,U.T=null;try{for(var d=t.onRecoverableError,g=0;g<s.length;g++){var b=s[g];d(b.value,{componentStack:b.stack})}}finally{U.T=n,X.p=u}}(Wn&3)!==0&&Fs(),Mn(t),u=t.pendingLanes,(i&261930)!==0&&(u&42)!==0?t===Bc?lo++:(lo=0,Bc=t):lo=0,uo(0)}}function Zg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Gr(n)))}function Fs(){return Ug(),Lg(),Bg(),Hg()}function Hg(){if(mt!==5)return!1;var t=za,n=Uc;Uc=0;var i=ru(Wn),s=U.T,u=X.p;try{X.p=32>i?32:i,U.T=null,i=Lc,Lc=null;var d=za,g=Wn;if(mt=0,Qi=za=null,Wn=0,(ze&6)!==0)throw Error(o(331));var b=ze;if(ze|=4,Tg(d.current),bg(d,d.current,g,i),ze=b,uo(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(zr,d)}catch{}return!0}finally{X.p=u,U.T=s,Zg(t,n)}}function $g(t,n,i){n=rn(i,n),n=yc(t.stateNode,n,2),t=Sa(t,n,2),t!==null&&(Rr(t,2),Mn(t))}function De(t,n,i){if(t.tag===3)$g(t,t,i);else for(;n!==null;){if(n.tag===3){$g(n,t,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Aa===null||!Aa.has(s))){t=rn(i,t),i=Gp(2),s=Sa(n,i,2),s!==null&&(qp(i,s,n,t),Rr(s,2),Mn(s));break}}n=n.return}}function $c(t,n,i){var s=t.pingCache;if(s===null){s=t.pingCache=new vT;var u=new Set;s.set(n,u)}else u=s.get(n),u===void 0&&(u=new Set,s.set(n,u));u.has(i)||(jc=!0,u.add(i),t=ET.bind(null,t,n,i),n.then(t,t))}function ET(t,n,i){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Be===t&&(be&i)===i&&(We===4||We===3&&(be&62914560)===be&&300>Qe()-qs?(ze&2)===0&&Fi(t,0):kc|=i,Ki===be&&(Ki=0)),Mn(t)}function Gg(t,n){n===0&&(n=Uh()),t=Fa(t,n),t!==null&&(Rr(t,n),Mn(t))}function _T(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Gg(t,i)}function wT(t,n){var i=0;switch(t.tag){case 31:case 13:var s=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(n),Gg(t,i)}function AT(t,n){return Mt(t,n)}var Js=null,Ii=null,Gc=!1,Is=!1,qc=!1,Ra=0;function Mn(t){t!==Ii&&t.next===null&&(Ii===null?Js=Ii=t:Ii=Ii.next=t),Is=!0,Gc||(Gc=!0,CT())}function uo(t,n){if(!qc&&Is){qc=!0;do for(var i=!1,s=Js;s!==null;){if(t!==0){var u=s.pendingLanes;if(u===0)var d=0;else{var g=s.suspendedLanes,b=s.pingedLanes;d=(1<<31-Pt(42|t)+1)-1,d&=u&~(g&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Xg(s,d))}else d=be,d=ns(s,s===Be?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||Cr(s,d)||(i=!0,Xg(s,d));s=s.next}while(i);qc=!1}}function zT(){qg()}function qg(){Is=Gc=!1;var t=0;Ra!==0&<()&&(t=Ra);for(var n=Qe(),i=null,s=Js;s!==null;){var u=s.next,d=Yg(s,n);d===0?(s.next=null,i===null?Js=u:i.next=u,u===null&&(Ii=i)):(i=s,(t!==0||(d&3)!==0)&&(Is=!0)),s=u}mt!==0&&mt!==5||uo(t),Ra!==0&&(Ra=0)}function Yg(t,n){for(var i=t.suspendedLanes,s=t.pingedLanes,u=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var g=31-Pt(d),b=1<<g,T=u[g];T===-1?((b&i)===0||(b&s)!==0)&&(u[g]=ex(b,n)):T<=n&&(t.expiredLanes|=b),d&=~b}if(n=Be,i=be,i=ns(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,i===0||t===n&&(Me===2||Me===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&zn(s),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Cr(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(s!==null&&zn(s),ru(i)){case 2:case 8:i=wr;break;case 32:i=St;break;case 268435456:i=vi;break;default:i=St}return s=Pg.bind(null,t),i=Mt(i,s),t.callbackPriority=n,t.callbackNode=i,n}return s!==null&&s!==null&&zn(s),t.callbackPriority=2,t.callbackNode=null,2}function Pg(t,n){if(mt!==0&&mt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Fs()&&t.callbackNode!==i)return null;var s=be;return s=ns(t,t===Be?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(zg(t,s,n),Yg(t,Qe()),t.callbackNode!=null&&t.callbackNode===i?Pg.bind(null,t):null)}function Xg(t,n){if(Fs())return null;zg(t,n,!0)}function CT(){ZT(function(){(ze&6)!==0?Mt(_r,zT):qg()})}function Yc(){if(Ra===0){var t=Ui;t===0&&(t=Wo,Wo<<=1,(Wo&261888)===0&&(Wo=256)),Ra=t}return Ra}function Kg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:os(""+t)}function Qg(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function RT(t,n,i,s,u){if(n==="submit"&&i&&i.stateNode===u){var d=Kg((u[Vt]||null).action),g=s.submitter;g&&(n=(n=g[Vt]||null)?Kg(n.formAction):g.getAttribute("formAction"),n!==null&&(d=n,g=null));var b=new cs("action","action",null,s,u);t.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Ra!==0){var T=g?Qg(u,g):new FormData(u);fc(i,{pending:!0,data:T,method:u.method,action:d},null,T)}}else typeof d=="function"&&(b.preventDefault(),T=g?Qg(u,g):new FormData(u),fc(i,{pending:!0,data:T,method:u.method,action:d},d,T))},currentTarget:u}]})}}for(var Pc=0;Pc<Cu.length;Pc++){var Xc=Cu[Pc],OT=Xc.toLowerCase(),MT=Xc[0].toUpperCase()+Xc.slice(1);vn(OT,"on"+MT)}vn(Am,"onAnimationEnd"),vn(zm,"onAnimationIteration"),vn(Cm,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(Xx,"onTransitionRun"),vn(Kx,"onTransitionStart"),vn(Qx,"onTransitionCancel"),vn(Rm,"onTransitionEnd"),Ei("onMouseEnter",["mouseout","mouseover"]),Ei("onMouseLeave",["mouseout","mouseover"]),Ei("onPointerEnter",["pointerout","pointerover"]),Ei("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var co="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(" "),DT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(co));function Fg(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var s=t[i],u=s.event;s=s.listeners;e:{var d=void 0;if(n)for(var g=s.length-1;0<=g;g--){var b=s[g],T=b.instance,D=b.currentTarget;if(b=b.listener,T!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=D;try{d(u)}catch(B){hs(B)}u.currentTarget=null,d=T}else for(g=0;g<s.length;g++){if(b=s[g],T=b.instance,D=b.currentTarget,b=b.listener,T!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=D;try{d(u)}catch(B){hs(B)}u.currentTarget=null,d=T}}}}function ve(t,n){var i=n[ou];i===void 0&&(i=n[ou]=new Set);var s=t+"__bubble";i.has(s)||(Jg(n,t,2,!1),i.add(s))}function Kc(t,n,i){var s=0;n&&(s|=4),Jg(i,t,s,n)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function Qc(t){if(!t[Ws]){t[Ws]=!0,qh.forEach(function(i){i!=="selectionchange"&&(DT.has(i)||Kc(i,!1,t),Kc(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Ws]||(n[Ws]=!0,Kc("selectionchange",!1,n))}}function Jg(t,n,i,s){switch(Ay(n)){case 2:var u=oE;break;case 8:u=sE;break;default:u=ff}i=u.bind(null,n,i,t),u=void 0,!pu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),s?u!==void 0?t.addEventListener(n,i,{capture:!0,passive:u}):t.addEventListener(n,i,!0):u!==void 0?t.addEventListener(n,i,{passive:u}):t.addEventListener(n,i,!1)}function Fc(t,n,i,s,u){var d=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var g=s.tag;if(g===3||g===4){var b=s.stateNode.containerInfo;if(b===u)break;if(g===4)for(g=s.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;b!==null;){if(g=Si(b),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){s=d=g;continue e}b=b.parentNode}}s=s.return}nm(function(){var D=d,B=hu(i),$=[];e:{var N=Om.get(t);if(N!==void 0){var k=cs,ee=t;switch(t){case"keypress":if(ls(i)===0)break e;case"keydown":case"keyup":k=wx;break;case"focusin":ee="focus",k=bu;break;case"focusout":ee="blur",k=bu;break;case"beforeblur":case"afterblur":k=bu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=hx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Cx;break;case Am:case zm:case Cm:k=gx;break;case Rm:k=Ox;break;case"scroll":case"scrollend":k=fx;break;case"wheel":k=Dx;break;case"copy":case"cut":case"paste":k=vx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=sm;break;case"toggle":case"beforetoggle":k=jx}var ue=(n&4)!==0,Le=!ue&&(t==="scroll"||t==="scrollend"),z=ue?N!==null?N+"Capture":null:N;ue=[];for(var _=D,M;_!==null;){var H=_;if(M=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||M===null||z===null||(H=Dr(_,z),H!=null&&ue.push(fo(_,H,M))),Le)break;_=_.return}0<ue.length&&(N=new k(N,ee,null,i,B),$.push({event:N,listeners:ue}))}}if((n&7)===0){e:{if(N=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",N&&i!==du&&(ee=i.relatedTarget||i.fromElement)&&(Si(ee)||ee[bi]))break e;if((k||N)&&(N=B.window===B?B:(N=B.ownerDocument)?N.defaultView||N.parentWindow:window,k?(ee=i.relatedTarget||i.toElement,k=D,ee=ee?Si(ee):null,ee!==null&&(Le=f(ee),ue=ee.tag,ee!==Le||ue!==5&&ue!==27&&ue!==6)&&(ee=null)):(k=null,ee=D),k!==ee)){if(ue=rm,H="onMouseLeave",z="onMouseEnter",_="mouse",(t==="pointerout"||t==="pointerover")&&(ue=sm,H="onPointerLeave",z="onPointerEnter",_="pointer"),Le=k==null?N:Mr(k),M=ee==null?N:Mr(ee),N=new ue(H,_+"leave",k,i,B),N.target=Le,N.relatedTarget=M,H=null,Si(B)===D&&(ue=new ue(z,_+"enter",ee,i,B),ue.target=M,ue.relatedTarget=Le,H=ue),Le=H,k&&ee)t:{for(ue=NT,z=k,_=ee,M=0,H=z;H;H=ue(H))M++;H=0;for(var oe=_;oe;oe=ue(oe))H++;for(;0<M-H;)z=ue(z),M--;for(;0<H-M;)_=ue(_),H--;for(;M--;){if(z===_||_!==null&&z===_.alternate){ue=z;break t}z=ue(z),_=ue(_)}ue=null}else ue=null;k!==null&&Ig($,N,k,ue,!1),ee!==null&&Le!==null&&Ig($,Le,ee,ue,!0)}}e:{if(N=D?Mr(D):window,k=N.nodeName&&N.nodeName.toLowerCase(),k==="select"||k==="input"&&N.type==="file")var _e=pm;else if(hm(N))if(gm)_e=qx;else{_e=$x;var ie=Hx}else k=N.nodeName,!k||k.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?D&&fu(D.elementType)&&(_e=pm):_e=Gx;if(_e&&(_e=_e(t,D))){mm($,_e,i,B);break e}ie&&ie(t,N,D),t==="focusout"&&D&&N.type==="number"&&D.memoizedProps.value!=null&&cu(N,"number",N.value)}switch(ie=D?Mr(D):window,t){case"focusin":(hm(ie)||ie.contentEditable==="true")&&(Ri=ie,wu=D,Zr=null);break;case"focusout":Zr=wu=Ri=null;break;case"mousedown":Au=!0;break;case"contextmenu":case"mouseup":case"dragend":Au=!1,_m($,i,B);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":_m($,i,B)}var me;if(xu)e:{switch(t){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Ci?fm(t,i)&&(Se="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Se="onCompositionStart");Se&&(lm&&i.locale!=="ko"&&(Ci||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Ci&&(me=am()):(ha=B,gu="value"in ha?ha.value:ha.textContent,Ci=!0)),ie=el(D,Se),0<ie.length&&(Se=new om(Se,t,null,i,B),$.push({event:Se,listeners:ie}),me?Se.data=me:(me=dm(i),me!==null&&(Se.data=me)))),(me=Vx?Ux(t,i):Lx(t,i))&&(Se=el(D,"onBeforeInput"),0<Se.length&&(ie=new om("onBeforeInput","beforeinput",null,i,B),$.push({event:ie,listeners:Se}),ie.data=me)),RT($,t,D,i,B)}Fg($,n)})}function fo(t,n,i){return{instance:t,listener:n,currentTarget:i}}function el(t,n){for(var i=n+"Capture",s=[];t!==null;){var u=t,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Dr(t,i),u!=null&&s.unshift(fo(t,u,d)),u=Dr(t,n),u!=null&&s.push(fo(t,u,d))),t.tag===3)return s;t=t.return}return[]}function NT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ig(t,n,i,s,u){for(var d=n._reactName,g=[];i!==null&&i!==s;){var b=i,T=b.alternate,D=b.stateNode;if(b=b.tag,T!==null&&T===s)break;b!==5&&b!==26&&b!==27||D===null||(T=D,u?(D=Dr(i,d),D!=null&&g.unshift(fo(i,D,T))):u||(D=Dr(i,d),D!=null&&g.push(fo(i,D,T)))),i=i.return}g.length!==0&&t.push({event:n,listeners:g})}var jT=/\r\n?/g,kT=/\u0000|\uFFFD/g;function Wg(t){return(typeof t=="string"?t:""+t).replace(jT,`
|
|
9
|
+
`).replace(kT,"")}function ey(t,n){return n=Wg(n),Wg(t)===n}function Ue(t,n,i,s,u,d){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||wi(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&wi(t,""+s);break;case"className":is(t,"class",s);break;case"tabIndex":is(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":is(t,i,s);break;case"style":em(t,s,d);break;case"data":if(n!=="object"){is(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=os(""+s),t.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(i,"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 d=="function"&&(i==="formAction"?(n!=="input"&&Ue(t,n,"name",u.name,u,null),Ue(t,n,"formEncType",u.formEncType,u,null),Ue(t,n,"formMethod",u.formMethod,u,null),Ue(t,n,"formTarget",u.formTarget,u,null)):(Ue(t,n,"encType",u.encType,u,null),Ue(t,n,"method",u.method,u,null),Ue(t,n,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=os(""+s),t.setAttribute(i,s);break;case"onClick":s!=null&&(t.onclick=Ln);break;case"onScroll":s!=null&&ve("scroll",t);break;case"onScrollEnd":s!=null&&ve("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}i=os(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""+s):t.removeAttribute(i);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":s===!0?t.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,s):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(i,s):t.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(i):t.setAttribute(i,s);break;case"popover":ve("beforetoggle",t),ve("toggle",t),as(t,"popover",s);break;case"xlinkActuate":Un(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Un(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Un(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Un(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Un(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Un(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Un(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":as(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=ux.get(i)||i,as(t,i,s))}}function Jc(t,n,i,s,u,d){switch(i){case"style":em(t,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof s=="string"?wi(t,s):(typeof s=="number"||typeof s=="bigint")&&wi(t,""+s);break;case"onScroll":s!=null&&ve("scroll",t);break;case"onScrollEnd":s!=null&&ve("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),n=i.slice(2,u?i.length-7:void 0),d=t[Vt]||null,d=d!=null?d[i]:null,typeof d=="function"&&t.removeEventListener(n,d,u),typeof s=="function")){typeof d!="function"&&d!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,s,u);break e}i in t?t[i]=s:s===!0?t.setAttribute(i,""):as(t,i,s)}}}function wt(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",t),ve("load",t);var s=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var g=i[d];if(g!=null)switch(d){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ue(t,n,d,g,i,null)}}u&&Ue(t,n,"srcSet",i.srcSet,i,null),s&&Ue(t,n,"src",i.src,i,null);return;case"input":ve("invalid",t);var b=d=g=u=null,T=null,D=null;for(s in i)if(i.hasOwnProperty(s)){var B=i[s];if(B!=null)switch(s){case"name":u=B;break;case"type":g=B;break;case"checked":T=B;break;case"defaultChecked":D=B;break;case"value":d=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,n));break;default:Ue(t,n,s,B,i,null)}}Fh(t,d,b,T,D,g,u,!1);return;case"select":ve("invalid",t),s=g=d=null;for(u in i)if(i.hasOwnProperty(u)&&(b=i[u],b!=null))switch(u){case"value":d=b;break;case"defaultValue":g=b;break;case"multiple":s=b;default:Ue(t,n,u,b,i,null)}n=d,i=g,t.multiple=!!s,n!=null?_i(t,!!s,n,!1):i!=null&&_i(t,!!s,i,!0);return;case"textarea":ve("invalid",t),d=u=s=null;for(g in i)if(i.hasOwnProperty(g)&&(b=i[g],b!=null))switch(g){case"value":s=b;break;case"defaultValue":u=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Ue(t,n,g,b,i,null)}Ih(t,s,u,d);return;case"option":for(T in i)i.hasOwnProperty(T)&&(s=i[T],s!=null)&&(T==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":Ue(t,n,T,s,i,null));return;case"dialog":ve("beforetoggle",t),ve("toggle",t),ve("cancel",t),ve("close",t);break;case"iframe":case"object":ve("load",t);break;case"video":case"audio":for(s=0;s<co.length;s++)ve(co[s],t);break;case"image":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"embed":case"source":case"link":ve("error",t),ve("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(D in i)if(i.hasOwnProperty(D)&&(s=i[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ue(t,n,D,s,i,null)}return;default:if(fu(n)){for(B in i)i.hasOwnProperty(B)&&(s=i[B],s!==void 0&&Jc(t,n,B,s,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(s=i[b],s!=null&&Ue(t,n,b,s,i,null))}function VT(t,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,g=null,b=null,T=null,D=null,B=null;for(k in i){var $=i[k];if(i.hasOwnProperty(k)&&$!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":T=$;default:s.hasOwnProperty(k)||Ue(t,n,k,null,s,$)}}for(var N in s){var k=s[N];if($=i[N],s.hasOwnProperty(N)&&(k!=null||$!=null))switch(N){case"type":d=k;break;case"name":u=k;break;case"checked":D=k;break;case"defaultChecked":B=k;break;case"value":g=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,n));break;default:k!==$&&Ue(t,n,N,k,s,$)}}uu(t,g,b,T,D,B,d,u);return;case"select":k=g=b=N=null;for(d in i)if(T=i[d],i.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":k=T;default:s.hasOwnProperty(d)||Ue(t,n,d,null,s,T)}for(u in s)if(d=s[u],T=i[u],s.hasOwnProperty(u)&&(d!=null||T!=null))switch(u){case"value":N=d;break;case"defaultValue":b=d;break;case"multiple":g=d;default:d!==T&&Ue(t,n,u,d,s,T)}n=b,i=g,s=k,N!=null?_i(t,!!i,N,!1):!!s!=!!i&&(n!=null?_i(t,!!i,n,!0):_i(t,!!i,i?[]:"",!1));return;case"textarea":k=N=null;for(b in i)if(u=i[b],i.hasOwnProperty(b)&&u!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ue(t,n,b,null,s,u)}for(g in s)if(u=s[g],d=i[g],s.hasOwnProperty(g)&&(u!=null||d!=null))switch(g){case"value":N=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==d&&Ue(t,n,g,u,s,d)}Jh(t,N,k);return;case"option":for(var ee in i)N=i[ee],i.hasOwnProperty(ee)&&N!=null&&!s.hasOwnProperty(ee)&&(ee==="selected"?t.selected=!1:Ue(t,n,ee,null,s,N));for(T in s)N=s[T],k=i[T],s.hasOwnProperty(T)&&N!==k&&(N!=null||k!=null)&&(T==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":Ue(t,n,T,N,s,k));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 ue in i)N=i[ue],i.hasOwnProperty(ue)&&N!=null&&!s.hasOwnProperty(ue)&&Ue(t,n,ue,null,s,N);for(D in s)if(N=s[D],k=i[D],s.hasOwnProperty(D)&&N!==k&&(N!=null||k!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,n));break;default:Ue(t,n,D,N,s,k)}return;default:if(fu(n)){for(var Le in i)N=i[Le],i.hasOwnProperty(Le)&&N!==void 0&&!s.hasOwnProperty(Le)&&Jc(t,n,Le,void 0,s,N);for(B in s)N=s[B],k=i[B],!s.hasOwnProperty(B)||N===k||N===void 0&&k===void 0||Jc(t,n,B,N,s,k);return}}for(var z in i)N=i[z],i.hasOwnProperty(z)&&N!=null&&!s.hasOwnProperty(z)&&Ue(t,n,z,null,s,N);for($ in s)N=s[$],k=i[$],!s.hasOwnProperty($)||N===k||N==null&&k==null||Ue(t,n,$,N,s,k)}function ty(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var u=i[s],d=u.transferSize,g=u.initiatorType,b=u.duration;if(d&&b&&ty(g)){for(g=0,b=u.responseEnd,s+=1;s<i.length;s++){var T=i[s],D=T.startTime;if(D>b)break;var B=T.transferSize,$=T.initiatorType;B&&ty($)&&(T=T.responseEnd,g+=B*(T<b?1:(b-D)/(T-D)))}if(--s,n+=8*(d+g)/(u.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ic=null,Wc=null;function tl(t){return t.nodeType===9?t:t.ownerDocument}function ny(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 ay(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function ef(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var tf=null;function LT(){var t=window.event;return t&&t.type==="popstate"?t===tf?!1:(tf=t,!0):(tf=null,!1)}var iy=typeof setTimeout=="function"?setTimeout:void 0,BT=typeof clearTimeout=="function"?clearTimeout:void 0,ry=typeof Promise=="function"?Promise:void 0,ZT=typeof queueMicrotask=="function"?queueMicrotask:typeof ry<"u"?function(t){return ry.resolve(null).then(t).catch(HT)}:iy;function HT(t){setTimeout(function(){throw t})}function Oa(t){return t==="head"}function oy(t,n){var i=n,s=0;do{var u=i.nextSibling;if(t.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(s===0){t.removeChild(u),nr(n);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")ho(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,ho(i);for(var d=i.firstChild;d;){var g=d.nextSibling,b=d.nodeName;d[Or]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=g}}else i==="body"&&ho(t.ownerDocument.body);i=u}while(i);nr(n)}function sy(t,n){var i=t;t=0;do{var s=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=s}while(i)}function nf(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":nf(i),su(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function $T(t,n,i,s){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Or])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(d=t.getAttribute("rel"),d==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(d!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=cn(t.nextSibling),t===null)break}return null}function GT(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=cn(t.nextSibling),t===null))return null;return t}function ly(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=cn(t.nextSibling),t===null))return null;return t}function af(t){return t.data==="$?"||t.data==="$~"}function rf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function qT(t,n){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||i.readyState!=="loading")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function cn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var of=null;function uy(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(n===0)return cn(t.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}t=t.nextSibling}return null}function cy(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return t;n--}else i!=="/$"&&i!=="/&"||n++}t=t.previousSibling}return null}function fy(t,n,i){switch(n=tl(i),t){case"html":if(t=n.documentElement,!t)throw Error(o(452));return t;case"head":if(t=n.head,!t)throw Error(o(453));return t;case"body":if(t=n.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function ho(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);su(t)}var fn=new Map,dy=new Set;function nl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ea=X.d;X.d={f:YT,r:PT,D:XT,C:KT,L:QT,m:FT,X:IT,S:JT,M:WT};function YT(){var t=ea.f(),n=Xs();return t||n}function PT(t){var n=xi(t);n!==null&&n.tag===5&&n.type==="form"?Rp(n):ea.r(t)}var Wi=typeof document>"u"?null:document;function hy(t,n,i){var s=Wi;if(s&&typeof n=="string"&&n){var u=nn(n);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),dy.has(u)||(dy.add(u),t={rel:t,crossOrigin:i,href:n},s.querySelector(u)===null&&(n=s.createElement("link"),wt(n,"link",t),yt(n),s.head.appendChild(n)))}}function XT(t){ea.D(t),hy("dns-prefetch",t,null)}function KT(t,n){ea.C(t,n),hy("preconnect",t,n)}function QT(t,n,i){ea.L(t,n,i);var s=Wi;if(s&&t&&n){var u='link[rel="preload"][as="'+nn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+nn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+nn(i.imageSizes)+'"]')):u+='[href="'+nn(t)+'"]';var d=u;switch(n){case"style":d=er(t);break;case"script":d=tr(t)}fn.has(d)||(t=v({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),fn.set(d,t),s.querySelector(u)!==null||n==="style"&&s.querySelector(mo(d))||n==="script"&&s.querySelector(po(d))||(n=s.createElement("link"),wt(n,"link",t),yt(n),s.head.appendChild(n)))}}function FT(t,n){ea.m(t,n);var i=Wi;if(i&&t){var s=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+nn(s)+'"][href="'+nn(t)+'"]',d=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=tr(t)}if(!fn.has(d)&&(t=v({rel:"modulepreload",href:t},n),fn.set(d,t),i.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(po(d)))return}s=i.createElement("link"),wt(s,"link",t),yt(s),i.head.appendChild(s)}}}function JT(t,n,i){ea.S(t,n,i);var s=Wi;if(s&&t){var u=Ti(s).hoistableStyles,d=er(t);n=n||"default";var g=u.get(d);if(!g){var b={loading:0,preload:null};if(g=s.querySelector(mo(d)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":n},i),(i=fn.get(d))&&sf(t,i);var T=g=s.createElement("link");yt(T),wt(T,"link",t),T._p=new Promise(function(D,B){T.onload=D,T.onerror=B}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,al(g,n,s)}g={type:"stylesheet",instance:g,count:1,state:b},u.set(d,g)}}}function IT(t,n){ea.X(t,n);var i=Wi;if(i&&t){var s=Ti(i).hoistableScripts,u=tr(t),d=s.get(u);d||(d=i.querySelector(po(u)),d||(t=v({src:t,async:!0},n),(n=fn.get(u))&&lf(t,n),d=i.createElement("script"),yt(d),wt(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(u,d))}}function WT(t,n){ea.M(t,n);var i=Wi;if(i&&t){var s=Ti(i).hoistableScripts,u=tr(t),d=s.get(u);d||(d=i.querySelector(po(u)),d||(t=v({src:t,async:!0,type:"module"},n),(n=fn.get(u))&&lf(t,n),d=i.createElement("script"),yt(d),wt(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(u,d))}}function my(t,n,i,s){var u=(u=fe.current)?nl(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=er(i.href),i=Ti(u).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=er(i.href);var d=Ti(u).hoistableStyles,g=d.get(t);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(t,g),(d=u.querySelector(mo(t)))&&!d._p&&(g.instance=d,g.state.loading=5),fn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},fn.set(t,i),d||eE(u,t,i,g.state))),n&&s===null)throw Error(o(528,""));return g}if(n&&s!==null)throw Error(o(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=tr(i),i=Ti(u).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function er(t){return'href="'+nn(t)+'"'}function mo(t){return'link[rel="stylesheet"]['+t+"]"}function py(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function eE(t,n,i,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),wt(n,"link",i),yt(n),t.head.appendChild(n))}function tr(t){return'[src="'+nn(t)+'"]'}function po(t){return"script[async]"+t}function gy(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+nn(i.href)+'"]');if(s)return n.instance=s,yt(s),s;var u=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),yt(s),wt(s,"style",u),al(s,i.precedence,t),n.instance=s;case"stylesheet":u=er(i.href);var d=t.querySelector(mo(u));if(d)return n.state.loading|=4,n.instance=d,yt(d),d;s=py(i),(u=fn.get(u))&&sf(s,u),d=(t.ownerDocument||t).createElement("link"),yt(d);var g=d;return g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),wt(d,"link",s),n.state.loading|=4,al(d,i.precedence,t),n.instance=d;case"script":return d=tr(i.src),(u=t.querySelector(po(d)))?(n.instance=u,yt(u),u):(s=i,(u=fn.get(d))&&(s=v({},i),lf(s,u)),t=t.ownerDocument||t,u=t.createElement("script"),yt(u),wt(u,"link",s),t.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,al(s,i.precedence,t));return n.instance}function al(t,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,d=u,g=0;g<s.length;g++){var b=s[g];if(b.dataset.precedence===n)d=b;else if(d!==u)break}d?d.parentNode.insertBefore(t,d.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function sf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function lf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var il=null;function yy(t,n,i){if(il===null){var s=new Map,u=il=new Map;u.set(i,s)}else u=il,s=u.get(i),s||(s=new Map,u.set(i,s));if(s.has(t))return s;for(s.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var d=i[u];if(!(d[Or]||d[xt]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var g=d.getAttribute(n)||"";g=t+g;var b=s.get(g);b?b.push(d):s.set(g,[d])}}return s}function vy(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function tE(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(t=n.disabled,typeof n.precedence=="string"&&t==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function by(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function nE(t,n,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=er(s.href),d=n.querySelector(mo(u));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=rl.bind(t),n.then(t,t)),i.state.loading|=4,i.instance=d,yt(d);return}d=n.ownerDocument||n,s=py(s),(u=fn.get(u))&&sf(s,u),d=d.createElement("link"),yt(d);var g=d;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),wt(d,"link",s),i.instance=d}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=rl.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}var uf=0;function aE(t,n){return t.stylesheets&&t.count===0&&sl(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var s=setTimeout(function(){if(t.stylesheets&&sl(t,t.stylesheets),t.unsuspend){var d=t.unsuspend;t.unsuspend=null,d()}},6e4+n);0<t.imgBytes&&uf===0&&(uf=62500*UT());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&sl(t,t.stylesheets),t.unsuspend)){var d=t.unsuspend;t.unsuspend=null,d()}},(t.imgBytes>uf?50:800)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function rl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)sl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ol=null;function sl(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ol=new Map,n.forEach(iE,t),ol=null,rl.call(t))}function iE(t,n){if(!(n.state.loading&4)){var i=ol.get(t);if(i)var s=i.get(null);else{i=new Map,ol.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var g=u[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),s=g)}s&&i.set(null,s)}u=n.instance,g=u.getAttribute("data-precedence"),d=i.get(g)||s,d===s&&i.set(null,u),i.set(g,u),this.count++,s=rl.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),d?d.parentNode.insertBefore(u,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),n.state.loading|=4}}var go={$$typeof:j,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function rE(t,n,i,s,u,d,g,b,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=au(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=au(0),this.hiddenUpdates=au(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Sy(t,n,i,s,u,d,g,b,T,D,B,$){return t=new rE(t,n,i,g,T,D,B,$,b),n=1,d===!0&&(n|=24),d=Kt(3,null,null,n),t.current=d,d.stateNode=t,n=Hu(),n.refCount++,t.pooledCache=n,n.refCount++,d.memoizedState={element:s,isDehydrated:i,cache:n},Yu(d),t}function xy(t){return t?(t=Di,t):Di}function Ty(t,n,i,s,u,d){u=xy(u),s.context===null?s.context=u:s.pendingContext=u,s=ba(n),s.payload={element:i},d=d===void 0?null:d,d!==null&&(s.callback=d),i=Sa(t,s,n),i!==null&&($t(i,t,n),Xr(i,t,n))}function Ey(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function cf(t,n){Ey(t,n),(t=t.alternate)&&Ey(t,n)}function _y(t){if(t.tag===13||t.tag===31){var n=Fa(t,67108864);n!==null&&$t(n,t,67108864),cf(t,67108864)}}function wy(t){if(t.tag===13||t.tag===31){var n=Wt();n=iu(n);var i=Fa(t,n);i!==null&&$t(i,t,n),cf(t,n)}}var ll=!0;function oE(t,n,i,s){var u=U.T;U.T=null;var d=X.p;try{X.p=2,ff(t,n,i,s)}finally{X.p=d,U.T=u}}function sE(t,n,i,s){var u=U.T;U.T=null;var d=X.p;try{X.p=8,ff(t,n,i,s)}finally{X.p=d,U.T=u}}function ff(t,n,i,s){if(ll){var u=df(s);if(u===null)Fc(t,n,s,ul,i),zy(t,s);else if(uE(u,t,n,i,s))s.stopPropagation();else if(zy(t,s),n&4&&-1<lE.indexOf(t)){for(;u!==null;){var d=xi(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=Ya(d.pendingLanes);if(g!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var T=1<<31-Pt(g);b.entanglements[1]|=T,g&=~T}Mn(d),(ze&6)===0&&(Ys=Qe()+500,uo(0))}}break;case 31:case 13:b=Fa(d,2),b!==null&&$t(b,d,2),Xs(),cf(d,2)}if(d=df(s),d===null&&Fc(t,n,s,ul,i),d===u)break;u=d}u!==null&&s.stopPropagation()}else Fc(t,n,s,null,i)}}function df(t){return t=hu(t),hf(t)}var ul=null;function hf(t){if(ul=null,t=Si(t),t!==null){var n=f(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=c(n),t!==null)return t;t=null}else if(i===31){if(t=h(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return ul=t,null}function Ay(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(Io()){case _r:return 2;case wr:return 8;case St:case yn:return 32;case vi:return 268435456;default:return 32}default:return 32}}var mf=!1,Ma=null,Da=null,Na=null,yo=new Map,vo=new Map,ja=[],lE="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 zy(t,n){switch(t){case"focusin":case"focusout":Ma=null;break;case"dragenter":case"dragleave":Da=null;break;case"mouseover":case"mouseout":Na=null;break;case"pointerover":case"pointerout":yo.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vo.delete(n.pointerId)}}function bo(t,n,i,s,u,d){return t===null||t.nativeEvent!==d?(t={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]},n!==null&&(n=xi(n),n!==null&&_y(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),t)}function uE(t,n,i,s,u){switch(n){case"focusin":return Ma=bo(Ma,t,n,i,s,u),!0;case"dragenter":return Da=bo(Da,t,n,i,s,u),!0;case"mouseover":return Na=bo(Na,t,n,i,s,u),!0;case"pointerover":var d=u.pointerId;return yo.set(d,bo(yo.get(d)||null,t,n,i,s,u)),!0;case"gotpointercapture":return d=u.pointerId,vo.set(d,bo(vo.get(d)||null,t,n,i,s,u)),!0}return!1}function Cy(t){var n=Si(t.target);if(n!==null){var i=f(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){t.blockedOn=n,$h(t.priority,function(){wy(i)});return}}else if(n===31){if(n=h(i),n!==null){t.blockedOn=n,$h(t.priority,function(){wy(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function cl(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=df(t.nativeEvent);if(i===null){i=t.nativeEvent;var s=new i.constructor(i.type,i);du=s,i.target.dispatchEvent(s),du=null}else return n=xi(i),n!==null&&_y(n),t.blockedOn=i,!1;n.shift()}return!0}function Ry(t,n,i){cl(t)&&i.delete(n)}function cE(){mf=!1,Ma!==null&&cl(Ma)&&(Ma=null),Da!==null&&cl(Da)&&(Da=null),Na!==null&&cl(Na)&&(Na=null),yo.forEach(Ry),vo.forEach(Ry)}function fl(t,n){t.blockedOn===n&&(t.blockedOn=null,mf||(mf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,cE)))}var dl=null;function Oy(t){dl!==t&&(dl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){dl===t&&(dl=null);for(var n=0;n<t.length;n+=3){var i=t[n],s=t[n+1],u=t[n+2];if(typeof s!="function"){if(hf(s||i)===null)continue;break}var d=xi(i);d!==null&&(t.splice(n,3),n-=3,fc(d,{pending:!0,data:u,method:i.method,action:s},s,u))}}))}function nr(t){function n(T){return fl(T,t)}Ma!==null&&fl(Ma,t),Da!==null&&fl(Da,t),Na!==null&&fl(Na,t),yo.forEach(n),vo.forEach(n);for(var i=0;i<ja.length;i++){var s=ja[i];s.blockedOn===t&&(s.blockedOn=null)}for(;0<ja.length&&(i=ja[0],i.blockedOn===null);)Cy(i),i.blockedOn===null&&ja.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var u=i[s],d=i[s+1],g=u[Vt]||null;if(typeof d=="function")g||Oy(i);else if(g){var b=null;if(d&&d.hasAttribute("formAction")){if(u=d,g=d[Vt]||null)b=g.formAction;else if(hf(u)!==null)continue}else b=g.action;typeof b=="function"?i[s+1]=b:(i.splice(s,3),s-=3),Oy(i)}}}function My(){function t(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function pf(t){this._internalRoot=t}hl.prototype.render=pf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(o(409));var i=n.current,s=Wt();Ty(i,s,t,n,null,null)},hl.prototype.unmount=pf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Ty(t.current,2,null,t,null,null),Xs(),n[bi]=null}};function hl(t){this._internalRoot=t}hl.prototype.unstable_scheduleHydration=function(t){if(t){var n=Hh();t={blockedOn:null,target:t,priority:n};for(var i=0;i<ja.length&&n!==0&&n<ja[i].priority;i++);ja.splice(i,0,t),i===0&&Cy(t)}};var Dy=a.version;if(Dy!=="19.2.4")throw Error(o(527,Dy,"19.2.4"));X.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(n),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var fE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{zr=ml.inject(fE),Yt=ml}catch{}}return xo.createRoot=function(t,n){if(!l(t))throw Error(o(299));var i=!1,s="",u=Bp,d=Zp,g=Hp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),n=Sy(t,1,!1,null,null,i,s,null,u,d,g,My),t[bi]=n.current,Qc(t),new pf(n)},xo.hydrateRoot=function(t,n,i){if(!l(t))throw Error(o(299));var s=!1,u="",d=Bp,g=Zp,b=Hp,T=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.formState!==void 0&&(T=i.formState)),n=Sy(t,1,!0,n,i??null,s,u,T,d,g,b,My),n.context=xy(null),i=n.current,s=Wt(),s=iu(s),u=ba(s),u.callback=null,Sa(i,u,s),i=s,n.current.lanes=i,Rr(n,i),Mn(n),t[bi]=n.current,Qc(t),new hl(n)},xo.version="19.2.4",xo}var $y;function TE(){if($y)return vf.exports;$y=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),vf.exports=xE(),vf.exports}var EE=TE();var Gy="popstate";function _E(e={}){function a(o,l){let{pathname:f,search:c,hash:h}=o.location;return ed("",{pathname:f,search:c,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(o,l){return typeof l=="string"?l:Vo(l)}return AE(a,r,null,e)}function Pe(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function En(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function wE(){return Math.random().toString(36).substring(2,10)}function qy(e,a){return{usr:e.state,key:e.key,idx:a}}function ed(e,a,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?pr(a):a,state:r,key:a&&a.key||o||wE()}}function Vo({pathname:e="/",search:a="",hash:r=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function pr(e){let a={};if(e){let r=e.indexOf("#");r>=0&&(a.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(a.search=e.substring(o),e=e.substring(0,o)),e&&(a.pathname=e)}return a}function AE(e,a,r,o={}){let{window:l=document.defaultView,v5Compat:f=!1}=o,c=l.history,h="POP",m=null,p=y();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function y(){return(c.state||{idx:null}).idx}function v(){h="POP";let O=y(),V=O==null?null:O-p;p=O,m&&m({action:h,location:E.location,delta:V})}function S(O,V){h="PUSH";let C=ed(E.location,O,V);p=y()+1;let j=qy(C,p),Q=E.createHref(C);try{c.pushState(j,"",Q)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;l.location.assign(Q)}f&&m&&m({action:h,location:E.location,delta:1})}function x(O,V){h="REPLACE";let C=ed(E.location,O,V);p=y();let j=qy(C,p),Q=E.createHref(C);c.replaceState(j,"",Q),f&&m&&m({action:h,location:E.location,delta:0})}function R(O){return zE(O)}let E={get action(){return h},get location(){return e(l,c)},listen(O){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(Gy,v),m=O,()=>{l.removeEventListener(Gy,v),m=null}},createHref(O){return a(l,O)},createURL:R,encodeLocation(O){let V=R(O);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:S,replace:x,go(O){return c.go(O)}};return E}function zE(e,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:Vo(e);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function F0(e,a,r="/"){return CE(e,a,r,!1)}function CE(e,a,r,o){let l=typeof a=="string"?pr(a):a,f=sa(l.pathname||"/",r);if(f==null)return null;let c=J0(e);RE(c);let h=null;for(let m=0;h==null&&m<c.length;++m){let p=ZE(f);h=LE(c[m],p,o)}return h}function J0(e,a=[],r=[],o="",l=!1){let f=(c,h,m=l,p)=>{let y={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&m)return;Pe(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let v=ra([o,y.relativePath]),S=r.concat(y);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),J0(c.children,a,S,v,m)),!(c.path==null&&!c.index)&&a.push({path:v,score:VE(v,c.index),routesMeta:S})};return e.forEach((c,h)=>{if(c.path===""||!c.path?.includes("?"))f(c,h);else for(let m of I0(c.path))f(c,h,!0,m)}),a}function I0(e){let a=e.split("/");if(a.length===0)return[];let[r,...o]=a,l=r.endsWith("?"),f=r.replace(/\?$/,"");if(o.length===0)return l?[f,""]:[f];let c=I0(o.join("/")),h=[];return h.push(...c.map(m=>m===""?f:[f,m].join("/"))),l&&h.push(...c),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function RE(e){e.sort((a,r)=>a.score!==r.score?r.score-a.score:UE(a.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var OE=/^:[\w-]+$/,ME=3,DE=2,NE=1,jE=10,kE=-2,Yy=e=>e==="*";function VE(e,a){let r=e.split("/"),o=r.length;return r.some(Yy)&&(o+=kE),a&&(o+=DE),r.filter(l=>!Yy(l)).reduce((l,f)=>l+(OE.test(f)?ME:f===""?NE:jE),o)}function UE(e,a){return e.length===a.length&&e.slice(0,-1).every((o,l)=>o===a[l])?e[e.length-1]-a[a.length-1]:0}function LE(e,a,r=!1){let{routesMeta:o}=e,l={},f="/",c=[];for(let h=0;h<o.length;++h){let m=o[h],p=h===o.length-1,y=f==="/"?a:a.slice(f.length)||"/",v=Dl({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},y),S=m.route;if(!v&&p&&r&&!o[o.length-1].route.index&&(v=Dl({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(l,v.params),c.push({params:l,pathname:ra([f,v.pathname]),pathnameBase:qE(ra([f,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(f=ra([f,v.pathnameBase]))}return c}function Dl(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=BE(e.path,e.caseSensitive,e.end),l=a.match(r);if(!l)return null;let f=l[0],c=f.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:o.reduce((p,{paramName:y,isOptional:v},S)=>{if(y==="*"){let R=h[S]||"";c=f.slice(0,f.length-R.length).replace(/(.)\/+$/,"$1")}const x=h[S];return v&&!x?p[y]=void 0:p[y]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:c,pattern:e}}function BE(e,a=!1,r=!0){En(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,m)=>(o.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,a?void 0:"i"),o]}function ZE(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return En(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),e}}function sa(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}var HE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function $E(e,a="/"){let{pathname:r,search:o="",hash:l=""}=typeof e=="string"?pr(e):e,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=Py(r.substring(1),"/"):f=Py(r,a)):f=a,{pathname:f,search:YE(o),hash:PE(l)}}function Py(e,a){let r=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Tf(e,a,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function GE(e){return e.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Zd(e){let a=GE(e);return a.map((r,o)=>o===a.length-1?r.pathname:r.pathnameBase)}function Hd(e,a,r,o=!1){let l;typeof e=="string"?l=pr(e):(l={...e},Pe(!l.pathname||!l.pathname.includes("?"),Tf("?","pathname","search",l)),Pe(!l.pathname||!l.pathname.includes("#"),Tf("#","pathname","hash",l)),Pe(!l.search||!l.search.includes("#"),Tf("#","search","hash",l)));let f=e===""||l.pathname==="",c=f?"/":l.pathname,h;if(c==null)h=r;else{let v=a.length-1;if(!o&&c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),v-=1;l.pathname=S.join("/")}h=v>=0?a[v]:"/"}let m=$E(l,h),p=c&&c!=="/"&&c.endsWith("/"),y=(f||c===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var ra=e=>e.join("/").replace(/\/\/+/g,"/"),qE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),YE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,XE=class{constructor(e,a,r,o=!1){this.status=e,this.statusText=a||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function KE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function QE(e){return e.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function eb(e,a){let r=e;if(typeof r!="string"||!HE.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,l=!1;if(W0)try{let f=new URL(window.location.href),c=r.startsWith("//")?new URL(f.protocol+r):new URL(r),h=sa(c.pathname,a);c.origin===f.origin&&h!=null?r=h+c.search+c.hash:l=!0}catch{En(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:l,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var tb=["POST","PUT","PATCH","DELETE"];new Set(tb);var FE=["GET",...tb];new Set(FE);var gr=A.createContext(null);gr.displayName="DataRouter";var Pl=A.createContext(null);Pl.displayName="DataRouterState";var JE=A.createContext(!1),nb=A.createContext({isTransitioning:!1});nb.displayName="ViewTransition";var IE=A.createContext(new Map);IE.displayName="Fetchers";var WE=A.createContext(null);WE.displayName="Await";var en=A.createContext(null);en.displayName="Navigation";var qo=A.createContext(null);qo.displayName="Location";var Vn=A.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var $d=A.createContext(null);$d.displayName="RouteError";var ab="REACT_ROUTER_ERROR",e_="REDIRECT",t_="ROUTE_ERROR_RESPONSE";function n_(e){if(e.startsWith(`${ab}:${e_}:{`))try{let a=JSON.parse(e.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function a_(e){if(e.startsWith(`${ab}:${t_}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new XE(a.status,a.statusText,a.data)}catch{}}function i_(e,{relative:a}={}){Pe(yr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=A.useContext(en),{hash:l,pathname:f,search:c}=Yo(e,{relative:a}),h=f;return r!=="/"&&(h=f==="/"?r:ra([r,f])),o.createHref({pathname:h,search:c,hash:l})}function yr(){return A.useContext(qo)!=null}function ua(){return Pe(yr(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(qo).location}var ib="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rb(e){A.useContext(en).static||A.useLayoutEffect(e)}function ob(){let{isDataRoute:e}=A.useContext(Vn);return e?y_():r_()}function r_(){Pe(yr(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(gr),{basename:a,navigator:r}=A.useContext(en),{matches:o}=A.useContext(Vn),{pathname:l}=ua(),f=JSON.stringify(Zd(o)),c=A.useRef(!1);return rb(()=>{c.current=!0}),A.useCallback((m,p={})=>{if(En(c.current,ib),!c.current)return;if(typeof m=="number"){r.go(m);return}let y=Hd(m,JSON.parse(f),l,p.relative==="path");e==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:ra([a,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[a,r,f,l,e])}A.createContext(null);function Yo(e,{relative:a}={}){let{matches:r}=A.useContext(Vn),{pathname:o}=ua(),l=JSON.stringify(Zd(r));return A.useMemo(()=>Hd(e,JSON.parse(l),o,a==="path"),[e,l,o,a])}function o_(e,a){return sb(e,a)}function sb(e,a,r,o,l){Pe(yr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=A.useContext(en),{matches:c}=A.useContext(Vn),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",y=h?h.pathnameBase:"/",v=h&&h.route;{let C=v&&v.path||"";ub(p,!v||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let S=sa(),x;if(a){let C=typeof a=="string"?pr(a):a;Pe(y==="/"||C.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 "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=S;let R=x.pathname||"/",E=R;if(y!=="/"){let C=y.replace(/^\//,"").split("/");E="/"+R.replace(/^\//,"").split("/").slice(C.length).join("/")}let O=Q0(e,{pathname:E});En(v||O!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),En(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.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 V=f_(O&&O.map(C=>Object.assign({},C,{params:Object.assign({},m,C.params),pathname:aa([y,f.encodeLocation?f.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?y:aa([y,f.encodeLocation?f.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),c,r,o,l);return a&&V?A.createElement(Go.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},V):V}function s_(){let e=g_(),a=KE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:f},"ErrorBoundary")," or"," ",A.createElement("code",{style:f},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},a),r?A.createElement("pre",{style:l},r):null,c)}var l_=A.createElement(s_,null),sb=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,a){return a.location!==e.location||a.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=a_(e.digest);r&&(e=r)}let a=e!==void 0?A.createElement(kn.Provider,{value:this.props.routeContext},A.createElement(Hd.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(u_,{error:e},a):a}};sb.contextType=JE;var Ef=new WeakMap;function u_({children:e,error:a}){let{basename:r}=A.useContext(en);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let o=n_(a.digest);if(o){let l=Ef.get(a);if(l)throw l;let f=W0(o.location,r);if(I0&&!Ef.get(a))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw Ef.set(a,c),c}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return e}function c_({routeContext:e,match:a,children:r}){let o=A.useContext(gr);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),A.createElement(kn.Provider,{value:e},r)}function f_(e,a=[],r=null,o=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let f=e,c=r?.errors;if(c!=null){let y=f.findIndex(v=>v.route.id&&c?.[v.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),f=f.slice(0,Math.min(f.length,y+1))}let h=!1,m=-1;if(r)for(let y=0;y<f.length;y++){let v=f[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=y),v.route.id){let{loaderData:S,errors:x}=r,R=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!x||x[v.route.id]===void 0);if(v.route.lazy||R){h=!0,m>=0?f=f.slice(0,m+1):f=[f[0]];break}}}let p=r&&o?(y,v)=>{o(y,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:QE(r.matches),errorInfo:v})}:void 0;return f.reduceRight((y,v,S)=>{let x,R=!1,E=null,O=null;r&&(x=c&&v.route.id?c[v.route.id]:void 0,E=v.route.errorElement||l_,h&&(m<0&&S===0?(lb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,O=null):m===S&&(R=!0,O=v.route.hydrateFallbackElement||null)));let V=a.concat(f.slice(0,S+1)),C=()=>{let j;return x?j=E:R?j=O:v.route.Component?j=A.createElement(v.route.Component,null):v.route.element?j=v.route.element:j=y,A.createElement(c_,{match:v,routeContext:{outlet:y,matches:V,isDataRoute:r!=null},children:j})};return r&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?A.createElement(sb,{location:r.location,revalidation:r.revalidation,component:E,error:x,children:C(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:p}):C()},null)}function $d(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d_(e){let a=A.useContext(gr);return Pe(a,$d(e)),a}function h_(e){let a=A.useContext(Pl);return Pe(a,$d(e)),a}function m_(e){let a=A.useContext(kn);return Pe(a,$d(e)),a}function Gd(e){let a=m_(e),r=a.matches[a.matches.length-1];return Pe(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function p_(){return Gd("useRouteId")}function g_(){let e=A.useContext(Hd),a=h_("useRouteError"),r=Gd("useRouteError");return e!==void 0?e:a.errors?.[r]}function y_(){let{router:e}=d_("useNavigate"),a=Gd("useNavigate"),r=A.useRef(!1);return ib(()=>{r.current=!0}),A.useCallback(async(l,f={})=>{En(r.current,ab),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:a,...f}))},[e,a])}var Yy={};function lb(e,a,r){!a&&!Yy[e]&&(Yy[e]=!0,En(!1,r))}A.memo(v_);function v_({routes:e,future:a,state:r,onError:o}){return ob(e,void 0,r,o,a)}function b_({to:e,replace:a,state:r,relative:o}){Pe(yr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=A.useContext(en);En(!l,"<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}=A.useContext(kn),{pathname:c}=sa(),h=rb(),m=Zd(e,Bd(f),c,o==="path"),p=JSON.stringify(m);return A.useEffect(()=>{h(JSON.parse(p),{replace:a,state:r,relative:o})},[h,p,o,a,r]),null}function Ao(e){Pe(!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 S_({basename:e="/",children:a=null,location:r,navigationType:o="POP",navigator:l,static:f=!1,unstable_useTransitions:c}){Pe(!yr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),m=A.useMemo(()=>({basename:h,navigator:l,static:f,unstable_useTransitions:c,future:{}}),[h,l,f,c]);typeof r=="string"&&(r=pr(r));let{pathname:p="/",search:y="",hash:v="",state:S=null,key:x="default"}=r,R=A.useMemo(()=>{let E=ra(p,h);return E==null?null:{location:{pathname:E,search:y,hash:v,state:S,key:x},navigationType:o}},[h,p,y,v,S,x,o]);return En(R!=null,`<Router basename="${h}"> is not able to match the URL "${p}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:A.createElement(en.Provider,{value:m},A.createElement(Go.Provider,{children:a,value:R}))}function x_({children:e,location:a}){return o_(td(e),a)}function td(e,a=[]){let r=[];return A.Children.forEach(e,(o,l)=>{if(!A.isValidElement(o))return;let f=[...a,l];if(o.type===A.Fragment){r.push.apply(r,td(o.props.children,f));return}Pe(o.type===Ao,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let c={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(c.children=td(o.props.children,f)),r.push(c)}),r}var Al="get",zl="application/x-www-form-urlencoded";function Xl(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function T_(e){return Xl(e)&&e.tagName.toLowerCase()==="button"}function E_(e){return Xl(e)&&e.tagName.toLowerCase()==="form"}function __(e){return Xl(e)&&e.tagName.toLowerCase()==="input"}function w_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A_(e,a){return e.button===0&&(!a||a==="_self")&&!w_(e)}var ml=null;function z_(){if(ml===null)try{new FormData(document.createElement("form"),0),ml=!1}catch{ml=!0}return ml}var C_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _f(e){return e!=null&&!C_.has(e)?(En(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zl}"`),null):e}function R_(e,a){let r,o,l,f,c;if(E_(e)){let h=e.getAttribute("action");o=h?ra(h,a):null,r=e.getAttribute("method")||Al,l=_f(e.getAttribute("enctype"))||zl,f=new FormData(e)}else if(T_(e)||__(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||h.getAttribute("action");if(o=m?ra(m,a):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||Al,l=_f(e.getAttribute("formenctype"))||_f(h.getAttribute("enctype"))||zl,f=new FormData(h,e),!z_()){let{name:p,type:y,value:v}=e;if(y==="image"){let S=p?`${p}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else p&&f.append(p,v)}}else{if(Xl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Al,o=null,l=zl,c=e}return f&&l==="text/plain"&&(c=f,f=void 0),{action:o,method:r.toLowerCase(),encType:l,formData:f,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qd(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function O_(e,a,r,o){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${o}`:l.pathname=`${l.pathname}.${o}`:l.pathname==="/"?l.pathname=`_root.${o}`:a&&ra(l.pathname,a)==="/"?l.pathname=`${a.replace(/\/$/,"")}/_root.${o}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${o}`,l}async function M_(e,a){if(e.id in a)return a[e.id];try{let r=await import(e.module);return a[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function D_(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function N_(e,a,r){let o=await Promise.all(e.map(async l=>{let f=a.routes[l.route.id];if(f){let c=await M_(f,r);return c.links?c.links():[]}return[]}));return U_(o.flat(1).filter(D_).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Py(e,a,r,o,l,f){let c=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,h=(m,p)=>r[p].pathname!==m.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==m.params["*"];return f==="assets"?a.filter((m,p)=>c(m,p)||h(m,p)):f==="data"?a.filter((m,p)=>{let y=o.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(c(m,p)||h(m,p))return!0;if(m.route.shouldRevalidate){let v=m.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function j_(e,a,{includeHydrateFallback:r}={}){return k_(e.map(o=>{let l=a.routes[o.route.id];if(!l)return[];let f=[l.module];return l.clientActionModule&&(f=f.concat(l.clientActionModule)),l.clientLoaderModule&&(f=f.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(f=f.concat(l.hydrateFallbackModule)),l.imports&&(f=f.concat(l.imports)),f}).flat(1))}function k_(e){return[...new Set(e)]}function V_(e){let a={},r=Object.keys(e).sort();for(let o of r)a[o]=e[o];return a}function U_(e,a){let r=new Set;return new Set(a),e.reduce((o,l)=>{let f=JSON.stringify(V_(l));return r.has(f)||(r.add(f),o.push({key:f,link:l})),o},[])}function ub(){let e=A.useContext(gr);return qd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function L_(){let e=A.useContext(Pl);return qd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yd=A.createContext(void 0);Yd.displayName="FrameworkContext";function cb(){let e=A.useContext(Yd);return qd(e,"You must render this element inside a <HydratedRouter> element"),e}function B_(e,a){let r=A.useContext(Yd),[o,l]=A.useState(!1),[f,c]=A.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:v}=a,S=A.useRef(null);A.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let E=V=>{V.forEach(C=>{c(C.isIntersecting)})},O=new IntersectionObserver(E,{threshold:.5});return S.current&&O.observe(S.current),()=>{O.disconnect()}}},[e]),A.useEffect(()=>{if(o){let E=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(E)}}},[o]);let x=()=>{l(!0)},R=()=>{l(!1),c(!1)};return r?e!=="intent"?[f,S,{}]:[f,S,{onFocus:To(h,x),onBlur:To(m,R),onMouseEnter:To(p,x),onMouseLeave:To(y,R),onTouchStart:To(v,x)}]:[!1,S,{}]}function To(e,a){return r=>{e&&e(r),r.defaultPrevented||a(r)}}function Z_({page:e,...a}){let{router:r}=ub(),o=A.useMemo(()=>Q0(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?A.createElement($_,{page:e,matches:o,...a}):null}function H_(e){let{manifest:a,routeModules:r}=cb(),[o,l]=A.useState([]);return A.useEffect(()=>{let f=!1;return N_(e,a,r).then(c=>{f||l(c)}),()=>{f=!0}},[e,a,r]),o}function $_({page:e,matches:a,...r}){let o=sa(),{future:l,manifest:f,routeModules:c}=cb(),{basename:h}=ub(),{loaderData:m,matches:p}=L_(),y=A.useMemo(()=>Py(e,a,p,f,o,"data"),[e,a,p,f,o]),v=A.useMemo(()=>Py(e,a,p,f,o,"assets"),[e,a,p,f,o]),S=A.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let E=new Set,O=!1;if(a.forEach(C=>{let j=f.routes[C.route.id];!j||!j.hasLoader||(!y.some(Q=>Q.route.id===C.route.id)&&C.route.id in m&&c[C.route.id]?.shouldRevalidate||j.hasClientLoader?O=!0:E.add(C.route.id))}),E.size===0)return[];let V=O_(e,h,l.unstable_trailingSlashAwareDataRequests,"data");return O&&E.size>0&&V.searchParams.set("_routes",a.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[V.pathname+V.search]},[h,l.unstable_trailingSlashAwareDataRequests,m,o,f,y,a,e,c]),x=A.useMemo(()=>j_(v,f),[v,f]),R=H_(v);return A.createElement(A.Fragment,null,S.map(E=>A.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),x.map(E=>A.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),R.map(({key:E,link:O})=>A.createElement("link",{key:E,nonce:r.nonce,...O,crossOrigin:O.crossOrigin??r.crossOrigin})))}function G_(...e){return a=>{e.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var q_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{q_&&(window.__reactRouterVersion="7.13.0")}catch{}function Y_({basename:e,children:a,unstable_useTransitions:r,window:o}){let l=A.useRef();l.current==null&&(l.current=_E({window:o,v5Compat:!0}));let f=l.current,[c,h]=A.useState({action:f.action,location:f.location}),m=A.useCallback(p=>{r===!1?h(p):A.startTransition(()=>h(p))},[r]);return A.useLayoutEffect(()=>f.listen(m),[f,m]),A.createElement(S_,{basename:e,children:a,location:c.location,navigationType:c.action,navigator:f,unstable_useTransitions:r})}var fb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pd=A.forwardRef(function({onClick:a,discover:r="render",prefetch:o="none",relative:l,reloadDocument:f,replace:c,state:h,target:m,to:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S,...x},R){let{basename:E,unstable_useTransitions:O}=A.useContext(en),V=typeof p=="string"&&fb.test(p),C=W0(p,E);p=C.to;let j=i_(p,{relative:l}),[Q,q,I]=B_(o,x),F=Q_(p,{replace:c,state:h,target:m,preventScrollReset:y,relative:l,viewTransition:v,unstable_defaultShouldRevalidate:S,unstable_useTransitions:O});function P(xe){a&&a(xe),xe.defaultPrevented||F(xe)}let W=A.createElement("a",{...x,...I,href:C.absoluteURL||j,onClick:C.isExternal||f?a:P,ref:G_(R,q),target:m,"data-discover":!V&&r==="render"?"true":void 0});return Q&&!V?A.createElement(A.Fragment,null,W,A.createElement(Z_,{page:j})):W});Pd.displayName="Link";var P_=A.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:o="",end:l=!1,style:f,to:c,viewTransition:h,children:m,...p},y){let v=qo(c,{relative:p.relative}),S=sa(),x=A.useContext(Pl),{navigator:R,basename:E}=A.useContext(en),O=x!=null&&ew(v)&&h===!0,V=R.encodeLocation?R.encodeLocation(v).pathname:v.pathname,C=S.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(C=C.toLowerCase(),j=j?j.toLowerCase():null,V=V.toLowerCase()),j&&E&&(j=ra(j,E)||j);const Q=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let q=C===V||!l&&C.startsWith(V)&&C.charAt(Q)==="/",I=j!=null&&(j===V||!l&&j.startsWith(V)&&j.charAt(V.length)==="/"),F={isActive:q,isPending:I,isTransitioning:O},P=q?a:void 0,W;typeof o=="function"?W=o(F):W=[o,q?"active":null,I?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let xe=typeof f=="function"?f(F):f;return A.createElement(Pd,{...p,"aria-current":P,className:W,ref:y,style:xe,to:c,viewTransition:h},typeof m=="function"?m(F):m)});P_.displayName="NavLink";var X_=A.forwardRef(({discover:e="render",fetcherKey:a,navigate:r,reloadDocument:o,replace:l,state:f,method:c=Al,action:h,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S,...x},R)=>{let{unstable_useTransitions:E}=A.useContext(en),O=I_(),V=W_(h,{relative:p}),C=c.toLowerCase()==="get"?"get":"post",j=typeof h=="string"&&fb.test(h),Q=q=>{if(m&&m(q),q.defaultPrevented)return;q.preventDefault();let I=q.nativeEvent.submitter,F=I?.getAttribute("formmethod")||c,P=()=>O(I||q.currentTarget,{fetcherKey:a,method:F,navigate:r,replace:l,state:f,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S});E&&r!==!1?A.startTransition(()=>P()):P()};return A.createElement("form",{ref:R,method:C,action:V,onSubmit:o?m:Q,...x,"data-discover":!j&&e==="render"?"true":void 0})});X_.displayName="Form";function K_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function db(e){let a=A.useContext(gr);return Pe(a,K_(e)),a}function Q_(e,{target:a,replace:r,state:o,preventScrollReset:l,relative:f,viewTransition:c,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let p=rb(),y=sa(),v=qo(e,{relative:f});return A.useCallback(S=>{if(A_(S,a)){S.preventDefault();let x=r!==void 0?r:ko(y)===ko(v),R=()=>p(e,{replace:x,state:o,preventScrollReset:l,relative:f,viewTransition:c,unstable_defaultShouldRevalidate:h});m?A.startTransition(()=>R()):R()}},[y,p,v,r,o,a,e,l,f,c,h,m])}var F_=0,J_=()=>`__${String(++F_)}__`;function I_(){let{router:e}=db("useSubmit"),{basename:a}=A.useContext(en),r=p_(),o=e.fetch,l=e.navigate;return A.useCallback(async(f,c={})=>{let{action:h,method:m,encType:p,formData:y,body:v}=R_(f,a);if(c.navigate===!1){let S=c.fetcherKey||J_();await o(S,r,c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||m,formEncType:c.encType||p,flushSync:c.flushSync})}else await l(c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||m,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[o,l,a,r])}function W_(e,{relative:a}={}){let{basename:r}=A.useContext(en),o=A.useContext(kn);Pe(o,"useFormAction must be used inside a RouteContext");let[l]=o.matches.slice(-1),f={...qo(e||".",{relative:a})},c=sa();if(e==null){f.search=c.search;let h=new URLSearchParams(f.search),m=h.getAll("index");if(m.some(y=>y==="")){h.delete("index"),m.filter(v=>v).forEach(v=>h.append("index",v));let y=h.toString();f.search=y?`?${y}`:""}}return(!e||e===".")&&l.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:aa([r,f.pathname])),ko(f)}function ew(e,{relative:a}={}){let r=A.useContext(tb);Pe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=db("useViewTransitionState"),l=qo(e,{relative:a});if(!r.isTransitioning)return!1;let f=ra(r.currentLocation.pathname,o)||r.currentLocation.pathname,c=ra(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Dl(l.pathname,c)!=null||Dl(l.pathname,f)!=null}const hb=(...e)=>e.filter((a,r,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===r).join(" ").trim();const tw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const nw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,o)=>o?o.toUpperCase():r.toLowerCase());const Xy=e=>{const a=nw(e);return a.charAt(0).toUpperCase()+a.slice(1)};var aw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const iw=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};const rw=A.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:f,iconNode:c,...h},m)=>A.createElement("svg",{ref:m,...aw,width:a,height:a,stroke:e,strokeWidth:o?Number(r)*24/Number(a):r,className:hb("lucide",l),...!f&&!iw(h)&&{"aria-hidden":"true"},...h},[...c.map(([p,y])=>A.createElement(p,y)),...Array.isArray(f)?f:[f]]));const pn=(e,a)=>{const r=A.forwardRef(({className:o,...l},f)=>A.createElement(rw,{ref:f,iconNode:a,className:hb(`lucide-${tw(Xy(e))}`,`lucide-${e}`,o),...l}));return r.displayName=Xy(e),r};const ow=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],mb=pn("activity",ow);const sw=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],lw=pn("box",sw);const uw=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],cw=pn("brain",uw);const fw=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dw=pn("clock",fw);const hw=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],mw=pn("cpu",hw);const pw=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],gw=pn("file-text",pw);const yw=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],vw=pn("layout-dashboard",yw);const bw=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Sw=pn("moon",bw);const xw=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Tw=pn("refresh-cw",xw);const Ew=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_w=pn("settings",Ew);const ww=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Aw=pn("sun",ww);const zw=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Cw=pn("terminal",zw);var wf={exports:{}},Af={};var Ky;function Rw(){if(Ky)return Af;Ky=1;var e=Yl();function a(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var r=typeof Object.is=="function"?Object.is:a,o=e.useState,l=e.useEffect,f=e.useLayoutEffect,c=e.useDebugValue;function h(v,S){var x=S(),R=o({inst:{value:x,getSnapshot:S}}),E=R[0].inst,O=R[1];return f(function(){E.value=x,E.getSnapshot=S,m(E)&&O({inst:E})},[v,x,S]),l(function(){return m(E)&&O({inst:E}),v(function(){m(E)&&O({inst:E})})},[v]),c(x),x}function m(v){var S=v.getSnapshot;v=v.value;try{var x=S();return!r(v,x)}catch{return!0}}function p(v,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return Af.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Af}var Qy;function Ow(){return Qy||(Qy=1,wf.exports=Rw()),wf.exports}var Fy=Ow();const pb=0,gb=1,yb=2,Jy=3;var Iy=Object.prototype.hasOwnProperty;function nd(e,a){var r,o;if(e===a)return!0;if(e&&a&&(r=e.constructor)===a.constructor){if(r===Date)return e.getTime()===a.getTime();if(r===RegExp)return e.toString()===a.toString();if(r===Array){if((o=e.length)===a.length)for(;o--&&nd(e[o],a[o]););return o===-1}if(!r||typeof e=="object"){o=0;for(r in e)if(Iy.call(e,r)&&++o&&!Iy.call(a,r)||!(r in a)||!nd(e[r],a[r]))return!1;return Object.keys(a).length===o}}return e!==e&&a!==a}const ta=new WeakMap,na=()=>{},Rt=na(),ad=Object,Ee=e=>e===Rt,Dn=e=>typeof e=="function",Ba=(e,a)=>({...e,...a}),vb=e=>Dn(e.then),zf={},pl={},Xd="undefined",Yo=typeof window!=Xd,id=typeof document!=Xd,Mw=Yo&&"Deno"in window,Dw=()=>Yo&&typeof window.requestAnimationFrame!=Xd,bb=(e,a)=>{const r=ta.get(e);return[()=>!Ee(a)&&e.get(a)||zf,o=>{if(!Ee(a)){const l=e.get(a);a in pl||(pl[a]=l),r[5](a,Ba(l,o),l||zf)}},r[6],()=>!Ee(a)&&a in pl?pl[a]:!Ee(a)&&e.get(a)||zf]};let rd=!0;const Nw=()=>rd,[od,sd]=Yo&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[na,na],jw=()=>{const e=id&&document.visibilityState;return Ee(e)||e!=="hidden"},kw=e=>(id&&document.addEventListener("visibilitychange",e),od("focus",e),()=>{id&&document.removeEventListener("visibilitychange",e),sd("focus",e)}),Vw=e=>{const a=()=>{rd=!0,e()},r=()=>{rd=!1};return od("online",a),od("offline",r),()=>{sd("online",a),sd("offline",r)}},Uw={isOnline:Nw,isVisible:jw},Lw={initFocus:kw,initReconnect:Vw},Wy=!Ld.useId,cr=!Yo||Mw,Bw=e=>Dw()?window.requestAnimationFrame(e):setTimeout(e,1),Cf=cr?A.useEffect:A.useLayoutEffect,Rf=typeof navigator<"u"&&navigator.connection,ev=!cr&&Rf&&(["slow-2g","2g"].includes(Rf.effectiveType)||Rf.saveData),gl=new WeakMap,Zw=e=>ad.prototype.toString.call(e),Of=(e,a)=>e===`[object ${a}]`;let Hw=0;const ld=e=>{const a=typeof e,r=Zw(e),o=Of(r,"Date"),l=Of(r,"RegExp"),f=Of(r,"Object");let c,h;if(ad(e)===e&&!o&&!l){if(c=gl.get(e),c)return c;if(c=++Hw+"~",gl.set(e,c),Array.isArray(e)){for(c="@",h=0;h<e.length;h++)c+=ld(e[h])+",";gl.set(e,c)}if(f){c="#";const m=ad.keys(e).sort();for(;!Ee(h=m.pop());)Ee(e[h])||(c+=h+":"+ld(e[h])+",");gl.set(e,c)}}else c=o?e.toJSON():a=="symbol"?e.toString():a=="string"?JSON.stringify(e):""+e;return c},Kd=e=>{if(Dn(e))try{e=e()}catch{e=""}const a=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ld(e):"",[e,a]};let $w=0;const ud=()=>++$w;async function Sb(...e){const[a,r,o,l]=e,f=Ba({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let c=f.populateCache;const h=f.rollbackOnError;let m=f.optimisticData;const p=S=>typeof h=="function"?h(S):h!==!1,y=f.throwOnError;if(Dn(r)){const S=r,x=[],R=a.keys();for(const E of R)!/^\$(inf|sub)\$/.test(E)&&S(a.get(E)._k)&&x.push(E);return Promise.all(x.map(v))}return v(r);async function v(S){const[x]=Kd(S);if(!x)return;const[R,E]=bb(a,x),[O,V,C,j]=ta.get(a),Q=()=>{const je=O[x];return(Dn(f.revalidate)?f.revalidate(R().data,S):f.revalidate!==!1)&&(delete C[x],delete j[x],je&&je[0])?je[0](yb).then(()=>R().data):R().data};if(e.length<3)return Q();let q=o,I,F=!1;const P=ud();V[x]=[P,0];const W=!Ee(m),xe=R(),Ae=xe.data,Ce=xe._c,rt=Ee(Ce)?Ae:Ce;if(W&&(m=Dn(m)?m(rt,Ae):m,E({data:m,_c:rt})),Dn(q))try{q=q(rt)}catch(je){I=je,F=!0}if(q&&vb(q))if(q=await q.catch(je=>{I=je,F=!0}),P!==V[x][0]){if(F)throw I;return q}else F&&W&&p(I)&&(c=!0,E({data:rt,_c:Rt}));if(c&&!F)if(Dn(c)){const je=c(q,rt);E({data:je,error:Rt,_c:Rt})}else E({data:q,error:Rt,_c:Rt});if(V[x][1]=ud(),Promise.resolve(Q()).then(()=>{E({_c:Rt})}),F){if(y)throw I;return}return q}}const tv=(e,a)=>{for(const r in e)e[r][0]&&e[r][0](a)},Gw=(e,a)=>{if(!ta.has(e)){const r=Ba(Lw,a),o=Object.create(null),l=Sb.bind(Rt,e);let f=na;const c=Object.create(null),h=(y,v)=>{const S=c[y]||[];return c[y]=S,S.push(v),()=>S.splice(S.indexOf(v),1)},m=(y,v,S)=>{e.set(y,v);const x=c[y];if(x)for(const R of x)R(v,S)},p=()=>{if(!ta.has(e)&&(ta.set(e,[o,Object.create(null),Object.create(null),Object.create(null),l,m,h]),!cr)){const y=r.initFocus(setTimeout.bind(Rt,tv.bind(Rt,o,pb))),v=r.initReconnect(setTimeout.bind(Rt,tv.bind(Rt,o,gb)));f=()=>{y&&y(),v&&v(),ta.delete(e)}}};return p(),[e,l,p,f]}return[e,ta.get(e)[4]]},qw=(e,a,r,o,l)=>{const f=r.errorRetryCount,c=l.retryCount,h=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!Ee(f)&&c>f||setTimeout(o,h,l)},Yw=nd,[xb,Tb]=Gw(new Map),Pw=Ba({onLoadingSlow:na,onSuccess:na,onError:na,onErrorRetry:qw,onDiscarded:na,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ev?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ev?5e3:3e3,compare:Yw,isPaused:()=>!1,cache:xb,mutate:Tb,fallback:{}},Uw),Xw=(e,a)=>{const r=Ba(e,a);if(a){const{use:o,fallback:l}=e,{use:f,fallback:c}=a;o&&f&&(r.use=o.concat(f)),l&&c&&(r.fallback=Ba(l,c))}return r},Kw=A.createContext({}),Qw="$inf$",Eb=Yo&&window.__SWR_DEVTOOLS_USE__,Fw=Eb?window.__SWR_DEVTOOLS_USE__:[],Jw=()=>{Eb&&(window.__SWR_DEVTOOLS_REACT__=Ld)},Iw=e=>Dn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ww=()=>{const e=A.useContext(Kw);return A.useMemo(()=>Ba(Pw,e),[e])},e2=e=>(a,r,o)=>e(a,r&&((...f)=>{const[c]=Kd(a),[,,,h]=ta.get(xb);if(c.startsWith(Qw))return r(...f);const m=h[c];return Ee(m)?r(...f):(delete h[c],m)}),o),t2=Fw.concat(e2),n2=e=>function(...r){const o=Ww(),[l,f,c]=Iw(r),h=Xw(o,c);let m=e;const{use:p}=h,y=(p||[]).concat(t2);for(let v=y.length;v--;)m=y[v](m);return m(l,f||h.fetcher||null,h)},a2=(e,a,r)=>{const o=a[e]||(a[e]=[]);return o.push(r),()=>{const l=o.indexOf(r);l>=0&&(o[l]=o[o.length-1],o.pop())}};Jw();const Mf=Ld.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(a=>{e.status="fulfilled",e.value=a},a=>{e.status="rejected",e.reason=a}),e}}),Df={dedupe:!0},nv=Promise.resolve(Rt),i2=(e,a,r)=>{const{cache:o,compare:l,suspense:f,fallbackData:c,revalidateOnMount:h,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:S,strictServerPrefetchWarning:x}=r,[R,E,O,V]=ta.get(o),[C,j]=Kd(e),Q=A.useRef(!1),q=A.useRef(!1),I=A.useRef(C),F=A.useRef(a),P=A.useRef(r),W=()=>P.current,xe=()=>W().isVisible()&&W().isOnline(),[Ae,Ce,rt,je]=bb(o,C),ke=A.useRef({}).current,U=Ee(c)?Ee(r.fallback)?Rt:r.fallback[C]:c,X=(Oe,qe)=>{for(const Ke in ke){const Ze=Ke;if(Ze==="data"){if(!l(Oe[Ze],qe[Ze])&&(!Ee(Oe[Ze])||!l(fe,qe[Ze])))return!1}else if(qe[Ze]!==Oe[Ze])return!1}return!0},Y=A.useMemo(()=>{const Oe=!C||!a?!1:Ee(h)?W().isPaused()||f?!1:m!==!1:h,qe=vt=>{const Qe=Ba(vt);return delete Qe._k,Oe?{isValidating:!0,isLoading:!0,...Qe}:Qe},Ke=Ae(),Ze=je(),Mt=qe(Ke),zn=Ke===Ze?Mt:qe(Ze);let dt=Mt;return[()=>{const vt=qe(Ae());return X(vt,dt)?(dt.data=vt.data,dt.isLoading=vt.isLoading,dt.isValidating=vt.isValidating,dt.error=vt.error,dt):(dt=vt,vt)},()=>zn]},[o,C]),ce=Fy.useSyncExternalStore(A.useCallback(Oe=>rt(C,(qe,Ke)=>{X(Ke,qe)||Oe()}),[o,C]),Y[0],Y[1]),pe=!Q.current,w=R[C]&&R[C].length>0,Z=ce.data,K=Ee(Z)?U&&vb(U)?Mf(U):U:Z,J=ce.error,le=A.useRef(K),fe=S?Ee(Z)?Ee(le.current)?K:le.current:Z:K,re=C&&Ee(K),ot=!cr&&Fy.useSyncExternalStore(()=>na,()=>!1,()=>!0);x&&ot&&!f&&re&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Re=w&&!Ee(J)?!1:pe&&!Ee(h)?h:W().isPaused()?!1:f?Ee(K)?!1:m:Ee(K)||m,qt=!!(C&&a&&pe&&Re),_n=Ee(ce.isValidating)?qt:ce.isValidating,wn=Ee(ce.isLoading)?qt:ce.isLoading,la=A.useCallback(async Oe=>{const qe=F.current;if(!C||!qe||q.current||W().isPaused())return!1;let Ke,Ze,Mt=!0;const zn=Oe||{},dt=!O[C]||!zn.dedupe,vt=()=>Wy?!q.current&&C===I.current&&Q.current:C===I.current,Qe={isValidating:!1,isLoading:!1},Jo=()=>{Ce(Qe)},_r=()=>{const bt=O[C];bt&&bt[1]===Ze&&delete O[C]},wr={isValidating:!0};Ee(Ae().data)&&(wr.isLoading=!0);try{if(dt&&(Ce(wr),r.loadingTimeout&&Ee(Ae().data)&&setTimeout(()=>{Mt&&vt()&&W().onLoadingSlow(C,r)},r.loadingTimeout),O[C]=[qe(j),ud()]),[Ke,Ze]=O[C],Ke=await Ke,dt&&setTimeout(_r,r.dedupingInterval),!O[C]||O[C][1]!==Ze)return dt&&vt()&&W().onDiscarded(C),!1;Qe.error=Rt;const bt=E[C];if(!Ee(bt)&&(Ze<=bt[0]||Ze<=bt[1]||bt[1]===0))return Jo(),dt&&vt()&&W().onDiscarded(C),!1;const yn=Ae().data;Qe.data=l(yn,Ke)?yn:Ke,dt&&vt()&&W().onSuccess(Ke,C,r)}catch(bt){_r();const yn=W(),{shouldRetryOnError:vi}=yn;yn.isPaused()||(Qe.error=bt,dt&&vt()&&(yn.onError(bt,C,yn),(vi===!0||Dn(vi)&&vi(bt))&&(!W().revalidateOnFocus||!W().revalidateOnReconnect||xe())&&yn.onErrorRetry(bt,C,yn,nu=>{const Ar=R[C];Ar&&Ar[0]&&Ar[0](Jy,nu)},{retryCount:(zn.retryCount||0)+1,dedupe:!0})))}return Mt=!1,Jo(),!0},[C,o]),An=A.useCallback((...Oe)=>Sb(o,I.current,...Oe),[]);if(Cf(()=>{F.current=a,P.current=r,Ee(Z)||(le.current=Z)}),Cf(()=>{if(!C)return;const Oe=la.bind(Rt,Df);let qe=0;W().revalidateOnFocus&&(qe=Date.now()+W().focusThrottleInterval);const Ze=a2(C,R,(Mt,zn={})=>{if(Mt==pb){const dt=Date.now();W().revalidateOnFocus&&dt>qe&&xe()&&(qe=dt+W().focusThrottleInterval,Oe())}else if(Mt==gb)W().revalidateOnReconnect&&xe()&&Oe();else{if(Mt==yb)return la();if(Mt==Jy)return la(zn)}});return q.current=!1,I.current=C,Q.current=!0,Ce({_k:j}),Re&&(O[C]||(Ee(K)||cr?Oe():Bw(Oe))),()=>{q.current=!0,Ze()}},[C]),Cf(()=>{let Oe;function qe(){const Ze=Dn(p)?p(Ae().data):p;Ze&&Oe!==-1&&(Oe=setTimeout(Ke,Ze))}function Ke(){!Ae().error&&(y||W().isVisible())&&(v||W().isOnline())?la(Df).then(qe):qe()}return qe(),()=>{Oe&&(clearTimeout(Oe),Oe=-1)}},[p,y,v,C]),A.useDebugValue(fe),f){if(!Wy&&cr&&re)throw new Error("Fallback data is required when using Suspense in SSR.");re&&(F.current=a,P.current=r,q.current=!1);const Oe=V[C],qe=!Ee(Oe)&&re?An(Oe):nv;if(Mf(qe),!Ee(J)&&re)throw J;const Ke=re?la(Df):nv;!Ee(fe)&&re&&(Ke.status="fulfilled",Ke.value=!0),Mf(Ke)}return{mutate:An,get data(){return ke.data=!0,fe},get error(){return ke.error=!0,J},get isValidating(){return ke.isValidating=!0,_n},get isLoading(){return ke.isLoading=!0,wn}}},Kl=n2(i2),Qd="/api",Fd=e=>fetch(e).then(a=>a.json());function _b(){return Kl(`${Qd}/status`,Fd,{refreshInterval:5e3})}function r2(){return Kl(`${Qd}/logs`,Fd)}function o2(e){return Kl(e?`${Qd}/logs/${e}?limit=1000`:null,Fd,{refreshInterval:2e3})}function s2(){const{data:e}=_b();return L.jsxs("footer",{className:"h-8 bg-zinc-950 border-t border-matrix-primary flex items-center px-4 text-xs justify-between select-none z-10 shrink-0",children:[L.jsxs("div",{className:"flex gap-4",children:[L.jsxs("span",{className:e?"text-matrix-highlight":"text-red-500",children:["● ",e?.status.toUpperCase()||"OFFLINE"]}),L.jsxs("span",{children:["PID: ",e?.pid||"-"]}),L.jsxs("span",{children:["UPTIME: ",e?Math.floor(e.uptimeSeconds/60)+"m":"-"]})]}),L.jsxs("div",{className:"flex gap-4 opacity-70",children:[L.jsxs("span",{children:["v",e?.projectVersion||"0.0.0"]}),L.jsx("span",{children:e?.agentName||"Morpheus"})]})]})}const wb=A.createContext({});function l2(e){const a=A.useRef(null);return a.current===null&&(a.current=e()),a.current}const Ab=typeof window<"u",u2=Ab?A.useLayoutEffect:A.useEffect,Jd=A.createContext(null);function Id(e,a){e.indexOf(a)===-1&&e.push(a)}function Wd(e,a){const r=e.indexOf(a);r>-1&&e.splice(r,1)}const jn=(e,a,r)=>r>a?a:r<e?e:r;let eh=()=>{};const oa={},zb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Cb(e){return typeof e=="object"&&e!==null}const Rb=e=>/^0[^.\s]+$/u.test(e);function th(e){let a;return()=>(a===void 0&&(a=e()),a)}const mn=e=>e,c2=(e,a)=>r=>a(e(r)),Po=(...e)=>e.reduce(c2),Vo=(e,a,r)=>{const o=a-e;return o===0?1:(r-e)/o};class nh{constructor(){this.subscriptions=[]}add(a){return Id(this.subscriptions,a),()=>Wd(this.subscriptions,a)}notify(a,r,o){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](a,r,o);else for(let f=0;f<l;f++){const c=this.subscriptions[f];c&&c(a,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ia=e=>e*1e3,hn=e=>e/1e3;function Ob(e,a){return a?e*(1e3/a):0}const Mb=(e,a,r)=>(((1-3*r+3*a)*e+(3*r-6*a))*e+3*a)*e,f2=1e-7,d2=12;function h2(e,a,r,o,l){let f,c,h=0;do c=a+(r-a)/2,f=Mb(c,o,l)-e,f>0?r=c:a=c;while(Math.abs(f)>f2&&++h<d2);return c}function Xo(e,a,r,o){if(e===a&&r===o)return mn;const l=f=>h2(f,0,1,e,r);return f=>f===0||f===1?f:Mb(l(f),a,o)}const Db=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2,Nb=e=>a=>1-e(1-a),jb=Xo(.33,1.53,.69,.99),ah=Nb(jb),kb=Db(ah),Vb=e=>(e*=2)<1?.5*ah(e):.5*(2-Math.pow(2,-10*(e-1))),ih=e=>1-Math.sin(Math.acos(e)),Ub=Nb(ih),Lb=Db(ih),m2=Xo(.42,0,1,1),p2=Xo(0,0,.58,1),Bb=Xo(.42,0,.58,1),g2=e=>Array.isArray(e)&&typeof e[0]!="number",Zb=e=>Array.isArray(e)&&typeof e[0]=="number",y2={linear:mn,easeIn:m2,easeInOut:Bb,easeOut:p2,circIn:ih,circInOut:Lb,circOut:Ub,backIn:ah,backInOut:kb,backOut:jb,anticipate:Vb},v2=e=>typeof e=="string",av=e=>{if(Zb(e)){eh(e.length===4);const[a,r,o,l]=e;return Xo(a,r,o,l)}else if(v2(e))return y2[e];return e},yl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function b2(e,a){let r=new Set,o=new Set,l=!1,f=!1;const c=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(y){c.has(y)&&(p.schedule(y),e()),y(h)}const p={schedule:(y,v=!1,S=!1)=>{const R=S&&l?r:o;return v&&c.add(y),R.has(y)||R.add(y),y},cancel:y=>{o.delete(y),c.delete(y)},process:y=>{if(h=y,l){f=!0;return}l=!0,[r,o]=[o,r],r.forEach(m),r.clear(),l=!1,f&&(f=!1,p.process(y))}};return p}const S2=40;function Hb(e,a){let r=!1,o=!0;const l={delta:0,timestamp:0,isProcessing:!1},f=()=>r=!0,c=yl.reduce((j,Q)=>(j[Q]=b2(f),j),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:y,update:v,preRender:S,render:x,postRender:R}=c,E=()=>{const j=oa.useManualTiming?l.timestamp:performance.now();r=!1,oa.useManualTiming||(l.delta=o?1e3/60:Math.max(Math.min(j-l.timestamp,S2),1)),l.timestamp=j,l.isProcessing=!0,h.process(l),m.process(l),p.process(l),y.process(l),v.process(l),S.process(l),x.process(l),R.process(l),l.isProcessing=!1,r&&a&&(o=!1,e(E))},O=()=>{r=!0,o=!0,l.isProcessing||e(E)};return{schedule:yl.reduce((j,Q)=>{const q=c[Q];return j[Q]=(I,F=!1,P=!1)=>(r||O(),q.schedule(I,F,P)),j},{}),cancel:j=>{for(let Q=0;Q<yl.length;Q++)c[yl[Q]].cancel(j)},state:l,steps:c}}const{schedule:Ge,cancel:Za,state:At,steps:Nf}=Hb(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0);let Cl;function x2(){Cl=void 0}const jt={now:()=>(Cl===void 0&&jt.set(At.isProcessing||oa.useManualTiming?At.timestamp:performance.now()),Cl),set:e=>{Cl=e,queueMicrotask(x2)}},$b=e=>a=>typeof a=="string"&&a.startsWith(e),Gb=$b("--"),T2=$b("var(--"),rh=e=>T2(e)?E2.test(e.split("/*")[0].trim()):!1,E2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function iv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Uo={...vr,transform:e=>jn(0,1,e)},vl={...vr,default:1},Oo=e=>Math.round(e*1e5)/1e5,oh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _2(e){return e==null}const w2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sh=(e,a)=>r=>!!(typeof r=="string"&&w2.test(r)&&r.startsWith(e)||a&&!_2(r)&&Object.prototype.hasOwnProperty.call(r,a)),qb=(e,a,r)=>o=>{if(typeof o!="string")return o;const[l,f,c,h]=o.match(oh);return{[e]:parseFloat(l),[a]:parseFloat(f),[r]:parseFloat(c),alpha:h!==void 0?parseFloat(h):1}},A2=e=>jn(0,255,e),jf={...vr,transform:e=>Math.round(A2(e))},di={test:sh("rgb","red"),parse:qb("red","green","blue"),transform:({red:e,green:a,blue:r,alpha:o=1})=>"rgba("+jf.transform(e)+", "+jf.transform(a)+", "+jf.transform(r)+", "+Oo(Uo.transform(o))+")"};function z2(e){let a="",r="",o="",l="";return e.length>5?(a=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),l=e.substring(7,9)):(a=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),l=e.substring(4,5),a+=a,r+=r,o+=o,l+=l),{red:parseInt(a,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:l?parseInt(l,16)/255:1}}const cd={test:sh("#"),parse:z2,transform:di.transform},Ko=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),Ua=Ko("deg"),Nn=Ko("%"),ae=Ko("px"),C2=Ko("vh"),R2=Ko("vw"),rv={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(e*100)},rr={test:sh("hsl","hue"),parse:qb("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+Nn.transform(Oo(a))+", "+Nn.transform(Oo(r))+", "+Oo(Uo.transform(o))+")"},ft={test:e=>di.test(e)||cd.test(e)||rr.test(e),parse:e=>di.test(e)?di.parse(e):rr.test(e)?rr.parse(e):cd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?di.transform(e):rr.transform(e),getAnimatableNone:e=>{const a=ft.parse(e);return a.alpha=0,ft.transform(a)}},O2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M2(e){return isNaN(e)&&typeof e=="string"&&(e.match(oh)?.length||0)+(e.match(O2)?.length||0)>0}const Yb="number",Pb="color",D2="var",N2="var(",ov="${}",j2=/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 Lo(e){const a=e.toString(),r=[],o={color:[],number:[],var:[]},l=[];let f=0;const h=a.replace(j2,m=>(ft.test(m)?(o.color.push(f),l.push(Pb),r.push(ft.parse(m))):m.startsWith(N2)?(o.var.push(f),l.push(D2),r.push(m)):(o.number.push(f),l.push(Yb),r.push(parseFloat(m))),++f,ov)).split(ov);return{values:r,split:h,indexes:o,types:l}}function Xb(e){return Lo(e).values}function Kb(e){const{split:a,types:r}=Lo(e),o=a.length;return l=>{let f="";for(let c=0;c<o;c++)if(f+=a[c],l[c]!==void 0){const h=r[c];h===Yb?f+=Oo(l[c]):h===Pb?f+=ft.transform(l[c]):f+=l[c]}return f}}const k2=e=>typeof e=="number"?0:ft.test(e)?ft.getAnimatableNone(e):e;function V2(e){const a=Xb(e);return Kb(e)(a.map(k2))}const Ha={test:M2,parse:Xb,createTransformer:Kb,getAnimatableNone:V2};function kf(e,a,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(a-e)*6*r:r<1/2?a:r<2/3?e+(a-e)*(2/3-r)*6:e}function U2({hue:e,saturation:a,lightness:r,alpha:o}){e/=360,a/=100,r/=100;let l=0,f=0,c=0;if(!a)l=f=c=r;else{const h=r<.5?r*(1+a):r+a-r*a,m=2*r-h;l=kf(m,h,e+1/3),f=kf(m,h,e),c=kf(m,h,e-1/3)}return{red:Math.round(l*255),green:Math.round(f*255),blue:Math.round(c*255),alpha:o}}function Nl(e,a){return r=>r>0?a:e}const Fe=(e,a,r)=>e+(a-e)*r,Vf=(e,a,r)=>{const o=e*e,l=r*(a*a-o)+o;return l<0?0:Math.sqrt(l)},L2=[cd,di,rr],B2=e=>L2.find(a=>a.test(e));function sv(e){const a=B2(e);if(!a)return!1;let r=a.parse(e);return a===rr&&(r=U2(r)),r}const lv=(e,a)=>{const r=sv(e),o=sv(a);if(!r||!o)return Nl(e,a);const l={...r};return f=>(l.red=Vf(r.red,o.red,f),l.green=Vf(r.green,o.green,f),l.blue=Vf(r.blue,o.blue,f),l.alpha=Fe(r.alpha,o.alpha,f),di.transform(l))},fd=new Set(["none","hidden"]);function Z2(e,a){return fd.has(e)?r=>r<=0?e:a:r=>r>=1?a:e}function H2(e,a){return r=>Fe(e,a,r)}function lh(e){return typeof e=="number"?H2:typeof e=="string"?rh(e)?Nl:ft.test(e)?lv:q2:Array.isArray(e)?Qb:typeof e=="object"?ft.test(e)?lv:$2:Nl}function Qb(e,a){const r=[...e],o=r.length,l=e.map((f,c)=>lh(f)(f,a[c]));return f=>{for(let c=0;c<o;c++)r[c]=l[c](f);return r}}function $2(e,a){const r={...e,...a},o={};for(const l in r)e[l]!==void 0&&a[l]!==void 0&&(o[l]=lh(e[l])(e[l],a[l]));return l=>{for(const f in o)r[f]=o[f](l);return r}}function G2(e,a){const r=[],o={color:0,var:0,number:0};for(let l=0;l<a.values.length;l++){const f=a.types[l],c=e.indexes[f][o[f]],h=e.values[c]??0;r[l]=h,o[f]++}return r}const q2=(e,a)=>{const r=Ha.createTransformer(a),o=Lo(e),l=Lo(a);return o.indexes.var.length===l.indexes.var.length&&o.indexes.color.length===l.indexes.color.length&&o.indexes.number.length>=l.indexes.number.length?fd.has(e)&&!l.values.length||fd.has(a)&&!o.values.length?Z2(e,a):Po(Qb(G2(o,l),l.values),r):Nl(e,a)};function Fb(e,a,r){return typeof e=="number"&&typeof a=="number"&&typeof r=="number"?Fe(e,a,r):lh(e)(e,a)}const Y2=e=>{const a=({timestamp:r})=>e(r);return{start:(r=!0)=>Ge.update(a,r),stop:()=>Za(a),now:()=>At.isProcessing?At.timestamp:jt.now()}},Jb=(e,a,r=10)=>{let o="";const l=Math.max(Math.round(a/r),2);for(let f=0;f<l;f++)o+=Math.round(e(f/(l-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},jl=2e4;function uh(e){let a=0;const r=50;let o=e.next(a);for(;!o.done&&a<jl;)a+=r,o=e.next(a);return a>=jl?1/0:a}function P2(e,a=100,r){const o=r({...e,keyframes:[0,a]}),l=Math.min(uh(o),jl);return{type:"keyframes",ease:f=>o.next(l*f).value/a,duration:hn(l)}}const X2=5;function Ib(e,a,r){const o=Math.max(a-X2,0);return Ob(r-e(o),a-o)}const et={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},Uf=.001;function K2({duration:e=et.duration,bounce:a=et.bounce,velocity:r=et.velocity,mass:o=et.mass}){let l,f,c=1-a;c=jn(et.minDamping,et.maxDamping,c),e=jn(et.minDuration,et.maxDuration,hn(e)),c<1?(l=p=>{const y=p*c,v=y*e,S=y-r,x=dd(p,c),R=Math.exp(-v);return Uf-S/x*R},f=p=>{const v=p*c*e,S=v*r+r,x=Math.pow(c,2)*Math.pow(p,2)*e,R=Math.exp(-v),E=dd(Math.pow(p,2),c);return(-l(p)+Uf>0?-1:1)*((S-x)*R)/E}):(l=p=>{const y=Math.exp(-p*e),v=(p-r)*e+1;return-Uf+y*v},f=p=>{const y=Math.exp(-p*e),v=(r-p)*(e*e);return y*v});const h=5/e,m=F2(l,f,h);if(e=ia(e),isNaN(m))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:c*2*Math.sqrt(o*p),duration:e}}}const Q2=12;function F2(e,a,r){let o=r;for(let l=1;l<Q2;l++)o=o-e(o)/a(o);return o}function dd(e,a){return e*Math.sqrt(1-a*a)}const J2=["duration","bounce"],I2=["stiffness","damping","mass"];function uv(e,a){return a.some(r=>e[r]!==void 0)}function W2(e){let a={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!uv(e,I2)&&uv(e,J2))if(e.visualDuration){const r=e.visualDuration,o=2*Math.PI/(r*1.2),l=o*o,f=2*jn(.05,1,1-(e.bounce||0))*Math.sqrt(l);a={...a,mass:et.mass,stiffness:l,damping:f}}else{const r=K2(e);a={...a,...r,mass:et.mass},a.isResolvedFromDuration=!0}return a}function kl(e=et.visualDuration,a=et.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e;let{restSpeed:o,restDelta:l}=r;const f=r.keyframes[0],c=r.keyframes[r.keyframes.length-1],h={done:!1,value:f},{stiffness:m,damping:p,mass:y,duration:v,velocity:S,isResolvedFromDuration:x}=W2({...r,velocity:-hn(r.velocity||0)}),R=S||0,E=p/(2*Math.sqrt(m*y)),O=c-f,V=hn(Math.sqrt(m/y)),C=Math.abs(O)<5;o||(o=C?et.restSpeed.granular:et.restSpeed.default),l||(l=C?et.restDelta.granular:et.restDelta.default);let j;if(E<1){const q=dd(V,E);j=I=>{const F=Math.exp(-E*V*I);return c-F*((R+E*V*O)/q*Math.sin(q*I)+O*Math.cos(q*I))}}else if(E===1)j=q=>c-Math.exp(-V*q)*(O+(R+V*O)*q);else{const q=V*Math.sqrt(E*E-1);j=I=>{const F=Math.exp(-E*V*I),P=Math.min(q*I,300);return c-F*((R+E*V*O)*Math.sinh(P)+q*O*Math.cosh(P))/q}}const Q={calculatedDuration:x&&v||null,next:q=>{const I=j(q);if(x)h.done=q>=v;else{let F=q===0?R:0;E<1&&(F=q===0?ia(R):Ib(j,q,I));const P=Math.abs(F)<=o,W=Math.abs(c-I)<=l;h.done=P&&W}return h.value=h.done?c:I,h},toString:()=>{const q=Math.min(uh(Q),jl),I=Jb(F=>Q.next(q*F).value,q,30);return q+"ms "+I},toTransition:()=>{}};return Q}kl.applyToOptions=e=>{const a=P2(e,100,kl);return e.ease=a.ease,e.duration=ia(a.duration),e.type="keyframes",e};function hd({keyframes:e,velocity:a=0,power:r=.8,timeConstant:o=325,bounceDamping:l=10,bounceStiffness:f=500,modifyTarget:c,min:h,max:m,restDelta:p=.5,restSpeed:y}){const v=e[0],S={done:!1,value:v},x=P=>h!==void 0&&P<h||m!==void 0&&P>m,R=P=>h===void 0?m:m===void 0||Math.abs(h-P)<Math.abs(m-P)?h:m;let E=r*a;const O=v+E,V=c===void 0?O:c(O);V!==O&&(E=V-v);const C=P=>-E*Math.exp(-P/o),j=P=>V+C(P),Q=P=>{const W=C(P),xe=j(P);S.done=Math.abs(W)<=p,S.value=S.done?V:xe};let q,I;const F=P=>{x(S.value)&&(q=P,I=kl({keyframes:[S.value,R(S.value)],velocity:Ib(j,P,S.value),damping:l,stiffness:f,restDelta:p,restSpeed:y}))};return F(0),{calculatedDuration:null,next:P=>{let W=!1;return!I&&q===void 0&&(W=!0,Q(P),F(P)),q!==void 0&&P>=q?I.next(P-q):(!W&&Q(P),S)}}}function eA(e,a,r){const o=[],l=r||oa.mix||Fb,f=e.length-1;for(let c=0;c<f;c++){let h=l(e[c],e[c+1]);if(a){const m=Array.isArray(a)?a[c]||mn:a;h=Po(m,h)}o.push(h)}return o}function tA(e,a,{clamp:r=!0,ease:o,mixer:l}={}){const f=e.length;if(eh(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const c=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),a=[...a].reverse());const h=eA(a,o,l),m=h.length,p=y=>{if(c&&y<e[0])return a[0];let v=0;if(m>1)for(;v<e.length-2&&!(y<e[v+1]);v++);const S=Vo(e[v],e[v+1],y);return h[v](S)};return r?y=>p(jn(e[0],e[f-1],y)):p}function nA(e,a){const r=e[e.length-1];for(let o=1;o<=a;o++){const l=Vo(0,a,o);e.push(Fe(r,1,l))}}function aA(e){const a=[0];return nA(a,e.length-1),a}function iA(e,a){return e.map(r=>r*a)}function rA(e,a){return e.map(()=>a||Bb).splice(0,e.length-1)}function Mo({duration:e=300,keyframes:a,times:r,ease:o="easeInOut"}){const l=g2(o)?o.map(av):av(o),f={done:!1,value:a[0]},c=iA(r&&r.length===a.length?r:aA(a),e),h=tA(c,a,{ease:Array.isArray(l)?l:rA(a,l)});return{calculatedDuration:e,next:m=>(f.value=h(m),f.done=m>=e,f)}}const oA=e=>e!==null;function ch(e,{repeat:a,repeatType:r="loop"},o,l=1){const f=e.filter(oA),h=l<0||a&&r!=="loop"&&a%2===1?0:f.length-1;return!h||o===void 0?f[h]:o}const sA={decay:hd,inertia:hd,tween:Mo,keyframes:Mo,spring:kl};function Wb(e){typeof e.type=="string"&&(e.type=sA[e.type])}class fh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,r){return this.finished.then(a,r)}}const lA=e=>e/100;class dh extends fh{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==jt.now()&&this.tick(jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Wb(a);const{type:r=Mo,repeat:o=0,repeatDelay:l=0,repeatType:f,velocity:c=0}=a;let{keyframes:h}=a;const m=r||Mo;m!==Mo&&typeof h[0]!="number"&&(this.mixKeyframes=Po(lA,Fb(h[0],h[1])),h=[0,100]);const p=m({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=uh(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(o+1)-l,this.generator=p}updateTime(a){const r=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(a,r=!1){const{generator:o,totalDuration:l,mixKeyframes:f,mirroredGenerator:c,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:v,repeatType:S,repeatDelay:x,type:R,onUpdate:E,finalKeyframe:O}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-l/this.speed,this.startTime)),r?this.currentTime=a:this.updateTime(a);const V=this.currentTime-p*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?V<0:V>l;this.currentTime=Math.max(V,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let j=this.currentTime,Q=o;if(v){const P=Math.min(this.currentTime,l)/h;let W=Math.floor(P),xe=P%1;!xe&&P>=1&&(xe=1),xe===1&&W--,W=Math.min(W,v+1),W%2&&(S==="reverse"?(xe=1-xe,x&&(xe-=x/h)):S==="mirror"&&(Q=c)),j=jn(0,1,xe)*h}const q=C?{done:!1,value:y[0]}:Q.next(j);f&&(q.value=f(q.value));let{done:I}=q;!C&&m!==null&&(I=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return F&&R!==hd&&(q.value=ch(y,this.options,O,this.speed)),E&&E(q.value),F&&this.finish(),q}then(a,r){return this.finished.then(a,r)}get duration(){return hn(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+hn(a)}get time(){return hn(this.currentTime)}set time(a){a=ia(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(jt.now());const r=this.playbackSpeed!==a;this.playbackSpeed=a,r&&(this.time=hn(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=Y2,startTime:r}=this.options;this.driver||(this.driver=a(l=>this.tick(l))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),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(jt.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(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function uA(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}const hi=e=>e*180/Math.PI,md=e=>{const a=hi(Math.atan2(e[1],e[0]));return pd(a)},cA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:md,rotateZ:md,skewX:e=>hi(Math.atan(e[1])),skewY:e=>hi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},pd=e=>(e=e%360,e<0&&(e+=360),e),cv=md,fv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fv,scaleY:dv,scale:e=>(fv(e)+dv(e))/2,rotateX:e=>pd(hi(Math.atan2(e[6],e[5]))),rotateY:e=>pd(hi(Math.atan2(-e[2],e[0]))),rotateZ:cv,rotate:cv,skewX:e=>hi(Math.atan(e[4])),skewY:e=>hi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gd(e){return e.includes("scale")?1:0}function yd(e,a){if(!e||e==="none")return gd(a);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,l;if(r)o=fA,l=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=cA,l=h}if(!l)return gd(a);const f=o[a],c=l[1].split(",").map(hA);return typeof f=="function"?f(c):c[f]}const dA=(e,a)=>{const{transform:r="none"}=getComputedStyle(e);return yd(r,a)};function hA(e){return parseFloat(e.trim())}const br=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sr=new Set(br),hv=e=>e===vr||e===ae,mA=new Set(["x","y","z"]),pA=br.filter(e=>!mA.has(e));function gA(e){const a=[];return pA.forEach(r=>{const o=e.getValue(r);o!==void 0&&(a.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),a}const La={width:({x:e},{paddingLeft:a="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(a)-parseFloat(r),height:({y:e},{paddingTop:a="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(a)-parseFloat(r),top:(e,{top:a})=>parseFloat(a),left:(e,{left:a})=>parseFloat(a),bottom:({y:e},{top:a})=>parseFloat(a)+(e.max-e.min),right:({x:e},{left:a})=>parseFloat(a)+(e.max-e.min),x:(e,{transform:a})=>yd(a,"x"),y:(e,{transform:a})=>yd(a,"y")};La.translateX=La.x;La.translateY=La.y;const mi=new Set;let vd=!1,bd=!1,Sd=!1;function e1(){if(bd){const e=Array.from(mi).filter(o=>o.needsMeasurement),a=new Set(e.map(o=>o.element)),r=new Map;a.forEach(o=>{const l=gA(o);l.length&&(r.set(o,l),o.render())}),e.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const l=r.get(o);l&&l.forEach(([f,c])=>{o.getValue(f)?.set(c)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}bd=!1,vd=!1,mi.forEach(e=>e.complete(Sd)),mi.clear()}function t1(){mi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bd=!0)})}function yA(){Sd=!0,t1(),e1(),Sd=!1}class hh{constructor(a,r,o,l,f,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=r,this.name=o,this.motionValue=l,this.element=f,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(mi.add(this),vd||(vd=!0,Ge.read(t1),Ge.resolveKeyframes(e1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:r,element:o,motionValue:l}=this;if(a[0]===null){const f=l?.get(),c=a[a.length-1];if(f!==void 0)a[0]=f;else if(o&&r){const h=o.readValue(r,c);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=c),l&&f===void 0&&l.set(a[0])}uA(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),mi.delete(this)}cancel(){this.state==="scheduled"&&(mi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vA=e=>e.startsWith("--");function bA(e,a,r){vA(a)?e.style.setProperty(a,r):e.style[a]=r}const SA=th(()=>window.ScrollTimeline!==void 0),xA={};function TA(e,a){const r=th(e);return()=>xA[a]??r()}const n1=TA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zo=([e,a,r,o])=>`cubic-bezier(${e}, ${a}, ${r}, ${o})`,mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zo([0,.65,.55,1]),circOut:zo([.55,0,1,.45]),backIn:zo([.31,.01,.66,-.59]),backOut:zo([.33,1.53,.69,.99])};function a1(e,a){if(e)return typeof e=="function"?n1()?Jb(e,a):"ease-out":Zb(e)?zo(e):Array.isArray(e)?e.map(r=>a1(r,a)||mv.easeOut):mv[e]}function EA(e,a,r,{delay:o=0,duration:l=300,repeat:f=0,repeatType:c="loop",ease:h="easeOut",times:m}={},p=void 0){const y={[a]:r};m&&(y.offset=m);const v=a1(h,l);Array.isArray(v)&&(y.easing=v);const S={delay:o,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:c==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),e.animate(y,S)}function i1(e){return typeof e=="function"&&"applyToOptions"in e}function _A({type:e,...a}){return i1(e)&&n1()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class wA extends fh{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:r,name:o,keyframes:l,pseudoElement:f,allowFlatten:c=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!f,this.allowFlatten=c,this.options=a,eh(typeof a.type!="string");const p=_A(a);this.animation=EA(r,o,l,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=ch(l,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(y):bA(r,o,y),this.animation.cancel()}m?.(),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:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const a=this.animation.effect?.getComputedTiming?.().duration||0;return hn(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+hn(a)}get time(){return hn(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ia(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&SA()?(this.animation.timeline=a,mn):r(this)}}const r1={anticipate:Vb,backInOut:kb,circInOut:Lb};function AA(e){return e in r1}function zA(e){typeof e.ease=="string"&&AA(e.ease)&&(e.ease=r1[e.ease])}const Lf=10;class CA extends wA{constructor(a){zA(a),Wb(a),super(a),a.startTime!==void 0&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:r,onUpdate:o,onComplete:l,element:f,...c}=this.options;if(!r)return;if(a!==void 0){r.set(a);return}const h=new dh({...c,autoplay:!1}),m=Math.max(Lf,jt.now()-this.startTime),p=jn(0,Lf,m-Lf);r.setWithVelocity(h.sample(Math.max(0,m-p)).value,h.sample(m).value,p),h.stop()}}const pv=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ha.test(e)||e==="0")&&!e.startsWith("url("));function RA(e){const a=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==a)return!0}function OA(e,a,r,o){const l=e[0];if(l===null)return!1;if(a==="display"||a==="visibility")return!0;const f=e[e.length-1],c=pv(l,a),h=pv(f,a);return!c||!h?!1:RA(e)||(r==="spring"||i1(r))&&o}function xd(e){e.duration=0,e.type="keyframes"}const MA=new Set(["opacity","clipPath","filter","transform"]),DA=th(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function NA(e){const{motionValue:a,name:r,repeatDelay:o,repeatType:l,damping:f,type:c}=e;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=a.owner.getProps();return DA()&&r&&MA.has(r)&&(r!=="transform"||!p)&&!m&&!o&&l!=="mirror"&&f!==0&&c!=="inertia"}const jA=40;class kA extends fh{constructor({autoplay:a=!0,delay:r=0,type:o="keyframes",repeat:l=0,repeatDelay:f=0,repeatType:c="loop",keyframes:h,name:m,motionValue:p,element:y,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=jt.now();const S={autoplay:a,delay:r,type:o,repeat:l,repeatDelay:f,repeatType:c,name:m,motionValue:p,element:y,...v},x=y?.KeyframeResolver||hh;this.keyframeResolver=new x(h,(R,E,O)=>this.onKeyframesResolved(R,E,S,!O),m,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,r,o,l){this.keyframeResolver=void 0;const{name:f,type:c,velocity:h,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=jt.now(),OA(a,f,c,h)||((oa.instantAnimations||!m)&&y?.(ch(a,o,r)),a[0]=a[a.length-1],xd(o),o.repeat=0);const S={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>jA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:a},x=!p&&NA(S),R=S.motionValue?.owner?.current,E=x?new CA({...S,element:R}):new dh(S);E.finished.then(()=>{this.notifyFinished()}).catch(mn),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(a,r){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function o1(e,a,r,o=0,l=1){const f=Array.from(e).sort((p,y)=>p.sortNodePosition(y)).indexOf(a),c=e.size,h=(c-1)*o;return typeof r=="function"?r(f,c):l===1?f*o:h-f*o}const VA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UA(e){const a=VA.exec(e);if(!a)return[,];const[,r,o,l]=a;return[`--${r??o}`,l]}function s1(e,a,r=1){const[o,l]=UA(e);if(!o)return;const f=window.getComputedStyle(a).getPropertyValue(o);if(f){const c=f.trim();return zb(c)?parseFloat(c):c}return rh(l)?s1(l,a,r+1):l}const LA={type:"spring",stiffness:500,damping:25,restSpeed:10},BA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZA={type:"keyframes",duration:.8},HA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$A=(e,{keyframes:a})=>a.length>2?ZA:Sr.has(e)?e.startsWith("scale")?BA(a[1]):LA:HA,GA=e=>e!==null;function qA(e,{repeat:a,repeatType:r="loop"},o){const l=e.filter(GA),f=a&&r!=="loop"&&a%2===1?0:l.length-1;return l[f]}function mh(e,a){return e?.[a]??e?.default??e}function YA({when:e,delay:a,delayChildren:r,staggerChildren:o,staggerDirection:l,repeat:f,repeatType:c,repeatDelay:h,from:m,elapsed:p,...y}){return!!Object.keys(y).length}const ph=(e,a,r,o={},l,f)=>c=>{const h=mh(o,e)||{},m=h.delay||o.delay||0;let{elapsed:p=0}=o;p=p-ia(m);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:S=>{a.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{c(),h.onComplete&&h.onComplete()},name:e,motionValue:a,element:f?void 0:l};YA(h)||Object.assign(y,$A(e,y)),y.duration&&(y.duration=ia(y.duration)),y.repeatDelay&&(y.repeatDelay=ia(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(xd(y),y.delay===0&&(v=!0)),(oa.instantAnimations||oa.skipAnimations)&&(v=!0,xd(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,v&&!f&&a.get()!==void 0){const S=qA(y.keyframes,h);if(S!==void 0){Ge.update(()=>{y.onUpdate(S),y.onComplete()});return}}return h.isSync?new dh(y):new kA(y)};function gv(e){const a=[{},{}];return e?.values.forEach((r,o)=>{a[0][o]=r.get(),a[1][o]=r.getVelocity()}),a}function gh(e,a,r,o){if(typeof a=="function"){const[l,f]=gv(o);a=a(r!==void 0?r:e.custom,l,f)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){const[l,f]=gv(o);a=a(r!==void 0?r:e.custom,l,f)}return a}function fr(e,a,r){const o=e.getProps();return gh(o,a,r!==void 0?r:o.custom,e)}const l1=new Set(["width","height","top","left","right","bottom",...br]),yv=30,PA=e=>!isNaN(parseFloat(e));class XA{constructor(a,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const l=jt.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),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(a),this.owner=r.owner}setCurrent(a){this.current=a,this.updatedAt=jt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=PA(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,r){this.events[a]||(this.events[a]=new nh);const o=this.events[a].add(r);return a==="change"?()=>{o(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,r){this.passiveEffect=a,this.stopPassiveEffect=r}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,r=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>yv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,yv);return Ob(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(a){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=a(r),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 mr(e,a){return new XA(e,a)}const Td=e=>Array.isArray(e);function KA(e,a,r){e.hasValue(a)?e.getValue(a).set(r):e.addValue(a,mr(r))}function QA(e){return Td(e)?e[e.length-1]||0:e}function FA(e,a){const r=fr(e,a);let{transitionEnd:o={},transition:l={},...f}=r||{};f={...f,...o};for(const c in f){const h=QA(f[c]);KA(e,c,h)}}const Ot=e=>!!(e&&e.getVelocity);function JA(e){return!!(Ot(e)&&e.add)}function Ed(e,a){const r=e.getValue("willChange");if(JA(r))return r.add(a);if(!r&&oa.WillChange){const o=new oa.WillChange("auto");e.addValue("willChange",o),o.add(a)}}function yh(e){return e.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const IA="framerAppearId",u1="data-"+yh(IA);function c1(e){return e.props[u1]}function WA({protectedKeys:e,needsAnimating:a},r){const o=e.hasOwnProperty(r)&&a[r]!==!0;return a[r]=!1,o}function f1(e,a,{delay:r=0,transitionOverride:o,type:l}={}){let{transition:f=e.getDefaultTransition(),transitionEnd:c,...h}=a;const m=f?.reduceMotion;o&&(f=o);const p=[],y=l&&e.animationState&&e.animationState.getState()[l];for(const v in h){const S=e.getValue(v,e.latestValues[v]??null),x=h[v];if(x===void 0||y&&WA(y,v))continue;const R={delay:r,...mh(f||{},v)},E=S.get();if(E!==void 0&&!S.isAnimating&&!Array.isArray(x)&&x===E&&!R.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const j=c1(e);if(j){const Q=window.MotionHandoffAnimation(j,v,Ge);Q!==null&&(R.startTime=Q,O=!0)}}Ed(e,v);const V=m??e.shouldReduceMotion;S.start(ph(v,S,x,V&&l1.has(v)?{type:!1}:R,e,O));const C=S.animation;C&&p.push(C)}return c&&Promise.all(p).then(()=>{Ge.update(()=>{c&&FA(e,c)})}),p}function _d(e,a,r={}){const o=fr(e,a,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(l=r.transitionOverride);const f=o?()=>Promise.all(f1(e,o,r)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:v}=l;return ez(e,a,m,p,y,v,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,p]=h==="beforeChildren"?[f,c]:[c,f];return m().then(()=>p())}else return Promise.all([f(),c(r.delay)])}function ez(e,a,r=0,o=0,l=0,f=1,c){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",a),h.push(_d(m,a,{...c,delay:r+(typeof o=="function"?0:o)+o1(e.variantChildren,m,o,l,f)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function tz(e,a,r={}){e.notify("AnimationStart",a);let o;if(Array.isArray(a)){const l=a.map(f=>_d(e,f,r));o=Promise.all(l)}else if(typeof a=="string")o=_d(e,a,r);else{const l=typeof a=="function"?fr(e,a,r.custom):a;o=Promise.all(f1(e,l,r))}return o.then(()=>{e.notify("AnimationComplete",a)})}const nz={test:e=>e==="auto",parse:e=>e},d1=e=>a=>a.test(e),h1=[vr,ae,Nn,Ua,R2,C2,nz],vv=e=>h1.find(d1(e));function az(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rb(e):!0}const iz=new Set(["brightness","contrast","saturate","opacity"]);function rz(e){const[a,r]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;const[o]=r.match(oh)||[];if(!o)return e;const l=r.replace(o,"");let f=iz.has(a)?1:0;return o!==r&&(f*=100),a+"("+f+l+")"}const oz=/\b([a-z-]*)\(.*?\)/gu,wd={...Ha,getAnimatableNone:e=>{const a=e.match(oz);return a?a.map(rz).join(" "):e}},bv={...vr,transform:Math.round},sz={rotate:Ua,rotateX:Ua,rotateY:Ua,rotateZ:Ua,scale:vl,scaleX:vl,scaleY:vl,scaleZ:vl,skew:Ua,skewX:Ua,skewY:Ua,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Uo,originX:rv,originY:rv,originZ:ae},vh={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,inset:ae,insetBlock:ae,insetBlockStart:ae,insetBlockEnd:ae,insetInline:ae,insetInlineStart:ae,insetInlineEnd:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,paddingBlock:ae,paddingBlockStart:ae,paddingBlockEnd:ae,paddingInline:ae,paddingInlineStart:ae,paddingInlineEnd:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,marginBlock:ae,marginBlockStart:ae,marginBlockEnd:ae,marginInline:ae,marginInlineStart:ae,marginInlineEnd:ae,fontSize:ae,backgroundPositionX:ae,backgroundPositionY:ae,...sz,zIndex:bv,fillOpacity:Uo,strokeOpacity:Uo,numOctaves:bv},lz={...vh,color:ft,backgroundColor:ft,outlineColor:ft,fill:ft,stroke:ft,borderColor:ft,borderTopColor:ft,borderRightColor:ft,borderBottomColor:ft,borderLeftColor:ft,filter:wd,WebkitFilter:wd},m1=e=>lz[e];function p1(e,a){let r=m1(e);return r!==wd&&(r=Ha),r.getAnimatableNone?r.getAnimatableNone(a):void 0}const uz=new Set(["auto","none","0"]);function cz(e,a,r){let o=0,l;for(;o<e.length&&!l;){const f=e[o];typeof f=="string"&&!uz.has(f)&&Lo(f).values.length&&(l=e[o]),o++}if(l&&r)for(const f of a)e[f]=p1(r,l)}class fz extends hh{constructor(a,r,o,l,f){super(a,r,o,l,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let v=a[y];if(typeof v=="string"&&(v=v.trim(),rh(v))){const S=s1(v,r.current);S!==void 0&&(a[y]=S),y===a.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!l1.has(o)||a.length!==2)return;const[l,f]=a,c=vv(l),h=vv(f),m=iv(l),p=iv(f);if(m!==p&&La[o]){this.needsMeasurement=!0;return}if(c!==h)if(hv(c)&&hv(h))for(let y=0;y<a.length;y++){const v=a[y];typeof v=="string"&&(a[y]=parseFloat(v))}else La[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:r}=this,o=[];for(let l=0;l<a.length;l++)(a[l]===null||az(a[l]))&&o.push(l);o.length&&cz(a,o,r)}measureInitialState(){const{element:a,unresolvedKeyframes:r,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=La[o](a.measureViewportBox(),window.getComputedStyle(a.current)),r[0]=this.measuredOrigin;const l=r[r.length-1];l!==void 0&&a.getValue(o,l).jump(l,!1)}measureEndState(){const{element:a,name:r,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const l=a.getValue(r);l&&l.jump(this.measuredOrigin,!1);const f=o.length-1,c=o[f];o[f]=La[r](a.measureViewportBox(),window.getComputedStyle(a.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,m])=>{a.getValue(h).set(m)}),this.resolveNoneKeyframes()}}function dz(e,a,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const l=r?.[e]??o.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e).filter(o=>o!=null)}const g1=(e,a)=>a&&typeof e=="number"?a.transform(e):e;function hz(e){return Cb(e)&&"offsetHeight"in e}const{schedule:bh}=Hb(queueMicrotask,!1),Tn={x:!1,y:!1};function y1(){return Tn.x||Tn.y}function mz(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function v1(e,a){const r=dz(e),o=new AbortController,l={passive:!0,...a,signal:o.signal};return[r,l,()=>o.abort()]}function Sv(e){return!(e.pointerType==="touch"||y1())}function pz(e,a,r={}){const[o,l,f]=v1(e,r),c=h=>{if(!Sv(h))return;const{target:m}=h,p=a(m,h);if(typeof p!="function"||!m)return;const y=v=>{Sv(v)&&(p(v),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,l)};return o.forEach(h=>{h.addEventListener("pointerenter",c,l)}),f}const b1=(e,a)=>a?e===a?!0:b1(e,a.parentElement):!1,Sh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,gz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function S1(e){return gz.has(e.tagName)||e.isContentEditable===!0}const Rl=new WeakSet;function xv(e){return a=>{a.key==="Enter"&&e(a)}}function Bf(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const yz=(e,a)=>{const r=e.currentTarget;if(!r)return;const o=xv(()=>{if(Rl.has(r))return;Bf(r,"down");const l=xv(()=>{Bf(r,"up")}),f=()=>Bf(r,"cancel");r.addEventListener("keyup",l,a),r.addEventListener("blur",f,a)});r.addEventListener("keydown",o,a),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),a)};function Tv(e){return Sh(e)&&!y1()}function vz(e,a,r={}){const[o,l,f]=v1(e,r),c=h=>{const m=h.currentTarget;if(!Tv(h))return;Rl.add(m);const p=a(m,h),y=(x,R)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",S),Rl.has(m)&&Rl.delete(m),Tv(x)&&typeof p=="function"&&p(x,{success:R})},v=x=>{y(x,m===window||m===document||r.useGlobalTarget||b1(m,x.target))},S=x=>{y(x,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",S,l)};return o.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",c,l),hz(h)&&(h.addEventListener("focus",p=>yz(p,l)),!S1(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function x1(e){return Cb(e)&&"ownerSVGElement"in e}function bz(e){return x1(e)&&e.tagName==="svg"}const Sz=[...h1,ft,Ha],xz=e=>Sz.find(d1(e)),Ev=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:Ev(),y:Ev()}),_v=()=>({min:0,max:0}),pt=()=>({x:_v(),y:_v()}),Ad={current:null},T1={current:!1},Tz=typeof window<"u";function Ez(){if(T1.current=!0,!!Tz)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),a=()=>Ad.current=e.matches;e.addEventListener("change",a),a()}else Ad.current=!1}const _z=new WeakMap;function Ql(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Bo(e){return typeof e=="string"||Array.isArray(e)}const xh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Th=["initial",...xh];function Fl(e){return Ql(e.animate)||Th.some(a=>Bo(e[a]))}function E1(e){return!!(Fl(e)||e.variants)}function wz(e,a,r){for(const o in a){const l=a[o],f=r[o];if(Ot(l))e.addValue(o,l);else if(Ot(f))e.addValue(o,mr(l,{owner:e}));else if(f!==l)if(e.hasValue(o)){const c=e.getValue(o);c.liveStyle===!0?c.jump(l):c.hasAnimated||c.set(l)}else{const c=e.getStaticValue(o);e.addValue(o,mr(c!==void 0?c:l,{owner:e}))}}for(const o in r)a[o]===void 0&&e.removeValue(o);return a}const wv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vl={};function _1(e){Vl=e}function Az(){return Vl}class zz{scrapeMotionValuesFromProps(a,r,o){return{}}constructor({parent:a,props:r,presenceContext:o,reducedMotionConfig:l,blockInitialAnimation:f,visualState:c},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=hh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=jt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Ge.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=c;this.latestValues=m,this.baseTarget={...m},this.initialValues=r.initial?{...m}:{},this.renderState=p,this.parent=a,this.props=r,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=l,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=Fl(r),this.isVariantNode=E1(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(r,{},this);for(const S in v){const x=v[S];m[S]!==void 0&&Ot(x)&&x.set(m[S])}}mount(a){this.current=a,_z.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(T1.current||Ez(),this.shouldReduceMotion=Ad.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Za(this.notifyUpdate),Za(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const r=this.features[a];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,r){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const o=Sr.has(a);o&&this.onBindTransform&&this.onBindTransform();const l=r.on("change",c=>{this.latestValues[a]=c,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,r)),this.valueSubscriptions.set(a,()=>{l(),f&&f(),r.owner&&r.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Vl){const r=Vl[a];if(!r)continue;const{isEnabled:o,Feature:l}=r;if(!this.features[a]&&l&&o(this.props)&&(this.features[a]=new l(this)),this.features[a]){const f=this.features[a];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):pt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,r){this.latestValues[a]=r}update(a,r){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<wv.length;o++){const l=wv[o];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const f="on"+l,c=a[f];c&&(this.propEventSubscriptions[l]=this.on(l,c))}this.prevMotionValues=wz(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(a),()=>r.variantChildren.delete(a)}addValue(a,r){const o=this.values.get(a);r!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,r),this.values.set(a,r),this.latestValues[a]=r.get())}removeValue(a){this.values.delete(a);const r=this.valueSubscriptions.get(a);r&&(r(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,r){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&r!==void 0&&(o=mr(r===null?void 0:r,{owner:this}),this.addValue(a,o)),o}readValue(a,r){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(zb(o)||Rb(o))?o=parseFloat(o):!xz(o)&&Ha.test(r)&&(o=p1(a,r)),this.setBaseTarget(a,Ot(o)?o.get():o)),Ot(o)?o.get():o}setBaseTarget(a,r){this.baseTarget[a]=r}getBaseTarget(a){const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const f=gh(this.props,r,this.presenceContext?.custom);f&&(o=f[a])}if(r&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,a);return l!==void 0&&!Ot(l)?l:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,r){return this.events[a]||(this.events[a]=new nh),this.events[a].add(r)}notify(a,...r){this.events[a]&&this.events[a].notify(...r)}scheduleRenderMicrotask(){bh.render(this.render)}}class w1 extends zz{constructor(){super(...arguments),this.KeyframeResolver=fz}sortInstanceNodePosition(a,r){return a.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(a,r){const o=a.style;return o?o[r]:void 0}removeValueFromRenderState(a,{vars:r,style:o}){delete r[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;Ot(a)&&(this.childSubscription=a.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class $a{constructor(a){this.isMounted=!1,this.node=a}update(){}}function A1({top:e,left:a,right:r,bottom:o}){return{x:{min:a,max:r},y:{min:e,max:o}}}function Cz({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function Rz(e,a){if(!a)return e;const r=a({x:e.left,y:e.top}),o=a({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function Zf(e){return e===void 0||e===1}function zd({scale:e,scaleX:a,scaleY:r}){return!Zf(e)||!Zf(a)||!Zf(r)}function fi(e){return zd(e)||z1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function z1(e){return Av(e.x)||Av(e.y)}function Av(e){return e&&e!=="0%"}function Ul(e,a,r){const o=e-r,l=a*o;return r+l}function zv(e,a,r,o,l){return l!==void 0&&(e=Ul(e,l,o)),Ul(e,r,o)+a}function Cd(e,a=0,r=1,o,l){e.min=zv(e.min,a,r,o,l),e.max=zv(e.max,a,r,o,l)}function C1(e,{x:a,y:r}){Cd(e.x,a.translate,a.scale,a.originPoint),Cd(e.y,r.translate,r.scale,r.originPoint)}const Cv=.999999999999,Rv=1.0000000000001;function Oz(e,a,r,o=!1){const l=r.length;if(!l)return;a.x=a.y=1;let f,c;for(let h=0;h<l;h++){f=r[h],c=f.projectionDelta;const{visualElement:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&lr(e,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),c&&(a.x*=c.x.scale,a.y*=c.y.scale,C1(e,c)),o&&fi(f.latestValues)&&lr(e,f.latestValues))}a.x<Rv&&a.x>Cv&&(a.x=1),a.y<Rv&&a.y>Cv&&(a.y=1)}function sr(e,a){e.min=e.min+a,e.max=e.max+a}function Ov(e,a,r,o,l=.5){const f=Fe(e.min,e.max,l);Cd(e,a,r,f,o)}function lr(e,a){Ov(e.x,a.x,a.scaleX,a.scale,a.originX),Ov(e.y,a.y,a.scaleY,a.scale,a.originY)}function R1(e,a){return A1(Rz(e.getBoundingClientRect(),a))}function Mz(e,a,r){const o=R1(e,r),{scroll:l}=a;return l&&(sr(o.x,l.offset.x),sr(o.y,l.offset.y)),o}const Dz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nz=br.length;function jz(e,a,r){let o="",l=!0;for(let f=0;f<Nz;f++){const c=br[f],h=e[c];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(c.startsWith("scale")?1:0);else{const p=parseFloat(h);m=c.startsWith("scale")?p===1:p===0}if(!m||r){const p=g1(h,vh[c]);if(!m){l=!1;const y=Dz[c]||c;o+=`${y}(${p}) `}r&&(a[c]=p)}}return o=o.trim(),r?o=r(a,l?"":o):l&&(o="none"),o}function Eh(e,a,r){const{style:o,vars:l,transformOrigin:f}=e;let c=!1,h=!1;for(const m in a){const p=a[m];if(Sr.has(m)){c=!0;continue}else if(Gb(m)){l[m]=p;continue}else{const y=g1(p,vh[m]);m.startsWith("origin")?(h=!0,f[m]=y):o[m]=y}}if(a.transform||(c||r?o.transform=jz(a,e.transform,r):o.transform&&(o.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:y=0}=f;o.transformOrigin=`${m} ${p} ${y}`}}function O1(e,{style:a,vars:r},o,l){const f=e.style;let c;for(c in a)f[c]=a[c];l?.applyProjectionStyles(f,o);for(c in r)f.setProperty(c,r[c])}function Mv(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}const Eo={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const r=Mv(e,a.target.x),o=Mv(e,a.target.y);return`${r}% ${o}%`}},kz={correct:(e,{treeScale:a,projectionDelta:r})=>{const o=e,l=Ha.parse(e);if(l.length>5)return o;const f=Ha.createTransformer(e),c=typeof l[0]!="number"?1:0,h=r.x.scale*a.x,m=r.y.scale*a.y;l[0+c]/=h,l[1+c]/=m;const p=Fe(h,m,.5);return typeof l[2+c]=="number"&&(l[2+c]/=p),typeof l[3+c]=="number"&&(l[3+c]/=p),f(l)}},Rd={borderRadius:{...Eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Eo,borderTopRightRadius:Eo,borderBottomLeftRadius:Eo,borderBottomRightRadius:Eo,boxShadow:kz};function M1(e,{layout:a,layoutId:r}){return Sr.has(e)||e.startsWith("origin")||(a||r!==void 0)&&(!!Rd[e]||e==="opacity")}function _h(e,a,r){const o=e.style,l=a?.style,f={};if(!o)return f;for(const c in o)(Ot(o[c])||l&&Ot(l[c])||M1(c,e)||r?.getValue(c)?.liveStyle!==void 0)&&(f[c]=o[c]);return f}function Vz(e){return window.getComputedStyle(e)}class Uz extends w1{constructor(){super(...arguments),this.type="html",this.renderInstance=O1}readValueFromInstance(a,r){if(Sr.has(r))return this.projection?.isProjecting?gd(r):dA(a,r);{const o=Vz(a),l=(Gb(r)?o.getPropertyValue(r):o[r])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(a,{transformPagePoint:r}){return R1(a,r)}build(a,r,o){Eh(a,r,o.transformTemplate)}scrapeMotionValuesFromProps(a,r,o){return _h(a,r,o)}}const Lz={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bz={offset:"strokeDashoffset",array:"strokeDasharray"};function Zz(e,a,r=1,o=0,l=!0){e.pathLength=1;const f=l?Lz:Bz;e[f.offset]=`${-o}`,e[f.array]=`${a} ${r}`}const Hz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function D1(e,{attrX:a,attrY:r,attrScale:o,pathLength:l,pathSpacing:f=1,pathOffset:c=0,...h},m,p,y){if(Eh(e,h,p),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:S}=e;v.transform&&(S.transform=v.transform,delete v.transform),(S.transform||v.transformOrigin)&&(S.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),S.transform&&(S.transformBox=y?.transformBox??"fill-box",delete v.transformBox);for(const x of Hz)v[x]!==void 0&&(S[x]=v[x],delete v[x]);a!==void 0&&(v.x=a),r!==void 0&&(v.y=r),o!==void 0&&(v.scale=o),l!==void 0&&Zz(v,l,f,c,!1)}const N1=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"]),j1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $z(e,a,r,o){O1(e,a,void 0,o);for(const l in a.attrs)e.setAttribute(N1.has(l)?l:yh(l),a.attrs[l])}function k1(e,a,r){const o=_h(e,a,r);for(const l in e)if(Ot(e[l])||Ot(a[l])){const f=br.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;o[f]=e[l]}return o}class Gz extends w1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pt}getBaseTargetFromProps(a,r){return a[r]}readValueFromInstance(a,r){if(Sr.has(r)){const o=m1(r);return o&&o.default||0}return r=N1.has(r)?r:yh(r),a.getAttribute(r)}scrapeMotionValuesFromProps(a,r,o){return k1(a,r,o)}build(a,r,o){D1(a,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,r,o,l){$z(a,r,o,l)}mount(a){this.isSVGTag=j1(a.tagName),super.mount(a)}}const qz=Th.length;function V1(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?V1(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const a={};for(let r=0;r<qz;r++){const o=Th[r],l=e.props[o];(Bo(l)||l===!1)&&(a[o]=l)}return a}function U1(e,a){if(!Array.isArray(a))return!1;const r=a.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(a[o]!==e[o])return!1;return!0}const Yz=[...xh].reverse(),Pz=xh.length;function Xz(e){return a=>Promise.all(a.map(({animation:r,options:o})=>tz(e,r,o)))}function Kz(e){let a=Xz(e),r=Dv(),o=!0;const l=m=>(p,y)=>{const v=fr(e,y,m==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:S,transitionEnd:x,...R}=v;p={...p,...R,...x}}return p};function f(m){a=m(e)}function c(m){const{props:p}=e,y=V1(e.parent)||{},v=[],S=new Set;let x={},R=1/0;for(let O=0;O<Pz;O++){const V=Yz[O],C=r[V],j=p[V]!==void 0?p[V]:y[V],Q=Bo(j),q=V===m?C.isActive:null;q===!1&&(R=O);let I=j===y[V]&&j!==p[V]&&Q;if(I&&o&&e.manuallyAnimateOnMount&&(I=!1),C.protectedKeys={...x},!C.isActive&&q===null||!j&&!C.prevProp||Ql(j)||typeof j=="boolean")continue;const F=Qz(C.prevProp,j);let P=F||V===m&&C.isActive&&!I&&Q||O>R&&Q,W=!1;const xe=Array.isArray(j)?j:[j];let Ae=xe.reduce(l(V),{});q===!1&&(Ae={});const{prevResolvedValues:Ce={}}=C,rt={...Ce,...Ae},je=X=>{P=!0,S.has(X)&&(W=!0,S.delete(X)),C.needsAnimating[X]=!0;const Y=e.getValue(X);Y&&(Y.liveStyle=!1)};for(const X in rt){const Y=Ae[X],ce=Ce[X];if(x.hasOwnProperty(X))continue;let pe=!1;Td(Y)&&Td(ce)?pe=!U1(Y,ce):pe=Y!==ce,pe?Y!=null?je(X):S.add(X):Y!==void 0&&S.has(X)?je(X):C.protectedKeys[X]=!0}C.prevProp=j,C.prevResolvedValues=Ae,C.isActive&&(x={...x,...Ae}),o&&e.blockInitialAnimation&&(P=!1);const ke=I&&F;P&&(!ke||W)&&v.push(...xe.map(X=>{const Y={type:V};if(typeof X=="string"&&o&&!ke&&e.manuallyAnimateOnMount&&e.parent){const{parent:ce}=e,pe=fr(ce,X);if(ce.enteringChildren&&pe){const{delayChildren:w}=pe.transition||{};Y.delay=o1(ce.enteringChildren,e,w)}}return{animation:X,options:Y}}))}if(S.size){const O={};if(typeof p.initial!="boolean"){const V=fr(e,Array.isArray(p.initial)?p.initial[0]:p.initial);V&&V.transition&&(O.transition=V.transition)}S.forEach(V=>{const C=e.getBaseTarget(V),j=e.getValue(V);j&&(j.liveStyle=!0),O[V]=C??null}),v.push({animation:O})}let E=!!v.length;return o&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),o=!1,E?a(v):Promise.resolve()}function h(m,p){if(r[m].isActive===p)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(m,p)),r[m].isActive=p;const y=c(m);for(const v in r)r[v].protectedKeys={};return y}return{animateChanges:c,setActive:h,setAnimateFunction:f,getState:()=>r,reset:()=>{r=Dv()}}}function Qz(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!U1(a,e):!1}function ui(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dv(){return{animate:ui(!0),whileInView:ui(),whileHover:ui(),whileTap:ui(),whileDrag:ui(),whileFocus:ui(),exit:ui()}}function Nv(e,a){e.min=a.min,e.max=a.max}function xn(e,a){Nv(e.x,a.x),Nv(e.y,a.y)}function jv(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}const L1=1e-4,Fz=1-L1,Jz=1+L1,B1=.01,Iz=0-B1,Wz=0+B1;function kt(e){return e.max-e.min}function eC(e,a,r){return Math.abs(e-a)<=r}function kv(e,a,r,o=.5){e.origin=o,e.originPoint=Fe(a.min,a.max,e.origin),e.scale=kt(r)/kt(a),e.translate=Fe(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Fz&&e.scale<=Jz||isNaN(e.scale))&&(e.scale=1),(e.translate>=Iz&&e.translate<=Wz||isNaN(e.translate))&&(e.translate=0)}function Do(e,a,r,o){kv(e.x,a.x,r.x,o?o.originX:void 0),kv(e.y,a.y,r.y,o?o.originY:void 0)}function Vv(e,a,r){e.min=r.min+a.min,e.max=e.min+kt(a)}function tC(e,a,r){Vv(e.x,a.x,r.x),Vv(e.y,a.y,r.y)}function Uv(e,a,r){e.min=a.min-r.min,e.max=e.min+kt(a)}function Ll(e,a,r){Uv(e.x,a.x,r.x),Uv(e.y,a.y,r.y)}function Lv(e,a,r,o,l){return e-=a,e=Ul(e,1/r,o),l!==void 0&&(e=Ul(e,1/l,o)),e}function nC(e,a=0,r=1,o=.5,l,f=e,c=e){if(Nn.test(a)&&(a=parseFloat(a),a=Fe(c.min,c.max,a/100)-c.min),typeof a!="number")return;let h=Fe(f.min,f.max,o);e===f&&(h-=a),e.min=Lv(e.min,a,r,h,l),e.max=Lv(e.max,a,r,h,l)}function Bv(e,a,[r,o,l],f,c){nC(e,a[r],a[o],a[l],a.scale,f,c)}const aC=["x","scaleX","originX"],iC=["y","scaleY","originY"];function Zv(e,a,r,o){Bv(e.x,a,aC,r?r.x:void 0,o?o.x:void 0),Bv(e.y,a,iC,r?r.y:void 0,o?o.y:void 0)}function Hv(e){return e.translate===0&&e.scale===1}function Z1(e){return Hv(e.x)&&Hv(e.y)}function $v(e,a){return e.min===a.min&&e.max===a.max}function rC(e,a){return $v(e.x,a.x)&&$v(e.y,a.y)}function Gv(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function H1(e,a){return Gv(e.x,a.x)&&Gv(e.y,a.y)}function qv(e){return kt(e.x)/kt(e.y)}function Yv(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}function dn(e){return[e("x"),e("y")]}function oC(e,a,r){let o="";const l=e.x.translate/a.x,f=e.y.translate/a.y,c=r?.z||0;if((l||f||c)&&(o=`translate3d(${l}px, ${f}px, ${c}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),r){const{transformPerspective:p,rotate:y,rotateX:v,rotateY:S,skewX:x,skewY:R}=r;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotateX(${v}deg) `),S&&(o+=`rotateY(${S}deg) `),x&&(o+=`skewX(${x}deg) `),R&&(o+=`skewY(${R}deg) `)}const h=e.x.scale*a.x,m=e.y.scale*a.y;return(h!==1||m!==1)&&(o+=`scale(${h}, ${m})`),o||"none"}const $1=["TopLeft","TopRight","BottomLeft","BottomRight"],sC=$1.length,Pv=e=>typeof e=="string"?parseFloat(e):e,Xv=e=>typeof e=="number"||ae.test(e);function lC(e,a,r,o,l,f){l?(e.opacity=Fe(0,r.opacity??1,uC(o)),e.opacityExit=Fe(a.opacity??1,0,cC(o))):f&&(e.opacity=Fe(a.opacity??1,r.opacity??1,o));for(let c=0;c<sC;c++){const h=`border${$1[c]}Radius`;let m=Kv(a,h),p=Kv(r,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Xv(m)===Xv(p)?(e[h]=Math.max(Fe(Pv(m),Pv(p),o),0),(Nn.test(p)||Nn.test(m))&&(e[h]+="%")):e[h]=p}(a.rotate||r.rotate)&&(e.rotate=Fe(a.rotate||0,r.rotate||0,o))}function Kv(e,a){return e[a]!==void 0?e[a]:e.borderRadius}const uC=G1(0,.5,Ub),cC=G1(.5,.95,mn);function G1(e,a,r){return o=>o<e?0:o>a?1:r(Vo(e,a,o))}function fC(e,a,r){const o=Ot(e)?e:mr(e);return o.start(ph("",o,a,r)),o.animation}function Zo(e,a,r,o={passive:!0}){return e.addEventListener(a,r,o),()=>e.removeEventListener(a,r)}const dC=(e,a)=>e.depth-a.depth;class hC{constructor(){this.children=[],this.isDirty=!1}add(a){Id(this.children,a),this.isDirty=!0}remove(a){Wd(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(dC),this.isDirty=!1,this.children.forEach(a)}}function mC(e,a){const r=jt.now(),o=({timestamp:l})=>{const f=l-r;f>=a&&(Za(o),e(f-a))};return Ge.setup(o,!0),()=>Za(o)}function Ol(e){return Ot(e)?e.get():e}class pC{constructor(){this.members=[]}add(a){Id(this.members,a),a.scheduleRender()}remove(a){if(Wd(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(a){const r=this.members.findIndex(l=>a===l);if(r===0)return!1;let o;for(let l=r;l>=0;l--){const f=this.members[l];if(f.isPresent!==!1){o=f;break}}return o?(this.promote(o),!0):!1}promote(a,r){const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.instance&&o.scheduleRender(),a.scheduleRender();const l=o.options.layoutDependency,f=a.options.layoutDependency;l!==void 0&&f!==void 0&&l===f||(a.resumeFrom=o,r&&(a.resumeFrom.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0));const{crossfade:h}=a.options;h===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:r,resumingFrom:o}=a;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ml={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Hf=["","X","Y","Z"],gC=1e3;let yC=0;function $f(e,a,r,o){const{latestValues:l}=a;l[e]&&(r[e]=l[e],a.setStaticValue(e,0),o&&(o[e]=0))}function q1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:a}=e.options;if(!a)return;const r=c1(a);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:l,layoutId:f}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ge,!(l||f))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&q1(o)}function Y1({attachResizeListener:e,defaultParent:a,measureScroll:r,checkIsScrollRoot:o,resetTransform:l}){return class{constructor(c={},h=a?.()){this.id=yC++,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(SC),this.nodes.forEach(_C),this.nodes.forEach(wC),this.nodes.forEach(xC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new hC)}addEventListener(c,h){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new nh),this.eventHandlers.get(c).add(h)}notifyListeners(c,...h){const m=this.eventHandlers.get(c);m&&m.notify(...h)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=x1(c)&&!bz(c),this.instance=c;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let y,v=0;const S=()=>this.root.updateBlockedByResize=!1;Ge.read(()=>{v=window.innerWidth}),e(c,()=>{const x=window.innerWidth;x!==v&&(v=x,this.root.updateBlockedByResize=!0,y&&y(),y=mC(S,250),Ml.hasAnimatedSinceResize&&(Ml.hasAnimatedSinceResize=!1,this.nodes.forEach(Jv)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:S,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||p.getDefaultTransition()||OC,{onLayoutAnimationStart:E,onLayoutAnimationComplete:O}=p.getProps(),V=!this.targetLayout||!H1(this.targetLayout,x),C=!v&&S;if(this.options.layoutRoot||this.resumeFrom||C||v&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...mh(R,"layout"),onPlay:E,onComplete:O};(p.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(y,C)}else v||Jv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Za(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(AC),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&q1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Fv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(EC),this.nodes.forEach(vC),this.nodes.forEach(bC)):this.nodes.forEach(Fv),this.clearAllSnapshots();const h=jt.now();At.delta=jn(0,1e3/60,h-At.timestamp),At.timestamp=h,At.isProcessing=!0,Nf.update.process(At),Nf.preRender.process(At),Nf.render.process(At),At.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(TC),this.sharedNodes.forEach(zC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!kt(this.snapshot.measuredBox.x)&&!kt(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(h=!1),h&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Z1(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;c&&this.instance&&(h||fi(this.latestValues)||y)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return c&&(m=this.removeTransform(m)),MC(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return pt();const h=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(DC))){const{scroll:p}=this.root;p&&(sr(h.x,p.offset.x),sr(h.y,p.offset.y))}return h}removeElementScroll(c){const h=pt();if(xn(h,c),this.scroll?.wasRoot)return h;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:y,options:v}=p;p!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&xn(h,c),sr(h.x,y.offset.x),sr(h.y,y.offset.y))}return h}applyTransform(c,h=!1){const m=pt();xn(m,c);for(let p=0;p<this.path.length;p++){const y=this.path[p];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&lr(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),fi(y.latestValues)&&lr(m,y.latestValues)}return fi(this.latestValues)&&lr(m,this.latestValues),m}removeTransform(c){const h=pt();xn(h,c);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!fi(p.latestValues))continue;zd(p.latestValues)&&p.updateSnapshot();const y=pt(),v=p.measurePageBox();xn(y,v),Zv(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return fi(this.latestValues)&&Zv(h,this.latestValues),h}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==At.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=At.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=pt(),this.targetWithTransforms=pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xn(this.target,this.layout.layoutBox),C1(this.target,this.targetDelta)):xn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||zd(this.parent.latestValues)||z1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,h,m){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pt(),this.relativeTargetOrigin=pt(),Ll(this.relativeTargetOrigin,h,m),xn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),h=!!this.resumingFrom||this!==c;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===At.timestamp&&(m=!1),m)return;const{layout:p,layoutId:y}=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||y))return;xn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,S=this.treeScale.y;Oz(this.layoutCorrected,this.treeScale,this.path,h),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=pt());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jv(this.prevProjectionDelta.x,this.projectionDelta.x),jv(this.prevProjectionDelta.y,this.projectionDelta.y)),Do(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==S||!Yv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=or(),this.projectionDelta=or(),this.projectionDeltaWithTransform=or()}setAnimationOrigin(c,h=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},v=or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=pt(),x=m?m.source:void 0,R=this.layout?this.layout.source:void 0,E=x!==R,O=this.getStack(),V=!O||O.members.length<=1,C=!!(E&&!V&&this.options.crossfade===!0&&!this.path.some(RC));this.animationProgress=0;let j;this.mixTargetDelta=Q=>{const q=Q/1e3;Iv(v.x,c.x,q),Iv(v.y,c.y,q),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ll(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),CC(this.relativeTarget,this.relativeTargetOrigin,S,q),j&&rC(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=pt()),xn(j,this.relativeTarget)),E&&(this.animationValues=y,lC(y,p,this.latestValues,q,C,V)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Za(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{Ml.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mr(0)),this.currentAnimation=fC(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),c.onUpdate&&c.onUpdate(h)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:y}=c;if(!(!h||!m||!p)){if(this!==c&&this.layout&&p&&P1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||pt();const v=kt(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+v;const S=kt(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+S}xn(h,m),lr(h,y),Do(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(c,h){this.sharedNodes.has(c)||this.sharedNodes.set(c,new pC),this.sharedNodes.get(c).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let h=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&$f("z",c,p,this.animationValues);for(let y=0;y<Hf.length;y++)$f(`rotate${Hf[y]}`,c,p,this.animationValues),$f(`skew${Hf[y]}`,c,p,this.animationValues);c.render();for(const y in p)c.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);c.scheduleRender()}applyProjectionStyles(c,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Ol(h?.pointerEvents)||"",c.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Ol(h?.pointerEvents)||""),this.hasProjected&&!fi(this.latestValues)&&(c.transform=m?m({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=oC(this.projectionDeltaWithTransform,this.treeScale,y);m&&(v=m(y,v)),c.transform=v;const{x:S,y:x}=this.projectionDelta;c.transformOrigin=`${S.origin*100}% ${x.origin*100}% 0`,p.animationValues?c.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const R in Rd){if(y[R]===void 0)continue;const{correct:E,applyTo:O,isCSSVariable:V}=Rd[R],C=v==="none"?y[R]:E(y[R],p);if(O){const j=O.length;for(let Q=0;Q<j;Q++)c[O[Q]]=C}else V?this.options.visualElement.renderState.vars[R]=C:c[R]=C}this.options.layoutId&&(c.pointerEvents=p===this?Ol(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(Qv),this.root.sharedNodes.clear()}}}function vC(e){e.updateLayout()}function bC(e){const a=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:l}=e.options,f=a.source!==e.layout.source;l==="size"?dn(y=>{const v=f?a.measuredBox[y]:a.layoutBox[y],S=kt(v);v.min=r[y].min,v.max=v.min+S}):P1(l,a.layoutBox,r)&&dn(y=>{const v=f?a.measuredBox[y]:a.layoutBox[y],S=kt(r[y]);v.max=v.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const c=or();Do(c,r,a.layoutBox);const h=or();f?Do(h,e.applyTransform(o,!0),a.measuredBox):Do(h,r,a.layoutBox);const m=!Z1(c);let p=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:S}=y;if(v&&S){const x=pt();Ll(x,a.layoutBox,v.layoutBox);const R=pt();Ll(R,r,S.layoutBox),H1(x,R)||(p=!0),y.options.layoutRoot&&(e.relativeTarget=R,e.relativeTargetOrigin=x,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:h,layoutDelta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function SC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TC(e){e.clearSnapshot()}function Qv(e){e.clearMeasurements()}function Fv(e){e.isLayoutDirty=!1}function EC(e){const{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _C(e){e.resolveTargetDelta()}function wC(e){e.calcProjection()}function AC(e){e.resetSkewAndRotation()}function zC(e){e.removeLeadSnapshot()}function Iv(e,a,r){e.translate=Fe(a.translate,0,r),e.scale=Fe(a.scale,1,r),e.origin=a.origin,e.originPoint=a.originPoint}function Wv(e,a,r,o){e.min=Fe(a.min,r.min,o),e.max=Fe(a.max,r.max,o)}function CC(e,a,r,o){Wv(e.x,a.x,r.x,o),Wv(e.y,a.y,r.y,o)}function RC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const OC={duration:.45,ease:[.4,0,.1,1]},e0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),t0=e0("applewebkit/")&&!e0("chrome/")?Math.round:mn;function n0(e){e.min=t0(e.min),e.max=t0(e.max)}function MC(e){n0(e.x),n0(e.y)}function P1(e,a,r){return e==="position"||e==="preserve-aspect"&&!eC(qv(a),qv(r),.2)}function DC(e){return e!==e.root&&e.scroll?.wasRoot}const NC=Y1({attachResizeListener:(e,a)=>Zo(e,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Gf={current:void 0},X1=Y1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gf.current){const e=new NC({});e.mount(window),e.setOptions({layoutScroll:!0}),Gf.current=e}return Gf.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),K1=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jC(e=!0){const a=A.useContext(Jd);if(a===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:l}=a,f=A.useId();A.useEffect(()=>{if(e)return l(f)},[e]);const c=A.useCallback(()=>e&&o&&o(f),[f,o,e]);return!r&&o?[!1,c]:[!0]}const Q1=A.createContext({strict:!1}),a0={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 i0=!1;function kC(){if(i0)return;const e={};for(const a in a0)e[a]={isEnabled:r=>a0[a].some(o=>!!r[o])};_1(e),i0=!0}function F1(){return kC(),Az()}function VC(e){const a=F1();for(const r in e)a[r]={...a[r],...e[r]};_1(a)}const UC=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||UC.has(e)}let J1=e=>!Bl(e);function LC(e){typeof e=="function"&&(J1=a=>a.startsWith("on")?!Bl(a):e(a))}try{LC(require("@emotion/is-prop-valid").default)}catch{}function BC(e,a,r){const o={};for(const l in e)l==="values"&&typeof e.values=="object"||(J1(l)||r===!0&&Bl(l)||!a&&!Bl(l)||e.draggable&&l.startsWith("onDrag"))&&(o[l]=e[l]);return o}const Jl=A.createContext({});function ZC(e,a){if(Fl(e)){const{initial:r,animate:o}=e;return{initial:r===!1||Bo(r)?r:void 0,animate:Bo(o)?o:void 0}}return e.inherit!==!1?a:{}}function HC(e){const{initial:a,animate:r}=ZC(e,A.useContext(Jl));return A.useMemo(()=>({initial:a,animate:r}),[r0(a),r0(r)])}function r0(e){return Array.isArray(e)?e.join(" "):e}const wh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function I1(e,a,r){for(const o in a)!Ot(a[o])&&!M1(o,r)&&(e[o]=a[o])}function $C({transformTemplate:e},a){return A.useMemo(()=>{const r=wh();return Eh(r,a,e),Object.assign({},r.vars,r.style)},[a])}function GC(e,a){const r=e.style||{},o={};return I1(o,r,e),Object.assign(o,$C(e,a)),o}function qC(e,a){const r={},o=GC(e,a);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const W1=()=>({...wh(),attrs:{}});function YC(e,a,r,o){const l=A.useMemo(()=>{const f=W1();return D1(f,a,j1(o),e.transformTemplate,e.style),{...f.attrs,style:{...f.style}}},[a]);if(e.style){const f={};I1(f,e.style,e),l.style={...f,...l.style}}return l}const PC=["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 Ah(e){return typeof e!="string"||e.includes("-")?!1:!!(PC.indexOf(e)>-1||/[A-Z]/u.test(e))}function XC(e,a,r,{latestValues:o},l,f=!1,c){const m=(c??Ah(e)?YC:qC)(a,o,l,e),p=BC(a,typeof e=="string",f),y=e!==A.Fragment?{...p,...m,ref:r}:{},{children:v}=a,S=A.useMemo(()=>Ot(v)?v.get():v,[v]);return A.createElement(e,{...y,children:S})}function KC({scrapeMotionValuesFromProps:e,createRenderState:a},r,o,l){return{latestValues:QC(r,o,l,e),renderState:a()}}function QC(e,a,r,o){const l={},f=o(e,{});for(const S in f)l[S]=Ol(f[S]);let{initial:c,animate:h}=e;const m=Fl(e),p=E1(e);a&&p&&!m&&e.inherit!==!1&&(c===void 0&&(c=a.initial),h===void 0&&(h=a.animate));let y=r?r.initial===!1:!1;y=y||c===!1;const v=y?h:c;if(v&&typeof v!="boolean"&&!Ql(v)){const S=Array.isArray(v)?v:[v];for(let x=0;x<S.length;x++){const R=gh(e,S[x]);if(R){const{transitionEnd:E,transition:O,...V}=R;for(const C in V){let j=V[C];if(Array.isArray(j)){const Q=y?j.length-1:0;j=j[Q]}j!==null&&(l[C]=j)}for(const C in E)l[C]=E[C]}}}return l}const eS=e=>(a,r)=>{const o=A.useContext(Jl),l=A.useContext(Jd),f=()=>KC(e,a,o,l);return r?f():l2(f)},FC=eS({scrapeMotionValuesFromProps:_h,createRenderState:wh}),JC=eS({scrapeMotionValuesFromProps:k1,createRenderState:W1}),IC=Symbol.for("motionComponentSymbol");function WC(e,a,r){const o=A.useRef(r);A.useInsertionEffect(()=>{o.current=r});const l=A.useRef(null);return A.useCallback(f=>{f&&e.onMount?.(f),a&&(f?a.mount(f):a.unmount());const c=o.current;if(typeof c=="function")if(f){const h=c(f);typeof h=="function"&&(l.current=h)}else l.current?(l.current(),l.current=null):c(f);else c&&(c.current=f)},[a])}const tS=A.createContext({});function Co(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eR(e,a,r,o,l,f){const{visualElement:c}=A.useContext(Jl),h=A.useContext(Q1),m=A.useContext(Jd),p=A.useContext(K1).reducedMotion,y=A.useRef(null),v=A.useRef(!1);o=o||h.renderer,!y.current&&o&&(y.current=o(e,{visualState:a,parent:c,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p,isSVG:f}),v.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const S=y.current,x=A.useContext(tS);S&&!S.projection&&l&&(S.type==="html"||S.type==="svg")&&tR(y.current,r,l,x);const R=A.useRef(!1);A.useInsertionEffect(()=>{S&&R.current&&S.update(r,m)});const E=r[u1],O=A.useRef(!!E&&!window.MotionHandoffIsComplete?.(E)&&window.MotionHasOptimisedAnimation?.(E));return u2(()=>{v.current=!0,S&&(R.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),O.current&&S.animationState&&S.animationState.animateChanges())}),A.useEffect(()=>{S&&(!O.current&&S.animationState&&S.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(E)}),O.current=!1),S.enteringChildren=void 0)}),S}function tR(e,a,r,o){const{layoutId:l,layout:f,drag:c,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:y}=a;e.projection=new r(e.latestValues,a["data-framer-portal-id"]?void 0:nS(e.parent)),e.projection.setOptions({layoutId:l,layout:f,alwaysMeasureLayout:!!c||h&&Co(h),visualElement:e,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:m,layoutRoot:p})}function nS(e){if(e)return e.options.allowProjection!==!1?e.projection:nS(e.parent)}function qf(e,{forwardMotionProps:a=!1,type:r}={},o,l){o&&VC(o);const f=r?r==="svg":Ah(e),c=f?JC:FC;function h(p,y){let v;const S={...A.useContext(K1),...p,layoutId:nR(p)},{isStatic:x}=S,R=HC(p),E=c(p,x);if(!x&&Ab){aR();const O=iR(S);v=O.MeasureLayout,R.visualElement=eR(e,E,S,l,O.ProjectionNode,f)}return L.jsxs(Jl.Provider,{value:R,children:[v&&R.visualElement?L.jsx(v,{visualElement:R.visualElement,...S}):null,XC(e,p,WC(E,R.visualElement,y),E,x,a,f)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=A.forwardRef(h);return m[IC]=e,m}function nR({layoutId:e}){const a=A.useContext(wb).id;return a&&e!==void 0?a+"-"+e:e}function aR(e,a){A.useContext(Q1).strict}function iR(e){const a=F1(),{drag:r,layout:o}=a;if(!r&&!o)return{};const l={...r,...o};return{MeasureLayout:r?.isEnabled(e)||o?.isEnabled(e)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function rR(e,a){if(typeof Proxy>"u")return qf;const r=new Map,o=(f,c)=>qf(f,c,e,a),l=(f,c)=>o(f,c);return new Proxy(l,{get:(f,c)=>c==="create"?o:(r.has(c)||r.set(c,qf(c,void 0,e,a)),r.get(c))})}const oR=(e,a)=>a.isSVG??Ah(e)?new Gz(a):new Uz(a,{allowProjection:e!==A.Fragment});class sR extends $a{constructor(a){super(a),a.animationState||(a.animationState=Kz(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Ql(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:r}=this.node.prevProps||{};a!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let lR=0;class uR extends $a{constructor(){super(...arguments),this.id=lR++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;const l=this.node.animationState.setActive("exit",!a);r&&!a&&l.then(()=>{r(this.id)})}mount(){const{register:a,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const cR={animation:{Feature:sR},exit:{Feature:uR}};function Qo(e){return{point:{x:e.pageX,y:e.pageY}}}const fR=e=>a=>Sh(a)&&e(a,Qo(a));function No(e,a,r,o){return Zo(e,a,fR(r),o)}const aS=({current:e})=>e?e.ownerDocument.defaultView:null,o0=(e,a)=>Math.abs(e-a);function dR(e,a){const r=o0(e.x,a.x),o=o0(e.y,a.y);return Math.sqrt(r**2+o**2)}const s0=new Set(["auto","scroll"]);class iS{constructor(a,r,{transformPagePoint:o,contextWindow:l=window,dragSnapToOrigin:f=!1,distanceThreshold:c=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Pf(this.lastMoveEventInfo,this.history),R=this.startEvent!==null,E=dR(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!R&&!E)return;const{point:O}=x,{timestamp:V}=At;this.history.push({...O,timestamp:V});const{onStart:C,onMove:j}=this.handlers;R||(C&&C(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,x)},this.handlePointerMove=(x,R)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Yf(R,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(x,R)=>{this.end();const{onEnd:E,onSessionEnd:O,resumeAnimation:V}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Pf(x.type==="pointercancel"?this.lastMoveEventInfo:Yf(R,this.transformPagePoint),this.history);this.startEvent&&E&&E(x,C),O&&O(x,C)},!Sh(a))return;this.dragSnapToOrigin=f,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=c,this.contextWindow=l||window;const m=Qo(a),p=Yf(m,this.transformPagePoint),{point:y}=p,{timestamp:v}=At;this.history=[{...y,timestamp:v}];const{onSessionStart:S}=r;S&&S(a,Pf(p,this.history)),this.removeListeners=Po(No(this.contextWindow,"pointermove",this.handlePointerMove),No(this.contextWindow,"pointerup",this.handlePointerUp),No(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let r=a.parentElement;for(;r;){const o=getComputedStyle(r);(s0.has(o.overflowX)||s0.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const r=this.scrollPositions.get(a);if(!r)return;const o=a===window,l=o?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},f={x:l.x-r.x,y:l.y-r.y};f.x===0&&f.y===0||(o?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(a,l),Ge.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Za(this.updatePoint)}}function Yf(e,a){return a?{point:a(e.point)}:e}function l0(e,a){return{x:e.x-a.x,y:e.y-a.y}}function Pf({point:e},a){return{point:e,delta:l0(e,rS(a)),offset:l0(e,hR(a)),velocity:mR(a,.1)}}function hR(e){return e[0]}function rS(e){return e[e.length-1]}function mR(e,a){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null;const l=rS(e);for(;r>=0&&(o=e[r],!(l.timestamp-o.timestamp>ia(a)));)r--;if(!o)return{x:0,y:0};const f=hn(l.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const c={x:(l.x-o.x)/f,y:(l.y-o.y)/f};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function pR(e,{min:a,max:r},o){return a!==void 0&&e<a?e=o?Fe(a,e,o.min):Math.max(e,a):r!==void 0&&e>r&&(e=o?Fe(r,e,o.max):Math.min(e,r)),e}function u0(e,a,r){return{min:a!==void 0?e.min+a:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function gR(e,{top:a,left:r,bottom:o,right:l}){return{x:u0(e.x,r,l),y:u0(e.y,a,o)}}function c0(e,a){let r=a.min-e.min,o=a.max-e.max;return a.max-a.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function yR(e,a){return{x:c0(e.x,a.x),y:c0(e.y,a.y)}}function vR(e,a){let r=.5;const o=kt(e),l=kt(a);return l>o?r=Vo(a.min,a.max-o,e.min):o>l&&(r=Vo(e.min,e.max-l,a.min)),jn(0,1,r)}function bR(e,a){const r={};return a.min!==void 0&&(r.min=a.min-e.min),a.max!==void 0&&(r.max=a.max-e.min),r}const Od=.35;function SR(e=Od){return e===!1?e=0:e===!0&&(e=Od),{x:f0(e,"left","right"),y:f0(e,"top","bottom")}}function f0(e,a,r){return{min:d0(e,a),max:d0(e,r)}}function d0(e,a){return typeof e=="number"?e:e[a]||0}const xR=new WeakMap;class TR{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const f=v=>{r?(this.stopAnimation(),this.snapToCursor(Qo(v).point)):this.pauseAnimation()},c=(v,S)=>{this.stopAnimation();const{drag:x,dragPropagation:R,onDragStart:E}=this.getProps();if(x&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mz(x),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dn(V=>{let C=this.getAxisMotionValue(V).get()||0;if(Nn.test(C)){const{projection:j}=this.visualElement;if(j&&j.layout){const Q=j.layout.layoutBox[V];Q&&(C=kt(Q)*(parseFloat(C)/100))}}this.originPoint[V]=C}),E&&Ge.postRender(()=>E(v,S)),Ed(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},h=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S;const{dragPropagation:x,dragDirectionLock:R,onDirectionLock:E,onDrag:O}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:V}=S;if(R&&this.currentDirection===null){this.currentDirection=ER(V),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",S.point,V),this.updateAxis("y",S.point,V),this.visualElement.render(),O&&O(v,S)},m=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S,this.stop(v,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>dn(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new iS(a,{onSessionStart:f,onStart:c,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:aS(this.visualElement),element:this.visualElement.current})}stop(a,r){const o=a||this.latestPointerEvent,l=r||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!l||!o)return;const{velocity:c}=l;this.startAnimation(c);const{onDragEnd:h}=this.getProps();h&&Ge.postRender(()=>h(o,l))}cancel(){this.isDragging=!1;const{projection:a,animationState:r}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,r,o){const{drag:l}=this.getProps();if(!o||!bl(a,l,this.currentDirection))return;const f=this.getAxisMotionValue(a);let c=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(c=pR(c,this.constraints[a],this.elastic[a])),f.set(c)}resolveConstraints(){const{dragConstraints:a,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;a&&Co(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=gR(o.layoutBox,a):this.constraints=!1,this.elastic=SR(r),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&dn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=bR(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:r}=this.getProps();if(!a||!Co(a))return!1;const o=a.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const f=Mz(o,l.root,this.visualElement.getTransformPagePoint());let c=yR(l.layout.layoutBox,f);if(r){const h=r(Cz(c));this.hasMutatedConstraints=!!h,h&&(c=A1(h))}return c}startAnimation(a){const{drag:r,dragMomentum:o,dragElastic:l,dragTransition:f,dragSnapToOrigin:c,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=dn(y=>{if(!bl(y,r,this.currentDirection))return;let v=m&&m[y]||{};c&&(v={min:0,max:0});const S=l?200:1e6,x=l?40:1e7,R={type:"inertia",velocity:o?a[y]:0,bounceStiffness:S,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,R)});return Promise.all(p).then(h)}startAxisValueAnimation(a,r){const o=this.getAxisMotionValue(a);return Ed(this.visualElement,a),o.start(ph(a,o,0,r,this.visualElement,!1))}stopAnimation(){dn(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){dn(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const r=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),l=o[r];return l||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){dn(r=>{const{drag:o}=this.getProps();if(!bl(r,o,this.currentDirection))return;const{projection:l}=this.visualElement,f=this.getAxisMotionValue(r);if(l&&l.layout){const{min:c,max:h}=l.layout.layoutBox[r],m=f.get()||0;f.set(a[r]-Fe(c,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Co(r)||!o||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};dn(c=>{const h=this.getAxisMotionValue(c);if(h&&this.constraints!==!1){const m=h.get();l[c]=vR({min:m,max:m},this.constraints[c])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),dn(c=>{if(!bl(c,a,null))return;const h=this.getAxisMotionValue(c),{min:m,max:p}=this.constraints[c];h.set(Fe(m,p,l[c]))})}addListeners(){if(!this.visualElement.current)return;xR.set(this.visualElement,this);const a=this.visualElement.current,r=No(a,"pointerdown",m=>{const{drag:p,dragListener:y=!0}=this.getProps(),v=m.target,S=v!==a&&S1(v);p&&y&&!S&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();Co(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,f=l.addEventListener("measure",o);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Ge.read(o);const c=Zo(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(dn(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=m[y].translate,v.set(v.get()+m[y].translate))}),this.visualElement.render())}));return()=>{c(),r(),f(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:l=!1,dragConstraints:f=!1,dragElastic:c=Od,dragMomentum:h=!0}=a;return{...a,drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:f,dragElastic:c,dragMomentum:h}}}function bl(e,a,r){return(a===!0||a===e)&&(r===null||r===e)}function ER(e,a=10){let r=null;return Math.abs(e.y)>a?r="y":Math.abs(e.x)>a&&(r="x"),r}class _R extends $a{constructor(a){super(a),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new TR(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}update(){const{dragControls:a}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};a!==r&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const h0=e=>(a,r)=>{e&&Ge.postRender(()=>e(a,r))};class wR extends $a{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(a){this.session=new iS(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:aS(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:r,onPan:o,onPanEnd:l}=this.node.getProps();return{onSessionStart:h0(a),onStart:h0(r),onMove:o,onEnd:(f,c)=>{delete this.session,l&&Ge.postRender(()=>l(f,c))}}}mount(){this.removePointerDownListener=No(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Xf=!1;class AR extends A.Component{componentDidMount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:o,layoutId:l}=this.props,{projection:f}=a;f&&(r.group&&r.group.add(f),o&&o.register&&l&&o.register(f),Xf&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ml.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:r,visualElement:o,drag:l,isPresent:f}=this.props,{projection:c}=o;return c&&(c.isPresent=f,a.layoutDependency!==r&&c.setOptions({...c.options,layoutDependency:r}),Xf=!0,l||a.layoutDependency!==r||r===void 0||a.isPresent!==f?c.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?c.promote():c.relegate()||Ge.postRender(()=>{const h=c.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),bh.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:l}=a;Xf=!0,l&&(l.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(l),o&&o.deregister&&o.deregister(l))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function oS(e){const[a,r]=jC(),o=A.useContext(wb);return L.jsx(AR,{...e,layoutGroup:o,switchLayoutGroup:A.useContext(tS),isPresent:a,safeToRemove:r})}const zR={pan:{Feature:wR},drag:{Feature:_R,ProjectionNode:X1,MeasureLayout:oS}};function m0(e,a,r){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r==="Start");const l="onHover"+r,f=o[l];f&&Ge.postRender(()=>f(a,Qo(a)))}class CR extends $a{mount(){const{current:a}=this.node;a&&(this.unmount=pz(a,(r,o)=>(m0(this.node,o,"Start"),l=>m0(this.node,l,"End"))))}unmount(){}}class RR extends $a{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=Po(Zo(this.node.current,"focus",()=>this.onFocus()),Zo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function p0(e,a,r){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",r==="Start");const l="onTap"+(r==="End"?"":r),f=o[l];f&&Ge.postRender(()=>f(a,Qo(a)))}class OR extends $a{mount(){const{current:a}=this.node;a&&(this.unmount=vz(a,(r,o)=>(p0(this.node,o,"Start"),(l,{success:f})=>p0(this.node,l,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Md=new WeakMap,Kf=new WeakMap,MR=e=>{const a=Md.get(e.target);a&&a(e)},DR=e=>{e.forEach(MR)};function NR({root:e,...a}){const r=e||document;Kf.has(r)||Kf.set(r,{});const o=Kf.get(r),l=JSON.stringify(a);return o[l]||(o[l]=new IntersectionObserver(DR,{root:e,...a})),o[l]}function jR(e,a,r){const o=NR(a);return Md.set(e,r),o.observe(e),()=>{Md.delete(e),o.unobserve(e)}}const kR={some:0,all:1};class VR extends $a{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:r,margin:o,amount:l="some",once:f}=a,c={root:r?r.current:void 0,rootMargin:o,threshold:typeof l=="number"?l:kR[l]},h=m=>{const{isIntersecting:p}=m;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:y,onViewportLeave:v}=this.node.getProps(),S=p?y:v;S&&S(m)};return jR(this.node.current,c,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:r}=this.node;["amount","margin","root"].some(UR(a,r))&&this.startObserver()}unmount(){}}function UR({viewport:e={}},{viewport:a={}}={}){return r=>e[r]!==a[r]}const LR={inView:{Feature:VR},tap:{Feature:OR},focus:{Feature:RR},hover:{Feature:CR}},BR={layout:{ProjectionNode:X1,MeasureLayout:oS}},ZR={...cR,...LR,...zR,...BR},jo=rR(ZR,oR);function HR({children:e}){const a=sa(),[r,o]=A.useState(!0);A.useEffect(()=>{const f=localStorage.getItem("theme");o(f?f==="dark":!0)},[]),A.useEffect(()=>{r?(document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"))},[r]);const l=[{icon:vw,label:"Dashboard",path:"/"},{icon:_w,label:"Configuration",path:"/config"},{icon:Cw,label:"Logs",path:"/logs"}];return L.jsxs("div",{className:"flex flex-col h-screen bg-gray-50 dark:bg-black text-gray-900 dark:text-matrix-secondary font-mono overflow-hidden transition-colors duration-300",children:[L.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[L.jsxs(jo.div,{className:"w-64 border-r border-gray-200 dark:border-matrix-primary bg-white dark:bg-zinc-950 flex flex-col shrink-0 transition-colors duration-300",initial:{x:-64,opacity:0},animate:{x:0,opacity:1},transition:{duration:.9,type:"spring"},children:[L.jsxs("div",{className:"p-4 border-b border-gray-200 dark:border-matrix-primary flex justify-between items-center",children:[L.jsxs("h1",{className:"text-xl font-bold text-green-700 dark:text-matrix-highlight flex items-center gap-2",children:[L.jsx(mb,{className:"w-6 h-6"}),"MORPHEUS"]}),L.jsx("button",{onClick:()=>o(!r),className:"p-1 rounded hover:bg-gray-200 dark:hover:bg-matrix-primary/50 text-gray-500 dark:text-matrix-secondary transition-colors",children:r?L.jsx(Aw,{className:"w-4 h-4"}):L.jsx(Sw,{className:"w-4 h-4"})})]}),L.jsx("nav",{className:"flex-1 p-4 space-y-2",children:l.map(f=>{const c=a.pathname===f.path;return L.jsxs(Pd,{to:f.path,className:`flex items-center gap-3 px-4 py-3 rounded transition-colors ${c?"bg-green-100 text-green-800 dark:bg-matrix-primary dark:text-matrix-highlight":"hover:bg-gray-100 dark:hover:bg-matrix-primary/50 text-gray-600 dark:text-matrix-secondary"}`,children:[L.jsx(f.icon,{className:"w-5 h-5"}),L.jsx("span",{children:f.label})]},f.path)})})]}),L.jsxs("main",{className:"flex-1 overflow-auto p-8 relative flex flex-col",children:[L.jsx("div",{className:"max-w-6xl w-full mx-auto flex-1",children:e}),L.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(rgba(18,16,16,0)_50%,rgba(0,0,0,0.1)_50%),linear-gradient(90deg,rgba(0,255,0,0.03),rgba(0,255,0,0.01))] bg-[length:100%_2px,3px_100%] opacity-0 dark:opacity-20 transition-opacity duration-300"})]})]}),L.jsx(s2,{})]})}function $R(){const{data:e}=_b(),a={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.1}}},r={hidden:{opacity:0,y:20},show:{opacity:1,y:0}},o=({title:l,value:f,icon:c,subValue:h})=>L.jsxs(jo.div,{variants:r,className:"border border-matrix-primary bg-zinc-950/50 p-6 rounded relative overflow-hidden group hover:border-matrix-highlight transition-colors",children:[L.jsxs("div",{className:"flex justify-between items-start mb-4",children:[L.jsx("h3",{className:"text-matrix-secondary text-sm font-bold uppercase",children:l}),L.jsx(c,{className:"w-6 h-6 text-matrix-primary group-hover:text-matrix-highlight transition-colors"})]}),L.jsx("div",{className:"text-3xl font-bold text-matrix-highlight mb-1 font-mono tracking-tighter truncate",children:f}),h&&L.jsx("div",{className:"text-xs text-matrix-secondary opacity-70 font-mono",children:h})]});return L.jsxs(jo.div,{className:"space-y-8",variants:a,initial:"hidden",animate:"show",children:[L.jsxs(jo.div,{variants:r,children:[L.jsx("h2",{className:"text-2xl font-bold text-matrix-highlight mb-2",children:"SYSTEM STATUS"}),L.jsx("p",{className:"text-matrix-secondary opacity-80",children:"Overview of the Morpheus agent runtime."})]}),L.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[L.jsx(o,{title:"Agent Status",value:e?.status.toUpperCase()||"CONNECTING...",icon:mb,subValue:e?`PID: ${e.pid}`:""}),L.jsx(o,{title:"Uptime",value:e?`${Math.floor(e.uptimeSeconds/60)}m`:"-",icon:dw,subValue:e?`${e.uptimeSeconds.toFixed(0)} seconds`:""}),L.jsx(o,{title:"Version",value:e?.projectVersion||"-",icon:mw,subValue:`Node ${e?.nodeVersion||"-"}`}),L.jsx(o,{title:"Provider",value:e?.llmProvider?.toUpperCase()||"-",icon:cw,subValue:"LLM Inference Engine"}),L.jsx(o,{title:"Model",value:e?.llmModel||"-",icon:lw,subValue:"Active Model"})]})]})}function _o({title:e,description:a,children:r}){return L.jsxs("div",{className:"border border-matrix-primary rounded-lg p-6 bg-matrix-base/50",children:[L.jsxs("div",{className:"mb-4",children:[L.jsx("h3",{className:"text-lg font-medium text-matrix-highlight",children:e}),a&&L.jsx("p",{className:"text-sm text-matrix-secondary mt-1",children:a})]}),L.jsx("div",{className:"space-y-4",children:r})]})}const GR=(e,a)=>{const r=new Array(e.length+a.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<a.length;o++)r[e.length+o]=a[o];return r},qR=(e,a)=>({classGroupId:e,validator:a}),sS=(e=new Map,a=null,r)=>({nextPart:e,validators:a,classGroupId:r}),Zl="-",g0=[],YR="arbitrary..",PR=e=>{const a=KR(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return XR(c);const h=c.split(Zl),m=h[0]===""&&h.length>1?1:0;return lS(h,m,a)},getConflictingClassGroupIds:(c,h)=>{if(h){const m=o[c],p=r[c];return m?p?GR(p,m):m:p||g0}return r[c]||g0}}},lS=(e,a,r)=>{if(e.length-a===0)return r.classGroupId;const l=e[a],f=r.nextPart.get(l);if(f){const p=lS(e,a+1,f);if(p)return p}const c=r.validators;if(c===null)return;const h=a===0?e.join(Zl):e.slice(a).join(Zl),m=c.length;for(let p=0;p<m;p++){const y=c[p];if(y.validator(h))return y.classGroupId}},XR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),r=a.indexOf(":"),o=a.slice(0,r);return o?YR+o:void 0})(),KR=e=>{const{theme:a,classGroups:r}=e;return QR(r,a)},QR=(e,a)=>{const r=sS();for(const o in e){const l=e[o];zh(l,r,o,a)}return r},zh=(e,a,r,o)=>{const l=e.length;for(let f=0;f<l;f++){const c=e[f];FR(c,a,r,o)}},FR=(e,a,r,o)=>{if(typeof e=="string"){JR(e,a,r);return}if(typeof e=="function"){IR(e,a,r,o);return}WR(e,a,r,o)},JR=(e,a,r)=>{const o=e===""?a:uS(a,e);o.classGroupId=r},IR=(e,a,r,o)=>{if(eO(e)){zh(e(o),a,r,o);return}a.validators===null&&(a.validators=[]),a.validators.push(qR(r,e))},WR=(e,a,r,o)=>{const l=Object.entries(e),f=l.length;for(let c=0;c<f;c++){const[h,m]=l[c];zh(m,uS(a,h),r,o)}},uS=(e,a)=>{let r=e;const o=a.split(Zl),l=o.length;for(let f=0;f<l;f++){const c=o[f];let h=r.nextPart.get(c);h||(h=sS(),r.nextPart.set(c,h)),r=h}return r},eO=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),o=Object.create(null);const l=(f,c)=>{r[f]=c,a++,a>e&&(a=0,o=r,r=Object.create(null))};return{get(f){let c=r[f];if(c!==void 0)return c;if((c=o[f])!==void 0)return l(f,c),c},set(f,c){f in r?r[f]=c:l(f,c)}}},Dd="!",y0=":",nO=[],v0=(e,a,r,o,l)=>({modifiers:e,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:o,isExternal:l}),aO=e=>{const{prefix:a,experimentalParseClassName:r}=e;let o=l=>{const f=[];let c=0,h=0,m=0,p;const y=l.length;for(let E=0;E<y;E++){const O=l[E];if(c===0&&h===0){if(O===y0){f.push(l.slice(m,E)),m=E+1;continue}if(O==="/"){p=E;continue}}O==="["?c++:O==="]"?c--:O==="("?h++:O===")"&&h--}const v=f.length===0?l:l.slice(m);let S=v,x=!1;v.endsWith(Dd)?(S=v.slice(0,-1),x=!0):v.startsWith(Dd)&&(S=v.slice(1),x=!0);const R=p&&p>m?p-m:void 0;return v0(f,x,S,R)};if(a){const l=a+y0,f=o;o=c=>c.startsWith(l)?f(c.slice(l.length)):v0(nO,!1,c,void 0,!0)}if(r){const l=o;o=f=>r({className:f,parseClassName:l})}return o},iO=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{a.set(r,1e6+o)}),r=>{const o=[];let l=[];for(let f=0;f<r.length;f++){const c=r[f],h=c[0]==="[",m=a.has(c);h||m?(l.length>0&&(l.sort(),o.push(...l),l=[]),o.push(c)):l.push(c)}return l.length>0&&(l.sort(),o.push(...l)),o}},rO=e=>({cache:tO(e.cacheSize),parseClassName:aO(e),sortModifiers:iO(e),...PR(e)}),oO=/\s+/,sO=(e,a)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:f}=a,c=[],h=e.trim().split(oO);let m="";for(let p=h.length-1;p>=0;p-=1){const y=h[p],{isExternal:v,modifiers:S,hasImportantModifier:x,baseClassName:R,maybePostfixModifierPosition:E}=r(y);if(v){m=y+(m.length>0?" "+m:m);continue}let O=!!E,V=o(O?R.substring(0,E):R);if(!V){if(!O){m=y+(m.length>0?" "+m:m);continue}if(V=o(R),!V){m=y+(m.length>0?" "+m:m);continue}O=!1}const C=S.length===0?"":S.length===1?S[0]:f(S).join(":"),j=x?C+Dd:C,Q=j+V;if(c.indexOf(Q)>-1)continue;c.push(Q);const q=l(V,O);for(let I=0;I<q.length;++I){const F=q[I];c.push(j+F)}m=y+(m.length>0?" "+m:m)}return m},lO=(...e)=>{let a=0,r,o,l="";for(;a<e.length;)(r=e[a++])&&(o=cS(r))&&(l&&(l+=" "),l+=o);return l},cS=e=>{if(typeof e=="string")return e;let a,r="";for(let o=0;o<e.length;o++)e[o]&&(a=cS(e[o]))&&(r&&(r+=" "),r+=a);return r},uO=(e,...a)=>{let r,o,l,f;const c=m=>{const p=a.reduce((y,v)=>v(y),e());return r=rO(p),o=r.cache.get,l=r.cache.set,f=h,h(m)},h=m=>{const p=o(m);if(p)return p;const y=sO(m,r);return l(m,y),y};return f=c,(...m)=>f(lO(...m))},cO=[],mt=e=>{const a=r=>r[e]||cO;return a.isThemeGetter=!0,a},fS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fO=/^\d+\/\d+$/,dO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ar=e=>fO.test(e),ge=e=>!!e&&!Number.isNaN(Number(e)),ja=e=>!!e&&Number.isInteger(Number(e)),Qf=e=>e.endsWith("%")&&ge(e.slice(0,-1)),ea=e=>dO.test(e),yO=()=>!0,vO=e=>hO.test(e)&&!mO.test(e),hS=()=>!1,bO=e=>pO.test(e),SO=e=>gO.test(e),xO=e=>!te(e)&&!ne(e),TO=e=>xr(e,gS,hS),te=e=>fS.test(e),ci=e=>xr(e,yS,vO),Ff=e=>xr(e,zO,ge),b0=e=>xr(e,mS,hS),EO=e=>xr(e,pS,SO),Sl=e=>xr(e,vS,bO),ne=e=>dS.test(e),wo=e=>Tr(e,yS),_O=e=>Tr(e,CO),S0=e=>Tr(e,mS),wO=e=>Tr(e,gS),AO=e=>Tr(e,pS),xl=e=>Tr(e,vS,!0),xr=(e,a,r)=>{const o=fS.exec(e);return o?o[1]?a(o[1]):r(o[2]):!1},Tr=(e,a,r=!1)=>{const o=dS.exec(e);return o?o[1]?a(o[1]):r:!1},mS=e=>e==="position"||e==="percentage",pS=e=>e==="image"||e==="url",gS=e=>e==="length"||e==="size"||e==="bg-size",yS=e=>e==="length",zO=e=>e==="number",CO=e=>e==="family-name",vS=e=>e==="shadow",RO=()=>{const e=mt("color"),a=mt("font"),r=mt("text"),o=mt("font-weight"),l=mt("tracking"),f=mt("leading"),c=mt("breakpoint"),h=mt("container"),m=mt("spacing"),p=mt("radius"),y=mt("shadow"),v=mt("inset-shadow"),S=mt("text-shadow"),x=mt("drop-shadow"),R=mt("blur"),E=mt("perspective"),O=mt("aspect"),V=mt("ease"),C=mt("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...Q(),ne,te],I=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[ne,te,m],W=()=>[ar,"full","auto",...P()],xe=()=>[ja,"none","subgrid",ne,te],Ae=()=>["auto",{span:["full",ja,ne,te]},ja,ne,te],Ce=()=>[ja,"auto",ne,te],rt=()=>["auto","min","max","fr",ne,te],je=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...P()],X=()=>[ar,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Y=()=>[e,ne,te],ce=()=>[...Q(),S0,b0,{position:[ne,te]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",wO,TO,{size:[ne,te]}],Z=()=>[Qf,wo,ci],K=()=>["","none","full",p,ne,te],J=()=>["",ge,wo,ci],le=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[ge,Qf,S0,b0],ot=()=>["","none",R,ne,te],Re=()=>["none",ge,ne,te],qt=()=>["none",ge,ne,te],_n=()=>[ge,ne,te],wn=()=>[ar,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ea],breakpoint:[ea],color:[yO],container:[ea],"drop-shadow":[ea],ease:["in","out","in-out"],font:[xO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ea],shadow:[ea],spacing:["px",ge],text:[ea],"text-shadow":[ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ar,te,ne,O]}],container:["container"],columns:[{columns:[ge,te,ne,h]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[ja,"auto",ne,te]}],basis:[{basis:[ar,"full","auto",h,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,ar,"auto","initial","none",te]}],grow:[{grow:["",ge,ne,te]}],shrink:[{shrink:["",ge,ne,te]}],order:[{order:[ja,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":xe()}],"col-start-end":[{col:Ae()}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":xe()}],"row-start-end":[{row:Ae()}],"row-start":[{"row-start":Ce()}],"row-end":[{"row-end":Ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":rt()}],"auto-rows":[{"auto-rows":rt()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...je(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...je()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":je()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[h,"screen",...X()]}],"min-w":[{"min-w":[h,"screen","none",...X()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[c]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,wo,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ne,Ff]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qf,te]}],"font-family":[{font:[_O,te,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,ne,te]}],"line-clamp":[{"line-clamp":[ge,"none",ne,Ff]}],leading:[{leading:[f,...P()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",ne,ci]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[ge,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ja,ne,te],radial:["",ne,te],conic:[ja,ne,te]},AO,EO]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,ne,te]}],"outline-w":[{outline:["",ge,wo,ci]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",y,xl,Sl]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",v,xl,Sl]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[ge,ci]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",S,xl,Sl]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[ge,ne,te]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Q()}],"mask-image-conic-pos":[{"mask-conic":[ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:ot()}],brightness:[{brightness:[ge,ne,te]}],contrast:[{contrast:[ge,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",x,xl,Sl]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",ge,ne,te]}],"hue-rotate":[{"hue-rotate":[ge,ne,te]}],invert:[{invert:["",ge,ne,te]}],saturate:[{saturate:[ge,ne,te]}],sepia:[{sepia:["",ge,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":ot()}],"backdrop-brightness":[{"backdrop-brightness":[ge,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[ge,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ge,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ge,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",ge,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[ge,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[ge,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",ge,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ge,"initial",ne,te]}],ease:[{ease:["linear","initial",V,ne,te]}],delay:[{delay:[ge,ne,te]}],animate:[{animate:["none",C,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ne,te]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:qt()}],"scale-x":[{"scale-x":qt()}],"scale-y":[{"scale-y":qt()}],"scale-z":[{"scale-z":qt()}],"scale-3d":["scale-3d"],skew:[{skew:_n()}],"skew-x":[{"skew-x":_n()}],"skew-y":[{"skew-y":_n()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wn()}],"translate-x":[{"translate-x":wn()}],"translate-y":[{"translate-y":wn()}],"translate-z":[{"translate-z":wn()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,te]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[ge,wo,ci,Ff]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},dr=uO(RO);function ir({label:e,error:a,helperText:r,className:o,...l}){return L.jsxs("div",{className:"flex flex-col gap-1.5",children:[L.jsx("label",{className:"text-sm font-medium text-matrix-highlight/80",children:e}),L.jsx("input",{className:dr("bg-matrix-base border border-matrix-primary text-matrix-highlight placeholder-matrix-secondary/50 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-matrix-highlight focus:border-matrix-highlight transition-colors",a&&"border-red-500 focus:border-red-500 focus:ring-red-500",o),...l}),r&&!a&&L.jsx("p",{className:"text-xs text-matrix-secondary",children:r}),a&&L.jsx("p",{className:"text-xs text-red-500",children:a})]})}function x0({label:e,options:a,error:r,helperText:o,className:l,...f}){return L.jsxs("div",{className:"flex flex-col gap-1.5",children:[L.jsx("label",{className:"text-sm font-medium text-matrix-highlight/80",children:e}),L.jsx("select",{className:dr("bg-matrix-base border border-matrix-primary text-matrix-highlight rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-matrix-highlight focus:border-matrix-highlight transition-colors appearance-none",r&&"border-red-500 focus:border-red-500 focus:ring-red-500",l),...f,children:a.map(c=>L.jsx("option",{value:c.value,className:"bg-matrix-base",children:c.label},c.value))}),o&&!r&&L.jsx("p",{className:"text-xs text-matrix-secondary",children:o}),r&&L.jsx("p",{className:"text-xs text-red-500",children:r})]})}function T0({label:e,error:a,helperText:r,className:o,...l}){return L.jsxs("div",{className:"flex flex-col gap-1.5",children:[L.jsx("label",{className:"text-sm font-medium text-matrix-highlight/80",children:e}),L.jsx("input",{type:"number",className:dr("bg-matrix-base border border-matrix-primary text-matrix-highlight placeholder-matrix-secondary/50 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-matrix-highlight focus:border-matrix-highlight transition-colors",a&&"border-red-500 focus:border-red-500 focus:ring-red-500",o),...l}),r&&!a&&L.jsx("p",{className:"text-xs text-matrix-secondary",children:r}),a&&L.jsx("p",{className:"text-xs text-red-500",children:a})]})}function Jf({label:e,checked:a,onChange:r,helperText:o,disabled:l}){return L.jsxs("div",{className:"flex items-center justify-between",children:[L.jsxs("div",{className:"flex flex-col",children:[L.jsx("span",{className:dr("text-sm font-medium text-matrix-highlight/80",l&&"opacity-50"),children:e}),o&&L.jsx("span",{className:"text-xs text-matrix-secondary",children:o})]}),L.jsx("button",{type:"button",role:"switch","aria-checked":a,onClick:()=>!l&&r(!a),className:dr("relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-matrix-highlight focus:ring-offset-2 focus:ring-offset-black",a?"bg-matrix-highlight":"bg-matrix-primary",l&&"opacity-50 cursor-not-allowed"),children:L.jsx("span",{className:dr("inline-block h-4 w-4 transform rounded-full bg-black transition-transform",a?"translate-x-6":"translate-x-1")})})]})}const E0="/api",_0={fetchConfig:async()=>{const e=await fetch(`${E0}/config`);if(!e.ok)throw new Error("Failed to fetch configuration");return e.json()},updateConfig:async e=>{const a=await fetch(`${E0}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){const r=await a.json(),o=new Error(r.error||"Failed to update configuration");throw o.details=r.details,o}return a.json()}};function G(e,a,r){function o(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),a(h,m);const p=c.prototype,y=Object.keys(p);for(let v=0;v<y.length;v++){const S=y[v];S in h||(h[S]=p[S].bind(h))}}const l=r?.Parent??Object;class f extends l{}Object.defineProperty(f,"name",{value:e});function c(h){var m;const p=r?.Parent?new f:this;o(p,h),(m=p._zod).deferred??(m.deferred=[]);for(const y of p._zod.deferred)y();return p}return Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class hr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class bS extends Error{constructor(a){super(`Encountered unidirectional transform during encode: ${a}`),this.name="ZodEncodeError"}}const SS={};function pi(e){return SS}function xS(e){const a=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,l])=>a.indexOf(+o)===-1).map(([o,l])=>l)}function Nd(e,a){return typeof a=="bigint"?a.toString():a}function Ch(e){return{get value(){{const a=e();return Object.defineProperty(this,"value",{value:a}),a}}}}function Rh(e){return e==null}function Oh(e){const a=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(a,r)}function OO(e,a){const r=(e.toString().split(".")[1]||"").length,o=a.toString();let l=(o.split(".")[1]||"").length;if(l===0&&/\d?e-\d?/.test(o)){const m=o.match(/\d?e-(\d?)/);m?.[1]&&(l=Number.parseInt(m[1]))}const f=r>l?r:l,c=Number.parseInt(e.toFixed(f).replace(".","")),h=Number.parseInt(a.toFixed(f).replace(".",""));return c%h/10**f}const w0=Symbol("evaluating");function Ne(e,a,r){let o;Object.defineProperty(e,a,{get(){if(o!==w0)return o===void 0&&(o=w0,o=r()),o},set(l){Object.defineProperty(e,a,{value:l})},configurable:!0})}function yi(e,a,r){Object.defineProperty(e,a,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ga(...e){const a={};for(const r of e){const o=Object.getOwnPropertyDescriptors(r);Object.assign(a,o)}return Object.defineProperties({},a)}function A0(e){return JSON.stringify(e)}function MO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const TS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const DO=Ch(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ho(e){if(Hl(e)===!1)return!1;const a=e.constructor;if(a===void 0||typeof a!="function")return!0;const r=a.prototype;return!(Hl(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ES(e){return Ho(e)?{...e}:Array.isArray(e)?[...e]:e}const NO=new Set(["string","number","symbol"]);function Il(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qa(e,a,r){const o=new e._zod.constr(a??e._zod.def);return(!a||r?.parent)&&(o._zod.parent=e),o}function se(e){const a=e;if(!a)return{};if(typeof a=="string")return{error:()=>a};if(a?.message!==void 0){if(a?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");a.error=a.message}return delete a.message,typeof a.error=="string"?{...a,error:()=>a.error}:a}function jO(e){return Object.keys(e).filter(a=>e[a]._zod.optin==="optional"&&e[a]._zod.optout==="optional")}const kO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function VO(e,a){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const f=Ga(e._zod.def,{get shape(){const c={};for(const h in a){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&(c[h]=r.shape[h])}return yi(this,"shape",c),c},checks:[]});return qa(e,f)}function UO(e,a){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const f=Ga(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const h in a){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&delete c[h]}return yi(this,"shape",c),c},checks:[]});return qa(e,f)}function LO(e,a){if(!Ho(a))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const f=e._zod.def.shape;for(const c in a)if(Object.getOwnPropertyDescriptor(f,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const l=Ga(e._zod.def,{get shape(){const f={...e._zod.def.shape,...a};return yi(this,"shape",f),f}});return qa(e,l)}function BO(e,a){if(!Ho(a))throw new Error("Invalid input to safeExtend: expected a plain object");const r=Ga(e._zod.def,{get shape(){const o={...e._zod.def.shape,...a};return yi(this,"shape",o),o}});return qa(e,r)}function ZO(e,a){const r=Ga(e._zod.def,{get shape(){const o={...e._zod.def.shape,...a._zod.def.shape};return yi(this,"shape",o),o},get catchall(){return a._zod.def.catchall},checks:[]});return qa(e,r)}function HO(e,a,r){const l=a._zod.def.checks;if(l&&l.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Ga(a._zod.def,{get shape(){const h=a._zod.def.shape,m={...h};if(r)for(const p in r){if(!(p in h))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(m[p]=e?new e({type:"optional",innerType:h[p]}):h[p])}else for(const p in h)m[p]=e?new e({type:"optional",innerType:h[p]}):h[p];return yi(this,"shape",m),m},checks:[]});return qa(a,c)}function $O(e,a,r){const o=Ga(a._zod.def,{get shape(){const l=a._zod.def.shape,f={...l};if(r)for(const c in r){if(!(c in f))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(f[c]=new e({type:"nonoptional",innerType:l[c]}))}else for(const c in l)f[c]=new e({type:"nonoptional",innerType:l[c]});return yi(this,"shape",f),f}});return qa(a,o)}function ur(e,a=0){if(e.aborted===!0)return!0;for(let r=a;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function _S(e,a){return a.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Tl(e){return typeof e=="string"?e:e?.message}function gi(e,a,r){const o={...e,path:e.path??[]};if(!e.message){const l=Tl(e.inst?._zod.def?.error?.(e))??Tl(a?.error?.(e))??Tl(r.customError?.(e))??Tl(r.localeError?.(e))??"Invalid input";o.message=l}return delete o.inst,delete o.continue,a?.reportInput||delete o.input,o}function Mh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function $o(...e){const[a,r,o]=e;return typeof a=="string"?{message:a,code:"custom",input:r,inst:o}:{...a}}const wS=(e,a)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:a,enumerable:!1}),e.message=JSON.stringify(a,Nd,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},AS=G("$ZodError",wS),zS=G("$ZodError",wS,{Parent:Error});function GO(e,a=r=>r.message){const r={},o=[];for(const l of e.issues)l.path.length>0?(r[l.path[0]]=r[l.path[0]]||[],r[l.path[0]].push(a(l))):o.push(a(l));return{formErrors:o,fieldErrors:r}}function qO(e,a=r=>r.message){const r={_errors:[]},o=l=>{for(const f of l.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(c=>o({issues:c}));else if(f.code==="invalid_key")o({issues:f.issues});else if(f.code==="invalid_element")o({issues:f.issues});else if(f.path.length===0)r._errors.push(a(f));else{let c=r,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(a(f))):c[m]=c[m]||{_errors:[]},c=c[m],h++}}};return o(e),r}const Dh=e=>(a,r,o,l)=>{const f=o?Object.assign(o,{async:!1}):{async:!1},c=a._zod.run({value:r,issues:[]},f);if(c instanceof Promise)throw new hr;if(c.issues.length){const h=new(l?.Err??e)(c.issues.map(m=>gi(m,f,pi())));throw TS(h,l?.callee),h}return c.value},Nh=e=>async(a,r,o,l)=>{const f=o?Object.assign(o,{async:!0}):{async:!0};let c=a._zod.run({value:r,issues:[]},f);if(c instanceof Promise&&(c=await c),c.issues.length){const h=new(l?.Err??e)(c.issues.map(m=>gi(m,f,pi())));throw TS(h,l?.callee),h}return c.value},Wl=e=>(a,r,o)=>{const l=o?{...o,async:!1}:{async:!1},f=a._zod.run({value:r,issues:[]},l);if(f instanceof Promise)throw new hr;return f.issues.length?{success:!1,error:new(e??AS)(f.issues.map(c=>gi(c,l,pi())))}:{success:!0,data:f.value}},YO=Wl(zS),eu=e=>async(a,r,o)=>{const l=o?Object.assign(o,{async:!0}):{async:!0};let f=a._zod.run({value:r,issues:[]},l);return f instanceof Promise&&(f=await f),f.issues.length?{success:!1,error:new e(f.issues.map(c=>gi(c,l,pi())))}:{success:!0,data:f.value}},PO=eu(zS),XO=e=>(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Dh(e)(a,r,l)},KO=e=>(a,r,o)=>Dh(e)(a,r,o),QO=e=>async(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Nh(e)(a,r,l)},FO=e=>async(a,r,o)=>Nh(e)(a,r,o),JO=e=>(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Wl(e)(a,r,l)},IO=e=>(a,r,o)=>Wl(e)(a,r,o),WO=e=>async(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return eu(e)(a,r,l)},eM=e=>async(a,r,o)=>eu(e)(a,r,o),tM=/^[cC][^\s-]{8,}$/,nM=/^[0-9a-z]+$/,aM=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,iM=/^[0-9a-vA-V]{20}$/,rM=/^[A-Za-z0-9]{27}$/,oM=/^[a-zA-Z0-9_-]{21}$/,sM=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lM=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,z0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,uM=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function fM(){return new RegExp(cM,"u")}const dM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,hM=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,mM=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,pM=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gM=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,CS=/^[A-Za-z0-9_-]*$/,yM=/^\+[1-9]\d{6,14}$/,RS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vM=new RegExp(`^${RS}$`);function OS(e){const a="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${a}`:e.precision===0?`${a}:[0-5]\\d`:`${a}:[0-5]\\d\\.\\d{${e.precision}}`:`${a}(?::[0-5]\\d(?:\\.\\d+)?)?`}function bM(e){return new RegExp(`^${OS(e)}$`)}function SM(e){const a=OS({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${a}(?:${r.join("|")})`;return new RegExp(`^${RS}T(?:${o})$`)}const xM=e=>{const a=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${a}$`)},TM=/^-?\d+$/,EM=/^-?\d+(?:\.\d+)?$/,_M=/^(?:true|false)$/i,wM=/^[^A-Z]*$/,AM=/^[^a-z]*$/,Gt=G("$ZodCheck",(e,a)=>{var r;e._zod??(e._zod={}),e._zod.def=a,(r=e._zod).onattach??(r.onattach=[])}),MS={number:"number",bigint:"bigint",object:"date"},DS=G("$ZodCheckLessThan",(e,a)=>{Gt.init(e,a);const r=MS[typeof a.value];e._zod.onattach.push(o=>{const l=o._zod.bag,f=(a.inclusive?l.maximum:l.exclusiveMaximum)??Number.POSITIVE_INFINITY;a.value<f&&(a.inclusive?l.maximum=a.value:l.exclusiveMaximum=a.value)}),e._zod.check=o=>{(a.inclusive?o.value<=a.value:o.value<a.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof a.value=="object"?a.value.getTime():a.value,input:o.value,inclusive:a.inclusive,inst:e,continue:!a.abort})}}),NS=G("$ZodCheckGreaterThan",(e,a)=>{Gt.init(e,a);const r=MS[typeof a.value];e._zod.onattach.push(o=>{const l=o._zod.bag,f=(a.inclusive?l.minimum:l.exclusiveMinimum)??Number.NEGATIVE_INFINITY;a.value>f&&(a.inclusive?l.minimum=a.value:l.exclusiveMinimum=a.value)}),e._zod.check=o=>{(a.inclusive?o.value>=a.value:o.value>a.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof a.value=="object"?a.value.getTime():a.value,input:o.value,inclusive:a.inclusive,inst:e,continue:!a.abort})}}),zM=G("$ZodCheckMultipleOf",(e,a)=>{Gt.init(e,a),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=a.value)}),e._zod.check=r=>{if(typeof r.value!=typeof a.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%a.value===BigInt(0):OO(r.value,a.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:a.value,input:r.value,inst:e,continue:!a.abort})}}),CM=G("$ZodCheckNumberFormat",(e,a)=>{Gt.init(e,a),a.format=a.format||"float64";const r=a.format?.includes("int"),o=r?"int":"number",[l,f]=kO[a.format];e._zod.onattach.push(c=>{const h=c._zod.bag;h.format=a.format,h.minimum=l,h.maximum=f,r&&(h.pattern=TM)}),e._zod.check=c=>{const h=c.value;if(r){if(!Number.isInteger(h)){c.issues.push({expected:o,format:a.format,code:"invalid_type",continue:!1,input:h,inst:e});return}if(!Number.isSafeInteger(h)){h>0?c.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!a.abort}):c.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!a.abort});return}}h<l&&c.issues.push({origin:"number",input:h,code:"too_small",minimum:l,inclusive:!0,inst:e,continue:!a.abort}),h>f&&c.issues.push({origin:"number",input:h,code:"too_big",maximum:f,inclusive:!0,inst:e,continue:!a.abort})}}),RM=G("$ZodCheckMaxLength",(e,a)=>{var r;Gt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Rh(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{const l=o._zod.bag.maximum??Number.POSITIVE_INFINITY;a.maximum<l&&(o._zod.bag.maximum=a.maximum)}),e._zod.check=o=>{const l=o.value;if(l.length<=a.maximum)return;const c=Mh(l);o.issues.push({origin:c,code:"too_big",maximum:a.maximum,inclusive:!0,input:l,inst:e,continue:!a.abort})}}),OM=G("$ZodCheckMinLength",(e,a)=>{var r;Gt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Rh(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{const l=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;a.minimum>l&&(o._zod.bag.minimum=a.minimum)}),e._zod.check=o=>{const l=o.value;if(l.length>=a.minimum)return;const c=Mh(l);o.issues.push({origin:c,code:"too_small",minimum:a.minimum,inclusive:!0,input:l,inst:e,continue:!a.abort})}}),MM=G("$ZodCheckLengthEquals",(e,a)=>{var r;Gt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Rh(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{const l=o._zod.bag;l.minimum=a.length,l.maximum=a.length,l.length=a.length}),e._zod.check=o=>{const l=o.value,f=l.length;if(f===a.length)return;const c=Mh(l),h=f>a.length;o.issues.push({origin:c,...h?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!a.abort})}}),tu=G("$ZodCheckStringFormat",(e,a)=>{var r,o;Gt.init(e,a),e._zod.onattach.push(l=>{const f=l._zod.bag;f.format=a.format,a.pattern&&(f.patterns??(f.patterns=new Set),f.patterns.add(a.pattern))}),a.pattern?(r=e._zod).check??(r.check=l=>{a.pattern.lastIndex=0,!a.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:a.format,input:l.value,...a.pattern?{pattern:a.pattern.toString()}:{},inst:e,continue:!a.abort})}):(o=e._zod).check??(o.check=()=>{})}),DM=G("$ZodCheckRegex",(e,a)=>{tu.init(e,a),e._zod.check=r=>{a.pattern.lastIndex=0,!a.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:a.pattern.toString(),inst:e,continue:!a.abort})}}),NM=G("$ZodCheckLowerCase",(e,a)=>{a.pattern??(a.pattern=wM),tu.init(e,a)}),jM=G("$ZodCheckUpperCase",(e,a)=>{a.pattern??(a.pattern=AM),tu.init(e,a)}),kM=G("$ZodCheckIncludes",(e,a)=>{Gt.init(e,a);const r=Il(a.includes),o=new RegExp(typeof a.position=="number"?`^.{${a.position}}${r}`:r);a.pattern=o,e._zod.onattach.push(l=>{const f=l._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(o)}),e._zod.check=l=>{l.value.includes(a.includes,a.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:a.includes,input:l.value,inst:e,continue:!a.abort})}}),VM=G("$ZodCheckStartsWith",(e,a)=>{Gt.init(e,a);const r=new RegExp(`^${Il(a.prefix)}.*`);a.pattern??(a.pattern=r),e._zod.onattach.push(o=>{const l=o._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(a.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:a.prefix,input:o.value,inst:e,continue:!a.abort})}}),UM=G("$ZodCheckEndsWith",(e,a)=>{Gt.init(e,a);const r=new RegExp(`.*${Il(a.suffix)}$`);a.pattern??(a.pattern=r),e._zod.onattach.push(o=>{const l=o._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(a.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:a.suffix,input:o.value,inst:e,continue:!a.abort})}}),LM=G("$ZodCheckOverwrite",(e,a)=>{Gt.init(e,a),e._zod.check=r=>{r.value=a.tx(r.value)}});class BM{constructor(a=[]){this.content=[],this.indent=0,this&&(this.args=a)}indented(a){this.indent+=1,a(this),this.indent-=1}write(a){if(typeof a=="function"){a(this,{execution:"sync"}),a(this,{execution:"async"});return}const o=a.split(`
|
|
11
|
+
Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let S=ua(),x;if(a){let C=typeof a=="string"?pr(a):a;Pe(y==="/"||C.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 "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=S;let R=x.pathname||"/",E=R;if(y!=="/"){let C=y.replace(/^\//,"").split("/");E="/"+R.replace(/^\//,"").split("/").slice(C.length).join("/")}let O=F0(e,{pathname:E});En(v||O!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),En(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.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 V=f_(O&&O.map(C=>Object.assign({},C,{params:Object.assign({},m,C.params),pathname:ra([y,f.encodeLocation?f.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?y:ra([y,f.encodeLocation?f.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),c,r,o,l);return a&&V?A.createElement(qo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},V):V}function s_(){let e=g_(),a=KE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:f},"ErrorBoundary")," or"," ",A.createElement("code",{style:f},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},a),r?A.createElement("pre",{style:l},r):null,c)}var l_=A.createElement(s_,null),lb=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,a){return a.location!==e.location||a.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=a_(e.digest);r&&(e=r)}let a=e!==void 0?A.createElement(Vn.Provider,{value:this.props.routeContext},A.createElement($d.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(u_,{error:e},a):a}};lb.contextType=JE;var Ef=new WeakMap;function u_({children:e,error:a}){let{basename:r}=A.useContext(en);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let o=n_(a.digest);if(o){let l=Ef.get(a);if(l)throw l;let f=eb(o.location,r);if(W0&&!Ef.get(a))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw Ef.set(a,c),c}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return e}function c_({routeContext:e,match:a,children:r}){let o=A.useContext(gr);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),A.createElement(Vn.Provider,{value:e},r)}function f_(e,a=[],r=null,o=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let f=e,c=r?.errors;if(c!=null){let y=f.findIndex(v=>v.route.id&&c?.[v.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),f=f.slice(0,Math.min(f.length,y+1))}let h=!1,m=-1;if(r)for(let y=0;y<f.length;y++){let v=f[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=y),v.route.id){let{loaderData:S,errors:x}=r,R=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!x||x[v.route.id]===void 0);if(v.route.lazy||R){h=!0,m>=0?f=f.slice(0,m+1):f=[f[0]];break}}}let p=r&&o?(y,v)=>{o(y,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:QE(r.matches),errorInfo:v})}:void 0;return f.reduceRight((y,v,S)=>{let x,R=!1,E=null,O=null;r&&(x=c&&v.route.id?c[v.route.id]:void 0,E=v.route.errorElement||l_,h&&(m<0&&S===0?(ub("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,O=null):m===S&&(R=!0,O=v.route.hydrateFallbackElement||null)));let V=a.concat(f.slice(0,S+1)),C=()=>{let j;return x?j=E:R?j=O:v.route.Component?j=A.createElement(v.route.Component,null):v.route.element?j=v.route.element:j=y,A.createElement(c_,{match:v,routeContext:{outlet:y,matches:V,isDataRoute:r!=null},children:j})};return r&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?A.createElement(lb,{location:r.location,revalidation:r.revalidation,component:E,error:x,children:C(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:p}):C()},null)}function Gd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d_(e){let a=A.useContext(gr);return Pe(a,Gd(e)),a}function h_(e){let a=A.useContext(Pl);return Pe(a,Gd(e)),a}function m_(e){let a=A.useContext(Vn);return Pe(a,Gd(e)),a}function qd(e){let a=m_(e),r=a.matches[a.matches.length-1];return Pe(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function p_(){return qd("useRouteId")}function g_(){let e=A.useContext($d),a=h_("useRouteError"),r=qd("useRouteError");return e!==void 0?e:a.errors?.[r]}function y_(){let{router:e}=d_("useNavigate"),a=qd("useNavigate"),r=A.useRef(!1);return rb(()=>{r.current=!0}),A.useCallback(async(l,f={})=>{En(r.current,ib),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:a,...f}))},[e,a])}var Xy={};function ub(e,a,r){!a&&!Xy[e]&&(Xy[e]=!0,En(!1,r))}A.memo(v_);function v_({routes:e,future:a,state:r,onError:o}){return sb(e,void 0,r,o,a)}function b_({to:e,replace:a,state:r,relative:o}){Pe(yr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=A.useContext(en);En(!l,"<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}=A.useContext(Vn),{pathname:c}=ua(),h=ob(),m=Hd(e,Zd(f),c,o==="path"),p=JSON.stringify(m);return A.useEffect(()=>{h(JSON.parse(p),{replace:a,state:r,relative:o})},[h,p,o,a,r]),null}function Ao(e){Pe(!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 S_({basename:e="/",children:a=null,location:r,navigationType:o="POP",navigator:l,static:f=!1,unstable_useTransitions:c}){Pe(!yr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),m=A.useMemo(()=>({basename:h,navigator:l,static:f,unstable_useTransitions:c,future:{}}),[h,l,f,c]);typeof r=="string"&&(r=pr(r));let{pathname:p="/",search:y="",hash:v="",state:S=null,key:x="default"}=r,R=A.useMemo(()=>{let E=sa(p,h);return E==null?null:{location:{pathname:E,search:y,hash:v,state:S,key:x},navigationType:o}},[h,p,y,v,S,x,o]);return En(R!=null,`<Router basename="${h}"> is not able to match the URL "${p}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:A.createElement(en.Provider,{value:m},A.createElement(qo.Provider,{children:a,value:R}))}function x_({children:e,location:a}){return o_(td(e),a)}function td(e,a=[]){let r=[];return A.Children.forEach(e,(o,l)=>{if(!A.isValidElement(o))return;let f=[...a,l];if(o.type===A.Fragment){r.push.apply(r,td(o.props.children,f));return}Pe(o.type===Ao,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let c={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(c.children=td(o.props.children,f)),r.push(c)}),r}var Al="get",zl="application/x-www-form-urlencoded";function Xl(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function T_(e){return Xl(e)&&e.tagName.toLowerCase()==="button"}function E_(e){return Xl(e)&&e.tagName.toLowerCase()==="form"}function __(e){return Xl(e)&&e.tagName.toLowerCase()==="input"}function w_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A_(e,a){return e.button===0&&(!a||a==="_self")&&!w_(e)}var pl=null;function z_(){if(pl===null)try{new FormData(document.createElement("form"),0),pl=!1}catch{pl=!0}return pl}var C_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _f(e){return e!=null&&!C_.has(e)?(En(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zl}"`),null):e}function R_(e,a){let r,o,l,f,c;if(E_(e)){let h=e.getAttribute("action");o=h?sa(h,a):null,r=e.getAttribute("method")||Al,l=_f(e.getAttribute("enctype"))||zl,f=new FormData(e)}else if(T_(e)||__(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||h.getAttribute("action");if(o=m?sa(m,a):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||Al,l=_f(e.getAttribute("formenctype"))||_f(h.getAttribute("enctype"))||zl,f=new FormData(h,e),!z_()){let{name:p,type:y,value:v}=e;if(y==="image"){let S=p?`${p}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else p&&f.append(p,v)}}else{if(Xl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Al,o=null,l=zl,c=e}return f&&l==="text/plain"&&(c=f,f=void 0),{action:o,method:r.toLowerCase(),encType:l,formData:f,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yd(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function O_(e,a,r,o){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${o}`:l.pathname=`${l.pathname}.${o}`:l.pathname==="/"?l.pathname=`_root.${o}`:a&&sa(l.pathname,a)==="/"?l.pathname=`${a.replace(/\/$/,"")}/_root.${o}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${o}`,l}async function M_(e,a){if(e.id in a)return a[e.id];try{let r=await import(e.module);return a[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function D_(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function N_(e,a,r){let o=await Promise.all(e.map(async l=>{let f=a.routes[l.route.id];if(f){let c=await M_(f,r);return c.links?c.links():[]}return[]}));return U_(o.flat(1).filter(D_).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Ky(e,a,r,o,l,f){let c=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,h=(m,p)=>r[p].pathname!==m.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==m.params["*"];return f==="assets"?a.filter((m,p)=>c(m,p)||h(m,p)):f==="data"?a.filter((m,p)=>{let y=o.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(c(m,p)||h(m,p))return!0;if(m.route.shouldRevalidate){let v=m.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function j_(e,a,{includeHydrateFallback:r}={}){return k_(e.map(o=>{let l=a.routes[o.route.id];if(!l)return[];let f=[l.module];return l.clientActionModule&&(f=f.concat(l.clientActionModule)),l.clientLoaderModule&&(f=f.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(f=f.concat(l.hydrateFallbackModule)),l.imports&&(f=f.concat(l.imports)),f}).flat(1))}function k_(e){return[...new Set(e)]}function V_(e){let a={},r=Object.keys(e).sort();for(let o of r)a[o]=e[o];return a}function U_(e,a){let r=new Set;return new Set(a),e.reduce((o,l)=>{let f=JSON.stringify(V_(l));return r.has(f)||(r.add(f),o.push({key:f,link:l})),o},[])}function cb(){let e=A.useContext(gr);return Yd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function L_(){let e=A.useContext(Pl);return Yd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Pd=A.createContext(void 0);Pd.displayName="FrameworkContext";function fb(){let e=A.useContext(Pd);return Yd(e,"You must render this element inside a <HydratedRouter> element"),e}function B_(e,a){let r=A.useContext(Pd),[o,l]=A.useState(!1),[f,c]=A.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:v}=a,S=A.useRef(null);A.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let E=V=>{V.forEach(C=>{c(C.isIntersecting)})},O=new IntersectionObserver(E,{threshold:.5});return S.current&&O.observe(S.current),()=>{O.disconnect()}}},[e]),A.useEffect(()=>{if(o){let E=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(E)}}},[o]);let x=()=>{l(!0)},R=()=>{l(!1),c(!1)};return r?e!=="intent"?[f,S,{}]:[f,S,{onFocus:To(h,x),onBlur:To(m,R),onMouseEnter:To(p,x),onMouseLeave:To(y,R),onTouchStart:To(v,x)}]:[!1,S,{}]}function To(e,a){return r=>{e&&e(r),r.defaultPrevented||a(r)}}function Z_({page:e,...a}){let{router:r}=cb(),o=A.useMemo(()=>F0(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?A.createElement($_,{page:e,matches:o,...a}):null}function H_(e){let{manifest:a,routeModules:r}=fb(),[o,l]=A.useState([]);return A.useEffect(()=>{let f=!1;return N_(e,a,r).then(c=>{f||l(c)}),()=>{f=!0}},[e,a,r]),o}function $_({page:e,matches:a,...r}){let o=ua(),{future:l,manifest:f,routeModules:c}=fb(),{basename:h}=cb(),{loaderData:m,matches:p}=L_(),y=A.useMemo(()=>Ky(e,a,p,f,o,"data"),[e,a,p,f,o]),v=A.useMemo(()=>Ky(e,a,p,f,o,"assets"),[e,a,p,f,o]),S=A.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let E=new Set,O=!1;if(a.forEach(C=>{let j=f.routes[C.route.id];!j||!j.hasLoader||(!y.some(Q=>Q.route.id===C.route.id)&&C.route.id in m&&c[C.route.id]?.shouldRevalidate||j.hasClientLoader?O=!0:E.add(C.route.id))}),E.size===0)return[];let V=O_(e,h,l.unstable_trailingSlashAwareDataRequests,"data");return O&&E.size>0&&V.searchParams.set("_routes",a.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[V.pathname+V.search]},[h,l.unstable_trailingSlashAwareDataRequests,m,o,f,y,a,e,c]),x=A.useMemo(()=>j_(v,f),[v,f]),R=H_(v);return A.createElement(A.Fragment,null,S.map(E=>A.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),x.map(E=>A.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),R.map(({key:E,link:O})=>A.createElement("link",{key:E,nonce:r.nonce,...O,crossOrigin:O.crossOrigin??r.crossOrigin})))}function G_(...e){return a=>{e.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var q_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{q_&&(window.__reactRouterVersion="7.13.0")}catch{}function Y_({basename:e,children:a,unstable_useTransitions:r,window:o}){let l=A.useRef();l.current==null&&(l.current=_E({window:o,v5Compat:!0}));let f=l.current,[c,h]=A.useState({action:f.action,location:f.location}),m=A.useCallback(p=>{r===!1?h(p):A.startTransition(()=>h(p))},[r]);return A.useLayoutEffect(()=>f.listen(m),[f,m]),A.createElement(S_,{basename:e,children:a,location:c.location,navigationType:c.action,navigator:f,unstable_useTransitions:r})}var db=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xd=A.forwardRef(function({onClick:a,discover:r="render",prefetch:o="none",relative:l,reloadDocument:f,replace:c,state:h,target:m,to:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S,...x},R){let{basename:E,unstable_useTransitions:O}=A.useContext(en),V=typeof p=="string"&&db.test(p),C=eb(p,E);p=C.to;let j=i_(p,{relative:l}),[Q,q,I]=B_(o,x),F=Q_(p,{replace:c,state:h,target:m,preventScrollReset:y,relative:l,viewTransition:v,unstable_defaultShouldRevalidate:S,unstable_useTransitions:O});function P(xe){a&&a(xe),xe.defaultPrevented||F(xe)}let W=A.createElement("a",{...x,...I,href:C.absoluteURL||j,onClick:C.isExternal||f?a:P,ref:G_(R,q),target:m,"data-discover":!V&&r==="render"?"true":void 0});return Q&&!V?A.createElement(A.Fragment,null,W,A.createElement(Z_,{page:j})):W});Xd.displayName="Link";var P_=A.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:o="",end:l=!1,style:f,to:c,viewTransition:h,children:m,...p},y){let v=Yo(c,{relative:p.relative}),S=ua(),x=A.useContext(Pl),{navigator:R,basename:E}=A.useContext(en),O=x!=null&&ew(v)&&h===!0,V=R.encodeLocation?R.encodeLocation(v).pathname:v.pathname,C=S.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(C=C.toLowerCase(),j=j?j.toLowerCase():null,V=V.toLowerCase()),j&&E&&(j=sa(j,E)||j);const Q=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let q=C===V||!l&&C.startsWith(V)&&C.charAt(Q)==="/",I=j!=null&&(j===V||!l&&j.startsWith(V)&&j.charAt(V.length)==="/"),F={isActive:q,isPending:I,isTransitioning:O},P=q?a:void 0,W;typeof o=="function"?W=o(F):W=[o,q?"active":null,I?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let xe=typeof f=="function"?f(F):f;return A.createElement(Xd,{...p,"aria-current":P,className:W,ref:y,style:xe,to:c,viewTransition:h},typeof m=="function"?m(F):m)});P_.displayName="NavLink";var X_=A.forwardRef(({discover:e="render",fetcherKey:a,navigate:r,reloadDocument:o,replace:l,state:f,method:c=Al,action:h,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S,...x},R)=>{let{unstable_useTransitions:E}=A.useContext(en),O=I_(),V=W_(h,{relative:p}),C=c.toLowerCase()==="get"?"get":"post",j=typeof h=="string"&&db.test(h),Q=q=>{if(m&&m(q),q.defaultPrevented)return;q.preventDefault();let I=q.nativeEvent.submitter,F=I?.getAttribute("formmethod")||c,P=()=>O(I||q.currentTarget,{fetcherKey:a,method:F,navigate:r,replace:l,state:f,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:S});E&&r!==!1?A.startTransition(()=>P()):P()};return A.createElement("form",{ref:R,method:C,action:V,onSubmit:o?m:Q,...x,"data-discover":!j&&e==="render"?"true":void 0})});X_.displayName="Form";function K_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hb(e){let a=A.useContext(gr);return Pe(a,K_(e)),a}function Q_(e,{target:a,replace:r,state:o,preventScrollReset:l,relative:f,viewTransition:c,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let p=ob(),y=ua(),v=Yo(e,{relative:f});return A.useCallback(S=>{if(A_(S,a)){S.preventDefault();let x=r!==void 0?r:Vo(y)===Vo(v),R=()=>p(e,{replace:x,state:o,preventScrollReset:l,relative:f,viewTransition:c,unstable_defaultShouldRevalidate:h});m?A.startTransition(()=>R()):R()}},[y,p,v,r,o,a,e,l,f,c,h,m])}var F_=0,J_=()=>`__${String(++F_)}__`;function I_(){let{router:e}=hb("useSubmit"),{basename:a}=A.useContext(en),r=p_(),o=e.fetch,l=e.navigate;return A.useCallback(async(f,c={})=>{let{action:h,method:m,encType:p,formData:y,body:v}=R_(f,a);if(c.navigate===!1){let S=c.fetcherKey||J_();await o(S,r,c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||m,formEncType:c.encType||p,flushSync:c.flushSync})}else await l(c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:v,formMethod:c.method||m,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[o,l,a,r])}function W_(e,{relative:a}={}){let{basename:r}=A.useContext(en),o=A.useContext(Vn);Pe(o,"useFormAction must be used inside a RouteContext");let[l]=o.matches.slice(-1),f={...Yo(e||".",{relative:a})},c=ua();if(e==null){f.search=c.search;let h=new URLSearchParams(f.search),m=h.getAll("index");if(m.some(y=>y==="")){h.delete("index"),m.filter(v=>v).forEach(v=>h.append("index",v));let y=h.toString();f.search=y?`?${y}`:""}}return(!e||e===".")&&l.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:ra([r,f.pathname])),Vo(f)}function ew(e,{relative:a}={}){let r=A.useContext(nb);Pe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=hb("useViewTransitionState"),l=Yo(e,{relative:a});if(!r.isTransitioning)return!1;let f=sa(r.currentLocation.pathname,o)||r.currentLocation.pathname,c=sa(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Dl(l.pathname,c)!=null||Dl(l.pathname,f)!=null}const mb=(...e)=>e.filter((a,r,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===r).join(" ").trim();const tw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const nw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,o)=>o?o.toUpperCase():r.toLowerCase());const Qy=e=>{const a=nw(e);return a.charAt(0).toUpperCase()+a.slice(1)};var aw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const iw=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};const rw=A.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:f,iconNode:c,...h},m)=>A.createElement("svg",{ref:m,...aw,width:a,height:a,stroke:e,strokeWidth:o?Number(r)*24/Number(a):r,className:mb("lucide",l),...!f&&!iw(h)&&{"aria-hidden":"true"},...h},[...c.map(([p,y])=>A.createElement(p,y)),...Array.isArray(f)?f:[f]]));const pn=(e,a)=>{const r=A.forwardRef(({className:o,...l},f)=>A.createElement(rw,{ref:f,iconNode:a,className:mb(`lucide-${tw(Qy(e))}`,`lucide-${e}`,o),...l}));return r.displayName=Qy(e),r};const ow=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],pb=pn("activity",ow);const sw=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],lw=pn("box",sw);const uw=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],cw=pn("brain",uw);const fw=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dw=pn("clock",fw);const hw=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],mw=pn("cpu",hw);const pw=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],gw=pn("file-text",pw);const yw=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],vw=pn("layout-dashboard",yw);const bw=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Sw=pn("moon",bw);const xw=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Tw=pn("refresh-cw",xw);const Ew=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_w=pn("settings",Ew);const ww=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Aw=pn("sun",ww);const zw=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Cw=pn("terminal",zw);var wf={exports:{}},Af={};var Fy;function Rw(){if(Fy)return Af;Fy=1;var e=Yl();function a(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var r=typeof Object.is=="function"?Object.is:a,o=e.useState,l=e.useEffect,f=e.useLayoutEffect,c=e.useDebugValue;function h(v,S){var x=S(),R=o({inst:{value:x,getSnapshot:S}}),E=R[0].inst,O=R[1];return f(function(){E.value=x,E.getSnapshot=S,m(E)&&O({inst:E})},[v,x,S]),l(function(){return m(E)&&O({inst:E}),v(function(){m(E)&&O({inst:E})})},[v]),c(x),x}function m(v){var S=v.getSnapshot;v=v.value;try{var x=S();return!r(v,x)}catch{return!0}}function p(v,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return Af.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Af}var Jy;function Ow(){return Jy||(Jy=1,wf.exports=Rw()),wf.exports}var Iy=Ow();const gb=0,yb=1,vb=2,Wy=3;var ev=Object.prototype.hasOwnProperty;function nd(e,a){var r,o;if(e===a)return!0;if(e&&a&&(r=e.constructor)===a.constructor){if(r===Date)return e.getTime()===a.getTime();if(r===RegExp)return e.toString()===a.toString();if(r===Array){if((o=e.length)===a.length)for(;o--&&nd(e[o],a[o]););return o===-1}if(!r||typeof e=="object"){o=0;for(r in e)if(ev.call(e,r)&&++o&&!ev.call(a,r)||!(r in a)||!nd(e[r],a[r]))return!1;return Object.keys(a).length===o}}return e!==e&&a!==a}const aa=new WeakMap,ia=()=>{},Rt=ia(),ad=Object,Ee=e=>e===Rt,Nn=e=>typeof e=="function",Ba=(e,a)=>({...e,...a}),bb=e=>Nn(e.then),zf={},gl={},Kd="undefined",Po=typeof window!=Kd,id=typeof document!=Kd,Mw=Po&&"Deno"in window,Dw=()=>Po&&typeof window.requestAnimationFrame!=Kd,Sb=(e,a)=>{const r=aa.get(e);return[()=>!Ee(a)&&e.get(a)||zf,o=>{if(!Ee(a)){const l=e.get(a);a in gl||(gl[a]=l),r[5](a,Ba(l,o),l||zf)}},r[6],()=>!Ee(a)&&a in gl?gl[a]:!Ee(a)&&e.get(a)||zf]};let rd=!0;const Nw=()=>rd,[od,sd]=Po&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ia,ia],jw=()=>{const e=id&&document.visibilityState;return Ee(e)||e!=="hidden"},kw=e=>(id&&document.addEventListener("visibilitychange",e),od("focus",e),()=>{id&&document.removeEventListener("visibilitychange",e),sd("focus",e)}),Vw=e=>{const a=()=>{rd=!0,e()},r=()=>{rd=!1};return od("online",a),od("offline",r),()=>{sd("online",a),sd("offline",r)}},Uw={isOnline:Nw,isVisible:jw},Lw={initFocus:kw,initReconnect:Vw},tv=!Bd.useId,cr=!Po||Mw,Bw=e=>Dw()?window.requestAnimationFrame(e):setTimeout(e,1),Cf=cr?A.useEffect:A.useLayoutEffect,Rf=typeof navigator<"u"&&navigator.connection,nv=!cr&&Rf&&(["slow-2g","2g"].includes(Rf.effectiveType)||Rf.saveData),yl=new WeakMap,Zw=e=>ad.prototype.toString.call(e),Of=(e,a)=>e===`[object ${a}]`;let Hw=0;const ld=e=>{const a=typeof e,r=Zw(e),o=Of(r,"Date"),l=Of(r,"RegExp"),f=Of(r,"Object");let c,h;if(ad(e)===e&&!o&&!l){if(c=yl.get(e),c)return c;if(c=++Hw+"~",yl.set(e,c),Array.isArray(e)){for(c="@",h=0;h<e.length;h++)c+=ld(e[h])+",";yl.set(e,c)}if(f){c="#";const m=ad.keys(e).sort();for(;!Ee(h=m.pop());)Ee(e[h])||(c+=h+":"+ld(e[h])+",");yl.set(e,c)}}else c=o?e.toJSON():a=="symbol"?e.toString():a=="string"?JSON.stringify(e):""+e;return c},Qd=e=>{if(Nn(e))try{e=e()}catch{e=""}const a=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ld(e):"",[e,a]};let $w=0;const ud=()=>++$w;async function xb(...e){const[a,r,o,l]=e,f=Ba({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let c=f.populateCache;const h=f.rollbackOnError;let m=f.optimisticData;const p=S=>typeof h=="function"?h(S):h!==!1,y=f.throwOnError;if(Nn(r)){const S=r,x=[],R=a.keys();for(const E of R)!/^\$(inf|sub)\$/.test(E)&&S(a.get(E)._k)&&x.push(E);return Promise.all(x.map(v))}return v(r);async function v(S){const[x]=Qd(S);if(!x)return;const[R,E]=Sb(a,x),[O,V,C,j]=aa.get(a),Q=()=>{const je=O[x];return(Nn(f.revalidate)?f.revalidate(R().data,S):f.revalidate!==!1)&&(delete C[x],delete j[x],je&&je[0])?je[0](vb).then(()=>R().data):R().data};if(e.length<3)return Q();let q=o,I,F=!1;const P=ud();V[x]=[P,0];const W=!Ee(m),xe=R(),Ae=xe.data,Ce=xe._c,ot=Ee(Ce)?Ae:Ce;if(W&&(m=Nn(m)?m(ot,Ae):m,E({data:m,_c:ot})),Nn(q))try{q=q(ot)}catch(je){I=je,F=!0}if(q&&bb(q))if(q=await q.catch(je=>{I=je,F=!0}),P!==V[x][0]){if(F)throw I;return q}else F&&W&&p(I)&&(c=!0,E({data:ot,_c:Rt}));if(c&&!F)if(Nn(c)){const je=c(q,ot);E({data:je,error:Rt,_c:Rt})}else E({data:q,error:Rt,_c:Rt});if(V[x][1]=ud(),Promise.resolve(Q()).then(()=>{E({_c:Rt})}),F){if(y)throw I;return}return q}}const av=(e,a)=>{for(const r in e)e[r][0]&&e[r][0](a)},Gw=(e,a)=>{if(!aa.has(e)){const r=Ba(Lw,a),o=Object.create(null),l=xb.bind(Rt,e);let f=ia;const c=Object.create(null),h=(y,v)=>{const S=c[y]||[];return c[y]=S,S.push(v),()=>S.splice(S.indexOf(v),1)},m=(y,v,S)=>{e.set(y,v);const x=c[y];if(x)for(const R of x)R(v,S)},p=()=>{if(!aa.has(e)&&(aa.set(e,[o,Object.create(null),Object.create(null),Object.create(null),l,m,h]),!cr)){const y=r.initFocus(setTimeout.bind(Rt,av.bind(Rt,o,gb))),v=r.initReconnect(setTimeout.bind(Rt,av.bind(Rt,o,yb)));f=()=>{y&&y(),v&&v(),aa.delete(e)}}};return p(),[e,l,p,f]}return[e,aa.get(e)[4]]},qw=(e,a,r,o,l)=>{const f=r.errorRetryCount,c=l.retryCount,h=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!Ee(f)&&c>f||setTimeout(o,h,l)},Yw=nd,[Tb,Eb]=Gw(new Map),Pw=Ba({onLoadingSlow:ia,onSuccess:ia,onError:ia,onErrorRetry:qw,onDiscarded:ia,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:nv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:nv?5e3:3e3,compare:Yw,isPaused:()=>!1,cache:Tb,mutate:Eb,fallback:{}},Uw),Xw=(e,a)=>{const r=Ba(e,a);if(a){const{use:o,fallback:l}=e,{use:f,fallback:c}=a;o&&f&&(r.use=o.concat(f)),l&&c&&(r.fallback=Ba(l,c))}return r},Kw=A.createContext({}),Qw="$inf$",_b=Po&&window.__SWR_DEVTOOLS_USE__,Fw=_b?window.__SWR_DEVTOOLS_USE__:[],Jw=()=>{_b&&(window.__SWR_DEVTOOLS_REACT__=Bd)},Iw=e=>Nn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ww=()=>{const e=A.useContext(Kw);return A.useMemo(()=>Ba(Pw,e),[e])},e2=e=>(a,r,o)=>e(a,r&&((...f)=>{const[c]=Qd(a),[,,,h]=aa.get(Tb);if(c.startsWith(Qw))return r(...f);const m=h[c];return Ee(m)?r(...f):(delete h[c],m)}),o),t2=Fw.concat(e2),n2=e=>function(...r){const o=Ww(),[l,f,c]=Iw(r),h=Xw(o,c);let m=e;const{use:p}=h,y=(p||[]).concat(t2);for(let v=y.length;v--;)m=y[v](m);return m(l,f||h.fetcher||null,h)},a2=(e,a,r)=>{const o=a[e]||(a[e]=[]);return o.push(r),()=>{const l=o.indexOf(r);l>=0&&(o[l]=o[o.length-1],o.pop())}};Jw();const Mf=Bd.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(a=>{e.status="fulfilled",e.value=a},a=>{e.status="rejected",e.reason=a}),e}}),Df={dedupe:!0},iv=Promise.resolve(Rt),i2=(e,a,r)=>{const{cache:o,compare:l,suspense:f,fallbackData:c,revalidateOnMount:h,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:S,strictServerPrefetchWarning:x}=r,[R,E,O,V]=aa.get(o),[C,j]=Qd(e),Q=A.useRef(!1),q=A.useRef(!1),I=A.useRef(C),F=A.useRef(a),P=A.useRef(r),W=()=>P.current,xe=()=>W().isVisible()&&W().isOnline(),[Ae,Ce,ot,je]=Sb(o,C),ke=A.useRef({}).current,U=Ee(c)?Ee(r.fallback)?Rt:r.fallback[C]:c,X=(Oe,qe)=>{for(const Ke in ke){const Ze=Ke;if(Ze==="data"){if(!l(Oe[Ze],qe[Ze])&&(!Ee(Oe[Ze])||!l(fe,qe[Ze])))return!1}else if(qe[Ze]!==Oe[Ze])return!1}return!0},Y=A.useMemo(()=>{const Oe=!C||!a?!1:Ee(h)?W().isPaused()||f?!1:m!==!1:h,qe=bt=>{const Qe=Ba(bt);return delete Qe._k,Oe?{isValidating:!0,isLoading:!0,...Qe}:Qe},Ke=Ae(),Ze=je(),Mt=qe(Ke),zn=Ke===Ze?Mt:qe(Ze);let ht=Mt;return[()=>{const bt=qe(Ae());return X(bt,ht)?(ht.data=bt.data,ht.isLoading=bt.isLoading,ht.isValidating=bt.isValidating,ht.error=bt.error,ht):(ht=bt,bt)},()=>zn]},[o,C]),ce=Iy.useSyncExternalStore(A.useCallback(Oe=>ot(C,(qe,Ke)=>{X(Ke,qe)||Oe()}),[o,C]),Y[0],Y[1]),pe=!Q.current,w=R[C]&&R[C].length>0,Z=ce.data,K=Ee(Z)?U&&bb(U)?Mf(U):U:Z,J=ce.error,le=A.useRef(K),fe=S?Ee(Z)?Ee(le.current)?K:le.current:Z:K,re=C&&Ee(K),st=!cr&&Iy.useSyncExternalStore(()=>ia,()=>!1,()=>!0);x&&st&&!f&&re&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Re=w&&!Ee(J)?!1:pe&&!Ee(h)?h:W().isPaused()?!1:f?Ee(K)?!1:m:Ee(K)||m,qt=!!(C&&a&&pe&&Re),_n=Ee(ce.isValidating)?qt:ce.isValidating,wn=Ee(ce.isLoading)?qt:ce.isLoading,ca=A.useCallback(async Oe=>{const qe=F.current;if(!C||!qe||q.current||W().isPaused())return!1;let Ke,Ze,Mt=!0;const zn=Oe||{},ht=!O[C]||!zn.dedupe,bt=()=>tv?!q.current&&C===I.current&&Q.current:C===I.current,Qe={isValidating:!1,isLoading:!1},Io=()=>{Ce(Qe)},_r=()=>{const St=O[C];St&&St[1]===Ze&&delete O[C]},wr={isValidating:!0};Ee(Ae().data)&&(wr.isLoading=!0);try{if(ht&&(Ce(wr),r.loadingTimeout&&Ee(Ae().data)&&setTimeout(()=>{Mt&&bt()&&W().onLoadingSlow(C,r)},r.loadingTimeout),O[C]=[qe(j),ud()]),[Ke,Ze]=O[C],Ke=await Ke,ht&&setTimeout(_r,r.dedupingInterval),!O[C]||O[C][1]!==Ze)return ht&&bt()&&W().onDiscarded(C),!1;Qe.error=Rt;const St=E[C];if(!Ee(St)&&(Ze<=St[0]||Ze<=St[1]||St[1]===0))return Io(),ht&&bt()&&W().onDiscarded(C),!1;const yn=Ae().data;Qe.data=l(yn,Ke)?yn:Ke,ht&&bt()&&W().onSuccess(Ke,C,r)}catch(St){_r();const yn=W(),{shouldRetryOnError:vi}=yn;yn.isPaused()||(Qe.error=St,ht&&bt()&&(yn.onError(St,C,yn),(vi===!0||Nn(vi)&&vi(St))&&(!W().revalidateOnFocus||!W().revalidateOnReconnect||xe())&&yn.onErrorRetry(St,C,yn,nu=>{const Ar=R[C];Ar&&Ar[0]&&Ar[0](Wy,nu)},{retryCount:(zn.retryCount||0)+1,dedupe:!0})))}return Mt=!1,Io(),!0},[C,o]),An=A.useCallback((...Oe)=>xb(o,I.current,...Oe),[]);if(Cf(()=>{F.current=a,P.current=r,Ee(Z)||(le.current=Z)}),Cf(()=>{if(!C)return;const Oe=ca.bind(Rt,Df);let qe=0;W().revalidateOnFocus&&(qe=Date.now()+W().focusThrottleInterval);const Ze=a2(C,R,(Mt,zn={})=>{if(Mt==gb){const ht=Date.now();W().revalidateOnFocus&&ht>qe&&xe()&&(qe=ht+W().focusThrottleInterval,Oe())}else if(Mt==yb)W().revalidateOnReconnect&&xe()&&Oe();else{if(Mt==vb)return ca();if(Mt==Wy)return ca(zn)}});return q.current=!1,I.current=C,Q.current=!0,Ce({_k:j}),Re&&(O[C]||(Ee(K)||cr?Oe():Bw(Oe))),()=>{q.current=!0,Ze()}},[C]),Cf(()=>{let Oe;function qe(){const Ze=Nn(p)?p(Ae().data):p;Ze&&Oe!==-1&&(Oe=setTimeout(Ke,Ze))}function Ke(){!Ae().error&&(y||W().isVisible())&&(v||W().isOnline())?ca(Df).then(qe):qe()}return qe(),()=>{Oe&&(clearTimeout(Oe),Oe=-1)}},[p,y,v,C]),A.useDebugValue(fe),f){if(!tv&&cr&&re)throw new Error("Fallback data is required when using Suspense in SSR.");re&&(F.current=a,P.current=r,q.current=!1);const Oe=V[C],qe=!Ee(Oe)&&re?An(Oe):iv;if(Mf(qe),!Ee(J)&&re)throw J;const Ke=re?ca(Df):iv;!Ee(fe)&&re&&(Ke.status="fulfilled",Ke.value=!0),Mf(Ke)}return{mutate:An,get data(){return ke.data=!0,fe},get error(){return ke.error=!0,J},get isValidating(){return ke.isValidating=!0,_n},get isLoading(){return ke.isLoading=!0,wn}}},Kl=n2(i2),Fd="/api",Jd=e=>fetch(e).then(a=>a.json());function wb(){return Kl(`${Fd}/status`,Jd,{refreshInterval:5e3})}function r2(){return Kl(`${Fd}/logs`,Jd)}function o2(e){return Kl(e?`${Fd}/logs/${e}?limit=1000`:null,Jd,{refreshInterval:2e3})}function s2(){const{data:e}=wb();return L.jsxs("footer",{className:"h-8 bg-zinc-950 border-t border-matrix-primary flex items-center px-4 text-xs justify-between select-none z-10 shrink-0",children:[L.jsxs("div",{className:"flex gap-4",children:[L.jsxs("span",{className:e?"text-matrix-highlight":"text-red-500",children:["● ",e?.status.toUpperCase()||"OFFLINE"]}),L.jsxs("span",{children:["PID: ",e?.pid||"-"]}),L.jsxs("span",{children:["UPTIME: ",e?Math.floor(e.uptimeSeconds/60)+"m":"-"]})]}),L.jsxs("div",{className:"flex gap-4 opacity-70",children:[L.jsxs("span",{children:["v",e?.projectVersion||"0.0.0"]}),L.jsx("span",{children:e?.agentName||"Morpheus"})]})]})}const Ab=A.createContext({});function l2(e){const a=A.useRef(null);return a.current===null&&(a.current=e()),a.current}const zb=typeof window<"u",u2=zb?A.useLayoutEffect:A.useEffect,Id=A.createContext(null);function Wd(e,a){e.indexOf(a)===-1&&e.push(a)}function eh(e,a){const r=e.indexOf(a);r>-1&&e.splice(r,1)}const kn=(e,a,r)=>r>a?a:r<e?e:r;let th=()=>{};const la={},Cb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Rb(e){return typeof e=="object"&&e!==null}const Ob=e=>/^0[^.\s]+$/u.test(e);function nh(e){let a;return()=>(a===void 0&&(a=e()),a)}const mn=e=>e,c2=(e,a)=>r=>a(e(r)),Xo=(...e)=>e.reduce(c2),Uo=(e,a,r)=>{const o=a-e;return o===0?1:(r-e)/o};class ah{constructor(){this.subscriptions=[]}add(a){return Wd(this.subscriptions,a),()=>eh(this.subscriptions,a)}notify(a,r,o){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](a,r,o);else for(let f=0;f<l;f++){const c=this.subscriptions[f];c&&c(a,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const oa=e=>e*1e3,hn=e=>e/1e3;function Mb(e,a){return a?e*(1e3/a):0}const Db=(e,a,r)=>(((1-3*r+3*a)*e+(3*r-6*a))*e+3*a)*e,f2=1e-7,d2=12;function h2(e,a,r,o,l){let f,c,h=0;do c=a+(r-a)/2,f=Db(c,o,l)-e,f>0?r=c:a=c;while(Math.abs(f)>f2&&++h<d2);return c}function Ko(e,a,r,o){if(e===a&&r===o)return mn;const l=f=>h2(f,0,1,e,r);return f=>f===0||f===1?f:Db(l(f),a,o)}const Nb=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2,jb=e=>a=>1-e(1-a),kb=Ko(.33,1.53,.69,.99),ih=jb(kb),Vb=Nb(ih),Ub=e=>(e*=2)<1?.5*ih(e):.5*(2-Math.pow(2,-10*(e-1))),rh=e=>1-Math.sin(Math.acos(e)),Lb=jb(rh),Bb=Nb(rh),m2=Ko(.42,0,1,1),p2=Ko(0,0,.58,1),Zb=Ko(.42,0,.58,1),g2=e=>Array.isArray(e)&&typeof e[0]!="number",Hb=e=>Array.isArray(e)&&typeof e[0]=="number",y2={linear:mn,easeIn:m2,easeInOut:Zb,easeOut:p2,circIn:rh,circInOut:Bb,circOut:Lb,backIn:ih,backInOut:Vb,backOut:kb,anticipate:Ub},v2=e=>typeof e=="string",rv=e=>{if(Hb(e)){th(e.length===4);const[a,r,o,l]=e;return Ko(a,r,o,l)}else if(v2(e))return y2[e];return e},vl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function b2(e,a){let r=new Set,o=new Set,l=!1,f=!1;const c=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(y){c.has(y)&&(p.schedule(y),e()),y(h)}const p={schedule:(y,v=!1,S=!1)=>{const R=S&&l?r:o;return v&&c.add(y),R.has(y)||R.add(y),y},cancel:y=>{o.delete(y),c.delete(y)},process:y=>{if(h=y,l){f=!0;return}l=!0,[r,o]=[o,r],r.forEach(m),r.clear(),l=!1,f&&(f=!1,p.process(y))}};return p}const S2=40;function $b(e,a){let r=!1,o=!0;const l={delta:0,timestamp:0,isProcessing:!1},f=()=>r=!0,c=vl.reduce((j,Q)=>(j[Q]=b2(f),j),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:y,update:v,preRender:S,render:x,postRender:R}=c,E=()=>{const j=la.useManualTiming?l.timestamp:performance.now();r=!1,la.useManualTiming||(l.delta=o?1e3/60:Math.max(Math.min(j-l.timestamp,S2),1)),l.timestamp=j,l.isProcessing=!0,h.process(l),m.process(l),p.process(l),y.process(l),v.process(l),S.process(l),x.process(l),R.process(l),l.isProcessing=!1,r&&a&&(o=!1,e(E))},O=()=>{r=!0,o=!0,l.isProcessing||e(E)};return{schedule:vl.reduce((j,Q)=>{const q=c[Q];return j[Q]=(I,F=!1,P=!1)=>(r||O(),q.schedule(I,F,P)),j},{}),cancel:j=>{for(let Q=0;Q<vl.length;Q++)c[vl[Q]].cancel(j)},state:l,steps:c}}const{schedule:Ge,cancel:Za,state:At,steps:Nf}=$b(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0);let Cl;function x2(){Cl=void 0}const jt={now:()=>(Cl===void 0&&jt.set(At.isProcessing||la.useManualTiming?At.timestamp:performance.now()),Cl),set:e=>{Cl=e,queueMicrotask(x2)}},Gb=e=>a=>typeof a=="string"&&a.startsWith(e),qb=Gb("--"),T2=Gb("var(--"),oh=e=>T2(e)?E2.test(e.split("/*")[0].trim()):!1,E2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ov(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lo={...vr,transform:e=>kn(0,1,e)},bl={...vr,default:1},Mo=e=>Math.round(e*1e5)/1e5,sh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _2(e){return e==null}const w2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lh=(e,a)=>r=>!!(typeof r=="string"&&w2.test(r)&&r.startsWith(e)||a&&!_2(r)&&Object.prototype.hasOwnProperty.call(r,a)),Yb=(e,a,r)=>o=>{if(typeof o!="string")return o;const[l,f,c,h]=o.match(sh);return{[e]:parseFloat(l),[a]:parseFloat(f),[r]:parseFloat(c),alpha:h!==void 0?parseFloat(h):1}},A2=e=>kn(0,255,e),jf={...vr,transform:e=>Math.round(A2(e))},di={test:lh("rgb","red"),parse:Yb("red","green","blue"),transform:({red:e,green:a,blue:r,alpha:o=1})=>"rgba("+jf.transform(e)+", "+jf.transform(a)+", "+jf.transform(r)+", "+Mo(Lo.transform(o))+")"};function z2(e){let a="",r="",o="",l="";return e.length>5?(a=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),l=e.substring(7,9)):(a=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),l=e.substring(4,5),a+=a,r+=r,o+=o,l+=l),{red:parseInt(a,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:l?parseInt(l,16)/255:1}}const cd={test:lh("#"),parse:z2,transform:di.transform},Qo=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),Ua=Qo("deg"),jn=Qo("%"),ae=Qo("px"),C2=Qo("vh"),R2=Qo("vw"),sv={...jn,parse:e=>jn.parse(e)/100,transform:e=>jn.transform(e*100)},rr={test:lh("hsl","hue"),parse:Yb("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+jn.transform(Mo(a))+", "+jn.transform(Mo(r))+", "+Mo(Lo.transform(o))+")"},dt={test:e=>di.test(e)||cd.test(e)||rr.test(e),parse:e=>di.test(e)?di.parse(e):rr.test(e)?rr.parse(e):cd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?di.transform(e):rr.transform(e),getAnimatableNone:e=>{const a=dt.parse(e);return a.alpha=0,dt.transform(a)}},O2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M2(e){return isNaN(e)&&typeof e=="string"&&(e.match(sh)?.length||0)+(e.match(O2)?.length||0)>0}const Pb="number",Xb="color",D2="var",N2="var(",lv="${}",j2=/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 Bo(e){const a=e.toString(),r=[],o={color:[],number:[],var:[]},l=[];let f=0;const h=a.replace(j2,m=>(dt.test(m)?(o.color.push(f),l.push(Xb),r.push(dt.parse(m))):m.startsWith(N2)?(o.var.push(f),l.push(D2),r.push(m)):(o.number.push(f),l.push(Pb),r.push(parseFloat(m))),++f,lv)).split(lv);return{values:r,split:h,indexes:o,types:l}}function Kb(e){return Bo(e).values}function Qb(e){const{split:a,types:r}=Bo(e),o=a.length;return l=>{let f="";for(let c=0;c<o;c++)if(f+=a[c],l[c]!==void 0){const h=r[c];h===Pb?f+=Mo(l[c]):h===Xb?f+=dt.transform(l[c]):f+=l[c]}return f}}const k2=e=>typeof e=="number"?0:dt.test(e)?dt.getAnimatableNone(e):e;function V2(e){const a=Kb(e);return Qb(e)(a.map(k2))}const Ha={test:M2,parse:Kb,createTransformer:Qb,getAnimatableNone:V2};function kf(e,a,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(a-e)*6*r:r<1/2?a:r<2/3?e+(a-e)*(2/3-r)*6:e}function U2({hue:e,saturation:a,lightness:r,alpha:o}){e/=360,a/=100,r/=100;let l=0,f=0,c=0;if(!a)l=f=c=r;else{const h=r<.5?r*(1+a):r+a-r*a,m=2*r-h;l=kf(m,h,e+1/3),f=kf(m,h,e),c=kf(m,h,e-1/3)}return{red:Math.round(l*255),green:Math.round(f*255),blue:Math.round(c*255),alpha:o}}function Nl(e,a){return r=>r>0?a:e}const Fe=(e,a,r)=>e+(a-e)*r,Vf=(e,a,r)=>{const o=e*e,l=r*(a*a-o)+o;return l<0?0:Math.sqrt(l)},L2=[cd,di,rr],B2=e=>L2.find(a=>a.test(e));function uv(e){const a=B2(e);if(!a)return!1;let r=a.parse(e);return a===rr&&(r=U2(r)),r}const cv=(e,a)=>{const r=uv(e),o=uv(a);if(!r||!o)return Nl(e,a);const l={...r};return f=>(l.red=Vf(r.red,o.red,f),l.green=Vf(r.green,o.green,f),l.blue=Vf(r.blue,o.blue,f),l.alpha=Fe(r.alpha,o.alpha,f),di.transform(l))},fd=new Set(["none","hidden"]);function Z2(e,a){return fd.has(e)?r=>r<=0?e:a:r=>r>=1?a:e}function H2(e,a){return r=>Fe(e,a,r)}function uh(e){return typeof e=="number"?H2:typeof e=="string"?oh(e)?Nl:dt.test(e)?cv:q2:Array.isArray(e)?Fb:typeof e=="object"?dt.test(e)?cv:$2:Nl}function Fb(e,a){const r=[...e],o=r.length,l=e.map((f,c)=>uh(f)(f,a[c]));return f=>{for(let c=0;c<o;c++)r[c]=l[c](f);return r}}function $2(e,a){const r={...e,...a},o={};for(const l in r)e[l]!==void 0&&a[l]!==void 0&&(o[l]=uh(e[l])(e[l],a[l]));return l=>{for(const f in o)r[f]=o[f](l);return r}}function G2(e,a){const r=[],o={color:0,var:0,number:0};for(let l=0;l<a.values.length;l++){const f=a.types[l],c=e.indexes[f][o[f]],h=e.values[c]??0;r[l]=h,o[f]++}return r}const q2=(e,a)=>{const r=Ha.createTransformer(a),o=Bo(e),l=Bo(a);return o.indexes.var.length===l.indexes.var.length&&o.indexes.color.length===l.indexes.color.length&&o.indexes.number.length>=l.indexes.number.length?fd.has(e)&&!l.values.length||fd.has(a)&&!o.values.length?Z2(e,a):Xo(Fb(G2(o,l),l.values),r):Nl(e,a)};function Jb(e,a,r){return typeof e=="number"&&typeof a=="number"&&typeof r=="number"?Fe(e,a,r):uh(e)(e,a)}const Y2=e=>{const a=({timestamp:r})=>e(r);return{start:(r=!0)=>Ge.update(a,r),stop:()=>Za(a),now:()=>At.isProcessing?At.timestamp:jt.now()}},Ib=(e,a,r=10)=>{let o="";const l=Math.max(Math.round(a/r),2);for(let f=0;f<l;f++)o+=Math.round(e(f/(l-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},jl=2e4;function ch(e){let a=0;const r=50;let o=e.next(a);for(;!o.done&&a<jl;)a+=r,o=e.next(a);return a>=jl?1/0:a}function P2(e,a=100,r){const o=r({...e,keyframes:[0,a]}),l=Math.min(ch(o),jl);return{type:"keyframes",ease:f=>o.next(l*f).value/a,duration:hn(l)}}const X2=5;function Wb(e,a,r){const o=Math.max(a-X2,0);return Mb(r-e(o),a-o)}const et={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},Uf=.001;function K2({duration:e=et.duration,bounce:a=et.bounce,velocity:r=et.velocity,mass:o=et.mass}){let l,f,c=1-a;c=kn(et.minDamping,et.maxDamping,c),e=kn(et.minDuration,et.maxDuration,hn(e)),c<1?(l=p=>{const y=p*c,v=y*e,S=y-r,x=dd(p,c),R=Math.exp(-v);return Uf-S/x*R},f=p=>{const v=p*c*e,S=v*r+r,x=Math.pow(c,2)*Math.pow(p,2)*e,R=Math.exp(-v),E=dd(Math.pow(p,2),c);return(-l(p)+Uf>0?-1:1)*((S-x)*R)/E}):(l=p=>{const y=Math.exp(-p*e),v=(p-r)*e+1;return-Uf+y*v},f=p=>{const y=Math.exp(-p*e),v=(r-p)*(e*e);return y*v});const h=5/e,m=F2(l,f,h);if(e=oa(e),isNaN(m))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:c*2*Math.sqrt(o*p),duration:e}}}const Q2=12;function F2(e,a,r){let o=r;for(let l=1;l<Q2;l++)o=o-e(o)/a(o);return o}function dd(e,a){return e*Math.sqrt(1-a*a)}const J2=["duration","bounce"],I2=["stiffness","damping","mass"];function fv(e,a){return a.some(r=>e[r]!==void 0)}function W2(e){let a={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!fv(e,I2)&&fv(e,J2))if(e.visualDuration){const r=e.visualDuration,o=2*Math.PI/(r*1.2),l=o*o,f=2*kn(.05,1,1-(e.bounce||0))*Math.sqrt(l);a={...a,mass:et.mass,stiffness:l,damping:f}}else{const r=K2(e);a={...a,...r,mass:et.mass},a.isResolvedFromDuration=!0}return a}function kl(e=et.visualDuration,a=et.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e;let{restSpeed:o,restDelta:l}=r;const f=r.keyframes[0],c=r.keyframes[r.keyframes.length-1],h={done:!1,value:f},{stiffness:m,damping:p,mass:y,duration:v,velocity:S,isResolvedFromDuration:x}=W2({...r,velocity:-hn(r.velocity||0)}),R=S||0,E=p/(2*Math.sqrt(m*y)),O=c-f,V=hn(Math.sqrt(m/y)),C=Math.abs(O)<5;o||(o=C?et.restSpeed.granular:et.restSpeed.default),l||(l=C?et.restDelta.granular:et.restDelta.default);let j;if(E<1){const q=dd(V,E);j=I=>{const F=Math.exp(-E*V*I);return c-F*((R+E*V*O)/q*Math.sin(q*I)+O*Math.cos(q*I))}}else if(E===1)j=q=>c-Math.exp(-V*q)*(O+(R+V*O)*q);else{const q=V*Math.sqrt(E*E-1);j=I=>{const F=Math.exp(-E*V*I),P=Math.min(q*I,300);return c-F*((R+E*V*O)*Math.sinh(P)+q*O*Math.cosh(P))/q}}const Q={calculatedDuration:x&&v||null,next:q=>{const I=j(q);if(x)h.done=q>=v;else{let F=q===0?R:0;E<1&&(F=q===0?oa(R):Wb(j,q,I));const P=Math.abs(F)<=o,W=Math.abs(c-I)<=l;h.done=P&&W}return h.value=h.done?c:I,h},toString:()=>{const q=Math.min(ch(Q),jl),I=Ib(F=>Q.next(q*F).value,q,30);return q+"ms "+I},toTransition:()=>{}};return Q}kl.applyToOptions=e=>{const a=P2(e,100,kl);return e.ease=a.ease,e.duration=oa(a.duration),e.type="keyframes",e};function hd({keyframes:e,velocity:a=0,power:r=.8,timeConstant:o=325,bounceDamping:l=10,bounceStiffness:f=500,modifyTarget:c,min:h,max:m,restDelta:p=.5,restSpeed:y}){const v=e[0],S={done:!1,value:v},x=P=>h!==void 0&&P<h||m!==void 0&&P>m,R=P=>h===void 0?m:m===void 0||Math.abs(h-P)<Math.abs(m-P)?h:m;let E=r*a;const O=v+E,V=c===void 0?O:c(O);V!==O&&(E=V-v);const C=P=>-E*Math.exp(-P/o),j=P=>V+C(P),Q=P=>{const W=C(P),xe=j(P);S.done=Math.abs(W)<=p,S.value=S.done?V:xe};let q,I;const F=P=>{x(S.value)&&(q=P,I=kl({keyframes:[S.value,R(S.value)],velocity:Wb(j,P,S.value),damping:l,stiffness:f,restDelta:p,restSpeed:y}))};return F(0),{calculatedDuration:null,next:P=>{let W=!1;return!I&&q===void 0&&(W=!0,Q(P),F(P)),q!==void 0&&P>=q?I.next(P-q):(!W&&Q(P),S)}}}function eA(e,a,r){const o=[],l=r||la.mix||Jb,f=e.length-1;for(let c=0;c<f;c++){let h=l(e[c],e[c+1]);if(a){const m=Array.isArray(a)?a[c]||mn:a;h=Xo(m,h)}o.push(h)}return o}function tA(e,a,{clamp:r=!0,ease:o,mixer:l}={}){const f=e.length;if(th(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const c=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),a=[...a].reverse());const h=eA(a,o,l),m=h.length,p=y=>{if(c&&y<e[0])return a[0];let v=0;if(m>1)for(;v<e.length-2&&!(y<e[v+1]);v++);const S=Uo(e[v],e[v+1],y);return h[v](S)};return r?y=>p(kn(e[0],e[f-1],y)):p}function nA(e,a){const r=e[e.length-1];for(let o=1;o<=a;o++){const l=Uo(0,a,o);e.push(Fe(r,1,l))}}function aA(e){const a=[0];return nA(a,e.length-1),a}function iA(e,a){return e.map(r=>r*a)}function rA(e,a){return e.map(()=>a||Zb).splice(0,e.length-1)}function Do({duration:e=300,keyframes:a,times:r,ease:o="easeInOut"}){const l=g2(o)?o.map(rv):rv(o),f={done:!1,value:a[0]},c=iA(r&&r.length===a.length?r:aA(a),e),h=tA(c,a,{ease:Array.isArray(l)?l:rA(a,l)});return{calculatedDuration:e,next:m=>(f.value=h(m),f.done=m>=e,f)}}const oA=e=>e!==null;function fh(e,{repeat:a,repeatType:r="loop"},o,l=1){const f=e.filter(oA),h=l<0||a&&r!=="loop"&&a%2===1?0:f.length-1;return!h||o===void 0?f[h]:o}const sA={decay:hd,inertia:hd,tween:Do,keyframes:Do,spring:kl};function e1(e){typeof e.type=="string"&&(e.type=sA[e.type])}class dh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,r){return this.finished.then(a,r)}}const lA=e=>e/100;class hh extends dh{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==jt.now()&&this.tick(jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;e1(a);const{type:r=Do,repeat:o=0,repeatDelay:l=0,repeatType:f,velocity:c=0}=a;let{keyframes:h}=a;const m=r||Do;m!==Do&&typeof h[0]!="number"&&(this.mixKeyframes=Xo(lA,Jb(h[0],h[1])),h=[0,100]);const p=m({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=ch(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(o+1)-l,this.generator=p}updateTime(a){const r=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(a,r=!1){const{generator:o,totalDuration:l,mixKeyframes:f,mirroredGenerator:c,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:v,repeatType:S,repeatDelay:x,type:R,onUpdate:E,finalKeyframe:O}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-l/this.speed,this.startTime)),r?this.currentTime=a:this.updateTime(a);const V=this.currentTime-p*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?V<0:V>l;this.currentTime=Math.max(V,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let j=this.currentTime,Q=o;if(v){const P=Math.min(this.currentTime,l)/h;let W=Math.floor(P),xe=P%1;!xe&&P>=1&&(xe=1),xe===1&&W--,W=Math.min(W,v+1),W%2&&(S==="reverse"?(xe=1-xe,x&&(xe-=x/h)):S==="mirror"&&(Q=c)),j=kn(0,1,xe)*h}const q=C?{done:!1,value:y[0]}:Q.next(j);f&&(q.value=f(q.value));let{done:I}=q;!C&&m!==null&&(I=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return F&&R!==hd&&(q.value=fh(y,this.options,O,this.speed)),E&&E(q.value),F&&this.finish(),q}then(a,r){return this.finished.then(a,r)}get duration(){return hn(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+hn(a)}get time(){return hn(this.currentTime)}set time(a){a=oa(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(jt.now());const r=this.playbackSpeed!==a;this.playbackSpeed=a,r&&(this.time=hn(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=Y2,startTime:r}=this.options;this.driver||(this.driver=a(l=>this.tick(l))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),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(jt.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(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function uA(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}const hi=e=>e*180/Math.PI,md=e=>{const a=hi(Math.atan2(e[1],e[0]));return pd(a)},cA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:md,rotateZ:md,skewX:e=>hi(Math.atan(e[1])),skewY:e=>hi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},pd=e=>(e=e%360,e<0&&(e+=360),e),dv=md,hv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hv,scaleY:mv,scale:e=>(hv(e)+mv(e))/2,rotateX:e=>pd(hi(Math.atan2(e[6],e[5]))),rotateY:e=>pd(hi(Math.atan2(-e[2],e[0]))),rotateZ:dv,rotate:dv,skewX:e=>hi(Math.atan(e[4])),skewY:e=>hi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gd(e){return e.includes("scale")?1:0}function yd(e,a){if(!e||e==="none")return gd(a);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,l;if(r)o=fA,l=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=cA,l=h}if(!l)return gd(a);const f=o[a],c=l[1].split(",").map(hA);return typeof f=="function"?f(c):c[f]}const dA=(e,a)=>{const{transform:r="none"}=getComputedStyle(e);return yd(r,a)};function hA(e){return parseFloat(e.trim())}const br=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sr=new Set(br),pv=e=>e===vr||e===ae,mA=new Set(["x","y","z"]),pA=br.filter(e=>!mA.has(e));function gA(e){const a=[];return pA.forEach(r=>{const o=e.getValue(r);o!==void 0&&(a.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),a}const La={width:({x:e},{paddingLeft:a="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(a)-parseFloat(r),height:({y:e},{paddingTop:a="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(a)-parseFloat(r),top:(e,{top:a})=>parseFloat(a),left:(e,{left:a})=>parseFloat(a),bottom:({y:e},{top:a})=>parseFloat(a)+(e.max-e.min),right:({x:e},{left:a})=>parseFloat(a)+(e.max-e.min),x:(e,{transform:a})=>yd(a,"x"),y:(e,{transform:a})=>yd(a,"y")};La.translateX=La.x;La.translateY=La.y;const mi=new Set;let vd=!1,bd=!1,Sd=!1;function t1(){if(bd){const e=Array.from(mi).filter(o=>o.needsMeasurement),a=new Set(e.map(o=>o.element)),r=new Map;a.forEach(o=>{const l=gA(o);l.length&&(r.set(o,l),o.render())}),e.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const l=r.get(o);l&&l.forEach(([f,c])=>{o.getValue(f)?.set(c)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}bd=!1,vd=!1,mi.forEach(e=>e.complete(Sd)),mi.clear()}function n1(){mi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bd=!0)})}function yA(){Sd=!0,n1(),t1(),Sd=!1}class mh{constructor(a,r,o,l,f,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=r,this.name=o,this.motionValue=l,this.element=f,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(mi.add(this),vd||(vd=!0,Ge.read(n1),Ge.resolveKeyframes(t1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:r,element:o,motionValue:l}=this;if(a[0]===null){const f=l?.get(),c=a[a.length-1];if(f!==void 0)a[0]=f;else if(o&&r){const h=o.readValue(r,c);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=c),l&&f===void 0&&l.set(a[0])}uA(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),mi.delete(this)}cancel(){this.state==="scheduled"&&(mi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vA=e=>e.startsWith("--");function bA(e,a,r){vA(a)?e.style.setProperty(a,r):e.style[a]=r}const SA=nh(()=>window.ScrollTimeline!==void 0),xA={};function TA(e,a){const r=nh(e);return()=>xA[a]??r()}const a1=TA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zo=([e,a,r,o])=>`cubic-bezier(${e}, ${a}, ${r}, ${o})`,gv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zo([0,.65,.55,1]),circOut:zo([.55,0,1,.45]),backIn:zo([.31,.01,.66,-.59]),backOut:zo([.33,1.53,.69,.99])};function i1(e,a){if(e)return typeof e=="function"?a1()?Ib(e,a):"ease-out":Hb(e)?zo(e):Array.isArray(e)?e.map(r=>i1(r,a)||gv.easeOut):gv[e]}function EA(e,a,r,{delay:o=0,duration:l=300,repeat:f=0,repeatType:c="loop",ease:h="easeOut",times:m}={},p=void 0){const y={[a]:r};m&&(y.offset=m);const v=i1(h,l);Array.isArray(v)&&(y.easing=v);const S={delay:o,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:c==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),e.animate(y,S)}function r1(e){return typeof e=="function"&&"applyToOptions"in e}function _A({type:e,...a}){return r1(e)&&a1()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class wA extends dh{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:r,name:o,keyframes:l,pseudoElement:f,allowFlatten:c=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!f,this.allowFlatten=c,this.options=a,th(typeof a.type!="string");const p=_A(a);this.animation=EA(r,o,l,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=fh(l,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(y):bA(r,o,y),this.animation.cancel()}m?.(),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:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const a=this.animation.effect?.getComputedTiming?.().duration||0;return hn(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+hn(a)}get time(){return hn(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=oa(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&SA()?(this.animation.timeline=a,mn):r(this)}}const o1={anticipate:Ub,backInOut:Vb,circInOut:Bb};function AA(e){return e in o1}function zA(e){typeof e.ease=="string"&&AA(e.ease)&&(e.ease=o1[e.ease])}const Lf=10;class CA extends wA{constructor(a){zA(a),e1(a),super(a),a.startTime!==void 0&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:r,onUpdate:o,onComplete:l,element:f,...c}=this.options;if(!r)return;if(a!==void 0){r.set(a);return}const h=new hh({...c,autoplay:!1}),m=Math.max(Lf,jt.now()-this.startTime),p=kn(0,Lf,m-Lf);r.setWithVelocity(h.sample(Math.max(0,m-p)).value,h.sample(m).value,p),h.stop()}}const yv=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ha.test(e)||e==="0")&&!e.startsWith("url("));function RA(e){const a=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==a)return!0}function OA(e,a,r,o){const l=e[0];if(l===null)return!1;if(a==="display"||a==="visibility")return!0;const f=e[e.length-1],c=yv(l,a),h=yv(f,a);return!c||!h?!1:RA(e)||(r==="spring"||r1(r))&&o}function xd(e){e.duration=0,e.type="keyframes"}const MA=new Set(["opacity","clipPath","filter","transform"]),DA=nh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function NA(e){const{motionValue:a,name:r,repeatDelay:o,repeatType:l,damping:f,type:c}=e;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=a.owner.getProps();return DA()&&r&&MA.has(r)&&(r!=="transform"||!p)&&!m&&!o&&l!=="mirror"&&f!==0&&c!=="inertia"}const jA=40;class kA extends dh{constructor({autoplay:a=!0,delay:r=0,type:o="keyframes",repeat:l=0,repeatDelay:f=0,repeatType:c="loop",keyframes:h,name:m,motionValue:p,element:y,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=jt.now();const S={autoplay:a,delay:r,type:o,repeat:l,repeatDelay:f,repeatType:c,name:m,motionValue:p,element:y,...v},x=y?.KeyframeResolver||mh;this.keyframeResolver=new x(h,(R,E,O)=>this.onKeyframesResolved(R,E,S,!O),m,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,r,o,l){this.keyframeResolver=void 0;const{name:f,type:c,velocity:h,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=jt.now(),OA(a,f,c,h)||((la.instantAnimations||!m)&&y?.(fh(a,o,r)),a[0]=a[a.length-1],xd(o),o.repeat=0);const S={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>jA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:a},x=!p&&NA(S),R=S.motionValue?.owner?.current,E=x?new CA({...S,element:R}):new hh(S);E.finished.then(()=>{this.notifyFinished()}).catch(mn),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(a,r){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function s1(e,a,r,o=0,l=1){const f=Array.from(e).sort((p,y)=>p.sortNodePosition(y)).indexOf(a),c=e.size,h=(c-1)*o;return typeof r=="function"?r(f,c):l===1?f*o:h-f*o}const VA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UA(e){const a=VA.exec(e);if(!a)return[,];const[,r,o,l]=a;return[`--${r??o}`,l]}function l1(e,a,r=1){const[o,l]=UA(e);if(!o)return;const f=window.getComputedStyle(a).getPropertyValue(o);if(f){const c=f.trim();return Cb(c)?parseFloat(c):c}return oh(l)?l1(l,a,r+1):l}const LA={type:"spring",stiffness:500,damping:25,restSpeed:10},BA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZA={type:"keyframes",duration:.8},HA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$A=(e,{keyframes:a})=>a.length>2?ZA:Sr.has(e)?e.startsWith("scale")?BA(a[1]):LA:HA,GA=e=>e!==null;function qA(e,{repeat:a,repeatType:r="loop"},o){const l=e.filter(GA),f=a&&r!=="loop"&&a%2===1?0:l.length-1;return l[f]}function ph(e,a){return e?.[a]??e?.default??e}function YA({when:e,delay:a,delayChildren:r,staggerChildren:o,staggerDirection:l,repeat:f,repeatType:c,repeatDelay:h,from:m,elapsed:p,...y}){return!!Object.keys(y).length}const gh=(e,a,r,o={},l,f)=>c=>{const h=ph(o,e)||{},m=h.delay||o.delay||0;let{elapsed:p=0}=o;p=p-oa(m);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:S=>{a.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{c(),h.onComplete&&h.onComplete()},name:e,motionValue:a,element:f?void 0:l};YA(h)||Object.assign(y,$A(e,y)),y.duration&&(y.duration=oa(y.duration)),y.repeatDelay&&(y.repeatDelay=oa(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(xd(y),y.delay===0&&(v=!0)),(la.instantAnimations||la.skipAnimations)&&(v=!0,xd(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,v&&!f&&a.get()!==void 0){const S=qA(y.keyframes,h);if(S!==void 0){Ge.update(()=>{y.onUpdate(S),y.onComplete()});return}}return h.isSync?new hh(y):new kA(y)};function vv(e){const a=[{},{}];return e?.values.forEach((r,o)=>{a[0][o]=r.get(),a[1][o]=r.getVelocity()}),a}function yh(e,a,r,o){if(typeof a=="function"){const[l,f]=vv(o);a=a(r!==void 0?r:e.custom,l,f)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){const[l,f]=vv(o);a=a(r!==void 0?r:e.custom,l,f)}return a}function fr(e,a,r){const o=e.getProps();return yh(o,a,r!==void 0?r:o.custom,e)}const u1=new Set(["width","height","top","left","right","bottom",...br]),bv=30,PA=e=>!isNaN(parseFloat(e));class XA{constructor(a,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const l=jt.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),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(a),this.owner=r.owner}setCurrent(a){this.current=a,this.updatedAt=jt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=PA(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,r){this.events[a]||(this.events[a]=new ah);const o=this.events[a].add(r);return a==="change"?()=>{o(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,r){this.passiveEffect=a,this.stopPassiveEffect=r}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,r=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>bv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,bv);return Mb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(a){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=a(r),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 mr(e,a){return new XA(e,a)}const Td=e=>Array.isArray(e);function KA(e,a,r){e.hasValue(a)?e.getValue(a).set(r):e.addValue(a,mr(r))}function QA(e){return Td(e)?e[e.length-1]||0:e}function FA(e,a){const r=fr(e,a);let{transitionEnd:o={},transition:l={},...f}=r||{};f={...f,...o};for(const c in f){const h=QA(f[c]);KA(e,c,h)}}const Ot=e=>!!(e&&e.getVelocity);function JA(e){return!!(Ot(e)&&e.add)}function Ed(e,a){const r=e.getValue("willChange");if(JA(r))return r.add(a);if(!r&&la.WillChange){const o=new la.WillChange("auto");e.addValue("willChange",o),o.add(a)}}function vh(e){return e.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const IA="framerAppearId",c1="data-"+vh(IA);function f1(e){return e.props[c1]}function WA({protectedKeys:e,needsAnimating:a},r){const o=e.hasOwnProperty(r)&&a[r]!==!0;return a[r]=!1,o}function d1(e,a,{delay:r=0,transitionOverride:o,type:l}={}){let{transition:f=e.getDefaultTransition(),transitionEnd:c,...h}=a;const m=f?.reduceMotion;o&&(f=o);const p=[],y=l&&e.animationState&&e.animationState.getState()[l];for(const v in h){const S=e.getValue(v,e.latestValues[v]??null),x=h[v];if(x===void 0||y&&WA(y,v))continue;const R={delay:r,...ph(f||{},v)},E=S.get();if(E!==void 0&&!S.isAnimating&&!Array.isArray(x)&&x===E&&!R.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const j=f1(e);if(j){const Q=window.MotionHandoffAnimation(j,v,Ge);Q!==null&&(R.startTime=Q,O=!0)}}Ed(e,v);const V=m??e.shouldReduceMotion;S.start(gh(v,S,x,V&&u1.has(v)?{type:!1}:R,e,O));const C=S.animation;C&&p.push(C)}return c&&Promise.all(p).then(()=>{Ge.update(()=>{c&&FA(e,c)})}),p}function _d(e,a,r={}){const o=fr(e,a,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(l=r.transitionOverride);const f=o?()=>Promise.all(d1(e,o,r)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:v}=l;return ez(e,a,m,p,y,v,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,p]=h==="beforeChildren"?[f,c]:[c,f];return m().then(()=>p())}else return Promise.all([f(),c(r.delay)])}function ez(e,a,r=0,o=0,l=0,f=1,c){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",a),h.push(_d(m,a,{...c,delay:r+(typeof o=="function"?0:o)+s1(e.variantChildren,m,o,l,f)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function tz(e,a,r={}){e.notify("AnimationStart",a);let o;if(Array.isArray(a)){const l=a.map(f=>_d(e,f,r));o=Promise.all(l)}else if(typeof a=="string")o=_d(e,a,r);else{const l=typeof a=="function"?fr(e,a,r.custom):a;o=Promise.all(d1(e,l,r))}return o.then(()=>{e.notify("AnimationComplete",a)})}const nz={test:e=>e==="auto",parse:e=>e},h1=e=>a=>a.test(e),m1=[vr,ae,jn,Ua,R2,C2,nz],Sv=e=>m1.find(h1(e));function az(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ob(e):!0}const iz=new Set(["brightness","contrast","saturate","opacity"]);function rz(e){const[a,r]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;const[o]=r.match(sh)||[];if(!o)return e;const l=r.replace(o,"");let f=iz.has(a)?1:0;return o!==r&&(f*=100),a+"("+f+l+")"}const oz=/\b([a-z-]*)\(.*?\)/gu,wd={...Ha,getAnimatableNone:e=>{const a=e.match(oz);return a?a.map(rz).join(" "):e}},xv={...vr,transform:Math.round},sz={rotate:Ua,rotateX:Ua,rotateY:Ua,rotateZ:Ua,scale:bl,scaleX:bl,scaleY:bl,scaleZ:bl,skew:Ua,skewX:Ua,skewY:Ua,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Lo,originX:sv,originY:sv,originZ:ae},bh={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,inset:ae,insetBlock:ae,insetBlockStart:ae,insetBlockEnd:ae,insetInline:ae,insetInlineStart:ae,insetInlineEnd:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,paddingBlock:ae,paddingBlockStart:ae,paddingBlockEnd:ae,paddingInline:ae,paddingInlineStart:ae,paddingInlineEnd:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,marginBlock:ae,marginBlockStart:ae,marginBlockEnd:ae,marginInline:ae,marginInlineStart:ae,marginInlineEnd:ae,fontSize:ae,backgroundPositionX:ae,backgroundPositionY:ae,...sz,zIndex:xv,fillOpacity:Lo,strokeOpacity:Lo,numOctaves:xv},lz={...bh,color:dt,backgroundColor:dt,outlineColor:dt,fill:dt,stroke:dt,borderColor:dt,borderTopColor:dt,borderRightColor:dt,borderBottomColor:dt,borderLeftColor:dt,filter:wd,WebkitFilter:wd},p1=e=>lz[e];function g1(e,a){let r=p1(e);return r!==wd&&(r=Ha),r.getAnimatableNone?r.getAnimatableNone(a):void 0}const uz=new Set(["auto","none","0"]);function cz(e,a,r){let o=0,l;for(;o<e.length&&!l;){const f=e[o];typeof f=="string"&&!uz.has(f)&&Bo(f).values.length&&(l=e[o]),o++}if(l&&r)for(const f of a)e[f]=g1(r,l)}class fz extends mh{constructor(a,r,o,l,f){super(a,r,o,l,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let v=a[y];if(typeof v=="string"&&(v=v.trim(),oh(v))){const S=l1(v,r.current);S!==void 0&&(a[y]=S),y===a.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!u1.has(o)||a.length!==2)return;const[l,f]=a,c=Sv(l),h=Sv(f),m=ov(l),p=ov(f);if(m!==p&&La[o]){this.needsMeasurement=!0;return}if(c!==h)if(pv(c)&&pv(h))for(let y=0;y<a.length;y++){const v=a[y];typeof v=="string"&&(a[y]=parseFloat(v))}else La[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:r}=this,o=[];for(let l=0;l<a.length;l++)(a[l]===null||az(a[l]))&&o.push(l);o.length&&cz(a,o,r)}measureInitialState(){const{element:a,unresolvedKeyframes:r,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=La[o](a.measureViewportBox(),window.getComputedStyle(a.current)),r[0]=this.measuredOrigin;const l=r[r.length-1];l!==void 0&&a.getValue(o,l).jump(l,!1)}measureEndState(){const{element:a,name:r,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const l=a.getValue(r);l&&l.jump(this.measuredOrigin,!1);const f=o.length-1,c=o[f];o[f]=La[r](a.measureViewportBox(),window.getComputedStyle(a.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,m])=>{a.getValue(h).set(m)}),this.resolveNoneKeyframes()}}function dz(e,a,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const l=r?.[e]??o.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e).filter(o=>o!=null)}const y1=(e,a)=>a&&typeof e=="number"?a.transform(e):e;function hz(e){return Rb(e)&&"offsetHeight"in e}const{schedule:Sh}=$b(queueMicrotask,!1),Tn={x:!1,y:!1};function v1(){return Tn.x||Tn.y}function mz(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}function b1(e,a){const r=dz(e),o=new AbortController,l={passive:!0,...a,signal:o.signal};return[r,l,()=>o.abort()]}function Tv(e){return!(e.pointerType==="touch"||v1())}function pz(e,a,r={}){const[o,l,f]=b1(e,r),c=h=>{if(!Tv(h))return;const{target:m}=h,p=a(m,h);if(typeof p!="function"||!m)return;const y=v=>{Tv(v)&&(p(v),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,l)};return o.forEach(h=>{h.addEventListener("pointerenter",c,l)}),f}const S1=(e,a)=>a?e===a?!0:S1(e,a.parentElement):!1,xh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,gz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function x1(e){return gz.has(e.tagName)||e.isContentEditable===!0}const Rl=new WeakSet;function Ev(e){return a=>{a.key==="Enter"&&e(a)}}function Bf(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const yz=(e,a)=>{const r=e.currentTarget;if(!r)return;const o=Ev(()=>{if(Rl.has(r))return;Bf(r,"down");const l=Ev(()=>{Bf(r,"up")}),f=()=>Bf(r,"cancel");r.addEventListener("keyup",l,a),r.addEventListener("blur",f,a)});r.addEventListener("keydown",o,a),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),a)};function _v(e){return xh(e)&&!v1()}function vz(e,a,r={}){const[o,l,f]=b1(e,r),c=h=>{const m=h.currentTarget;if(!_v(h))return;Rl.add(m);const p=a(m,h),y=(x,R)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",S),Rl.has(m)&&Rl.delete(m),_v(x)&&typeof p=="function"&&p(x,{success:R})},v=x=>{y(x,m===window||m===document||r.useGlobalTarget||S1(m,x.target))},S=x=>{y(x,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",S,l)};return o.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",c,l),hz(h)&&(h.addEventListener("focus",p=>yz(p,l)),!x1(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function T1(e){return Rb(e)&&"ownerSVGElement"in e}function bz(e){return T1(e)&&e.tagName==="svg"}const Sz=[...m1,dt,Ha],xz=e=>Sz.find(h1(e)),wv=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:wv(),y:wv()}),Av=()=>({min:0,max:0}),gt=()=>({x:Av(),y:Av()}),Ad={current:null},E1={current:!1},Tz=typeof window<"u";function Ez(){if(E1.current=!0,!!Tz)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),a=()=>Ad.current=e.matches;e.addEventListener("change",a),a()}else Ad.current=!1}const _z=new WeakMap;function Ql(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zo(e){return typeof e=="string"||Array.isArray(e)}const Th=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Eh=["initial",...Th];function Fl(e){return Ql(e.animate)||Eh.some(a=>Zo(e[a]))}function _1(e){return!!(Fl(e)||e.variants)}function wz(e,a,r){for(const o in a){const l=a[o],f=r[o];if(Ot(l))e.addValue(o,l);else if(Ot(f))e.addValue(o,mr(l,{owner:e}));else if(f!==l)if(e.hasValue(o)){const c=e.getValue(o);c.liveStyle===!0?c.jump(l):c.hasAnimated||c.set(l)}else{const c=e.getStaticValue(o);e.addValue(o,mr(c!==void 0?c:l,{owner:e}))}}for(const o in r)a[o]===void 0&&e.removeValue(o);return a}const zv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vl={};function w1(e){Vl=e}function Az(){return Vl}class zz{scrapeMotionValuesFromProps(a,r,o){return{}}constructor({parent:a,props:r,presenceContext:o,reducedMotionConfig:l,blockInitialAnimation:f,visualState:c},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=jt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Ge.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=c;this.latestValues=m,this.baseTarget={...m},this.initialValues=r.initial?{...m}:{},this.renderState=p,this.parent=a,this.props=r,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=l,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=Fl(r),this.isVariantNode=_1(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(r,{},this);for(const S in v){const x=v[S];m[S]!==void 0&&Ot(x)&&x.set(m[S])}}mount(a){this.current=a,_z.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(E1.current||Ez(),this.shouldReduceMotion=Ad.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Za(this.notifyUpdate),Za(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const r=this.features[a];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,r){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const o=Sr.has(a);o&&this.onBindTransform&&this.onBindTransform();const l=r.on("change",c=>{this.latestValues[a]=c,this.props.onUpdate&&Ge.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,r)),this.valueSubscriptions.set(a,()=>{l(),f&&f(),r.owner&&r.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Vl){const r=Vl[a];if(!r)continue;const{isEnabled:o,Feature:l}=r;if(!this.features[a]&&l&&o(this.props)&&(this.features[a]=new l(this)),this.features[a]){const f=this.features[a];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):gt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,r){this.latestValues[a]=r}update(a,r){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<zv.length;o++){const l=zv[o];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const f="on"+l,c=a[f];c&&(this.propEventSubscriptions[l]=this.on(l,c))}this.prevMotionValues=wz(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(a),()=>r.variantChildren.delete(a)}addValue(a,r){const o=this.values.get(a);r!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,r),this.values.set(a,r),this.latestValues[a]=r.get())}removeValue(a){this.values.delete(a);const r=this.valueSubscriptions.get(a);r&&(r(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,r){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&r!==void 0&&(o=mr(r===null?void 0:r,{owner:this}),this.addValue(a,o)),o}readValue(a,r){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(Cb(o)||Ob(o))?o=parseFloat(o):!xz(o)&&Ha.test(r)&&(o=g1(a,r)),this.setBaseTarget(a,Ot(o)?o.get():o)),Ot(o)?o.get():o}setBaseTarget(a,r){this.baseTarget[a]=r}getBaseTarget(a){const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const f=yh(this.props,r,this.presenceContext?.custom);f&&(o=f[a])}if(r&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,a);return l!==void 0&&!Ot(l)?l:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,r){return this.events[a]||(this.events[a]=new ah),this.events[a].add(r)}notify(a,...r){this.events[a]&&this.events[a].notify(...r)}scheduleRenderMicrotask(){Sh.render(this.render)}}class A1 extends zz{constructor(){super(...arguments),this.KeyframeResolver=fz}sortInstanceNodePosition(a,r){return a.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(a,r){const o=a.style;return o?o[r]:void 0}removeValueFromRenderState(a,{vars:r,style:o}){delete r[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;Ot(a)&&(this.childSubscription=a.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class $a{constructor(a){this.isMounted=!1,this.node=a}update(){}}function z1({top:e,left:a,right:r,bottom:o}){return{x:{min:a,max:r},y:{min:e,max:o}}}function Cz({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function Rz(e,a){if(!a)return e;const r=a({x:e.left,y:e.top}),o=a({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function Zf(e){return e===void 0||e===1}function zd({scale:e,scaleX:a,scaleY:r}){return!Zf(e)||!Zf(a)||!Zf(r)}function fi(e){return zd(e)||C1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function C1(e){return Cv(e.x)||Cv(e.y)}function Cv(e){return e&&e!=="0%"}function Ul(e,a,r){const o=e-r,l=a*o;return r+l}function Rv(e,a,r,o,l){return l!==void 0&&(e=Ul(e,l,o)),Ul(e,r,o)+a}function Cd(e,a=0,r=1,o,l){e.min=Rv(e.min,a,r,o,l),e.max=Rv(e.max,a,r,o,l)}function R1(e,{x:a,y:r}){Cd(e.x,a.translate,a.scale,a.originPoint),Cd(e.y,r.translate,r.scale,r.originPoint)}const Ov=.999999999999,Mv=1.0000000000001;function Oz(e,a,r,o=!1){const l=r.length;if(!l)return;a.x=a.y=1;let f,c;for(let h=0;h<l;h++){f=r[h],c=f.projectionDelta;const{visualElement:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&lr(e,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),c&&(a.x*=c.x.scale,a.y*=c.y.scale,R1(e,c)),o&&fi(f.latestValues)&&lr(e,f.latestValues))}a.x<Mv&&a.x>Ov&&(a.x=1),a.y<Mv&&a.y>Ov&&(a.y=1)}function sr(e,a){e.min=e.min+a,e.max=e.max+a}function Dv(e,a,r,o,l=.5){const f=Fe(e.min,e.max,l);Cd(e,a,r,f,o)}function lr(e,a){Dv(e.x,a.x,a.scaleX,a.scale,a.originX),Dv(e.y,a.y,a.scaleY,a.scale,a.originY)}function O1(e,a){return z1(Rz(e.getBoundingClientRect(),a))}function Mz(e,a,r){const o=O1(e,r),{scroll:l}=a;return l&&(sr(o.x,l.offset.x),sr(o.y,l.offset.y)),o}const Dz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nz=br.length;function jz(e,a,r){let o="",l=!0;for(let f=0;f<Nz;f++){const c=br[f],h=e[c];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(c.startsWith("scale")?1:0);else{const p=parseFloat(h);m=c.startsWith("scale")?p===1:p===0}if(!m||r){const p=y1(h,bh[c]);if(!m){l=!1;const y=Dz[c]||c;o+=`${y}(${p}) `}r&&(a[c]=p)}}return o=o.trim(),r?o=r(a,l?"":o):l&&(o="none"),o}function _h(e,a,r){const{style:o,vars:l,transformOrigin:f}=e;let c=!1,h=!1;for(const m in a){const p=a[m];if(Sr.has(m)){c=!0;continue}else if(qb(m)){l[m]=p;continue}else{const y=y1(p,bh[m]);m.startsWith("origin")?(h=!0,f[m]=y):o[m]=y}}if(a.transform||(c||r?o.transform=jz(a,e.transform,r):o.transform&&(o.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:y=0}=f;o.transformOrigin=`${m} ${p} ${y}`}}function M1(e,{style:a,vars:r},o,l){const f=e.style;let c;for(c in a)f[c]=a[c];l?.applyProjectionStyles(f,o);for(c in r)f.setProperty(c,r[c])}function Nv(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}const Eo={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const r=Nv(e,a.target.x),o=Nv(e,a.target.y);return`${r}% ${o}%`}},kz={correct:(e,{treeScale:a,projectionDelta:r})=>{const o=e,l=Ha.parse(e);if(l.length>5)return o;const f=Ha.createTransformer(e),c=typeof l[0]!="number"?1:0,h=r.x.scale*a.x,m=r.y.scale*a.y;l[0+c]/=h,l[1+c]/=m;const p=Fe(h,m,.5);return typeof l[2+c]=="number"&&(l[2+c]/=p),typeof l[3+c]=="number"&&(l[3+c]/=p),f(l)}},Rd={borderRadius:{...Eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Eo,borderTopRightRadius:Eo,borderBottomLeftRadius:Eo,borderBottomRightRadius:Eo,boxShadow:kz};function D1(e,{layout:a,layoutId:r}){return Sr.has(e)||e.startsWith("origin")||(a||r!==void 0)&&(!!Rd[e]||e==="opacity")}function wh(e,a,r){const o=e.style,l=a?.style,f={};if(!o)return f;for(const c in o)(Ot(o[c])||l&&Ot(l[c])||D1(c,e)||r?.getValue(c)?.liveStyle!==void 0)&&(f[c]=o[c]);return f}function Vz(e){return window.getComputedStyle(e)}class Uz extends A1{constructor(){super(...arguments),this.type="html",this.renderInstance=M1}readValueFromInstance(a,r){if(Sr.has(r))return this.projection?.isProjecting?gd(r):dA(a,r);{const o=Vz(a),l=(qb(r)?o.getPropertyValue(r):o[r])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(a,{transformPagePoint:r}){return O1(a,r)}build(a,r,o){_h(a,r,o.transformTemplate)}scrapeMotionValuesFromProps(a,r,o){return wh(a,r,o)}}const Lz={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bz={offset:"strokeDashoffset",array:"strokeDasharray"};function Zz(e,a,r=1,o=0,l=!0){e.pathLength=1;const f=l?Lz:Bz;e[f.offset]=`${-o}`,e[f.array]=`${a} ${r}`}const Hz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function N1(e,{attrX:a,attrY:r,attrScale:o,pathLength:l,pathSpacing:f=1,pathOffset:c=0,...h},m,p,y){if(_h(e,h,p),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:S}=e;v.transform&&(S.transform=v.transform,delete v.transform),(S.transform||v.transformOrigin)&&(S.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),S.transform&&(S.transformBox=y?.transformBox??"fill-box",delete v.transformBox);for(const x of Hz)v[x]!==void 0&&(S[x]=v[x],delete v[x]);a!==void 0&&(v.x=a),r!==void 0&&(v.y=r),o!==void 0&&(v.scale=o),l!==void 0&&Zz(v,l,f,c,!1)}const j1=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"]),k1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $z(e,a,r,o){M1(e,a,void 0,o);for(const l in a.attrs)e.setAttribute(j1.has(l)?l:vh(l),a.attrs[l])}function V1(e,a,r){const o=wh(e,a,r);for(const l in e)if(Ot(e[l])||Ot(a[l])){const f=br.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;o[f]=e[l]}return o}class Gz extends A1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gt}getBaseTargetFromProps(a,r){return a[r]}readValueFromInstance(a,r){if(Sr.has(r)){const o=p1(r);return o&&o.default||0}return r=j1.has(r)?r:vh(r),a.getAttribute(r)}scrapeMotionValuesFromProps(a,r,o){return V1(a,r,o)}build(a,r,o){N1(a,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,r,o,l){$z(a,r,o,l)}mount(a){this.isSVGTag=k1(a.tagName),super.mount(a)}}const qz=Eh.length;function U1(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?U1(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const a={};for(let r=0;r<qz;r++){const o=Eh[r],l=e.props[o];(Zo(l)||l===!1)&&(a[o]=l)}return a}function L1(e,a){if(!Array.isArray(a))return!1;const r=a.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(a[o]!==e[o])return!1;return!0}const Yz=[...Th].reverse(),Pz=Th.length;function Xz(e){return a=>Promise.all(a.map(({animation:r,options:o})=>tz(e,r,o)))}function Kz(e){let a=Xz(e),r=jv(),o=!0;const l=m=>(p,y)=>{const v=fr(e,y,m==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:S,transitionEnd:x,...R}=v;p={...p,...R,...x}}return p};function f(m){a=m(e)}function c(m){const{props:p}=e,y=U1(e.parent)||{},v=[],S=new Set;let x={},R=1/0;for(let O=0;O<Pz;O++){const V=Yz[O],C=r[V],j=p[V]!==void 0?p[V]:y[V],Q=Zo(j),q=V===m?C.isActive:null;q===!1&&(R=O);let I=j===y[V]&&j!==p[V]&&Q;if(I&&o&&e.manuallyAnimateOnMount&&(I=!1),C.protectedKeys={...x},!C.isActive&&q===null||!j&&!C.prevProp||Ql(j)||typeof j=="boolean")continue;const F=Qz(C.prevProp,j);let P=F||V===m&&C.isActive&&!I&&Q||O>R&&Q,W=!1;const xe=Array.isArray(j)?j:[j];let Ae=xe.reduce(l(V),{});q===!1&&(Ae={});const{prevResolvedValues:Ce={}}=C,ot={...Ce,...Ae},je=X=>{P=!0,S.has(X)&&(W=!0,S.delete(X)),C.needsAnimating[X]=!0;const Y=e.getValue(X);Y&&(Y.liveStyle=!1)};for(const X in ot){const Y=Ae[X],ce=Ce[X];if(x.hasOwnProperty(X))continue;let pe=!1;Td(Y)&&Td(ce)?pe=!L1(Y,ce):pe=Y!==ce,pe?Y!=null?je(X):S.add(X):Y!==void 0&&S.has(X)?je(X):C.protectedKeys[X]=!0}C.prevProp=j,C.prevResolvedValues=Ae,C.isActive&&(x={...x,...Ae}),o&&e.blockInitialAnimation&&(P=!1);const ke=I&&F;P&&(!ke||W)&&v.push(...xe.map(X=>{const Y={type:V};if(typeof X=="string"&&o&&!ke&&e.manuallyAnimateOnMount&&e.parent){const{parent:ce}=e,pe=fr(ce,X);if(ce.enteringChildren&&pe){const{delayChildren:w}=pe.transition||{};Y.delay=s1(ce.enteringChildren,e,w)}}return{animation:X,options:Y}}))}if(S.size){const O={};if(typeof p.initial!="boolean"){const V=fr(e,Array.isArray(p.initial)?p.initial[0]:p.initial);V&&V.transition&&(O.transition=V.transition)}S.forEach(V=>{const C=e.getBaseTarget(V),j=e.getValue(V);j&&(j.liveStyle=!0),O[V]=C??null}),v.push({animation:O})}let E=!!v.length;return o&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),o=!1,E?a(v):Promise.resolve()}function h(m,p){if(r[m].isActive===p)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(m,p)),r[m].isActive=p;const y=c(m);for(const v in r)r[v].protectedKeys={};return y}return{animateChanges:c,setActive:h,setAnimateFunction:f,getState:()=>r,reset:()=>{r=jv()}}}function Qz(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!L1(a,e):!1}function ui(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jv(){return{animate:ui(!0),whileInView:ui(),whileHover:ui(),whileTap:ui(),whileDrag:ui(),whileFocus:ui(),exit:ui()}}function kv(e,a){e.min=a.min,e.max=a.max}function xn(e,a){kv(e.x,a.x),kv(e.y,a.y)}function Vv(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}const B1=1e-4,Fz=1-B1,Jz=1+B1,Z1=.01,Iz=0-Z1,Wz=0+Z1;function kt(e){return e.max-e.min}function eC(e,a,r){return Math.abs(e-a)<=r}function Uv(e,a,r,o=.5){e.origin=o,e.originPoint=Fe(a.min,a.max,e.origin),e.scale=kt(r)/kt(a),e.translate=Fe(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Fz&&e.scale<=Jz||isNaN(e.scale))&&(e.scale=1),(e.translate>=Iz&&e.translate<=Wz||isNaN(e.translate))&&(e.translate=0)}function No(e,a,r,o){Uv(e.x,a.x,r.x,o?o.originX:void 0),Uv(e.y,a.y,r.y,o?o.originY:void 0)}function Lv(e,a,r){e.min=r.min+a.min,e.max=e.min+kt(a)}function tC(e,a,r){Lv(e.x,a.x,r.x),Lv(e.y,a.y,r.y)}function Bv(e,a,r){e.min=a.min-r.min,e.max=e.min+kt(a)}function Ll(e,a,r){Bv(e.x,a.x,r.x),Bv(e.y,a.y,r.y)}function Zv(e,a,r,o,l){return e-=a,e=Ul(e,1/r,o),l!==void 0&&(e=Ul(e,1/l,o)),e}function nC(e,a=0,r=1,o=.5,l,f=e,c=e){if(jn.test(a)&&(a=parseFloat(a),a=Fe(c.min,c.max,a/100)-c.min),typeof a!="number")return;let h=Fe(f.min,f.max,o);e===f&&(h-=a),e.min=Zv(e.min,a,r,h,l),e.max=Zv(e.max,a,r,h,l)}function Hv(e,a,[r,o,l],f,c){nC(e,a[r],a[o],a[l],a.scale,f,c)}const aC=["x","scaleX","originX"],iC=["y","scaleY","originY"];function $v(e,a,r,o){Hv(e.x,a,aC,r?r.x:void 0,o?o.x:void 0),Hv(e.y,a,iC,r?r.y:void 0,o?o.y:void 0)}function Gv(e){return e.translate===0&&e.scale===1}function H1(e){return Gv(e.x)&&Gv(e.y)}function qv(e,a){return e.min===a.min&&e.max===a.max}function rC(e,a){return qv(e.x,a.x)&&qv(e.y,a.y)}function Yv(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function $1(e,a){return Yv(e.x,a.x)&&Yv(e.y,a.y)}function Pv(e){return kt(e.x)/kt(e.y)}function Xv(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}function dn(e){return[e("x"),e("y")]}function oC(e,a,r){let o="";const l=e.x.translate/a.x,f=e.y.translate/a.y,c=r?.z||0;if((l||f||c)&&(o=`translate3d(${l}px, ${f}px, ${c}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),r){const{transformPerspective:p,rotate:y,rotateX:v,rotateY:S,skewX:x,skewY:R}=r;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotateX(${v}deg) `),S&&(o+=`rotateY(${S}deg) `),x&&(o+=`skewX(${x}deg) `),R&&(o+=`skewY(${R}deg) `)}const h=e.x.scale*a.x,m=e.y.scale*a.y;return(h!==1||m!==1)&&(o+=`scale(${h}, ${m})`),o||"none"}const G1=["TopLeft","TopRight","BottomLeft","BottomRight"],sC=G1.length,Kv=e=>typeof e=="string"?parseFloat(e):e,Qv=e=>typeof e=="number"||ae.test(e);function lC(e,a,r,o,l,f){l?(e.opacity=Fe(0,r.opacity??1,uC(o)),e.opacityExit=Fe(a.opacity??1,0,cC(o))):f&&(e.opacity=Fe(a.opacity??1,r.opacity??1,o));for(let c=0;c<sC;c++){const h=`border${G1[c]}Radius`;let m=Fv(a,h),p=Fv(r,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Qv(m)===Qv(p)?(e[h]=Math.max(Fe(Kv(m),Kv(p),o),0),(jn.test(p)||jn.test(m))&&(e[h]+="%")):e[h]=p}(a.rotate||r.rotate)&&(e.rotate=Fe(a.rotate||0,r.rotate||0,o))}function Fv(e,a){return e[a]!==void 0?e[a]:e.borderRadius}const uC=q1(0,.5,Lb),cC=q1(.5,.95,mn);function q1(e,a,r){return o=>o<e?0:o>a?1:r(Uo(e,a,o))}function fC(e,a,r){const o=Ot(e)?e:mr(e);return o.start(gh("",o,a,r)),o.animation}function Ho(e,a,r,o={passive:!0}){return e.addEventListener(a,r,o),()=>e.removeEventListener(a,r)}const dC=(e,a)=>e.depth-a.depth;class hC{constructor(){this.children=[],this.isDirty=!1}add(a){Wd(this.children,a),this.isDirty=!0}remove(a){eh(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(dC),this.isDirty=!1,this.children.forEach(a)}}function mC(e,a){const r=jt.now(),o=({timestamp:l})=>{const f=l-r;f>=a&&(Za(o),e(f-a))};return Ge.setup(o,!0),()=>Za(o)}function Ol(e){return Ot(e)?e.get():e}class pC{constructor(){this.members=[]}add(a){Wd(this.members,a),a.scheduleRender()}remove(a){if(eh(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(a){const r=this.members.findIndex(l=>a===l);if(r===0)return!1;let o;for(let l=r;l>=0;l--){const f=this.members[l];if(f.isPresent!==!1){o=f;break}}return o?(this.promote(o),!0):!1}promote(a,r){const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.instance&&o.scheduleRender(),a.scheduleRender();const l=o.options.layoutDependency,f=a.options.layoutDependency;l!==void 0&&f!==void 0&&l===f||(a.resumeFrom=o,r&&(a.resumeFrom.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0));const{crossfade:h}=a.options;h===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:r,resumingFrom:o}=a;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ml={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Hf=["","X","Y","Z"],gC=1e3;let yC=0;function $f(e,a,r,o){const{latestValues:l}=a;l[e]&&(r[e]=l[e],a.setStaticValue(e,0),o&&(o[e]=0))}function Y1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:a}=e.options;if(!a)return;const r=f1(a);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:l,layoutId:f}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ge,!(l||f))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Y1(o)}function P1({attachResizeListener:e,defaultParent:a,measureScroll:r,checkIsScrollRoot:o,resetTransform:l}){return class{constructor(c={},h=a?.()){this.id=yC++,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(SC),this.nodes.forEach(_C),this.nodes.forEach(wC),this.nodes.forEach(xC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new hC)}addEventListener(c,h){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new ah),this.eventHandlers.get(c).add(h)}notifyListeners(c,...h){const m=this.eventHandlers.get(c);m&&m.notify(...h)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=T1(c)&&!bz(c),this.instance=c;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let y,v=0;const S=()=>this.root.updateBlockedByResize=!1;Ge.read(()=>{v=window.innerWidth}),e(c,()=>{const x=window.innerWidth;x!==v&&(v=x,this.root.updateBlockedByResize=!0,y&&y(),y=mC(S,250),Ml.hasAnimatedSinceResize&&(Ml.hasAnimatedSinceResize=!1,this.nodes.forEach(Wv)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:S,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||p.getDefaultTransition()||OC,{onLayoutAnimationStart:E,onLayoutAnimationComplete:O}=p.getProps(),V=!this.targetLayout||!$1(this.targetLayout,x),C=!v&&S;if(this.options.layoutRoot||this.resumeFrom||C||v&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...ph(R,"layout"),onPlay:E,onComplete:O};(p.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(y,C)}else v||Wv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Za(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(AC),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Y1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Iv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(EC),this.nodes.forEach(vC),this.nodes.forEach(bC)):this.nodes.forEach(Iv),this.clearAllSnapshots();const h=jt.now();At.delta=kn(0,1e3/60,h-At.timestamp),At.timestamp=h,At.isProcessing=!0,Nf.update.process(At),Nf.preRender.process(At),Nf.render.process(At),At.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(TC),this.sharedNodes.forEach(zC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!kt(this.snapshot.measuredBox.x)&&!kt(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=gt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(h=!1),h&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!H1(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;c&&this.instance&&(h||fi(this.latestValues)||y)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return c&&(m=this.removeTransform(m)),MC(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return gt();const h=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(DC))){const{scroll:p}=this.root;p&&(sr(h.x,p.offset.x),sr(h.y,p.offset.y))}return h}removeElementScroll(c){const h=gt();if(xn(h,c),this.scroll?.wasRoot)return h;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:y,options:v}=p;p!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&xn(h,c),sr(h.x,y.offset.x),sr(h.y,y.offset.y))}return h}applyTransform(c,h=!1){const m=gt();xn(m,c);for(let p=0;p<this.path.length;p++){const y=this.path[p];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&lr(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),fi(y.latestValues)&&lr(m,y.latestValues)}return fi(this.latestValues)&&lr(m,this.latestValues),m}removeTransform(c){const h=gt();xn(h,c);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!fi(p.latestValues))continue;zd(p.latestValues)&&p.updateSnapshot();const y=gt(),v=p.measurePageBox();xn(y,v),$v(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return fi(this.latestValues)&&$v(h,this.latestValues),h}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==At.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=At.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=gt(),this.targetWithTransforms=gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xn(this.target,this.layout.layoutBox),R1(this.target,this.targetDelta)):xn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||zd(this.parent.latestValues)||C1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,h,m){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),Ll(this.relativeTargetOrigin,h,m),xn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),h=!!this.resumingFrom||this!==c;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===At.timestamp&&(m=!1),m)return;const{layout:p,layoutId:y}=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||y))return;xn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,S=this.treeScale.y;Oz(this.layoutCorrected,this.treeScale,this.path,h),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gt());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vv(this.prevProjectionDelta.x,this.projectionDelta.x),Vv(this.prevProjectionDelta.y,this.projectionDelta.y)),No(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==S||!Xv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=or(),this.projectionDelta=or(),this.projectionDeltaWithTransform=or()}setAnimationOrigin(c,h=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},v=or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=gt(),x=m?m.source:void 0,R=this.layout?this.layout.source:void 0,E=x!==R,O=this.getStack(),V=!O||O.members.length<=1,C=!!(E&&!V&&this.options.crossfade===!0&&!this.path.some(RC));this.animationProgress=0;let j;this.mixTargetDelta=Q=>{const q=Q/1e3;e0(v.x,c.x,q),e0(v.y,c.y,q),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ll(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),CC(this.relativeTarget,this.relativeTargetOrigin,S,q),j&&rC(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=gt()),xn(j,this.relativeTarget)),E&&(this.animationValues=y,lC(y,p,this.latestValues,q,C,V)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Za(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{Ml.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mr(0)),this.currentAnimation=fC(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),c.onUpdate&&c.onUpdate(h)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:y}=c;if(!(!h||!m||!p)){if(this!==c&&this.layout&&p&&X1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||gt();const v=kt(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+v;const S=kt(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+S}xn(h,m),lr(h,y),No(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(c,h){this.sharedNodes.has(c)||this.sharedNodes.set(c,new pC),this.sharedNodes.get(c).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let h=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&$f("z",c,p,this.animationValues);for(let y=0;y<Hf.length;y++)$f(`rotate${Hf[y]}`,c,p,this.animationValues),$f(`skew${Hf[y]}`,c,p,this.animationValues);c.render();for(const y in p)c.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);c.scheduleRender()}applyProjectionStyles(c,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Ol(h?.pointerEvents)||"",c.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Ol(h?.pointerEvents)||""),this.hasProjected&&!fi(this.latestValues)&&(c.transform=m?m({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=oC(this.projectionDeltaWithTransform,this.treeScale,y);m&&(v=m(y,v)),c.transform=v;const{x:S,y:x}=this.projectionDelta;c.transformOrigin=`${S.origin*100}% ${x.origin*100}% 0`,p.animationValues?c.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const R in Rd){if(y[R]===void 0)continue;const{correct:E,applyTo:O,isCSSVariable:V}=Rd[R],C=v==="none"?y[R]:E(y[R],p);if(O){const j=O.length;for(let Q=0;Q<j;Q++)c[O[Q]]=C}else V?this.options.visualElement.renderState.vars[R]=C:c[R]=C}this.options.layoutId&&(c.pointerEvents=p===this?Ol(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(Jv),this.root.sharedNodes.clear()}}}function vC(e){e.updateLayout()}function bC(e){const a=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:l}=e.options,f=a.source!==e.layout.source;l==="size"?dn(y=>{const v=f?a.measuredBox[y]:a.layoutBox[y],S=kt(v);v.min=r[y].min,v.max=v.min+S}):X1(l,a.layoutBox,r)&&dn(y=>{const v=f?a.measuredBox[y]:a.layoutBox[y],S=kt(r[y]);v.max=v.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const c=or();No(c,r,a.layoutBox);const h=or();f?No(h,e.applyTransform(o,!0),a.measuredBox):No(h,r,a.layoutBox);const m=!H1(c);let p=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:S}=y;if(v&&S){const x=gt();Ll(x,a.layoutBox,v.layoutBox);const R=gt();Ll(R,r,S.layoutBox),$1(x,R)||(p=!0),y.options.layoutRoot&&(e.relativeTarget=R,e.relativeTargetOrigin=x,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:h,layoutDelta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function SC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function TC(e){e.clearSnapshot()}function Jv(e){e.clearMeasurements()}function Iv(e){e.isLayoutDirty=!1}function EC(e){const{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _C(e){e.resolveTargetDelta()}function wC(e){e.calcProjection()}function AC(e){e.resetSkewAndRotation()}function zC(e){e.removeLeadSnapshot()}function e0(e,a,r){e.translate=Fe(a.translate,0,r),e.scale=Fe(a.scale,1,r),e.origin=a.origin,e.originPoint=a.originPoint}function t0(e,a,r,o){e.min=Fe(a.min,r.min,o),e.max=Fe(a.max,r.max,o)}function CC(e,a,r,o){t0(e.x,a.x,r.x,o),t0(e.y,a.y,r.y,o)}function RC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const OC={duration:.45,ease:[.4,0,.1,1]},n0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),a0=n0("applewebkit/")&&!n0("chrome/")?Math.round:mn;function i0(e){e.min=a0(e.min),e.max=a0(e.max)}function MC(e){i0(e.x),i0(e.y)}function X1(e,a,r){return e==="position"||e==="preserve-aspect"&&!eC(Pv(a),Pv(r),.2)}function DC(e){return e!==e.root&&e.scroll?.wasRoot}const NC=P1({attachResizeListener:(e,a)=>Ho(e,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Gf={current:void 0},K1=P1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gf.current){const e=new NC({});e.mount(window),e.setOptions({layoutScroll:!0}),Gf.current=e}return Gf.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Q1=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jC(e=!0){const a=A.useContext(Id);if(a===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:l}=a,f=A.useId();A.useEffect(()=>{if(e)return l(f)},[e]);const c=A.useCallback(()=>e&&o&&o(f),[f,o,e]);return!r&&o?[!1,c]:[!0]}const F1=A.createContext({strict:!1}),r0={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 o0=!1;function kC(){if(o0)return;const e={};for(const a in r0)e[a]={isEnabled:r=>r0[a].some(o=>!!r[o])};w1(e),o0=!0}function J1(){return kC(),Az()}function VC(e){const a=J1();for(const r in e)a[r]={...a[r],...e[r]};w1(a)}const UC=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||UC.has(e)}let I1=e=>!Bl(e);function LC(e){typeof e=="function"&&(I1=a=>a.startsWith("on")?!Bl(a):e(a))}try{LC(require("@emotion/is-prop-valid").default)}catch{}function BC(e,a,r){const o={};for(const l in e)l==="values"&&typeof e.values=="object"||(I1(l)||r===!0&&Bl(l)||!a&&!Bl(l)||e.draggable&&l.startsWith("onDrag"))&&(o[l]=e[l]);return o}const Jl=A.createContext({});function ZC(e,a){if(Fl(e)){const{initial:r,animate:o}=e;return{initial:r===!1||Zo(r)?r:void 0,animate:Zo(o)?o:void 0}}return e.inherit!==!1?a:{}}function HC(e){const{initial:a,animate:r}=ZC(e,A.useContext(Jl));return A.useMemo(()=>({initial:a,animate:r}),[s0(a),s0(r)])}function s0(e){return Array.isArray(e)?e.join(" "):e}const Ah=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W1(e,a,r){for(const o in a)!Ot(a[o])&&!D1(o,r)&&(e[o]=a[o])}function $C({transformTemplate:e},a){return A.useMemo(()=>{const r=Ah();return _h(r,a,e),Object.assign({},r.vars,r.style)},[a])}function GC(e,a){const r=e.style||{},o={};return W1(o,r,e),Object.assign(o,$C(e,a)),o}function qC(e,a){const r={},o=GC(e,a);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const eS=()=>({...Ah(),attrs:{}});function YC(e,a,r,o){const l=A.useMemo(()=>{const f=eS();return N1(f,a,k1(o),e.transformTemplate,e.style),{...f.attrs,style:{...f.style}}},[a]);if(e.style){const f={};W1(f,e.style,e),l.style={...f,...l.style}}return l}const PC=["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 zh(e){return typeof e!="string"||e.includes("-")?!1:!!(PC.indexOf(e)>-1||/[A-Z]/u.test(e))}function XC(e,a,r,{latestValues:o},l,f=!1,c){const m=(c??zh(e)?YC:qC)(a,o,l,e),p=BC(a,typeof e=="string",f),y=e!==A.Fragment?{...p,...m,ref:r}:{},{children:v}=a,S=A.useMemo(()=>Ot(v)?v.get():v,[v]);return A.createElement(e,{...y,children:S})}function KC({scrapeMotionValuesFromProps:e,createRenderState:a},r,o,l){return{latestValues:QC(r,o,l,e),renderState:a()}}function QC(e,a,r,o){const l={},f=o(e,{});for(const S in f)l[S]=Ol(f[S]);let{initial:c,animate:h}=e;const m=Fl(e),p=_1(e);a&&p&&!m&&e.inherit!==!1&&(c===void 0&&(c=a.initial),h===void 0&&(h=a.animate));let y=r?r.initial===!1:!1;y=y||c===!1;const v=y?h:c;if(v&&typeof v!="boolean"&&!Ql(v)){const S=Array.isArray(v)?v:[v];for(let x=0;x<S.length;x++){const R=yh(e,S[x]);if(R){const{transitionEnd:E,transition:O,...V}=R;for(const C in V){let j=V[C];if(Array.isArray(j)){const Q=y?j.length-1:0;j=j[Q]}j!==null&&(l[C]=j)}for(const C in E)l[C]=E[C]}}}return l}const tS=e=>(a,r)=>{const o=A.useContext(Jl),l=A.useContext(Id),f=()=>KC(e,a,o,l);return r?f():l2(f)},FC=tS({scrapeMotionValuesFromProps:wh,createRenderState:Ah}),JC=tS({scrapeMotionValuesFromProps:V1,createRenderState:eS}),IC=Symbol.for("motionComponentSymbol");function WC(e,a,r){const o=A.useRef(r);A.useInsertionEffect(()=>{o.current=r});const l=A.useRef(null);return A.useCallback(f=>{f&&e.onMount?.(f),a&&(f?a.mount(f):a.unmount());const c=o.current;if(typeof c=="function")if(f){const h=c(f);typeof h=="function"&&(l.current=h)}else l.current?(l.current(),l.current=null):c(f);else c&&(c.current=f)},[a])}const nS=A.createContext({});function Co(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eR(e,a,r,o,l,f){const{visualElement:c}=A.useContext(Jl),h=A.useContext(F1),m=A.useContext(Id),p=A.useContext(Q1).reducedMotion,y=A.useRef(null),v=A.useRef(!1);o=o||h.renderer,!y.current&&o&&(y.current=o(e,{visualState:a,parent:c,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p,isSVG:f}),v.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const S=y.current,x=A.useContext(nS);S&&!S.projection&&l&&(S.type==="html"||S.type==="svg")&&tR(y.current,r,l,x);const R=A.useRef(!1);A.useInsertionEffect(()=>{S&&R.current&&S.update(r,m)});const E=r[c1],O=A.useRef(!!E&&!window.MotionHandoffIsComplete?.(E)&&window.MotionHasOptimisedAnimation?.(E));return u2(()=>{v.current=!0,S&&(R.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),O.current&&S.animationState&&S.animationState.animateChanges())}),A.useEffect(()=>{S&&(!O.current&&S.animationState&&S.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(E)}),O.current=!1),S.enteringChildren=void 0)}),S}function tR(e,a,r,o){const{layoutId:l,layout:f,drag:c,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:y}=a;e.projection=new r(e.latestValues,a["data-framer-portal-id"]?void 0:aS(e.parent)),e.projection.setOptions({layoutId:l,layout:f,alwaysMeasureLayout:!!c||h&&Co(h),visualElement:e,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:m,layoutRoot:p})}function aS(e){if(e)return e.options.allowProjection!==!1?e.projection:aS(e.parent)}function qf(e,{forwardMotionProps:a=!1,type:r}={},o,l){o&&VC(o);const f=r?r==="svg":zh(e),c=f?JC:FC;function h(p,y){let v;const S={...A.useContext(Q1),...p,layoutId:nR(p)},{isStatic:x}=S,R=HC(p),E=c(p,x);if(!x&&zb){aR();const O=iR(S);v=O.MeasureLayout,R.visualElement=eR(e,E,S,l,O.ProjectionNode,f)}return L.jsxs(Jl.Provider,{value:R,children:[v&&R.visualElement?L.jsx(v,{visualElement:R.visualElement,...S}):null,XC(e,p,WC(E,R.visualElement,y),E,x,a,f)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=A.forwardRef(h);return m[IC]=e,m}function nR({layoutId:e}){const a=A.useContext(Ab).id;return a&&e!==void 0?a+"-"+e:e}function aR(e,a){A.useContext(F1).strict}function iR(e){const a=J1(),{drag:r,layout:o}=a;if(!r&&!o)return{};const l={...r,...o};return{MeasureLayout:r?.isEnabled(e)||o?.isEnabled(e)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function rR(e,a){if(typeof Proxy>"u")return qf;const r=new Map,o=(f,c)=>qf(f,c,e,a),l=(f,c)=>o(f,c);return new Proxy(l,{get:(f,c)=>c==="create"?o:(r.has(c)||r.set(c,qf(c,void 0,e,a)),r.get(c))})}const oR=(e,a)=>a.isSVG??zh(e)?new Gz(a):new Uz(a,{allowProjection:e!==A.Fragment});class sR extends $a{constructor(a){super(a),a.animationState||(a.animationState=Kz(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Ql(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:r}=this.node.prevProps||{};a!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let lR=0;class uR extends $a{constructor(){super(...arguments),this.id=lR++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;const l=this.node.animationState.setActive("exit",!a);r&&!a&&l.then(()=>{r(this.id)})}mount(){const{register:a,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const cR={animation:{Feature:sR},exit:{Feature:uR}};function Fo(e){return{point:{x:e.pageX,y:e.pageY}}}const fR=e=>a=>xh(a)&&e(a,Fo(a));function jo(e,a,r,o){return Ho(e,a,fR(r),o)}const iS=({current:e})=>e?e.ownerDocument.defaultView:null,l0=(e,a)=>Math.abs(e-a);function dR(e,a){const r=l0(e.x,a.x),o=l0(e.y,a.y);return Math.sqrt(r**2+o**2)}const u0=new Set(["auto","scroll"]);class rS{constructor(a,r,{transformPagePoint:o,contextWindow:l=window,dragSnapToOrigin:f=!1,distanceThreshold:c=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Pf(this.lastMoveEventInfo,this.history),R=this.startEvent!==null,E=dR(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!R&&!E)return;const{point:O}=x,{timestamp:V}=At;this.history.push({...O,timestamp:V});const{onStart:C,onMove:j}=this.handlers;R||(C&&C(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,x)},this.handlePointerMove=(x,R)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Yf(R,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(x,R)=>{this.end();const{onEnd:E,onSessionEnd:O,resumeAnimation:V}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Pf(x.type==="pointercancel"?this.lastMoveEventInfo:Yf(R,this.transformPagePoint),this.history);this.startEvent&&E&&E(x,C),O&&O(x,C)},!xh(a))return;this.dragSnapToOrigin=f,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=c,this.contextWindow=l||window;const m=Fo(a),p=Yf(m,this.transformPagePoint),{point:y}=p,{timestamp:v}=At;this.history=[{...y,timestamp:v}];const{onSessionStart:S}=r;S&&S(a,Pf(p,this.history)),this.removeListeners=Xo(jo(this.contextWindow,"pointermove",this.handlePointerMove),jo(this.contextWindow,"pointerup",this.handlePointerUp),jo(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let r=a.parentElement;for(;r;){const o=getComputedStyle(r);(u0.has(o.overflowX)||u0.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const r=this.scrollPositions.get(a);if(!r)return;const o=a===window,l=o?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},f={x:l.x-r.x,y:l.y-r.y};f.x===0&&f.y===0||(o?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(a,l),Ge.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Za(this.updatePoint)}}function Yf(e,a){return a?{point:a(e.point)}:e}function c0(e,a){return{x:e.x-a.x,y:e.y-a.y}}function Pf({point:e},a){return{point:e,delta:c0(e,oS(a)),offset:c0(e,hR(a)),velocity:mR(a,.1)}}function hR(e){return e[0]}function oS(e){return e[e.length-1]}function mR(e,a){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null;const l=oS(e);for(;r>=0&&(o=e[r],!(l.timestamp-o.timestamp>oa(a)));)r--;if(!o)return{x:0,y:0};const f=hn(l.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const c={x:(l.x-o.x)/f,y:(l.y-o.y)/f};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function pR(e,{min:a,max:r},o){return a!==void 0&&e<a?e=o?Fe(a,e,o.min):Math.max(e,a):r!==void 0&&e>r&&(e=o?Fe(r,e,o.max):Math.min(e,r)),e}function f0(e,a,r){return{min:a!==void 0?e.min+a:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function gR(e,{top:a,left:r,bottom:o,right:l}){return{x:f0(e.x,r,l),y:f0(e.y,a,o)}}function d0(e,a){let r=a.min-e.min,o=a.max-e.max;return a.max-a.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function yR(e,a){return{x:d0(e.x,a.x),y:d0(e.y,a.y)}}function vR(e,a){let r=.5;const o=kt(e),l=kt(a);return l>o?r=Uo(a.min,a.max-o,e.min):o>l&&(r=Uo(e.min,e.max-l,a.min)),kn(0,1,r)}function bR(e,a){const r={};return a.min!==void 0&&(r.min=a.min-e.min),a.max!==void 0&&(r.max=a.max-e.min),r}const Od=.35;function SR(e=Od){return e===!1?e=0:e===!0&&(e=Od),{x:h0(e,"left","right"),y:h0(e,"top","bottom")}}function h0(e,a,r){return{min:m0(e,a),max:m0(e,r)}}function m0(e,a){return typeof e=="number"?e:e[a]||0}const xR=new WeakMap;class TR{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const f=v=>{r?(this.stopAnimation(),this.snapToCursor(Fo(v).point)):this.pauseAnimation()},c=(v,S)=>{this.stopAnimation();const{drag:x,dragPropagation:R,onDragStart:E}=this.getProps();if(x&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mz(x),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dn(V=>{let C=this.getAxisMotionValue(V).get()||0;if(jn.test(C)){const{projection:j}=this.visualElement;if(j&&j.layout){const Q=j.layout.layoutBox[V];Q&&(C=kt(Q)*(parseFloat(C)/100))}}this.originPoint[V]=C}),E&&Ge.postRender(()=>E(v,S)),Ed(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},h=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S;const{dragPropagation:x,dragDirectionLock:R,onDirectionLock:E,onDrag:O}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:V}=S;if(R&&this.currentDirection===null){this.currentDirection=ER(V),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",S.point,V),this.updateAxis("y",S.point,V),this.visualElement.render(),O&&O(v,S)},m=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S,this.stop(v,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>dn(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new rS(a,{onSessionStart:f,onStart:c,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:iS(this.visualElement),element:this.visualElement.current})}stop(a,r){const o=a||this.latestPointerEvent,l=r||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!l||!o)return;const{velocity:c}=l;this.startAnimation(c);const{onDragEnd:h}=this.getProps();h&&Ge.postRender(()=>h(o,l))}cancel(){this.isDragging=!1;const{projection:a,animationState:r}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,r,o){const{drag:l}=this.getProps();if(!o||!Sl(a,l,this.currentDirection))return;const f=this.getAxisMotionValue(a);let c=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(c=pR(c,this.constraints[a],this.elastic[a])),f.set(c)}resolveConstraints(){const{dragConstraints:a,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;a&&Co(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=gR(o.layoutBox,a):this.constraints=!1,this.elastic=SR(r),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&dn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=bR(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:r}=this.getProps();if(!a||!Co(a))return!1;const o=a.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const f=Mz(o,l.root,this.visualElement.getTransformPagePoint());let c=yR(l.layout.layoutBox,f);if(r){const h=r(Cz(c));this.hasMutatedConstraints=!!h,h&&(c=z1(h))}return c}startAnimation(a){const{drag:r,dragMomentum:o,dragElastic:l,dragTransition:f,dragSnapToOrigin:c,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=dn(y=>{if(!Sl(y,r,this.currentDirection))return;let v=m&&m[y]||{};c&&(v={min:0,max:0});const S=l?200:1e6,x=l?40:1e7,R={type:"inertia",velocity:o?a[y]:0,bounceStiffness:S,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,R)});return Promise.all(p).then(h)}startAxisValueAnimation(a,r){const o=this.getAxisMotionValue(a);return Ed(this.visualElement,a),o.start(gh(a,o,0,r,this.visualElement,!1))}stopAnimation(){dn(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){dn(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const r=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),l=o[r];return l||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){dn(r=>{const{drag:o}=this.getProps();if(!Sl(r,o,this.currentDirection))return;const{projection:l}=this.visualElement,f=this.getAxisMotionValue(r);if(l&&l.layout){const{min:c,max:h}=l.layout.layoutBox[r],m=f.get()||0;f.set(a[r]-Fe(c,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Co(r)||!o||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};dn(c=>{const h=this.getAxisMotionValue(c);if(h&&this.constraints!==!1){const m=h.get();l[c]=vR({min:m,max:m},this.constraints[c])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),dn(c=>{if(!Sl(c,a,null))return;const h=this.getAxisMotionValue(c),{min:m,max:p}=this.constraints[c];h.set(Fe(m,p,l[c]))})}addListeners(){if(!this.visualElement.current)return;xR.set(this.visualElement,this);const a=this.visualElement.current,r=jo(a,"pointerdown",m=>{const{drag:p,dragListener:y=!0}=this.getProps(),v=m.target,S=v!==a&&x1(v);p&&y&&!S&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();Co(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,f=l.addEventListener("measure",o);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Ge.read(o);const c=Ho(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(dn(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=m[y].translate,v.set(v.get()+m[y].translate))}),this.visualElement.render())}));return()=>{c(),r(),f(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:l=!1,dragConstraints:f=!1,dragElastic:c=Od,dragMomentum:h=!0}=a;return{...a,drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:f,dragElastic:c,dragMomentum:h}}}function Sl(e,a,r){return(a===!0||a===e)&&(r===null||r===e)}function ER(e,a=10){let r=null;return Math.abs(e.y)>a?r="y":Math.abs(e.x)>a&&(r="x"),r}class _R extends $a{constructor(a){super(a),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new TR(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}update(){const{dragControls:a}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};a!==r&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const p0=e=>(a,r)=>{e&&Ge.postRender(()=>e(a,r))};class wR extends $a{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(a){this.session=new rS(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iS(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:r,onPan:o,onPanEnd:l}=this.node.getProps();return{onSessionStart:p0(a),onStart:p0(r),onMove:o,onEnd:(f,c)=>{delete this.session,l&&Ge.postRender(()=>l(f,c))}}}mount(){this.removePointerDownListener=jo(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Xf=!1;class AR extends A.Component{componentDidMount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:o,layoutId:l}=this.props,{projection:f}=a;f&&(r.group&&r.group.add(f),o&&o.register&&l&&o.register(f),Xf&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ml.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:r,visualElement:o,drag:l,isPresent:f}=this.props,{projection:c}=o;return c&&(c.isPresent=f,a.layoutDependency!==r&&c.setOptions({...c.options,layoutDependency:r}),Xf=!0,l||a.layoutDependency!==r||r===void 0||a.isPresent!==f?c.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?c.promote():c.relegate()||Ge.postRender(()=>{const h=c.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Sh.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:l}=a;Xf=!0,l&&(l.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(l),o&&o.deregister&&o.deregister(l))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function sS(e){const[a,r]=jC(),o=A.useContext(Ab);return L.jsx(AR,{...e,layoutGroup:o,switchLayoutGroup:A.useContext(nS),isPresent:a,safeToRemove:r})}const zR={pan:{Feature:wR},drag:{Feature:_R,ProjectionNode:K1,MeasureLayout:sS}};function g0(e,a,r){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r==="Start");const l="onHover"+r,f=o[l];f&&Ge.postRender(()=>f(a,Fo(a)))}class CR extends $a{mount(){const{current:a}=this.node;a&&(this.unmount=pz(a,(r,o)=>(g0(this.node,o,"Start"),l=>g0(this.node,l,"End"))))}unmount(){}}class RR extends $a{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=Xo(Ho(this.node.current,"focus",()=>this.onFocus()),Ho(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function y0(e,a,r){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",r==="Start");const l="onTap"+(r==="End"?"":r),f=o[l];f&&Ge.postRender(()=>f(a,Fo(a)))}class OR extends $a{mount(){const{current:a}=this.node;a&&(this.unmount=vz(a,(r,o)=>(y0(this.node,o,"Start"),(l,{success:f})=>y0(this.node,l,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Md=new WeakMap,Kf=new WeakMap,MR=e=>{const a=Md.get(e.target);a&&a(e)},DR=e=>{e.forEach(MR)};function NR({root:e,...a}){const r=e||document;Kf.has(r)||Kf.set(r,{});const o=Kf.get(r),l=JSON.stringify(a);return o[l]||(o[l]=new IntersectionObserver(DR,{root:e,...a})),o[l]}function jR(e,a,r){const o=NR(a);return Md.set(e,r),o.observe(e),()=>{Md.delete(e),o.unobserve(e)}}const kR={some:0,all:1};class VR extends $a{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:r,margin:o,amount:l="some",once:f}=a,c={root:r?r.current:void 0,rootMargin:o,threshold:typeof l=="number"?l:kR[l]},h=m=>{const{isIntersecting:p}=m;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:y,onViewportLeave:v}=this.node.getProps(),S=p?y:v;S&&S(m)};return jR(this.node.current,c,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:r}=this.node;["amount","margin","root"].some(UR(a,r))&&this.startObserver()}unmount(){}}function UR({viewport:e={}},{viewport:a={}}={}){return r=>e[r]!==a[r]}const LR={inView:{Feature:VR},tap:{Feature:OR},focus:{Feature:RR},hover:{Feature:CR}},BR={layout:{ProjectionNode:K1,MeasureLayout:sS}},ZR={...cR,...LR,...zR,...BR},ko=rR(ZR,oR);function HR({children:e}){const a=ua(),[r,o]=A.useState(!0);A.useEffect(()=>{const f=localStorage.getItem("theme");o(f?f==="dark":!0)},[]),A.useEffect(()=>{r?(document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"))},[r]);const l=[{icon:vw,label:"Dashboard",path:"/"},{icon:_w,label:"Configuration",path:"/config"},{icon:Cw,label:"Logs",path:"/logs"}];return L.jsxs("div",{className:"flex flex-col h-screen bg-gray-50 dark:bg-black text-gray-900 dark:text-matrix-secondary font-mono overflow-hidden transition-colors duration-300",children:[L.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[L.jsxs(ko.div,{className:"w-64 border-r border-gray-200 dark:border-matrix-primary bg-white dark:bg-zinc-950 flex flex-col shrink-0 transition-colors duration-300",initial:{x:-64,opacity:0},animate:{x:0,opacity:1},transition:{duration:.9,type:"spring"},children:[L.jsxs("div",{className:"p-4 border-b border-gray-200 dark:border-matrix-primary flex justify-between items-center",children:[L.jsxs("h1",{className:"text-xl font-bold text-green-700 dark:text-matrix-highlight flex items-center gap-2",children:[L.jsx(pb,{className:"w-6 h-6"}),"MORPHEUS"]}),L.jsx("button",{onClick:()=>o(!r),className:"p-1 rounded hover:bg-gray-200 dark:hover:bg-matrix-primary/50 text-gray-500 dark:text-matrix-secondary transition-colors",children:r?L.jsx(Aw,{className:"w-4 h-4"}):L.jsx(Sw,{className:"w-4 h-4"})})]}),L.jsx("nav",{className:"flex-1 p-4 space-y-2",children:l.map(f=>{const c=a.pathname===f.path;return L.jsxs(Xd,{to:f.path,className:`flex items-center gap-3 px-4 py-3 rounded transition-colors ${c?"bg-green-100 text-green-800 dark:bg-matrix-primary dark:text-matrix-highlight":"hover:bg-gray-100 dark:hover:bg-matrix-primary/50 text-gray-600 dark:text-matrix-secondary"}`,children:[L.jsx(f.icon,{className:"w-5 h-5"}),L.jsx("span",{children:f.label})]},f.path)})})]}),L.jsxs("main",{className:"flex-1 overflow-auto p-8 relative flex flex-col",children:[L.jsx("div",{className:"max-w-6xl w-full mx-auto flex-1",children:e}),L.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(rgba(18,16,16,0)_50%,rgba(0,0,0,0.1)_50%),linear-gradient(90deg,rgba(0,255,0,0.03),rgba(0,255,0,0.01))] bg-[length:100%_2px,3px_100%] opacity-0 dark:opacity-20 transition-opacity duration-300"})]})]}),L.jsx(s2,{})]})}function $R(){const{data:e}=wb(),a={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.1}}},r={hidden:{opacity:0,y:20},show:{opacity:1,y:0}},o=({title:l,value:f,icon:c,subValue:h})=>L.jsxs(ko.div,{variants:r,className:"border border-matrix-primary bg-zinc-950/50 p-6 rounded relative overflow-hidden group hover:border-matrix-highlight transition-colors",children:[L.jsxs("div",{className:"flex justify-between items-start mb-4",children:[L.jsx("h3",{className:"text-matrix-secondary text-sm font-bold uppercase",children:l}),L.jsx(c,{className:"w-6 h-6 text-matrix-primary group-hover:text-matrix-highlight transition-colors"})]}),L.jsx("div",{className:"text-3xl font-bold text-matrix-highlight mb-1 font-mono tracking-tighter truncate",children:f}),h&&L.jsx("div",{className:"text-xs text-matrix-secondary opacity-70 font-mono",children:h})]});return L.jsxs(ko.div,{className:"space-y-8",variants:a,initial:"hidden",animate:"show",children:[L.jsxs(ko.div,{variants:r,children:[L.jsx("h2",{className:"text-2xl font-bold text-matrix-highlight mb-2",children:"SYSTEM STATUS"}),L.jsx("p",{className:"text-matrix-secondary opacity-80",children:"Overview of the Morpheus agent runtime."})]}),L.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[L.jsx(o,{title:"Agent Status",value:e?.status.toUpperCase()||"CONNECTING...",icon:pb,subValue:e?`PID: ${e.pid}`:""}),L.jsx(o,{title:"Uptime",value:e?`${Math.floor(e.uptimeSeconds/60)}m`:"-",icon:dw,subValue:e?`${e.uptimeSeconds.toFixed(0)} seconds`:""}),L.jsx(o,{title:"Version",value:e?.projectVersion||"-",icon:mw,subValue:`Node ${e?.nodeVersion||"-"}`}),L.jsx(o,{title:"Provider",value:e?.llmProvider?.toUpperCase()||"-",icon:cw,subValue:"LLM Inference Engine"}),L.jsx(o,{title:"Model",value:e?.llmModel||"-",icon:lw,subValue:"Active Model"})]})]})}function _o({title:e,description:a,children:r}){return L.jsxs("div",{className:"border border-matrix-primary rounded-lg p-6 bg-matrix-base/50",children:[L.jsxs("div",{className:"mb-4",children:[L.jsx("h3",{className:"text-lg font-medium text-matrix-highlight",children:e}),a&&L.jsx("p",{className:"text-sm text-matrix-secondary mt-1",children:a})]}),L.jsx("div",{className:"space-y-4",children:r})]})}const GR=(e,a)=>{const r=new Array(e.length+a.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<a.length;o++)r[e.length+o]=a[o];return r},qR=(e,a)=>({classGroupId:e,validator:a}),lS=(e=new Map,a=null,r)=>({nextPart:e,validators:a,classGroupId:r}),Zl="-",v0=[],YR="arbitrary..",PR=e=>{const a=KR(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return XR(c);const h=c.split(Zl),m=h[0]===""&&h.length>1?1:0;return uS(h,m,a)},getConflictingClassGroupIds:(c,h)=>{if(h){const m=o[c],p=r[c];return m?p?GR(p,m):m:p||v0}return r[c]||v0}}},uS=(e,a,r)=>{if(e.length-a===0)return r.classGroupId;const l=e[a],f=r.nextPart.get(l);if(f){const p=uS(e,a+1,f);if(p)return p}const c=r.validators;if(c===null)return;const h=a===0?e.join(Zl):e.slice(a).join(Zl),m=c.length;for(let p=0;p<m;p++){const y=c[p];if(y.validator(h))return y.classGroupId}},XR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),r=a.indexOf(":"),o=a.slice(0,r);return o?YR+o:void 0})(),KR=e=>{const{theme:a,classGroups:r}=e;return QR(r,a)},QR=(e,a)=>{const r=lS();for(const o in e){const l=e[o];Ch(l,r,o,a)}return r},Ch=(e,a,r,o)=>{const l=e.length;for(let f=0;f<l;f++){const c=e[f];FR(c,a,r,o)}},FR=(e,a,r,o)=>{if(typeof e=="string"){JR(e,a,r);return}if(typeof e=="function"){IR(e,a,r,o);return}WR(e,a,r,o)},JR=(e,a,r)=>{const o=e===""?a:cS(a,e);o.classGroupId=r},IR=(e,a,r,o)=>{if(eO(e)){Ch(e(o),a,r,o);return}a.validators===null&&(a.validators=[]),a.validators.push(qR(r,e))},WR=(e,a,r,o)=>{const l=Object.entries(e),f=l.length;for(let c=0;c<f;c++){const[h,m]=l[c];Ch(m,cS(a,h),r,o)}},cS=(e,a)=>{let r=e;const o=a.split(Zl),l=o.length;for(let f=0;f<l;f++){const c=o[f];let h=r.nextPart.get(c);h||(h=lS(),r.nextPart.set(c,h)),r=h}return r},eO=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),o=Object.create(null);const l=(f,c)=>{r[f]=c,a++,a>e&&(a=0,o=r,r=Object.create(null))};return{get(f){let c=r[f];if(c!==void 0)return c;if((c=o[f])!==void 0)return l(f,c),c},set(f,c){f in r?r[f]=c:l(f,c)}}},Dd="!",b0=":",nO=[],S0=(e,a,r,o,l)=>({modifiers:e,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:o,isExternal:l}),aO=e=>{const{prefix:a,experimentalParseClassName:r}=e;let o=l=>{const f=[];let c=0,h=0,m=0,p;const y=l.length;for(let E=0;E<y;E++){const O=l[E];if(c===0&&h===0){if(O===b0){f.push(l.slice(m,E)),m=E+1;continue}if(O==="/"){p=E;continue}}O==="["?c++:O==="]"?c--:O==="("?h++:O===")"&&h--}const v=f.length===0?l:l.slice(m);let S=v,x=!1;v.endsWith(Dd)?(S=v.slice(0,-1),x=!0):v.startsWith(Dd)&&(S=v.slice(1),x=!0);const R=p&&p>m?p-m:void 0;return S0(f,x,S,R)};if(a){const l=a+b0,f=o;o=c=>c.startsWith(l)?f(c.slice(l.length)):S0(nO,!1,c,void 0,!0)}if(r){const l=o;o=f=>r({className:f,parseClassName:l})}return o},iO=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{a.set(r,1e6+o)}),r=>{const o=[];let l=[];for(let f=0;f<r.length;f++){const c=r[f],h=c[0]==="[",m=a.has(c);h||m?(l.length>0&&(l.sort(),o.push(...l),l=[]),o.push(c)):l.push(c)}return l.length>0&&(l.sort(),o.push(...l)),o}},rO=e=>({cache:tO(e.cacheSize),parseClassName:aO(e),sortModifiers:iO(e),...PR(e)}),oO=/\s+/,sO=(e,a)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:f}=a,c=[],h=e.trim().split(oO);let m="";for(let p=h.length-1;p>=0;p-=1){const y=h[p],{isExternal:v,modifiers:S,hasImportantModifier:x,baseClassName:R,maybePostfixModifierPosition:E}=r(y);if(v){m=y+(m.length>0?" "+m:m);continue}let O=!!E,V=o(O?R.substring(0,E):R);if(!V){if(!O){m=y+(m.length>0?" "+m:m);continue}if(V=o(R),!V){m=y+(m.length>0?" "+m:m);continue}O=!1}const C=S.length===0?"":S.length===1?S[0]:f(S).join(":"),j=x?C+Dd:C,Q=j+V;if(c.indexOf(Q)>-1)continue;c.push(Q);const q=l(V,O);for(let I=0;I<q.length;++I){const F=q[I];c.push(j+F)}m=y+(m.length>0?" "+m:m)}return m},lO=(...e)=>{let a=0,r,o,l="";for(;a<e.length;)(r=e[a++])&&(o=fS(r))&&(l&&(l+=" "),l+=o);return l},fS=e=>{if(typeof e=="string")return e;let a,r="";for(let o=0;o<e.length;o++)e[o]&&(a=fS(e[o]))&&(r&&(r+=" "),r+=a);return r},uO=(e,...a)=>{let r,o,l,f;const c=m=>{const p=a.reduce((y,v)=>v(y),e());return r=rO(p),o=r.cache.get,l=r.cache.set,f=h,h(m)},h=m=>{const p=o(m);if(p)return p;const y=sO(m,r);return l(m,y),y};return f=c,(...m)=>f(lO(...m))},cO=[],pt=e=>{const a=r=>r[e]||cO;return a.isThemeGetter=!0,a},dS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fO=/^\d+\/\d+$/,dO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ar=e=>fO.test(e),ge=e=>!!e&&!Number.isNaN(Number(e)),Va=e=>!!e&&Number.isInteger(Number(e)),Qf=e=>e.endsWith("%")&&ge(e.slice(0,-1)),ta=e=>dO.test(e),yO=()=>!0,vO=e=>hO.test(e)&&!mO.test(e),mS=()=>!1,bO=e=>pO.test(e),SO=e=>gO.test(e),xO=e=>!te(e)&&!ne(e),TO=e=>xr(e,yS,mS),te=e=>dS.test(e),ci=e=>xr(e,vS,vO),Ff=e=>xr(e,zO,ge),x0=e=>xr(e,pS,mS),EO=e=>xr(e,gS,SO),xl=e=>xr(e,bS,bO),ne=e=>hS.test(e),wo=e=>Tr(e,vS),_O=e=>Tr(e,CO),T0=e=>Tr(e,pS),wO=e=>Tr(e,yS),AO=e=>Tr(e,gS),Tl=e=>Tr(e,bS,!0),xr=(e,a,r)=>{const o=dS.exec(e);return o?o[1]?a(o[1]):r(o[2]):!1},Tr=(e,a,r=!1)=>{const o=hS.exec(e);return o?o[1]?a(o[1]):r:!1},pS=e=>e==="position"||e==="percentage",gS=e=>e==="image"||e==="url",yS=e=>e==="length"||e==="size"||e==="bg-size",vS=e=>e==="length",zO=e=>e==="number",CO=e=>e==="family-name",bS=e=>e==="shadow",RO=()=>{const e=pt("color"),a=pt("font"),r=pt("text"),o=pt("font-weight"),l=pt("tracking"),f=pt("leading"),c=pt("breakpoint"),h=pt("container"),m=pt("spacing"),p=pt("radius"),y=pt("shadow"),v=pt("inset-shadow"),S=pt("text-shadow"),x=pt("drop-shadow"),R=pt("blur"),E=pt("perspective"),O=pt("aspect"),V=pt("ease"),C=pt("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...Q(),ne,te],I=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[ne,te,m],W=()=>[ar,"full","auto",...P()],xe=()=>[Va,"none","subgrid",ne,te],Ae=()=>["auto",{span:["full",Va,ne,te]},Va,ne,te],Ce=()=>[Va,"auto",ne,te],ot=()=>["auto","min","max","fr",ne,te],je=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...P()],X=()=>[ar,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Y=()=>[e,ne,te],ce=()=>[...Q(),T0,x0,{position:[ne,te]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",wO,TO,{size:[ne,te]}],Z=()=>[Qf,wo,ci],K=()=>["","none","full",p,ne,te],J=()=>["",ge,wo,ci],le=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[ge,Qf,T0,x0],st=()=>["","none",R,ne,te],Re=()=>["none",ge,ne,te],qt=()=>["none",ge,ne,te],_n=()=>[ge,ne,te],wn=()=>[ar,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ta],breakpoint:[ta],color:[yO],container:[ta],"drop-shadow":[ta],ease:["in","out","in-out"],font:[xO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ta],shadow:[ta],spacing:["px",ge],text:[ta],"text-shadow":[ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ar,te,ne,O]}],container:["container"],columns:[{columns:[ge,te,ne,h]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Va,"auto",ne,te]}],basis:[{basis:[ar,"full","auto",h,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,ar,"auto","initial","none",te]}],grow:[{grow:["",ge,ne,te]}],shrink:[{shrink:["",ge,ne,te]}],order:[{order:[Va,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":xe()}],"col-start-end":[{col:Ae()}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":xe()}],"row-start-end":[{row:Ae()}],"row-start":[{"row-start":Ce()}],"row-end":[{"row-end":Ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ot()}],"auto-rows":[{"auto-rows":ot()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...je(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...je()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":je()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[h,"screen",...X()]}],"min-w":[{"min-w":[h,"screen","none",...X()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[c]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,wo,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ne,Ff]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qf,te]}],"font-family":[{font:[_O,te,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,ne,te]}],"line-clamp":[{"line-clamp":[ge,"none",ne,Ff]}],leading:[{leading:[f,...P()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",ne,ci]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[ge,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Va,ne,te],radial:["",ne,te],conic:[Va,ne,te]},AO,EO]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,ne,te]}],"outline-w":[{outline:["",ge,wo,ci]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",y,Tl,xl]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",v,Tl,xl]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[ge,ci]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",S,Tl,xl]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[ge,ne,te]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Q()}],"mask-image-conic-pos":[{"mask-conic":[ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:st()}],brightness:[{brightness:[ge,ne,te]}],contrast:[{contrast:[ge,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",x,Tl,xl]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",ge,ne,te]}],"hue-rotate":[{"hue-rotate":[ge,ne,te]}],invert:[{invert:["",ge,ne,te]}],saturate:[{saturate:[ge,ne,te]}],sepia:[{sepia:["",ge,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[ge,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[ge,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ge,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ge,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",ge,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[ge,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[ge,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",ge,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ge,"initial",ne,te]}],ease:[{ease:["linear","initial",V,ne,te]}],delay:[{delay:[ge,ne,te]}],animate:[{animate:["none",C,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ne,te]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:qt()}],"scale-x":[{"scale-x":qt()}],"scale-y":[{"scale-y":qt()}],"scale-z":[{"scale-z":qt()}],"scale-3d":["scale-3d"],skew:[{skew:_n()}],"skew-x":[{"skew-x":_n()}],"skew-y":[{"skew-y":_n()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wn()}],"translate-x":[{"translate-x":wn()}],"translate-y":[{"translate-y":wn()}],"translate-z":[{"translate-z":wn()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,te]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[ge,wo,ci,Ff]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},dr=uO(RO);function ir({label:e,error:a,helperText:r,className:o,...l}){return L.jsxs("div",{className:"flex flex-col gap-1.5",children:[L.jsx("label",{className:"text-sm font-medium text-matrix-highlight/80",children:e}),L.jsx("input",{className:dr("bg-matrix-base border border-matrix-primary text-matrix-highlight placeholder-matrix-secondary/50 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-matrix-highlight focus:border-matrix-highlight transition-colors",a&&"border-red-500 focus:border-red-500 focus:ring-red-500",o),...l}),r&&!a&&L.jsx("p",{className:"text-xs text-matrix-secondary",children:r}),a&&L.jsx("p",{className:"text-xs text-red-500",children:a})]})}function E0({label:e,options:a,error:r,helperText:o,className:l,...f}){return L.jsxs("div",{className:"flex flex-col gap-1.5",children:[L.jsx("label",{className:"text-sm font-medium text-matrix-highlight/80",children:e}),L.jsx("select",{className:dr("bg-matrix-base border border-matrix-primary text-matrix-highlight rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-matrix-highlight focus:border-matrix-highlight transition-colors appearance-none",r&&"border-red-500 focus:border-red-500 focus:ring-red-500",l),...f,children:a.map(c=>L.jsx("option",{value:c.value,className:"bg-matrix-base",children:c.label},c.value))}),o&&!r&&L.jsx("p",{className:"text-xs text-matrix-secondary",children:o}),r&&L.jsx("p",{className:"text-xs text-red-500",children:r})]})}function _0({label:e,error:a,helperText:r,className:o,...l}){return L.jsxs("div",{className:"flex flex-col gap-1.5",children:[L.jsx("label",{className:"text-sm font-medium text-matrix-highlight/80",children:e}),L.jsx("input",{type:"number",className:dr("bg-matrix-base border border-matrix-primary text-matrix-highlight placeholder-matrix-secondary/50 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-matrix-highlight focus:border-matrix-highlight transition-colors",a&&"border-red-500 focus:border-red-500 focus:ring-red-500",o),...l}),r&&!a&&L.jsx("p",{className:"text-xs text-matrix-secondary",children:r}),a&&L.jsx("p",{className:"text-xs text-red-500",children:a})]})}function Jf({label:e,checked:a,onChange:r,helperText:o,disabled:l}){return L.jsxs("div",{className:"flex items-center justify-between",children:[L.jsxs("div",{className:"flex flex-col",children:[L.jsx("span",{className:dr("text-sm font-medium text-matrix-highlight/80",l&&"opacity-50"),children:e}),o&&L.jsx("span",{className:"text-xs text-matrix-secondary",children:o})]}),L.jsx("button",{type:"button",role:"switch","aria-checked":a,onClick:()=>!l&&r(!a),className:dr("relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-matrix-highlight focus:ring-offset-2 focus:ring-offset-black",a?"bg-matrix-highlight":"bg-matrix-primary",l&&"opacity-50 cursor-not-allowed"),children:L.jsx("span",{className:dr("inline-block h-4 w-4 transform rounded-full bg-black transition-transform",a?"translate-x-6":"translate-x-1")})})]})}const w0="/api",A0={fetchConfig:async()=>{const e=await fetch(`${w0}/config`);if(!e.ok)throw new Error("Failed to fetch configuration");return e.json()},updateConfig:async e=>{const a=await fetch(`${w0}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){const r=await a.json(),o=new Error(r.error||"Failed to update configuration");throw o.details=r.details,o}return a.json()}};function G(e,a,r){function o(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),a(h,m);const p=c.prototype,y=Object.keys(p);for(let v=0;v<y.length;v++){const S=y[v];S in h||(h[S]=p[S].bind(h))}}const l=r?.Parent??Object;class f extends l{}Object.defineProperty(f,"name",{value:e});function c(h){var m;const p=r?.Parent?new f:this;o(p,h),(m=p._zod).deferred??(m.deferred=[]);for(const y of p._zod.deferred)y();return p}return Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class hr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class SS extends Error{constructor(a){super(`Encountered unidirectional transform during encode: ${a}`),this.name="ZodEncodeError"}}const xS={};function pi(e){return xS}function TS(e){const a=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,l])=>a.indexOf(+o)===-1).map(([o,l])=>l)}function Nd(e,a){return typeof a=="bigint"?a.toString():a}function Rh(e){return{get value(){{const a=e();return Object.defineProperty(this,"value",{value:a}),a}}}}function Oh(e){return e==null}function Mh(e){const a=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(a,r)}function OO(e,a){const r=(e.toString().split(".")[1]||"").length,o=a.toString();let l=(o.split(".")[1]||"").length;if(l===0&&/\d?e-\d?/.test(o)){const m=o.match(/\d?e-(\d?)/);m?.[1]&&(l=Number.parseInt(m[1]))}const f=r>l?r:l,c=Number.parseInt(e.toFixed(f).replace(".","")),h=Number.parseInt(a.toFixed(f).replace(".",""));return c%h/10**f}const z0=Symbol("evaluating");function Ne(e,a,r){let o;Object.defineProperty(e,a,{get(){if(o!==z0)return o===void 0&&(o=z0,o=r()),o},set(l){Object.defineProperty(e,a,{value:l})},configurable:!0})}function yi(e,a,r){Object.defineProperty(e,a,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ga(...e){const a={};for(const r of e){const o=Object.getOwnPropertyDescriptors(r);Object.assign(a,o)}return Object.defineProperties({},a)}function C0(e){return JSON.stringify(e)}function MO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ES="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const DO=Rh(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function $o(e){if(Hl(e)===!1)return!1;const a=e.constructor;if(a===void 0||typeof a!="function")return!0;const r=a.prototype;return!(Hl(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function _S(e){return $o(e)?{...e}:Array.isArray(e)?[...e]:e}const NO=new Set(["string","number","symbol"]);function Il(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qa(e,a,r){const o=new e._zod.constr(a??e._zod.def);return(!a||r?.parent)&&(o._zod.parent=e),o}function se(e){const a=e;if(!a)return{};if(typeof a=="string")return{error:()=>a};if(a?.message!==void 0){if(a?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");a.error=a.message}return delete a.message,typeof a.error=="string"?{...a,error:()=>a.error}:a}function jO(e){return Object.keys(e).filter(a=>e[a]._zod.optin==="optional"&&e[a]._zod.optout==="optional")}const kO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function VO(e,a){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const f=Ga(e._zod.def,{get shape(){const c={};for(const h in a){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&(c[h]=r.shape[h])}return yi(this,"shape",c),c},checks:[]});return qa(e,f)}function UO(e,a){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const f=Ga(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const h in a){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&delete c[h]}return yi(this,"shape",c),c},checks:[]});return qa(e,f)}function LO(e,a){if(!$o(a))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const f=e._zod.def.shape;for(const c in a)if(Object.getOwnPropertyDescriptor(f,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const l=Ga(e._zod.def,{get shape(){const f={...e._zod.def.shape,...a};return yi(this,"shape",f),f}});return qa(e,l)}function BO(e,a){if(!$o(a))throw new Error("Invalid input to safeExtend: expected a plain object");const r=Ga(e._zod.def,{get shape(){const o={...e._zod.def.shape,...a};return yi(this,"shape",o),o}});return qa(e,r)}function ZO(e,a){const r=Ga(e._zod.def,{get shape(){const o={...e._zod.def.shape,...a._zod.def.shape};return yi(this,"shape",o),o},get catchall(){return a._zod.def.catchall},checks:[]});return qa(e,r)}function HO(e,a,r){const l=a._zod.def.checks;if(l&&l.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Ga(a._zod.def,{get shape(){const h=a._zod.def.shape,m={...h};if(r)for(const p in r){if(!(p in h))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(m[p]=e?new e({type:"optional",innerType:h[p]}):h[p])}else for(const p in h)m[p]=e?new e({type:"optional",innerType:h[p]}):h[p];return yi(this,"shape",m),m},checks:[]});return qa(a,c)}function $O(e,a,r){const o=Ga(a._zod.def,{get shape(){const l=a._zod.def.shape,f={...l};if(r)for(const c in r){if(!(c in f))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(f[c]=new e({type:"nonoptional",innerType:l[c]}))}else for(const c in l)f[c]=new e({type:"nonoptional",innerType:l[c]});return yi(this,"shape",f),f}});return qa(a,o)}function ur(e,a=0){if(e.aborted===!0)return!0;for(let r=a;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function wS(e,a){return a.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function El(e){return typeof e=="string"?e:e?.message}function gi(e,a,r){const o={...e,path:e.path??[]};if(!e.message){const l=El(e.inst?._zod.def?.error?.(e))??El(a?.error?.(e))??El(r.customError?.(e))??El(r.localeError?.(e))??"Invalid input";o.message=l}return delete o.inst,delete o.continue,a?.reportInput||delete o.input,o}function Dh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Go(...e){const[a,r,o]=e;return typeof a=="string"?{message:a,code:"custom",input:r,inst:o}:{...a}}const AS=(e,a)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:a,enumerable:!1}),e.message=JSON.stringify(a,Nd,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},zS=G("$ZodError",AS),CS=G("$ZodError",AS,{Parent:Error});function GO(e,a=r=>r.message){const r={},o=[];for(const l of e.issues)l.path.length>0?(r[l.path[0]]=r[l.path[0]]||[],r[l.path[0]].push(a(l))):o.push(a(l));return{formErrors:o,fieldErrors:r}}function qO(e,a=r=>r.message){const r={_errors:[]},o=l=>{for(const f of l.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(c=>o({issues:c}));else if(f.code==="invalid_key")o({issues:f.issues});else if(f.code==="invalid_element")o({issues:f.issues});else if(f.path.length===0)r._errors.push(a(f));else{let c=r,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(a(f))):c[m]=c[m]||{_errors:[]},c=c[m],h++}}};return o(e),r}const Nh=e=>(a,r,o,l)=>{const f=o?Object.assign(o,{async:!1}):{async:!1},c=a._zod.run({value:r,issues:[]},f);if(c instanceof Promise)throw new hr;if(c.issues.length){const h=new(l?.Err??e)(c.issues.map(m=>gi(m,f,pi())));throw ES(h,l?.callee),h}return c.value},jh=e=>async(a,r,o,l)=>{const f=o?Object.assign(o,{async:!0}):{async:!0};let c=a._zod.run({value:r,issues:[]},f);if(c instanceof Promise&&(c=await c),c.issues.length){const h=new(l?.Err??e)(c.issues.map(m=>gi(m,f,pi())));throw ES(h,l?.callee),h}return c.value},Wl=e=>(a,r,o)=>{const l=o?{...o,async:!1}:{async:!1},f=a._zod.run({value:r,issues:[]},l);if(f instanceof Promise)throw new hr;return f.issues.length?{success:!1,error:new(e??zS)(f.issues.map(c=>gi(c,l,pi())))}:{success:!0,data:f.value}},YO=Wl(CS),eu=e=>async(a,r,o)=>{const l=o?Object.assign(o,{async:!0}):{async:!0};let f=a._zod.run({value:r,issues:[]},l);return f instanceof Promise&&(f=await f),f.issues.length?{success:!1,error:new e(f.issues.map(c=>gi(c,l,pi())))}:{success:!0,data:f.value}},PO=eu(CS),XO=e=>(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Nh(e)(a,r,l)},KO=e=>(a,r,o)=>Nh(e)(a,r,o),QO=e=>async(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return jh(e)(a,r,l)},FO=e=>async(a,r,o)=>jh(e)(a,r,o),JO=e=>(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Wl(e)(a,r,l)},IO=e=>(a,r,o)=>Wl(e)(a,r,o),WO=e=>async(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return eu(e)(a,r,l)},eM=e=>async(a,r,o)=>eu(e)(a,r,o),tM=/^[cC][^\s-]{8,}$/,nM=/^[0-9a-z]+$/,aM=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,iM=/^[0-9a-vA-V]{20}$/,rM=/^[A-Za-z0-9]{27}$/,oM=/^[a-zA-Z0-9_-]{21}$/,sM=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lM=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,R0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,uM=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function fM(){return new RegExp(cM,"u")}const dM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,hM=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,mM=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,pM=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gM=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,RS=/^[A-Za-z0-9_-]*$/,yM=/^\+[1-9]\d{6,14}$/,OS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vM=new RegExp(`^${OS}$`);function MS(e){const a="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${a}`:e.precision===0?`${a}:[0-5]\\d`:`${a}:[0-5]\\d\\.\\d{${e.precision}}`:`${a}(?::[0-5]\\d(?:\\.\\d+)?)?`}function bM(e){return new RegExp(`^${MS(e)}$`)}function SM(e){const a=MS({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${a}(?:${r.join("|")})`;return new RegExp(`^${OS}T(?:${o})$`)}const xM=e=>{const a=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${a}$`)},TM=/^-?\d+$/,EM=/^-?\d+(?:\.\d+)?$/,_M=/^(?:true|false)$/i,wM=/^[^A-Z]*$/,AM=/^[^a-z]*$/,Gt=G("$ZodCheck",(e,a)=>{var r;e._zod??(e._zod={}),e._zod.def=a,(r=e._zod).onattach??(r.onattach=[])}),DS={number:"number",bigint:"bigint",object:"date"},NS=G("$ZodCheckLessThan",(e,a)=>{Gt.init(e,a);const r=DS[typeof a.value];e._zod.onattach.push(o=>{const l=o._zod.bag,f=(a.inclusive?l.maximum:l.exclusiveMaximum)??Number.POSITIVE_INFINITY;a.value<f&&(a.inclusive?l.maximum=a.value:l.exclusiveMaximum=a.value)}),e._zod.check=o=>{(a.inclusive?o.value<=a.value:o.value<a.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof a.value=="object"?a.value.getTime():a.value,input:o.value,inclusive:a.inclusive,inst:e,continue:!a.abort})}}),jS=G("$ZodCheckGreaterThan",(e,a)=>{Gt.init(e,a);const r=DS[typeof a.value];e._zod.onattach.push(o=>{const l=o._zod.bag,f=(a.inclusive?l.minimum:l.exclusiveMinimum)??Number.NEGATIVE_INFINITY;a.value>f&&(a.inclusive?l.minimum=a.value:l.exclusiveMinimum=a.value)}),e._zod.check=o=>{(a.inclusive?o.value>=a.value:o.value>a.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof a.value=="object"?a.value.getTime():a.value,input:o.value,inclusive:a.inclusive,inst:e,continue:!a.abort})}}),zM=G("$ZodCheckMultipleOf",(e,a)=>{Gt.init(e,a),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=a.value)}),e._zod.check=r=>{if(typeof r.value!=typeof a.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%a.value===BigInt(0):OO(r.value,a.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:a.value,input:r.value,inst:e,continue:!a.abort})}}),CM=G("$ZodCheckNumberFormat",(e,a)=>{Gt.init(e,a),a.format=a.format||"float64";const r=a.format?.includes("int"),o=r?"int":"number",[l,f]=kO[a.format];e._zod.onattach.push(c=>{const h=c._zod.bag;h.format=a.format,h.minimum=l,h.maximum=f,r&&(h.pattern=TM)}),e._zod.check=c=>{const h=c.value;if(r){if(!Number.isInteger(h)){c.issues.push({expected:o,format:a.format,code:"invalid_type",continue:!1,input:h,inst:e});return}if(!Number.isSafeInteger(h)){h>0?c.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!a.abort}):c.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!a.abort});return}}h<l&&c.issues.push({origin:"number",input:h,code:"too_small",minimum:l,inclusive:!0,inst:e,continue:!a.abort}),h>f&&c.issues.push({origin:"number",input:h,code:"too_big",maximum:f,inclusive:!0,inst:e,continue:!a.abort})}}),RM=G("$ZodCheckMaxLength",(e,a)=>{var r;Gt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Oh(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{const l=o._zod.bag.maximum??Number.POSITIVE_INFINITY;a.maximum<l&&(o._zod.bag.maximum=a.maximum)}),e._zod.check=o=>{const l=o.value;if(l.length<=a.maximum)return;const c=Dh(l);o.issues.push({origin:c,code:"too_big",maximum:a.maximum,inclusive:!0,input:l,inst:e,continue:!a.abort})}}),OM=G("$ZodCheckMinLength",(e,a)=>{var r;Gt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Oh(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{const l=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;a.minimum>l&&(o._zod.bag.minimum=a.minimum)}),e._zod.check=o=>{const l=o.value;if(l.length>=a.minimum)return;const c=Dh(l);o.issues.push({origin:c,code:"too_small",minimum:a.minimum,inclusive:!0,input:l,inst:e,continue:!a.abort})}}),MM=G("$ZodCheckLengthEquals",(e,a)=>{var r;Gt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Oh(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{const l=o._zod.bag;l.minimum=a.length,l.maximum=a.length,l.length=a.length}),e._zod.check=o=>{const l=o.value,f=l.length;if(f===a.length)return;const c=Dh(l),h=f>a.length;o.issues.push({origin:c,...h?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!a.abort})}}),tu=G("$ZodCheckStringFormat",(e,a)=>{var r,o;Gt.init(e,a),e._zod.onattach.push(l=>{const f=l._zod.bag;f.format=a.format,a.pattern&&(f.patterns??(f.patterns=new Set),f.patterns.add(a.pattern))}),a.pattern?(r=e._zod).check??(r.check=l=>{a.pattern.lastIndex=0,!a.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:a.format,input:l.value,...a.pattern?{pattern:a.pattern.toString()}:{},inst:e,continue:!a.abort})}):(o=e._zod).check??(o.check=()=>{})}),DM=G("$ZodCheckRegex",(e,a)=>{tu.init(e,a),e._zod.check=r=>{a.pattern.lastIndex=0,!a.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:a.pattern.toString(),inst:e,continue:!a.abort})}}),NM=G("$ZodCheckLowerCase",(e,a)=>{a.pattern??(a.pattern=wM),tu.init(e,a)}),jM=G("$ZodCheckUpperCase",(e,a)=>{a.pattern??(a.pattern=AM),tu.init(e,a)}),kM=G("$ZodCheckIncludes",(e,a)=>{Gt.init(e,a);const r=Il(a.includes),o=new RegExp(typeof a.position=="number"?`^.{${a.position}}${r}`:r);a.pattern=o,e._zod.onattach.push(l=>{const f=l._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(o)}),e._zod.check=l=>{l.value.includes(a.includes,a.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:a.includes,input:l.value,inst:e,continue:!a.abort})}}),VM=G("$ZodCheckStartsWith",(e,a)=>{Gt.init(e,a);const r=new RegExp(`^${Il(a.prefix)}.*`);a.pattern??(a.pattern=r),e._zod.onattach.push(o=>{const l=o._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(a.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:a.prefix,input:o.value,inst:e,continue:!a.abort})}}),UM=G("$ZodCheckEndsWith",(e,a)=>{Gt.init(e,a);const r=new RegExp(`.*${Il(a.suffix)}$`);a.pattern??(a.pattern=r),e._zod.onattach.push(o=>{const l=o._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(a.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:a.suffix,input:o.value,inst:e,continue:!a.abort})}}),LM=G("$ZodCheckOverwrite",(e,a)=>{Gt.init(e,a),e._zod.check=r=>{r.value=a.tx(r.value)}});class BM{constructor(a=[]){this.content=[],this.indent=0,this&&(this.args=a)}indented(a){this.indent+=1,a(this),this.indent-=1}write(a){if(typeof a=="function"){a(this,{execution:"sync"}),a(this,{execution:"async"});return}const o=a.split(`
|
|
12
12
|
`).filter(c=>c),l=Math.min(...o.map(c=>c.length-c.trimStart().length)),f=o.map(c=>c.slice(l)).map(c=>" ".repeat(this.indent*2)+c);for(const c of f)this.content.push(c)}compile(){const a=Function,r=this?.args,l=[...(this?.content??[""]).map(f=>` ${f}`)];return new a(...r,l.join(`
|
|
13
|
-
`))}}const ZM={major:4,minor:3,patch:6},
|
|
13
|
+
`))}}const ZM={major:4,minor:3,patch:6},it=G("$ZodType",(e,a)=>{var r;e??(e={}),e._zod.def=a,e._zod.bag=e._zod.bag||{},e._zod.version=ZM;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const l of o)for(const f of l._zod.onattach)f(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const l=(c,h,m)=>{let p=ur(c),y;for(const v of h){if(v._zod.def.when){if(!v._zod.def.when(c))continue}else if(p)continue;const S=c.issues.length,x=v._zod.check(c);if(x instanceof Promise&&m?.async===!1)throw new hr;if(y||x instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await x,c.issues.length!==S&&(p||(p=ur(c,S)))});else{if(c.issues.length===S)continue;p||(p=ur(c,S))}}return y?y.then(()=>c):c},f=(c,h,m)=>{if(ur(c))return c.aborted=!0,c;const p=l(h,o,m);if(p instanceof Promise){if(m.async===!1)throw new hr;return p.then(y=>e._zod.parse(y,m))}return e._zod.parse(p,m)};e._zod.run=(c,h)=>{if(h.skipChecks)return e._zod.parse(c,h);if(h.direction==="backward"){const p=e._zod.parse({value:c.value,issues:[]},{...h,skipChecks:!0});return p instanceof Promise?p.then(y=>f(y,c,h)):f(p,c,h)}const m=e._zod.parse(c,h);if(m instanceof Promise){if(h.async===!1)throw new hr;return m.then(p=>l(p,o,h))}return l(m,o,h)}}Ne(e,"~standard",()=>({validate:l=>{try{const f=YO(e,l);return f.success?{value:f.data}:{issues:f.error?.issues}}catch{return PO(e,l).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),kh=G("$ZodString",(e,a)=>{it.init(e,a),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xM(e._zod.bag),e._zod.parse=(r,o)=>{if(a.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Xe=G("$ZodStringFormat",(e,a)=>{tu.init(e,a),kh.init(e,a)}),HM=G("$ZodGUID",(e,a)=>{a.pattern??(a.pattern=lM),Xe.init(e,a)}),$M=G("$ZodUUID",(e,a)=>{if(a.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[a.version];if(o===void 0)throw new Error(`Invalid UUID version: "${a.version}"`);a.pattern??(a.pattern=R0(o))}else a.pattern??(a.pattern=R0());Xe.init(e,a)}),GM=G("$ZodEmail",(e,a)=>{a.pattern??(a.pattern=uM),Xe.init(e,a)}),qM=G("$ZodURL",(e,a)=>{Xe.init(e,a),e._zod.check=r=>{try{const o=r.value.trim(),l=new URL(o);a.hostname&&(a.hostname.lastIndex=0,a.hostname.test(l.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:a.hostname.source,input:r.value,inst:e,continue:!a.abort})),a.protocol&&(a.protocol.lastIndex=0,a.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:a.protocol.source,input:r.value,inst:e,continue:!a.abort})),a.normalize?r.value=l.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!a.abort})}}}),YM=G("$ZodEmoji",(e,a)=>{a.pattern??(a.pattern=fM()),Xe.init(e,a)}),PM=G("$ZodNanoID",(e,a)=>{a.pattern??(a.pattern=oM),Xe.init(e,a)}),XM=G("$ZodCUID",(e,a)=>{a.pattern??(a.pattern=tM),Xe.init(e,a)}),KM=G("$ZodCUID2",(e,a)=>{a.pattern??(a.pattern=nM),Xe.init(e,a)}),QM=G("$ZodULID",(e,a)=>{a.pattern??(a.pattern=aM),Xe.init(e,a)}),FM=G("$ZodXID",(e,a)=>{a.pattern??(a.pattern=iM),Xe.init(e,a)}),JM=G("$ZodKSUID",(e,a)=>{a.pattern??(a.pattern=rM),Xe.init(e,a)}),IM=G("$ZodISODateTime",(e,a)=>{a.pattern??(a.pattern=SM(a)),Xe.init(e,a)}),WM=G("$ZodISODate",(e,a)=>{a.pattern??(a.pattern=vM),Xe.init(e,a)}),eD=G("$ZodISOTime",(e,a)=>{a.pattern??(a.pattern=bM(a)),Xe.init(e,a)}),tD=G("$ZodISODuration",(e,a)=>{a.pattern??(a.pattern=sM),Xe.init(e,a)}),nD=G("$ZodIPv4",(e,a)=>{a.pattern??(a.pattern=dM),Xe.init(e,a),e._zod.bag.format="ipv4"}),aD=G("$ZodIPv6",(e,a)=>{a.pattern??(a.pattern=hM),Xe.init(e,a),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!a.abort})}}}),iD=G("$ZodCIDRv4",(e,a)=>{a.pattern??(a.pattern=mM),Xe.init(e,a)}),rD=G("$ZodCIDRv6",(e,a)=>{a.pattern??(a.pattern=pM),Xe.init(e,a),e._zod.check=r=>{const o=r.value.split("/");try{if(o.length!==2)throw new Error;const[l,f]=o;if(!f)throw new Error;const c=Number(f);if(`${c}`!==f)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${l}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!a.abort})}}});function kS(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const oD=G("$ZodBase64",(e,a)=>{a.pattern??(a.pattern=gM),Xe.init(e,a),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{kS(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!a.abort})}});function sD(e){if(!RS.test(e))return!1;const a=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=a.padEnd(Math.ceil(a.length/4)*4,"=");return kS(r)}const lD=G("$ZodBase64URL",(e,a)=>{a.pattern??(a.pattern=RS),Xe.init(e,a),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{sD(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!a.abort})}}),uD=G("$ZodE164",(e,a)=>{a.pattern??(a.pattern=yM),Xe.init(e,a)});function cD(e,a=null){try{const r=e.split(".");if(r.length!==3)return!1;const[o]=r;if(!o)return!1;const l=JSON.parse(atob(o));return!("typ"in l&&l?.typ!=="JWT"||!l.alg||a&&(!("alg"in l)||l.alg!==a))}catch{return!1}}const fD=G("$ZodJWT",(e,a)=>{Xe.init(e,a),e._zod.check=r=>{cD(r.value,a.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!a.abort})}}),VS=G("$ZodNumber",(e,a)=>{it.init(e,a),e._zod.pattern=e._zod.bag.pattern??EM,e._zod.parse=(r,o)=>{if(a.coerce)try{r.value=Number(r.value)}catch{}const l=r.value;if(typeof l=="number"&&!Number.isNaN(l)&&Number.isFinite(l))return r;const f=typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:l,inst:e,...f?{received:f}:{}}),r}}),dD=G("$ZodNumberFormat",(e,a)=>{CM.init(e,a),VS.init(e,a)}),hD=G("$ZodBoolean",(e,a)=>{it.init(e,a),e._zod.pattern=_M,e._zod.parse=(r,o)=>{if(a.coerce)try{r.value=!!r.value}catch{}const l=r.value;return typeof l=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:l,inst:e}),r}}),mD=G("$ZodUnknown",(e,a)=>{it.init(e,a),e._zod.parse=r=>r}),pD=G("$ZodNever",(e,a)=>{it.init(e,a),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function O0(e,a,r){e.issues.length&&a.issues.push(...wS(r,e.issues)),a.value[r]=e.value}const gD=G("$ZodArray",(e,a)=>{it.init(e,a),e._zod.parse=(r,o)=>{const l=r.value;if(!Array.isArray(l))return r.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),r;r.value=Array(l.length);const f=[];for(let c=0;c<l.length;c++){const h=l[c],m=a.element._zod.run({value:h,issues:[]},o);m instanceof Promise?f.push(m.then(p=>O0(p,r,c))):O0(m,r,c)}return f.length?Promise.all(f).then(()=>r):r}});function $l(e,a,r,o,l){if(e.issues.length){if(l&&!(r in o))return;a.issues.push(...wS(r,e.issues))}e.value===void 0?r in o&&(a.value[r]=void 0):a.value[r]=e.value}function US(e){const a=Object.keys(e.shape);for(const o of a)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const r=jO(e.shape);return{...e,keys:a,keySet:new Set(a),numKeys:a.length,optionalKeys:new Set(r)}}function LS(e,a,r,o,l,f){const c=[],h=l.keySet,m=l.catchall._zod,p=m.def.type,y=m.optout==="optional";for(const v in a){if(h.has(v))continue;if(p==="never"){c.push(v);continue}const S=m.run({value:a[v],issues:[]},o);S instanceof Promise?e.push(S.then(x=>$l(x,r,v,a,y))):$l(S,r,v,a,y)}return c.length&&r.issues.push({code:"unrecognized_keys",keys:c,input:a,inst:f}),e.length?Promise.all(e).then(()=>r):r}const yD=G("$ZodObject",(e,a)=>{if(it.init(e,a),!Object.getOwnPropertyDescriptor(a,"shape")?.get){const h=a.shape;Object.defineProperty(a,"shape",{get:()=>{const m={...h};return Object.defineProperty(a,"shape",{value:m}),m}})}const o=Rh(()=>US(a));Ne(e._zod,"propValues",()=>{const h=a.shape,m={};for(const p in h){const y=h[p]._zod;if(y.values){m[p]??(m[p]=new Set);for(const v of y.values)m[p].add(v)}}return m});const l=Hl,f=a.catchall;let c;e._zod.parse=(h,m)=>{c??(c=o.value);const p=h.value;if(!l(p))return h.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),h;h.value={};const y=[],v=c.shape;for(const S of c.keys){const x=v[S],R=x._zod.optout==="optional",E=x._zod.run({value:p[S],issues:[]},m);E instanceof Promise?y.push(E.then(O=>$l(O,h,S,p,R))):$l(E,h,S,p,R)}return f?LS(y,p,h,m,o.value,e):y.length?Promise.all(y).then(()=>h):h}}),vD=G("$ZodObjectJIT",(e,a)=>{yD.init(e,a);const r=e._zod.parse,o=Rh(()=>US(a)),l=S=>{const x=new BM(["shape","payload","ctx"]),R=o.value,E=j=>{const Q=C0(j);return`shape[${Q}]._zod.run({ value: input[${Q}], issues: [] }, ctx)`};x.write("const input = payload.value;");const O=Object.create(null);let V=0;for(const j of R.keys)O[j]=`key_${V++}`;x.write("const newResult = {};");for(const j of R.keys){const Q=O[j],q=C0(j),F=S[j]?._zod?.optout==="optional";x.write(`const ${Q} = ${E(j)};`),F?x.write(`
|
|
14
14
|
if (${Q}.issues.length) {
|
|
15
15
|
if (${q} in input) {
|
|
16
16
|
payload.issues = payload.issues.concat(${Q}.issues.map(iss => ({
|
|
@@ -44,7 +44,7 @@ Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}
|
|
|
44
44
|
newResult[${q}] = ${Q}.value;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
`)}x.write("payload.value = newResult;"),x.write("return payload;");const C=x.compile();return(j,Q)=>C(S,j,Q)};let f;const c=Hl,h=!SS.jitless,p=h&&DO.value,y=a.catchall;let v;e._zod.parse=(S,x)=>{v??(v=o.value);const R=S.value;return c(R)?h&&p&&x?.async===!1&&x.jitless!==!0?(f||(f=l(a.shape)),S=f(S,x),y?US([],R,S,x,v,e):S):r(S,x):(S.issues.push({expected:"object",code:"invalid_type",input:R,inst:e}),S)}});function R0(e,a,r,o){for(const f of e)if(f.issues.length===0)return a.value=f.value,a;const l=e.filter(f=>!ur(f));return l.length===1?(a.value=l[0].value,l[0]):(a.issues.push({code:"invalid_union",input:a.value,inst:r,errors:e.map(f=>f.issues.map(c=>gi(c,o,pi())))}),a)}const bD=G("$ZodUnion",(e,a)=>{at.init(e,a),Ne(e._zod,"optin",()=>a.options.some(l=>l._zod.optin==="optional")?"optional":void 0),Ne(e._zod,"optout",()=>a.options.some(l=>l._zod.optout==="optional")?"optional":void 0),Ne(e._zod,"values",()=>{if(a.options.every(l=>l._zod.values))return new Set(a.options.flatMap(l=>Array.from(l._zod.values)))}),Ne(e._zod,"pattern",()=>{if(a.options.every(l=>l._zod.pattern)){const l=a.options.map(f=>f._zod.pattern);return new RegExp(`^(${l.map(f=>Oh(f.source)).join("|")})$`)}});const r=a.options.length===1,o=a.options[0]._zod.run;e._zod.parse=(l,f)=>{if(r)return o(l,f);let c=!1;const h=[];for(const m of a.options){const p=m._zod.run({value:l.value,issues:[]},f);if(p instanceof Promise)h.push(p),c=!0;else{if(p.issues.length===0)return p;h.push(p)}}return c?Promise.all(h).then(m=>R0(m,l,e,f)):R0(h,l,e,f)}}),SD=G("$ZodIntersection",(e,a)=>{at.init(e,a),e._zod.parse=(r,o)=>{const l=r.value,f=a.left._zod.run({value:l,issues:[]},o),c=a.right._zod.run({value:l,issues:[]},o);return f instanceof Promise||c instanceof Promise?Promise.all([f,c]).then(([m,p])=>O0(r,m,p)):O0(r,f,c)}});function jd(e,a){if(e===a)return{valid:!0,data:e};if(e instanceof Date&&a instanceof Date&&+e==+a)return{valid:!0,data:e};if(Ho(e)&&Ho(a)){const r=Object.keys(a),o=Object.keys(e).filter(f=>r.indexOf(f)!==-1),l={...e,...a};for(const f of o){const c=jd(e[f],a[f]);if(!c.valid)return{valid:!1,mergeErrorPath:[f,...c.mergeErrorPath]};l[f]=c.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(a)){if(e.length!==a.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<e.length;o++){const l=e[o],f=a[o],c=jd(l,f);if(!c.valid)return{valid:!1,mergeErrorPath:[o,...c.mergeErrorPath]};r.push(c.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function O0(e,a,r){const o=new Map;let l;for(const h of a.issues)if(h.code==="unrecognized_keys"){l??(l=h);for(const m of h.keys)o.has(m)||o.set(m,{}),o.get(m).l=!0}else e.issues.push(h);for(const h of r.issues)if(h.code==="unrecognized_keys")for(const m of h.keys)o.has(m)||o.set(m,{}),o.get(m).r=!0;else e.issues.push(h);const f=[...o].filter(([,h])=>h.l&&h.r).map(([h])=>h);if(f.length&&l&&e.issues.push({...l,keys:f}),ur(e))return e;const c=jd(a.value,r.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const xD=G("$ZodEnum",(e,a)=>{at.init(e,a);const r=xS(a.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(l=>NO.has(typeof l)).map(l=>typeof l=="string"?Il(l):l.toString()).join("|")})$`),e._zod.parse=(l,f)=>{const c=l.value;return o.has(c)||l.issues.push({code:"invalid_value",values:r,input:c,inst:e}),l}}),TD=G("$ZodTransform",(e,a)=>{at.init(e,a),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new bS(e.constructor.name);const l=a.transform(r.value,r);if(o.async)return(l instanceof Promise?l:Promise.resolve(l)).then(c=>(r.value=c,r));if(l instanceof Promise)throw new hr;return r.value=l,r}});function M0(e,a){return e.issues.length&&a===void 0?{issues:[],value:void 0}:e}const LS=G("$ZodOptional",(e,a)=>{at.init(e,a),e._zod.optin="optional",e._zod.optout="optional",Ne(e._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,void 0]):void 0),Ne(e._zod,"pattern",()=>{const r=a.innerType._zod.pattern;return r?new RegExp(`^(${Oh(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(a.innerType._zod.optin==="optional"){const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>M0(f,r.value)):M0(l,r.value)}return r.value===void 0?r:a.innerType._zod.run(r,o)}}),ED=G("$ZodExactOptional",(e,a)=>{LS.init(e,a),Ne(e._zod,"values",()=>a.innerType._zod.values),Ne(e._zod,"pattern",()=>a.innerType._zod.pattern),e._zod.parse=(r,o)=>a.innerType._zod.run(r,o)}),_D=G("$ZodNullable",(e,a)=>{at.init(e,a),Ne(e._zod,"optin",()=>a.innerType._zod.optin),Ne(e._zod,"optout",()=>a.innerType._zod.optout),Ne(e._zod,"pattern",()=>{const r=a.innerType._zod.pattern;return r?new RegExp(`^(${Oh(r.source)}|null)$`):void 0}),Ne(e._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:a.innerType._zod.run(r,o)}),wD=G("$ZodDefault",(e,a)=>{at.init(e,a),e._zod.optin="optional",Ne(e._zod,"values",()=>a.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return a.innerType._zod.run(r,o);if(r.value===void 0)return r.value=a.defaultValue,r;const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>D0(f,a)):D0(l,a)}});function D0(e,a){return e.value===void 0&&(e.value=a.defaultValue),e}const AD=G("$ZodPrefault",(e,a)=>{at.init(e,a),e._zod.optin="optional",Ne(e._zod,"values",()=>a.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=a.defaultValue),a.innerType._zod.run(r,o))}),zD=G("$ZodNonOptional",(e,a)=>{at.init(e,a),Ne(e._zod,"values",()=>{const r=a.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>N0(f,e)):N0(l,e)}});function N0(e,a){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:a}),e}const CD=G("$ZodCatch",(e,a)=>{at.init(e,a),Ne(e._zod,"optin",()=>a.innerType._zod.optin),Ne(e._zod,"optout",()=>a.innerType._zod.optout),Ne(e._zod,"values",()=>a.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return a.innerType._zod.run(r,o);const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>(r.value=f.value,f.issues.length&&(r.value=a.catchValue({...r,error:{issues:f.issues.map(c=>gi(c,o,pi()))},input:r.value}),r.issues=[]),r)):(r.value=l.value,l.issues.length&&(r.value=a.catchValue({...r,error:{issues:l.issues.map(f=>gi(f,o,pi()))},input:r.value}),r.issues=[]),r)}}),RD=G("$ZodPipe",(e,a)=>{at.init(e,a),Ne(e._zod,"values",()=>a.in._zod.values),Ne(e._zod,"optin",()=>a.in._zod.optin),Ne(e._zod,"optout",()=>a.out._zod.optout),Ne(e._zod,"propValues",()=>a.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){const f=a.out._zod.run(r,o);return f instanceof Promise?f.then(c=>El(c,a.in,o)):El(f,a.in,o)}const l=a.in._zod.run(r,o);return l instanceof Promise?l.then(f=>El(f,a.out,o)):El(l,a.out,o)}});function El(e,a,r){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:e.value,issues:e.issues},r)}const OD=G("$ZodReadonly",(e,a)=>{at.init(e,a),Ne(e._zod,"propValues",()=>a.innerType._zod.propValues),Ne(e._zod,"values",()=>a.innerType._zod.values),Ne(e._zod,"optin",()=>a.innerType?._zod?.optin),Ne(e._zod,"optout",()=>a.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return a.innerType._zod.run(r,o);const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(j0):j0(l)}});function j0(e){return e.value=Object.freeze(e.value),e}const MD=G("$ZodCustom",(e,a)=>{Gt.init(e,a),at.init(e,a),e._zod.parse=(r,o)=>r,e._zod.check=r=>{const o=r.value,l=a.fn(o);if(l instanceof Promise)return l.then(f=>k0(f,r,o,e));k0(l,r,o,e)}});function k0(e,a,r,o){if(!e){const l={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(l.params=o._zod.def.params),a.issues.push($o(l))}}var V0;let DD=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...r){const o=r[0];return this._map.set(a,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const r=this._map.get(a);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(a),this}get(a){const r=a._zod.parent;if(r){const o={...this.get(r)??{}};delete o.id;const l={...o,...this._map.get(a)};return Object.keys(l).length?l:void 0}return this._map.get(a)}has(a){return this._map.has(a)}};function ND(){return new DD}(V0=globalThis).__zod_globalRegistry??(V0.__zod_globalRegistry=ND());const Ro=globalThis.__zod_globalRegistry;function jD(e,a){return new e({type:"string",...se(a)})}function kD(e,a){return new e({type:"string",format:"email",check:"string_format",abort:!1,...se(a)})}function U0(e,a){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...se(a)})}function VD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...se(a)})}function UD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(a)})}function LD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(a)})}function BD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(a)})}function ZD(e,a){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(a)})}function HD(e,a){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...se(a)})}function $D(e,a){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(a)})}function GD(e,a){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...se(a)})}function qD(e,a){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(a)})}function YD(e,a){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...se(a)})}function PD(e,a){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...se(a)})}function XD(e,a){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(a)})}function KD(e,a){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(a)})}function QD(e,a){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(a)})}function FD(e,a){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(a)})}function JD(e,a){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(a)})}function ID(e,a){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...se(a)})}function WD(e,a){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...se(a)})}function e3(e,a){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...se(a)})}function t3(e,a){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...se(a)})}function n3(e,a){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(a)})}function a3(e,a){return new e({type:"string",format:"date",check:"string_format",...se(a)})}function i3(e,a){return new e({type:"string",format:"time",check:"string_format",precision:null,...se(a)})}function r3(e,a){return new e({type:"string",format:"duration",check:"string_format",...se(a)})}function o3(e,a){return new e({type:"number",checks:[],...se(a)})}function s3(e,a){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(a)})}function l3(e,a){return new e({type:"boolean",...se(a)})}function u3(e){return new e({type:"unknown"})}function c3(e,a){return new e({type:"never",...se(a)})}function L0(e,a){return new DS({check:"less_than",...se(a),value:e,inclusive:!1})}function If(e,a){return new DS({check:"less_than",...se(a),value:e,inclusive:!0})}function B0(e,a){return new NS({check:"greater_than",...se(a),value:e,inclusive:!1})}function Wf(e,a){return new NS({check:"greater_than",...se(a),value:e,inclusive:!0})}function Z0(e,a){return new zM({check:"multiple_of",...se(a),value:e})}function BS(e,a){return new RM({check:"max_length",...se(a),maximum:e})}function Gl(e,a){return new OM({check:"min_length",...se(a),minimum:e})}function ZS(e,a){return new MM({check:"length_equals",...se(a),length:e})}function f3(e,a){return new DM({check:"string_format",format:"regex",...se(a),pattern:e})}function d3(e){return new NM({check:"string_format",format:"lowercase",...se(e)})}function h3(e){return new jM({check:"string_format",format:"uppercase",...se(e)})}function m3(e,a){return new kM({check:"string_format",format:"includes",...se(a),includes:e})}function p3(e,a){return new VM({check:"string_format",format:"starts_with",...se(a),prefix:e})}function g3(e,a){return new UM({check:"string_format",format:"ends_with",...se(a),suffix:e})}function Er(e){return new LM({check:"overwrite",tx:e})}function y3(e){return Er(a=>a.normalize(e))}function v3(){return Er(e=>e.trim())}function b3(){return Er(e=>e.toLowerCase())}function S3(){return Er(e=>e.toUpperCase())}function x3(){return Er(e=>MO(e))}function T3(e,a,r){return new e({type:"array",element:a,...se(r)})}function E3(e,a,r){return new e({type:"custom",check:"custom",fn:a,...se(r)})}function _3(e){const a=w3(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push($o(o,r.value,a._zod.def));else{const l=o;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=a),l.continue??(l.continue=!a._zod.def.abort),r.issues.push($o(l))}},e(r.value,r)));return a}function w3(e,a){const r=new Gt({check:"custom",...se(a)});return r._zod.check=e,r}function HS(e){let a=e?.target??"draft-2020-12";return a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ro,target:a,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function zt(e,a,r={path:[],schemaPath:[]}){var o;const l=e._zod.def,f=a.seen.get(e);if(f)return f.count++,r.schemaPath.includes(e)&&(f.cycle=r.path),f.schema;const c={schema:{},count:1,cycle:void 0,path:r.path};a.seen.set(e,c);const h=e._zod.toJSONSchema?.();if(h)c.schema=h;else{const y={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(a,c.schema,y);else{const S=c.schema,x=a.processors[l.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);x(e,a,S,y)}const v=e._zod.parent;v&&(c.ref||(c.ref=v),zt(v,a,y),a.seen.get(v).isParent=!0)}const m=a.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),a.io==="input"&&Nt(e)&&(delete c.schema.examples,delete c.schema.default),a.io==="input"&&c.schema._prefault&&((o=c.schema).default??(o.default=c.schema._prefault)),delete c.schema._prefault,a.seen.get(e).schema}function $S(e,a){const r=e.seen.get(a);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const c of e.seen.entries()){const h=e.metadataRegistry.get(c[0])?.id;if(h){const m=o.get(h);if(m&&m!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(h,c[0])}}const l=c=>{const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(c[0])?.id,S=e.external.uri??(R=>R);if(v)return{ref:S(v)};const x=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=x,{defId:x,ref:`${S("__shared")}#/${h}/${x}`}}if(c[1]===r)return{ref:"#"};const p=`#/${h}/`,y=c[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:p+y}},f=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:m,defId:p}=l(c);h.def={...h.schema},p&&(h.defId=p);const y=h.schema;for(const v in y)delete y[v];y.$ref=m};if(e.cycles==="throw")for(const c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
|
|
47
|
+
`)}x.write("payload.value = newResult;"),x.write("return payload;");const C=x.compile();return(j,Q)=>C(S,j,Q)};let f;const c=Hl,h=!xS.jitless,p=h&&DO.value,y=a.catchall;let v;e._zod.parse=(S,x)=>{v??(v=o.value);const R=S.value;return c(R)?h&&p&&x?.async===!1&&x.jitless!==!0?(f||(f=l(a.shape)),S=f(S,x),y?LS([],R,S,x,v,e):S):r(S,x):(S.issues.push({expected:"object",code:"invalid_type",input:R,inst:e}),S)}});function M0(e,a,r,o){for(const f of e)if(f.issues.length===0)return a.value=f.value,a;const l=e.filter(f=>!ur(f));return l.length===1?(a.value=l[0].value,l[0]):(a.issues.push({code:"invalid_union",input:a.value,inst:r,errors:e.map(f=>f.issues.map(c=>gi(c,o,pi())))}),a)}const bD=G("$ZodUnion",(e,a)=>{it.init(e,a),Ne(e._zod,"optin",()=>a.options.some(l=>l._zod.optin==="optional")?"optional":void 0),Ne(e._zod,"optout",()=>a.options.some(l=>l._zod.optout==="optional")?"optional":void 0),Ne(e._zod,"values",()=>{if(a.options.every(l=>l._zod.values))return new Set(a.options.flatMap(l=>Array.from(l._zod.values)))}),Ne(e._zod,"pattern",()=>{if(a.options.every(l=>l._zod.pattern)){const l=a.options.map(f=>f._zod.pattern);return new RegExp(`^(${l.map(f=>Mh(f.source)).join("|")})$`)}});const r=a.options.length===1,o=a.options[0]._zod.run;e._zod.parse=(l,f)=>{if(r)return o(l,f);let c=!1;const h=[];for(const m of a.options){const p=m._zod.run({value:l.value,issues:[]},f);if(p instanceof Promise)h.push(p),c=!0;else{if(p.issues.length===0)return p;h.push(p)}}return c?Promise.all(h).then(m=>M0(m,l,e,f)):M0(h,l,e,f)}}),SD=G("$ZodIntersection",(e,a)=>{it.init(e,a),e._zod.parse=(r,o)=>{const l=r.value,f=a.left._zod.run({value:l,issues:[]},o),c=a.right._zod.run({value:l,issues:[]},o);return f instanceof Promise||c instanceof Promise?Promise.all([f,c]).then(([m,p])=>D0(r,m,p)):D0(r,f,c)}});function jd(e,a){if(e===a)return{valid:!0,data:e};if(e instanceof Date&&a instanceof Date&&+e==+a)return{valid:!0,data:e};if($o(e)&&$o(a)){const r=Object.keys(a),o=Object.keys(e).filter(f=>r.indexOf(f)!==-1),l={...e,...a};for(const f of o){const c=jd(e[f],a[f]);if(!c.valid)return{valid:!1,mergeErrorPath:[f,...c.mergeErrorPath]};l[f]=c.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(a)){if(e.length!==a.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<e.length;o++){const l=e[o],f=a[o],c=jd(l,f);if(!c.valid)return{valid:!1,mergeErrorPath:[o,...c.mergeErrorPath]};r.push(c.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function D0(e,a,r){const o=new Map;let l;for(const h of a.issues)if(h.code==="unrecognized_keys"){l??(l=h);for(const m of h.keys)o.has(m)||o.set(m,{}),o.get(m).l=!0}else e.issues.push(h);for(const h of r.issues)if(h.code==="unrecognized_keys")for(const m of h.keys)o.has(m)||o.set(m,{}),o.get(m).r=!0;else e.issues.push(h);const f=[...o].filter(([,h])=>h.l&&h.r).map(([h])=>h);if(f.length&&l&&e.issues.push({...l,keys:f}),ur(e))return e;const c=jd(a.value,r.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const xD=G("$ZodEnum",(e,a)=>{it.init(e,a);const r=TS(a.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(l=>NO.has(typeof l)).map(l=>typeof l=="string"?Il(l):l.toString()).join("|")})$`),e._zod.parse=(l,f)=>{const c=l.value;return o.has(c)||l.issues.push({code:"invalid_value",values:r,input:c,inst:e}),l}}),TD=G("$ZodTransform",(e,a)=>{it.init(e,a),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new SS(e.constructor.name);const l=a.transform(r.value,r);if(o.async)return(l instanceof Promise?l:Promise.resolve(l)).then(c=>(r.value=c,r));if(l instanceof Promise)throw new hr;return r.value=l,r}});function N0(e,a){return e.issues.length&&a===void 0?{issues:[],value:void 0}:e}const BS=G("$ZodOptional",(e,a)=>{it.init(e,a),e._zod.optin="optional",e._zod.optout="optional",Ne(e._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,void 0]):void 0),Ne(e._zod,"pattern",()=>{const r=a.innerType._zod.pattern;return r?new RegExp(`^(${Mh(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(a.innerType._zod.optin==="optional"){const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>N0(f,r.value)):N0(l,r.value)}return r.value===void 0?r:a.innerType._zod.run(r,o)}}),ED=G("$ZodExactOptional",(e,a)=>{BS.init(e,a),Ne(e._zod,"values",()=>a.innerType._zod.values),Ne(e._zod,"pattern",()=>a.innerType._zod.pattern),e._zod.parse=(r,o)=>a.innerType._zod.run(r,o)}),_D=G("$ZodNullable",(e,a)=>{it.init(e,a),Ne(e._zod,"optin",()=>a.innerType._zod.optin),Ne(e._zod,"optout",()=>a.innerType._zod.optout),Ne(e._zod,"pattern",()=>{const r=a.innerType._zod.pattern;return r?new RegExp(`^(${Mh(r.source)}|null)$`):void 0}),Ne(e._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:a.innerType._zod.run(r,o)}),wD=G("$ZodDefault",(e,a)=>{it.init(e,a),e._zod.optin="optional",Ne(e._zod,"values",()=>a.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return a.innerType._zod.run(r,o);if(r.value===void 0)return r.value=a.defaultValue,r;const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>j0(f,a)):j0(l,a)}});function j0(e,a){return e.value===void 0&&(e.value=a.defaultValue),e}const AD=G("$ZodPrefault",(e,a)=>{it.init(e,a),e._zod.optin="optional",Ne(e._zod,"values",()=>a.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=a.defaultValue),a.innerType._zod.run(r,o))}),zD=G("$ZodNonOptional",(e,a)=>{it.init(e,a),Ne(e._zod,"values",()=>{const r=a.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>k0(f,e)):k0(l,e)}});function k0(e,a){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:a}),e}const CD=G("$ZodCatch",(e,a)=>{it.init(e,a),Ne(e._zod,"optin",()=>a.innerType._zod.optin),Ne(e._zod,"optout",()=>a.innerType._zod.optout),Ne(e._zod,"values",()=>a.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return a.innerType._zod.run(r,o);const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(f=>(r.value=f.value,f.issues.length&&(r.value=a.catchValue({...r,error:{issues:f.issues.map(c=>gi(c,o,pi()))},input:r.value}),r.issues=[]),r)):(r.value=l.value,l.issues.length&&(r.value=a.catchValue({...r,error:{issues:l.issues.map(f=>gi(f,o,pi()))},input:r.value}),r.issues=[]),r)}}),RD=G("$ZodPipe",(e,a)=>{it.init(e,a),Ne(e._zod,"values",()=>a.in._zod.values),Ne(e._zod,"optin",()=>a.in._zod.optin),Ne(e._zod,"optout",()=>a.out._zod.optout),Ne(e._zod,"propValues",()=>a.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){const f=a.out._zod.run(r,o);return f instanceof Promise?f.then(c=>_l(c,a.in,o)):_l(f,a.in,o)}const l=a.in._zod.run(r,o);return l instanceof Promise?l.then(f=>_l(f,a.out,o)):_l(l,a.out,o)}});function _l(e,a,r){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:e.value,issues:e.issues},r)}const OD=G("$ZodReadonly",(e,a)=>{it.init(e,a),Ne(e._zod,"propValues",()=>a.innerType._zod.propValues),Ne(e._zod,"values",()=>a.innerType._zod.values),Ne(e._zod,"optin",()=>a.innerType?._zod?.optin),Ne(e._zod,"optout",()=>a.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return a.innerType._zod.run(r,o);const l=a.innerType._zod.run(r,o);return l instanceof Promise?l.then(V0):V0(l)}});function V0(e){return e.value=Object.freeze(e.value),e}const MD=G("$ZodCustom",(e,a)=>{Gt.init(e,a),it.init(e,a),e._zod.parse=(r,o)=>r,e._zod.check=r=>{const o=r.value,l=a.fn(o);if(l instanceof Promise)return l.then(f=>U0(f,r,o,e));U0(l,r,o,e)}});function U0(e,a,r,o){if(!e){const l={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(l.params=o._zod.def.params),a.issues.push(Go(l))}}var L0;let DD=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...r){const o=r[0];return this._map.set(a,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const r=this._map.get(a);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(a),this}get(a){const r=a._zod.parent;if(r){const o={...this.get(r)??{}};delete o.id;const l={...o,...this._map.get(a)};return Object.keys(l).length?l:void 0}return this._map.get(a)}has(a){return this._map.has(a)}};function ND(){return new DD}(L0=globalThis).__zod_globalRegistry??(L0.__zod_globalRegistry=ND());const Ro=globalThis.__zod_globalRegistry;function jD(e,a){return new e({type:"string",...se(a)})}function kD(e,a){return new e({type:"string",format:"email",check:"string_format",abort:!1,...se(a)})}function B0(e,a){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...se(a)})}function VD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...se(a)})}function UD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(a)})}function LD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(a)})}function BD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(a)})}function ZD(e,a){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(a)})}function HD(e,a){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...se(a)})}function $D(e,a){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(a)})}function GD(e,a){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...se(a)})}function qD(e,a){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(a)})}function YD(e,a){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...se(a)})}function PD(e,a){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...se(a)})}function XD(e,a){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(a)})}function KD(e,a){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(a)})}function QD(e,a){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(a)})}function FD(e,a){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(a)})}function JD(e,a){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(a)})}function ID(e,a){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...se(a)})}function WD(e,a){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...se(a)})}function e3(e,a){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...se(a)})}function t3(e,a){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...se(a)})}function n3(e,a){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(a)})}function a3(e,a){return new e({type:"string",format:"date",check:"string_format",...se(a)})}function i3(e,a){return new e({type:"string",format:"time",check:"string_format",precision:null,...se(a)})}function r3(e,a){return new e({type:"string",format:"duration",check:"string_format",...se(a)})}function o3(e,a){return new e({type:"number",checks:[],...se(a)})}function s3(e,a){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(a)})}function l3(e,a){return new e({type:"boolean",...se(a)})}function u3(e){return new e({type:"unknown"})}function c3(e,a){return new e({type:"never",...se(a)})}function Z0(e,a){return new NS({check:"less_than",...se(a),value:e,inclusive:!1})}function If(e,a){return new NS({check:"less_than",...se(a),value:e,inclusive:!0})}function H0(e,a){return new jS({check:"greater_than",...se(a),value:e,inclusive:!1})}function Wf(e,a){return new jS({check:"greater_than",...se(a),value:e,inclusive:!0})}function $0(e,a){return new zM({check:"multiple_of",...se(a),value:e})}function ZS(e,a){return new RM({check:"max_length",...se(a),maximum:e})}function Gl(e,a){return new OM({check:"min_length",...se(a),minimum:e})}function HS(e,a){return new MM({check:"length_equals",...se(a),length:e})}function f3(e,a){return new DM({check:"string_format",format:"regex",...se(a),pattern:e})}function d3(e){return new NM({check:"string_format",format:"lowercase",...se(e)})}function h3(e){return new jM({check:"string_format",format:"uppercase",...se(e)})}function m3(e,a){return new kM({check:"string_format",format:"includes",...se(a),includes:e})}function p3(e,a){return new VM({check:"string_format",format:"starts_with",...se(a),prefix:e})}function g3(e,a){return new UM({check:"string_format",format:"ends_with",...se(a),suffix:e})}function Er(e){return new LM({check:"overwrite",tx:e})}function y3(e){return Er(a=>a.normalize(e))}function v3(){return Er(e=>e.trim())}function b3(){return Er(e=>e.toLowerCase())}function S3(){return Er(e=>e.toUpperCase())}function x3(){return Er(e=>MO(e))}function T3(e,a,r){return new e({type:"array",element:a,...se(r)})}function E3(e,a,r){return new e({type:"custom",check:"custom",fn:a,...se(r)})}function _3(e){const a=w3(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Go(o,r.value,a._zod.def));else{const l=o;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=a),l.continue??(l.continue=!a._zod.def.abort),r.issues.push(Go(l))}},e(r.value,r)));return a}function w3(e,a){const r=new Gt({check:"custom",...se(a)});return r._zod.check=e,r}function $S(e){let a=e?.target??"draft-2020-12";return a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ro,target:a,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function zt(e,a,r={path:[],schemaPath:[]}){var o;const l=e._zod.def,f=a.seen.get(e);if(f)return f.count++,r.schemaPath.includes(e)&&(f.cycle=r.path),f.schema;const c={schema:{},count:1,cycle:void 0,path:r.path};a.seen.set(e,c);const h=e._zod.toJSONSchema?.();if(h)c.schema=h;else{const y={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(a,c.schema,y);else{const S=c.schema,x=a.processors[l.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);x(e,a,S,y)}const v=e._zod.parent;v&&(c.ref||(c.ref=v),zt(v,a,y),a.seen.get(v).isParent=!0)}const m=a.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),a.io==="input"&&Nt(e)&&(delete c.schema.examples,delete c.schema.default),a.io==="input"&&c.schema._prefault&&((o=c.schema).default??(o.default=c.schema._prefault)),delete c.schema._prefault,a.seen.get(e).schema}function GS(e,a){const r=e.seen.get(a);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const c of e.seen.entries()){const h=e.metadataRegistry.get(c[0])?.id;if(h){const m=o.get(h);if(m&&m!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(h,c[0])}}const l=c=>{const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(c[0])?.id,S=e.external.uri??(R=>R);if(v)return{ref:S(v)};const x=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=x,{defId:x,ref:`${S("__shared")}#/${h}/${x}`}}if(c[1]===r)return{ref:"#"};const p=`#/${h}/`,y=c[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:p+y}},f=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:m,defId:p}=l(c);h.def={...h.schema},p&&(h.defId=p);const y=h.schema;for(const v in y)delete y[v];y.$ref=m};if(e.cycles==="throw")for(const c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
|
|
48
48
|
|
|
49
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(a===c[0]){f(c);continue}if(e.external){const p=e.external.registry.get(c[0])?.id;if(a!==c[0]&&p){f(c);continue}}if(e.metadataRegistry.get(c[0])?.id){f(c);continue}if(h.cycle){f(c);continue}if(h.count>1&&e.reused==="ref"){f(c);continue}}}function GS(e,a){const r=e.seen.get(a);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=c=>{const h=e.seen.get(c);if(h.ref===null)return;const m=h.def??h.schema,p={...m},y=h.ref;if(h.ref=null,y){o(y);const S=e.seen.get(y),x=S.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(x)):Object.assign(m,x),Object.assign(m,p),c._zod.parent===y)for(const E in m)E==="$ref"||E==="allOf"||E in p||delete m[E];if(x.$ref&&S.def)for(const E in m)E==="$ref"||E==="allOf"||E in S.def&&JSON.stringify(m[E])===JSON.stringify(S.def[E])&&delete m[E]}const v=c._zod.parent;if(v&&v!==y){o(v);const S=e.seen.get(v);if(S?.schema.$ref&&(m.$ref=S.schema.$ref,S.def))for(const x in m)x==="$ref"||x==="allOf"||x in S.def&&JSON.stringify(m[x])===JSON.stringify(S.def[x])&&delete m[x]}e.override({zodSchema:c,jsonSchema:m,path:h.path??[]})};for(const c of[...e.seen.entries()].reverse())o(c[0]);const l={};if(e.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?l.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?l.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(a)?.id;if(!c)throw new Error("Schema is missing an `id` property");l.$id=e.external.uri(c)}Object.assign(l,r.def??r.schema);const f=e.external?.defs??{};for(const c of e.seen.entries()){const h=c[1];h.def&&h.defId&&(f[h.defId]=h.def)}e.external||Object.keys(f).length>0&&(e.target==="draft-2020-12"?l.$defs=f:l.definitions=f);try{const c=JSON.parse(JSON.stringify(l));return Object.defineProperty(c,"~standard",{value:{...a["~standard"],jsonSchema:{input:ql(a,"input",e.processors),output:ql(a,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function Nt(e,a){const r=a??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Nt(o.element,r);if(o.type==="set")return Nt(o.valueType,r);if(o.type==="lazy")return Nt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Nt(o.innerType,r);if(o.type==="intersection")return Nt(o.left,r)||Nt(o.right,r);if(o.type==="record"||o.type==="map")return Nt(o.keyType,r)||Nt(o.valueType,r);if(o.type==="pipe")return Nt(o.in,r)||Nt(o.out,r);if(o.type==="object"){for(const l in o.shape)if(Nt(o.shape[l],r))return!0;return!1}if(o.type==="union"){for(const l of o.options)if(Nt(l,r))return!0;return!1}if(o.type==="tuple"){for(const l of o.items)if(Nt(l,r))return!0;return!!(o.rest&&Nt(o.rest,r))}return!1}const A3=(e,a={})=>r=>{const o=HS({...r,processors:a});return zt(e,o),$S(o,e),GS(o,e)},ql=(e,a,r={})=>o=>{const{libraryOptions:l,target:f}=o??{},c=HS({...l??{},target:f,io:a,processors:r});return zt(e,c),$S(c,e),GS(c,e)},z3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},C3=(e,a,r,o)=>{const l=r;l.type="string";const{minimum:f,maximum:c,format:h,patterns:m,contentEncoding:p}=e._zod.bag;if(typeof f=="number"&&(l.minLength=f),typeof c=="number"&&(l.maxLength=c),h&&(l.format=z3[h]??h,l.format===""&&delete l.format,h==="time"&&delete l.format),p&&(l.contentEncoding=p),m&&m.size>0){const y=[...m];y.length===1?l.pattern=y[0].source:y.length>1&&(l.allOf=[...y.map(v=>({...a.target==="draft-07"||a.target==="draft-04"||a.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},R3=(e,a,r,o)=>{const l=r,{minimum:f,maximum:c,format:h,multipleOf:m,exclusiveMaximum:p,exclusiveMinimum:y}=e._zod.bag;typeof h=="string"&&h.includes("int")?l.type="integer":l.type="number",typeof y=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(l.minimum=y,l.exclusiveMinimum=!0):l.exclusiveMinimum=y),typeof f=="number"&&(l.minimum=f,typeof y=="number"&&a.target!=="draft-04"&&(y>=f?delete l.minimum:delete l.exclusiveMinimum)),typeof p=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(l.maximum=p,l.exclusiveMaximum=!0):l.exclusiveMaximum=p),typeof c=="number"&&(l.maximum=c,typeof p=="number"&&a.target!=="draft-04"&&(p<=c?delete l.maximum:delete l.exclusiveMaximum)),typeof m=="number"&&(l.multipleOf=m)},O3=(e,a,r,o)=>{r.type="boolean"},M3=(e,a,r,o)=>{r.not={}},D3=(e,a,r,o)=>{},N3=(e,a,r,o)=>{const l=e._zod.def,f=xS(l.entries);f.every(c=>typeof c=="number")&&(r.type="number"),f.every(c=>typeof c=="string")&&(r.type="string"),r.enum=f},j3=(e,a,r,o)=>{if(a.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},k3=(e,a,r,o)=>{if(a.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},V3=(e,a,r,o)=>{const l=r,f=e._zod.def,{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(l.minItems=c),typeof h=="number"&&(l.maxItems=h),l.type="array",l.items=zt(f.element,a,{...o,path:[...o.path,"items"]})},U3=(e,a,r,o)=>{const l=r,f=e._zod.def;l.type="object",l.properties={};const c=f.shape;for(const p in c)l.properties[p]=zt(c[p],a,{...o,path:[...o.path,"properties",p]});const h=new Set(Object.keys(c)),m=new Set([...h].filter(p=>{const y=f.shape[p]._zod;return a.io==="input"?y.optin===void 0:y.optout===void 0}));m.size>0&&(l.required=Array.from(m)),f.catchall?._zod.def.type==="never"?l.additionalProperties=!1:f.catchall?f.catchall&&(l.additionalProperties=zt(f.catchall,a,{...o,path:[...o.path,"additionalProperties"]})):a.io==="output"&&(l.additionalProperties=!1)},L3=(e,a,r,o)=>{const l=e._zod.def,f=l.inclusive===!1,c=l.options.map((h,m)=>zt(h,a,{...o,path:[...o.path,f?"oneOf":"anyOf",m]}));f?r.oneOf=c:r.anyOf=c},B3=(e,a,r,o)=>{const l=e._zod.def,f=zt(l.left,a,{...o,path:[...o.path,"allOf",0]}),c=zt(l.right,a,{...o,path:[...o.path,"allOf",1]}),h=p=>"allOf"in p&&Object.keys(p).length===1,m=[...h(f)?f.allOf:[f],...h(c)?c.allOf:[c]];r.allOf=m},Z3=(e,a,r,o)=>{const l=e._zod.def,f=zt(l.innerType,a,o),c=a.seen.get(e);a.target==="openapi-3.0"?(c.ref=l.innerType,r.nullable=!0):r.anyOf=[f,{type:"null"}]},H3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType},$3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,r.default=JSON.parse(JSON.stringify(l.defaultValue))},G3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,a.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(l.defaultValue)))},q3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType;let c;try{c=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=c},Y3=(e,a,r,o)=>{const l=e._zod.def,f=a.io==="input"?l.in._zod.def.type==="transform"?l.out:l.in:l.out;zt(f,a,o);const c=a.seen.get(e);c.ref=f},P3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,r.readOnly=!0},qS=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType},X3=G("ZodISODateTime",(e,a)=>{IM.init(e,a),Je.init(e,a)});function K3(e){return n3(X3,e)}const Q3=G("ZodISODate",(e,a)=>{WM.init(e,a),Je.init(e,a)});function F3(e){return a3(Q3,e)}const J3=G("ZodISOTime",(e,a)=>{eD.init(e,a),Je.init(e,a)});function I3(e){return i3(J3,e)}const W3=G("ZodISODuration",(e,a)=>{tD.init(e,a),Je.init(e,a)});function e4(e){return r3(W3,e)}const t4=(e,a)=>{AS.init(e,a),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>qO(e,r)},flatten:{value:r=>GO(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Nd,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Nd,2)}},isEmpty:{get(){return e.issues.length===0}}})},gn=G("ZodError",t4,{Parent:Error}),n4=Dh(gn),a4=Nh(gn),i4=Wl(gn),r4=eu(gn),o4=XO(gn),s4=KO(gn),l4=QO(gn),u4=FO(gn),c4=JO(gn),f4=IO(gn),d4=WO(gn),h4=eM(gn),it=G("ZodType",(e,a)=>(at.init(e,a),Object.assign(e["~standard"],{jsonSchema:{input:ql(e,"input"),output:ql(e,"output")}}),e.toJSONSchema=A3(e,{}),e.def=a,e.type=a.type,Object.defineProperty(e,"_def",{value:a}),e.check=(...r)=>e.clone(Ga(a,{checks:[...a.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>qa(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>n4(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>i4(e,r,o),e.parseAsync=async(r,o)=>a4(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>r4(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>o4(e,r,o),e.decode=(r,o)=>s4(e,r,o),e.encodeAsync=async(r,o)=>l4(e,r,o),e.decodeAsync=async(r,o)=>u4(e,r,o),e.safeEncode=(r,o)=>c4(e,r,o),e.safeDecode=(r,o)=>f4(e,r,o),e.safeEncodeAsync=async(r,o)=>d4(e,r,o),e.safeDecodeAsync=async(r,o)=>h4(e,r,o),e.refine=(r,o)=>e.check(rN(r,o)),e.superRefine=r=>e.check(oN(r)),e.overwrite=r=>e.check(Er(r)),e.optional=()=>Y0(e),e.exactOptional=()=>P4(e),e.nullable=()=>P0(e),e.nullish=()=>Y0(P0(e)),e.nonoptional=r=>I4(e,r),e.array=()=>XS(e),e.or=r=>Z4([e,r]),e.and=r=>$4(e,r),e.transform=r=>X0(e,q4(r)),e.default=r=>Q4(e,r),e.prefault=r=>J4(e,r),e.catch=r=>eN(e,r),e.pipe=r=>X0(e,r),e.readonly=()=>aN(e),e.describe=r=>{const o=e.clone();return Ro.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Ro.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ro.get(e);const o=e.clone();return Ro.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),YS=G("_ZodString",(e,a)=>{jh.init(e,a),it.init(e,a),e._zod.processJSONSchema=(o,l,f)=>C3(e,o,l);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(f3(...o)),e.includes=(...o)=>e.check(m3(...o)),e.startsWith=(...o)=>e.check(p3(...o)),e.endsWith=(...o)=>e.check(g3(...o)),e.min=(...o)=>e.check(Gl(...o)),e.max=(...o)=>e.check(BS(...o)),e.length=(...o)=>e.check(ZS(...o)),e.nonempty=(...o)=>e.check(Gl(1,...o)),e.lowercase=o=>e.check(d3(o)),e.uppercase=o=>e.check(h3(o)),e.trim=()=>e.check(v3()),e.normalize=(...o)=>e.check(y3(...o)),e.toLowerCase=()=>e.check(b3()),e.toUpperCase=()=>e.check(S3()),e.slugify=()=>e.check(x3())}),m4=G("ZodString",(e,a)=>{jh.init(e,a),YS.init(e,a),e.email=r=>e.check(kD(p4,r)),e.url=r=>e.check(ZD(g4,r)),e.jwt=r=>e.check(t3(M4,r)),e.emoji=r=>e.check(HD(y4,r)),e.guid=r=>e.check(U0(H0,r)),e.uuid=r=>e.check(VD(_l,r)),e.uuidv4=r=>e.check(UD(_l,r)),e.uuidv6=r=>e.check(LD(_l,r)),e.uuidv7=r=>e.check(BD(_l,r)),e.nanoid=r=>e.check($D(v4,r)),e.guid=r=>e.check(U0(H0,r)),e.cuid=r=>e.check(GD(b4,r)),e.cuid2=r=>e.check(qD(S4,r)),e.ulid=r=>e.check(YD(x4,r)),e.base64=r=>e.check(ID(C4,r)),e.base64url=r=>e.check(WD(R4,r)),e.xid=r=>e.check(PD(T4,r)),e.ksuid=r=>e.check(XD(E4,r)),e.ipv4=r=>e.check(KD(_4,r)),e.ipv6=r=>e.check(QD(w4,r)),e.cidrv4=r=>e.check(FD(A4,r)),e.cidrv6=r=>e.check(JD(z4,r)),e.e164=r=>e.check(e3(O4,r)),e.datetime=r=>e.check(K3(r)),e.date=r=>e.check(F3(r)),e.time=r=>e.check(I3(r)),e.duration=r=>e.check(e4(r))});function ka(e){return jD(m4,e)}const Je=G("ZodStringFormat",(e,a)=>{Xe.init(e,a),YS.init(e,a)}),p4=G("ZodEmail",(e,a)=>{GM.init(e,a),Je.init(e,a)}),H0=G("ZodGUID",(e,a)=>{HM.init(e,a),Je.init(e,a)}),_l=G("ZodUUID",(e,a)=>{$M.init(e,a),Je.init(e,a)}),g4=G("ZodURL",(e,a)=>{qM.init(e,a),Je.init(e,a)}),y4=G("ZodEmoji",(e,a)=>{YM.init(e,a),Je.init(e,a)}),v4=G("ZodNanoID",(e,a)=>{PM.init(e,a),Je.init(e,a)}),b4=G("ZodCUID",(e,a)=>{XM.init(e,a),Je.init(e,a)}),S4=G("ZodCUID2",(e,a)=>{KM.init(e,a),Je.init(e,a)}),x4=G("ZodULID",(e,a)=>{QM.init(e,a),Je.init(e,a)}),T4=G("ZodXID",(e,a)=>{FM.init(e,a),Je.init(e,a)}),E4=G("ZodKSUID",(e,a)=>{JM.init(e,a),Je.init(e,a)}),_4=G("ZodIPv4",(e,a)=>{nD.init(e,a),Je.init(e,a)}),w4=G("ZodIPv6",(e,a)=>{aD.init(e,a),Je.init(e,a)}),A4=G("ZodCIDRv4",(e,a)=>{iD.init(e,a),Je.init(e,a)}),z4=G("ZodCIDRv6",(e,a)=>{rD.init(e,a),Je.init(e,a)}),C4=G("ZodBase64",(e,a)=>{oD.init(e,a),Je.init(e,a)}),R4=G("ZodBase64URL",(e,a)=>{lD.init(e,a),Je.init(e,a)}),O4=G("ZodE164",(e,a)=>{uD.init(e,a),Je.init(e,a)}),M4=G("ZodJWT",(e,a)=>{fD.init(e,a),Je.init(e,a)}),PS=G("ZodNumber",(e,a)=>{kS.init(e,a),it.init(e,a),e._zod.processJSONSchema=(o,l,f)=>R3(e,o,l),e.gt=(o,l)=>e.check(B0(o,l)),e.gte=(o,l)=>e.check(Wf(o,l)),e.min=(o,l)=>e.check(Wf(o,l)),e.lt=(o,l)=>e.check(L0(o,l)),e.lte=(o,l)=>e.check(If(o,l)),e.max=(o,l)=>e.check(If(o,l)),e.int=o=>e.check(G0(o)),e.safe=o=>e.check(G0(o)),e.positive=o=>e.check(B0(0,o)),e.nonnegative=o=>e.check(Wf(0,o)),e.negative=o=>e.check(L0(0,o)),e.nonpositive=o=>e.check(If(0,o)),e.multipleOf=(o,l)=>e.check(Z0(o,l)),e.step=(o,l)=>e.check(Z0(o,l)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function $0(e){return o3(PS,e)}const D4=G("ZodNumberFormat",(e,a)=>{dD.init(e,a),PS.init(e,a)});function G0(e){return s3(D4,e)}const N4=G("ZodBoolean",(e,a)=>{hD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>O3(e,r,o)});function wl(e){return l3(N4,e)}const j4=G("ZodUnknown",(e,a)=>{mD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>D3()});function q0(){return u3(j4)}const k4=G("ZodNever",(e,a)=>{pD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>M3(e,r,o)});function V4(e){return c3(k4,e)}const U4=G("ZodArray",(e,a)=>{gD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>V3(e,r,o,l),e.element=a.element,e.min=(r,o)=>e.check(Gl(r,o)),e.nonempty=r=>e.check(Gl(1,r)),e.max=(r,o)=>e.check(BS(r,o)),e.length=(r,o)=>e.check(ZS(r,o)),e.unwrap=()=>e.element});function XS(e,a){return T3(U4,e,a)}const L4=G("ZodObject",(e,a)=>{vD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>U3(e,r,o,l),Ne(e,"shape",()=>a.shape),e.keyof=()=>Vd(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:q0()}),e.loose=()=>e.clone({...e._zod.def,catchall:q0()}),e.strict=()=>e.clone({...e._zod.def,catchall:V4()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>LO(e,r),e.safeExtend=r=>BO(e,r),e.merge=r=>ZO(e,r),e.pick=r=>VO(e,r),e.omit=r=>UO(e,r),e.partial=(...r)=>HO(KS,e,r[0]),e.required=(...r)=>$O(QS,e,r[0])});function Va(e,a){const r={type:"object",shape:e??{},...se(a)};return new L4(r)}const B4=G("ZodUnion",(e,a)=>{bD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>L3(e,r,o,l),e.options=a.options});function Z4(e,a){return new B4({type:"union",options:e,...se(a)})}const H4=G("ZodIntersection",(e,a)=>{SD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>B3(e,r,o,l)});function $4(e,a){return new H4({type:"intersection",left:e,right:a})}const kd=G("ZodEnum",(e,a)=>{xD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(o,l,f)=>N3(e,o,l),e.enum=a.entries,e.options=Object.values(a.entries);const r=new Set(Object.keys(a.entries));e.extract=(o,l)=>{const f={};for(const c of o)if(r.has(c))f[c]=a.entries[c];else throw new Error(`Key ${c} not found in enum`);return new kd({...a,checks:[],...se(l),entries:f})},e.exclude=(o,l)=>{const f={...a.entries};for(const c of o)if(r.has(c))delete f[c];else throw new Error(`Key ${c} not found in enum`);return new kd({...a,checks:[],...se(l),entries:f})}});function Vd(e,a){const r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new kd({type:"enum",entries:r,...se(a)})}const G4=G("ZodTransform",(e,a)=>{TD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>k3(e,r),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new bS(e.constructor.name);r.addIssue=f=>{if(typeof f=="string")r.issues.push($o(f,r.value,a));else{const c=f;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=r.value),c.inst??(c.inst=e),r.issues.push($o(c))}};const l=a.transform(r.value,r);return l instanceof Promise?l.then(f=>(r.value=f,r)):(r.value=l,r)}});function q4(e){return new G4({type:"transform",transform:e})}const KS=G("ZodOptional",(e,a)=>{LS.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>qS(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function Y0(e){return new KS({type:"optional",innerType:e})}const Y4=G("ZodExactOptional",(e,a)=>{ED.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>qS(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function P4(e){return new Y4({type:"optional",innerType:e})}const X4=G("ZodNullable",(e,a)=>{_D.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>Z3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function P0(e){return new X4({type:"nullable",innerType:e})}const K4=G("ZodDefault",(e,a)=>{wD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>$3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Q4(e,a){return new K4({type:"default",innerType:e,get defaultValue(){return typeof a=="function"?a():ES(a)}})}const F4=G("ZodPrefault",(e,a)=>{AD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>G3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function J4(e,a){return new F4({type:"prefault",innerType:e,get defaultValue(){return typeof a=="function"?a():ES(a)}})}const QS=G("ZodNonOptional",(e,a)=>{zD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>H3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function I4(e,a){return new QS({type:"nonoptional",innerType:e,...se(a)})}const W4=G("ZodCatch",(e,a)=>{CD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>q3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eN(e,a){return new W4({type:"catch",innerType:e,catchValue:typeof a=="function"?a:()=>a})}const tN=G("ZodPipe",(e,a)=>{RD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>Y3(e,r,o,l),e.in=a.in,e.out=a.out});function X0(e,a){return new tN({type:"pipe",in:e,out:a})}const nN=G("ZodReadonly",(e,a)=>{OD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>P3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function aN(e){return new nN({type:"readonly",innerType:e})}const iN=G("ZodCustom",(e,a)=>{MD.init(e,a),it.init(e,a),e._zod.processJSONSchema=(r,o,l)=>j3(e,r)});function rN(e,a={}){return E3(iN,e,a)}function oN(e){return _3(e)}const wt={agent:{name:"morpheus",personality:"helpful_dev"},logging:{enabled:!0,level:"info",retention:"14d"},llm:{provider:"openai",model:"gpt-4",temperature:.7},channels:{telegram:{enabled:!1,allowedUsers:[]},discord:{enabled:!1}},ui:{enabled:!0,port:3333}},sN=Va({agent:Va({name:ka().default(wt.agent.name),personality:ka().default(wt.agent.personality)}).default(wt.agent),llm:Va({provider:Vd(["openai","anthropic","ollama","gemini"]).default(wt.llm.provider),model:ka().min(1).default(wt.llm.model),temperature:$0().min(0).max(1).default(wt.llm.temperature),api_key:ka().optional()}).default(wt.llm),channels:Va({telegram:Va({enabled:wl().default(!1),token:ka().optional(),allowedUsers:XS(ka()).default([])}).default(wt.channels.telegram),discord:Va({enabled:wl().default(!1),token:ka().optional()}).default(wt.channels.discord)}).default(wt.channels),ui:Va({enabled:wl().default(wt.ui.enabled),port:$0().default(wt.ui.port)}).default(wt.ui),logging:Va({enabled:wl().default(wt.logging.enabled),level:Vd(["debug","info","warn","error"]).default(wt.logging.level),retention:ka().default(wt.logging.retention)}).default(wt.logging)});function FS(e,a,r){function o(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),a(h,m);const p=c.prototype,y=Object.keys(p);for(let v=0;v<y.length;v++){const S=y[v];S in h||(h[S]=p[S].bind(h))}}const l=r?.Parent??Object;class f extends l{}Object.defineProperty(f,"name",{value:e});function c(h){var m;const p=r?.Parent?new f:this;o(p,h),(m=p._zod).deferred??(m.deferred=[]);for(const y of p._zod.deferred)y();return p}return Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}function Ud(e,a){return typeof a=="bigint"?a.toString():a}const lN=(e,a)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:a,enumerable:!1}),e.message=JSON.stringify(a,Ud,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},uN=FS("$ZodError",lN);function cN(e,a=r=>r.message){const r={},o=[];for(const l of e.issues)l.path.length>0?(r[l.path[0]]=r[l.path[0]]||[],r[l.path[0]].push(a(l))):o.push(a(l));return{formErrors:o,fieldErrors:r}}function fN(e,a=r=>r.message){const r={_errors:[]},o=l=>{for(const f of l.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(c=>o({issues:c}));else if(f.code==="invalid_key")o({issues:f.issues});else if(f.code==="invalid_element")o({issues:f.issues});else if(f.path.length===0)r._errors.push(a(f));else{let c=r,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(a(f))):c[m]=c[m]||{_errors:[]},c=c[m],h++}}};return o(e),r}var K0;class dN{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...r){const o=r[0];return this._map.set(a,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const r=this._map.get(a);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(a),this}get(a){const r=a._zod.parent;if(r){const o={...this.get(r)??{}};delete o.id;const l={...o,...this._map.get(a)};return Object.keys(l).length?l:void 0}return this._map.get(a)}has(a){return this._map.has(a)}}function hN(){return new dN}(K0=globalThis).__zod_globalRegistry??(K0.__zod_globalRegistry=hN());const mN=(e,a)=>{uN.init(e,a),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>fN(e,r)},flatten:{value:r=>cN(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ud,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ud,2)}},isEmpty:{get(){return e.issues.length===0}}})},pN=FS("ZodError",mN),gN=[{id:"general",label:"General"},{id:"llm",label:"LLM"},{id:"channels",label:"Channels"},{id:"ui",label:"Interface"},{id:"logging",label:"Logging"}];function yN(){const{data:e,error:a}=Kl("/api/config",_0.fetchConfig),[r,o]=A.useState(null),[l,f]=A.useState("general"),[c,h]=A.useState(!1),[m,p]=A.useState({}),[y,v]=A.useState(null);A.useEffect(()=>{e&&!r&&o(e)},[e]);const S=JSON.stringify(e)!==JSON.stringify(r),x=(E,O)=>{if(!r)return;const V=JSON.parse(JSON.stringify(r));let C=V;for(let j=0;j<E.length-1;j++)C=C[E[j]];C[E[E.length-1]]=O,o(V);try{sN.parse(V),p({})}catch(j){if(j instanceof pN){const Q={};j.errors.forEach(q=>{const I=q.path.join(".");Q[I]=q.message}),p(Q)}}},R=async()=>{if(r){h(!0),v(null);try{await _0.updateConfig(r),Tb("/api/config"),v({type:"success",message:"Settings saved successfully"})}catch(E){if(v({type:"error",message:E.message}),E.details&&Array.isArray(E.details)){const O={};E.details.forEach(V=>{const C=V.path.join(".");O[C]=V.message}),p(O)}}finally{h(!1)}}};return a?L.jsx("div",{className:"p-8 text-red-500",children:"Failed to load configuration"}):r?L.jsxs("div",{className:"max-w-4xl mx-auto p-6 space-y-6",children:[L.jsxs("div",{className:"flex justify-between items-center",children:[L.jsx("h1",{className:"text-2xl font-bold text-matrix-highlight",children:"Settings"}),L.jsx("button",{onClick:R,disabled:!S||Object.keys(m).length>0||c,className:`px-4 py-2 rounded font-medium transition-colors ${S&&Object.keys(m).length===0?"bg-matrix-highlight text-black hover:bg-matrix-highlight/90":"bg-matrix-primary/50 text-matrix-highlight/50 cursor-not-allowed"}`,children:c?"Saving...":"Save Changes"})]}),y&&L.jsx("div",{className:`p-4 rounded border ${y.type==="success"?"border-matrix-highlight text-matrix-highlight bg-matrix-highlight/10":"border-red-500 text-red-500 bg-red-900/10"}`,children:y.message}),L.jsx("div",{className:"flex space-x-1 border-b border-matrix-primary pb-px",children:gN.map(E=>L.jsx("button",{onClick:()=>f(E.id),className:`px-4 py-2 text-sm font-medium rounded-t-md transition-colors ${l===E.id?"bg-matrix-primary/20 text-matrix-highlight border-t border-x border-matrix-primary":"text-matrix-secondary hover:text-matrix-highlight"}`,children:E.label},E.id))}),L.jsxs("div",{className:"space-y-6",children:[l==="general"&&L.jsxs(_o,{title:"Agent Identity",children:[L.jsx(ir,{label:"Agent Name",value:r.agent.name,onChange:E=>x(["agent","name"],E.target.value),error:m["agent.name"]}),L.jsx(ir,{label:"Personality",value:r.agent.personality,onChange:E=>x(["agent","personality"],E.target.value),error:m["agent.personality"]})]}),l==="llm"&&L.jsxs(_o,{title:"LLM Provider",children:[L.jsx(x0,{label:"Provider",value:r.llm.provider,onChange:E=>x(["llm","provider"],E.target.value),options:[{label:"OpenAI",value:"openai"},{label:"Anthropic",value:"anthropic"},{label:"Ollama",value:"ollama"},{label:"Google Gemini",value:"gemini"}],error:m["llm.provider"]}),L.jsx(ir,{label:"Model Name",value:r.llm.model,onChange:E=>x(["llm","model"],E.target.value),error:m["llm.model"]}),L.jsx(T0,{label:"Temperature",value:r.llm.temperature,onChange:E=>x(["llm","temperature"],parseFloat(E.target.value)),step:.1,min:0,max:1,error:m["llm.temperature"]}),L.jsx(ir,{label:"API Key",type:"password",value:r.llm.api_key||"",onChange:E=>x(["llm","api_key"],E.target.value),placeholder:"sk-...",helperText:"Stored locally."})]}),l==="channels"&&L.jsxs(_o,{title:"Telegram",children:[L.jsx(Jf,{label:"Enable Telegram",checked:r.channels.telegram.enabled,onChange:E=>x(["channels","telegram","enabled"],E)}),r.channels.telegram.enabled&&L.jsxs("div",{className:"space-y-4 mt-4 pl-4 border-l border-matrix-primary",children:[L.jsx(ir,{label:"Bot Token",type:"password",value:r.channels.telegram.token||"",onChange:E=>x(["channels","telegram","token"],E.target.value)}),L.jsx(ir,{label:"Allowed Users (comma separated)",value:r.channels.telegram.allowedUsers.join(", "),onChange:E=>x(["channels","telegram","allowedUsers"],E.target.value.split(",").map(O=>O.trim()).filter(Boolean)),helperText:"User IDs allowed to interact with the bot"})]})]}),l==="ui"&&L.jsxs(_o,{title:"Dashboard",children:[L.jsx(Jf,{label:"Enable Web UI",checked:r.ui.enabled,onChange:E=>x(["ui","enabled"],E)}),L.jsx(T0,{label:"Port",value:r.ui.port,onChange:E=>x(["ui","port"],parseInt(E.target.value)),disabled:!0,helperText:"Requires restart to change."})]}),l==="logging"&&L.jsxs(_o,{title:"Logging",children:[L.jsx(Jf,{label:"Enable Logging",checked:r.logging.enabled,onChange:E=>x(["logging","enabled"],E)}),L.jsx(x0,{label:"Log Level",value:r.logging.level,onChange:E=>x(["logging","level"],E.target.value),options:[{label:"Debug",value:"debug"},{label:"Info",value:"info"},{label:"Warning",value:"warn"},{label:"Error",value:"error"}]})]})]})]}):L.jsx("div",{className:"p-8 text-matrix-highlight",children:"Loading settings..."})}function vN(){const{data:e}=r2(),[a,r]=A.useState(null),{data:o,mutate:l}=o2(a);return A.useEffect(()=>{!a&&e&&e.length>0&&r(e[0].name)},[e,a]),L.jsxs(jo.div,{className:"h-full flex flex-col space-y-4",initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.3},children:[L.jsxs("div",{children:[L.jsx("h2",{className:"text-2xl font-bold text-matrix-highlight",children:"SYSTEM LOGS"}),L.jsx("p",{className:"text-matrix-secondary opacity-80",children:"View runtime logs."})]}),L.jsxs("div",{className:"flex-1 flex gap-4 overflow-hidden border border-matrix-primary rounded bg-zinc-950 p-4",children:[L.jsxs("div",{className:"w-64 flex flex-col gap-2 border-r border-matrix-primary pr-4 overflow-y-auto shrink-0",children:[L.jsx("h3",{className:"font-bold text-matrix-secondary mb-2 sticky top-0 bg-zinc-950",children:"LOG FILES"}),e?.map(f=>L.jsxs("button",{onClick:()=>r(f.name),className:`text-left px-3 py-2 rounded text-sm truncate flex items-center gap-2 group transition-colors ${a===f.name?"bg-matrix-primary text-matrix-highlight":"text-matrix-secondary hover:bg-zinc-900 group-hover:text-matrix-highlight"}`,children:[L.jsx(gw,{className:"w-4 h-4 shrink-0"}),L.jsxs("div",{className:"flex flex-col overflow-hidden",children:[L.jsx("span",{className:"truncate font-bold",children:f.name}),L.jsxs("span",{className:"text-xs opacity-70",children:[(f.size/1024).toFixed(1)," KB"]})]})]},f.name))]}),L.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden bg-black border border-matrix-primary/50 rounded",children:[L.jsxs("div",{className:"flex justify-between items-center p-2 bg-zinc-900 border-b border-matrix-primary/50",children:[L.jsx("span",{className:"text-matrix-highlight font-bold font-mono text-sm",children:a}),L.jsx("button",{onClick:()=>l(),className:"text-matrix-secondary hover:text-matrix-highlight transition-colors",children:L.jsx(Tw,{className:"w-4 h-4"})})]}),L.jsx("div",{className:"flex-1 overflow-auto p-4 font-mono text-xs whitespace-pre-wrap text-green-500/80",children:o?o.lines.join(`
|
|
50
|
-
`):"Select a log file to view content..."})]})]})]})}function
|
|
49
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(a===c[0]){f(c);continue}if(e.external){const p=e.external.registry.get(c[0])?.id;if(a!==c[0]&&p){f(c);continue}}if(e.metadataRegistry.get(c[0])?.id){f(c);continue}if(h.cycle){f(c);continue}if(h.count>1&&e.reused==="ref"){f(c);continue}}}function qS(e,a){const r=e.seen.get(a);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=c=>{const h=e.seen.get(c);if(h.ref===null)return;const m=h.def??h.schema,p={...m},y=h.ref;if(h.ref=null,y){o(y);const S=e.seen.get(y),x=S.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(x)):Object.assign(m,x),Object.assign(m,p),c._zod.parent===y)for(const E in m)E==="$ref"||E==="allOf"||E in p||delete m[E];if(x.$ref&&S.def)for(const E in m)E==="$ref"||E==="allOf"||E in S.def&&JSON.stringify(m[E])===JSON.stringify(S.def[E])&&delete m[E]}const v=c._zod.parent;if(v&&v!==y){o(v);const S=e.seen.get(v);if(S?.schema.$ref&&(m.$ref=S.schema.$ref,S.def))for(const x in m)x==="$ref"||x==="allOf"||x in S.def&&JSON.stringify(m[x])===JSON.stringify(S.def[x])&&delete m[x]}e.override({zodSchema:c,jsonSchema:m,path:h.path??[]})};for(const c of[...e.seen.entries()].reverse())o(c[0]);const l={};if(e.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?l.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?l.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(a)?.id;if(!c)throw new Error("Schema is missing an `id` property");l.$id=e.external.uri(c)}Object.assign(l,r.def??r.schema);const f=e.external?.defs??{};for(const c of e.seen.entries()){const h=c[1];h.def&&h.defId&&(f[h.defId]=h.def)}e.external||Object.keys(f).length>0&&(e.target==="draft-2020-12"?l.$defs=f:l.definitions=f);try{const c=JSON.parse(JSON.stringify(l));return Object.defineProperty(c,"~standard",{value:{...a["~standard"],jsonSchema:{input:ql(a,"input",e.processors),output:ql(a,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function Nt(e,a){const r=a??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Nt(o.element,r);if(o.type==="set")return Nt(o.valueType,r);if(o.type==="lazy")return Nt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Nt(o.innerType,r);if(o.type==="intersection")return Nt(o.left,r)||Nt(o.right,r);if(o.type==="record"||o.type==="map")return Nt(o.keyType,r)||Nt(o.valueType,r);if(o.type==="pipe")return Nt(o.in,r)||Nt(o.out,r);if(o.type==="object"){for(const l in o.shape)if(Nt(o.shape[l],r))return!0;return!1}if(o.type==="union"){for(const l of o.options)if(Nt(l,r))return!0;return!1}if(o.type==="tuple"){for(const l of o.items)if(Nt(l,r))return!0;return!!(o.rest&&Nt(o.rest,r))}return!1}const A3=(e,a={})=>r=>{const o=$S({...r,processors:a});return zt(e,o),GS(o,e),qS(o,e)},ql=(e,a,r={})=>o=>{const{libraryOptions:l,target:f}=o??{},c=$S({...l??{},target:f,io:a,processors:r});return zt(e,c),GS(c,e),qS(c,e)},z3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},C3=(e,a,r,o)=>{const l=r;l.type="string";const{minimum:f,maximum:c,format:h,patterns:m,contentEncoding:p}=e._zod.bag;if(typeof f=="number"&&(l.minLength=f),typeof c=="number"&&(l.maxLength=c),h&&(l.format=z3[h]??h,l.format===""&&delete l.format,h==="time"&&delete l.format),p&&(l.contentEncoding=p),m&&m.size>0){const y=[...m];y.length===1?l.pattern=y[0].source:y.length>1&&(l.allOf=[...y.map(v=>({...a.target==="draft-07"||a.target==="draft-04"||a.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},R3=(e,a,r,o)=>{const l=r,{minimum:f,maximum:c,format:h,multipleOf:m,exclusiveMaximum:p,exclusiveMinimum:y}=e._zod.bag;typeof h=="string"&&h.includes("int")?l.type="integer":l.type="number",typeof y=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(l.minimum=y,l.exclusiveMinimum=!0):l.exclusiveMinimum=y),typeof f=="number"&&(l.minimum=f,typeof y=="number"&&a.target!=="draft-04"&&(y>=f?delete l.minimum:delete l.exclusiveMinimum)),typeof p=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(l.maximum=p,l.exclusiveMaximum=!0):l.exclusiveMaximum=p),typeof c=="number"&&(l.maximum=c,typeof p=="number"&&a.target!=="draft-04"&&(p<=c?delete l.maximum:delete l.exclusiveMaximum)),typeof m=="number"&&(l.multipleOf=m)},O3=(e,a,r,o)=>{r.type="boolean"},M3=(e,a,r,o)=>{r.not={}},D3=(e,a,r,o)=>{},N3=(e,a,r,o)=>{const l=e._zod.def,f=TS(l.entries);f.every(c=>typeof c=="number")&&(r.type="number"),f.every(c=>typeof c=="string")&&(r.type="string"),r.enum=f},j3=(e,a,r,o)=>{if(a.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},k3=(e,a,r,o)=>{if(a.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},V3=(e,a,r,o)=>{const l=r,f=e._zod.def,{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(l.minItems=c),typeof h=="number"&&(l.maxItems=h),l.type="array",l.items=zt(f.element,a,{...o,path:[...o.path,"items"]})},U3=(e,a,r,o)=>{const l=r,f=e._zod.def;l.type="object",l.properties={};const c=f.shape;for(const p in c)l.properties[p]=zt(c[p],a,{...o,path:[...o.path,"properties",p]});const h=new Set(Object.keys(c)),m=new Set([...h].filter(p=>{const y=f.shape[p]._zod;return a.io==="input"?y.optin===void 0:y.optout===void 0}));m.size>0&&(l.required=Array.from(m)),f.catchall?._zod.def.type==="never"?l.additionalProperties=!1:f.catchall?f.catchall&&(l.additionalProperties=zt(f.catchall,a,{...o,path:[...o.path,"additionalProperties"]})):a.io==="output"&&(l.additionalProperties=!1)},L3=(e,a,r,o)=>{const l=e._zod.def,f=l.inclusive===!1,c=l.options.map((h,m)=>zt(h,a,{...o,path:[...o.path,f?"oneOf":"anyOf",m]}));f?r.oneOf=c:r.anyOf=c},B3=(e,a,r,o)=>{const l=e._zod.def,f=zt(l.left,a,{...o,path:[...o.path,"allOf",0]}),c=zt(l.right,a,{...o,path:[...o.path,"allOf",1]}),h=p=>"allOf"in p&&Object.keys(p).length===1,m=[...h(f)?f.allOf:[f],...h(c)?c.allOf:[c]];r.allOf=m},Z3=(e,a,r,o)=>{const l=e._zod.def,f=zt(l.innerType,a,o),c=a.seen.get(e);a.target==="openapi-3.0"?(c.ref=l.innerType,r.nullable=!0):r.anyOf=[f,{type:"null"}]},H3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType},$3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,r.default=JSON.parse(JSON.stringify(l.defaultValue))},G3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,a.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(l.defaultValue)))},q3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType;let c;try{c=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=c},Y3=(e,a,r,o)=>{const l=e._zod.def,f=a.io==="input"?l.in._zod.def.type==="transform"?l.out:l.in:l.out;zt(f,a,o);const c=a.seen.get(e);c.ref=f},P3=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,r.readOnly=!0},YS=(e,a,r,o)=>{const l=e._zod.def;zt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType},X3=G("ZodISODateTime",(e,a)=>{IM.init(e,a),Je.init(e,a)});function K3(e){return n3(X3,e)}const Q3=G("ZodISODate",(e,a)=>{WM.init(e,a),Je.init(e,a)});function F3(e){return a3(Q3,e)}const J3=G("ZodISOTime",(e,a)=>{eD.init(e,a),Je.init(e,a)});function I3(e){return i3(J3,e)}const W3=G("ZodISODuration",(e,a)=>{tD.init(e,a),Je.init(e,a)});function e4(e){return r3(W3,e)}const t4=(e,a)=>{zS.init(e,a),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>qO(e,r)},flatten:{value:r=>GO(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Nd,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Nd,2)}},isEmpty:{get(){return e.issues.length===0}}})},gn=G("ZodError",t4,{Parent:Error}),n4=Nh(gn),a4=jh(gn),i4=Wl(gn),r4=eu(gn),o4=XO(gn),s4=KO(gn),l4=QO(gn),u4=FO(gn),c4=JO(gn),f4=IO(gn),d4=WO(gn),h4=eM(gn),rt=G("ZodType",(e,a)=>(it.init(e,a),Object.assign(e["~standard"],{jsonSchema:{input:ql(e,"input"),output:ql(e,"output")}}),e.toJSONSchema=A3(e,{}),e.def=a,e.type=a.type,Object.defineProperty(e,"_def",{value:a}),e.check=(...r)=>e.clone(Ga(a,{checks:[...a.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>qa(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>n4(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>i4(e,r,o),e.parseAsync=async(r,o)=>a4(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>r4(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>o4(e,r,o),e.decode=(r,o)=>s4(e,r,o),e.encodeAsync=async(r,o)=>l4(e,r,o),e.decodeAsync=async(r,o)=>u4(e,r,o),e.safeEncode=(r,o)=>c4(e,r,o),e.safeDecode=(r,o)=>f4(e,r,o),e.safeEncodeAsync=async(r,o)=>d4(e,r,o),e.safeDecodeAsync=async(r,o)=>h4(e,r,o),e.refine=(r,o)=>e.check(rN(r,o)),e.superRefine=r=>e.check(oN(r)),e.overwrite=r=>e.check(Er(r)),e.optional=()=>P0(e),e.exactOptional=()=>P4(e),e.nullable=()=>X0(e),e.nullish=()=>P0(X0(e)),e.nonoptional=r=>I4(e,r),e.array=()=>Vh(e),e.or=r=>Z4([e,r]),e.and=r=>$4(e,r),e.transform=r=>K0(e,q4(r)),e.default=r=>Q4(e,r),e.prefault=r=>J4(e,r),e.catch=r=>eN(e,r),e.pipe=r=>K0(e,r),e.readonly=()=>aN(e),e.describe=r=>{const o=e.clone();return Ro.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Ro.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ro.get(e);const o=e.clone();return Ro.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),PS=G("_ZodString",(e,a)=>{kh.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(o,l,f)=>C3(e,o,l);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(f3(...o)),e.includes=(...o)=>e.check(m3(...o)),e.startsWith=(...o)=>e.check(p3(...o)),e.endsWith=(...o)=>e.check(g3(...o)),e.min=(...o)=>e.check(Gl(...o)),e.max=(...o)=>e.check(ZS(...o)),e.length=(...o)=>e.check(HS(...o)),e.nonempty=(...o)=>e.check(Gl(1,...o)),e.lowercase=o=>e.check(d3(o)),e.uppercase=o=>e.check(h3(o)),e.trim=()=>e.check(v3()),e.normalize=(...o)=>e.check(y3(...o)),e.toLowerCase=()=>e.check(b3()),e.toUpperCase=()=>e.check(S3()),e.slugify=()=>e.check(x3())}),m4=G("ZodString",(e,a)=>{kh.init(e,a),PS.init(e,a),e.email=r=>e.check(kD(p4,r)),e.url=r=>e.check(ZD(g4,r)),e.jwt=r=>e.check(t3(M4,r)),e.emoji=r=>e.check(HD(y4,r)),e.guid=r=>e.check(B0(G0,r)),e.uuid=r=>e.check(VD(wl,r)),e.uuidv4=r=>e.check(UD(wl,r)),e.uuidv6=r=>e.check(LD(wl,r)),e.uuidv7=r=>e.check(BD(wl,r)),e.nanoid=r=>e.check($D(v4,r)),e.guid=r=>e.check(B0(G0,r)),e.cuid=r=>e.check(GD(b4,r)),e.cuid2=r=>e.check(qD(S4,r)),e.ulid=r=>e.check(YD(x4,r)),e.base64=r=>e.check(ID(C4,r)),e.base64url=r=>e.check(WD(R4,r)),e.xid=r=>e.check(PD(T4,r)),e.ksuid=r=>e.check(XD(E4,r)),e.ipv4=r=>e.check(KD(_4,r)),e.ipv6=r=>e.check(QD(w4,r)),e.cidrv4=r=>e.check(FD(A4,r)),e.cidrv6=r=>e.check(JD(z4,r)),e.e164=r=>e.check(e3(O4,r)),e.datetime=r=>e.check(K3(r)),e.date=r=>e.check(F3(r)),e.time=r=>e.check(I3(r)),e.duration=r=>e.check(e4(r))});function Dn(e){return jD(m4,e)}const Je=G("ZodStringFormat",(e,a)=>{Xe.init(e,a),PS.init(e,a)}),p4=G("ZodEmail",(e,a)=>{GM.init(e,a),Je.init(e,a)}),G0=G("ZodGUID",(e,a)=>{HM.init(e,a),Je.init(e,a)}),wl=G("ZodUUID",(e,a)=>{$M.init(e,a),Je.init(e,a)}),g4=G("ZodURL",(e,a)=>{qM.init(e,a),Je.init(e,a)}),y4=G("ZodEmoji",(e,a)=>{YM.init(e,a),Je.init(e,a)}),v4=G("ZodNanoID",(e,a)=>{PM.init(e,a),Je.init(e,a)}),b4=G("ZodCUID",(e,a)=>{XM.init(e,a),Je.init(e,a)}),S4=G("ZodCUID2",(e,a)=>{KM.init(e,a),Je.init(e,a)}),x4=G("ZodULID",(e,a)=>{QM.init(e,a),Je.init(e,a)}),T4=G("ZodXID",(e,a)=>{FM.init(e,a),Je.init(e,a)}),E4=G("ZodKSUID",(e,a)=>{JM.init(e,a),Je.init(e,a)}),_4=G("ZodIPv4",(e,a)=>{nD.init(e,a),Je.init(e,a)}),w4=G("ZodIPv6",(e,a)=>{aD.init(e,a),Je.init(e,a)}),A4=G("ZodCIDRv4",(e,a)=>{iD.init(e,a),Je.init(e,a)}),z4=G("ZodCIDRv6",(e,a)=>{rD.init(e,a),Je.init(e,a)}),C4=G("ZodBase64",(e,a)=>{oD.init(e,a),Je.init(e,a)}),R4=G("ZodBase64URL",(e,a)=>{lD.init(e,a),Je.init(e,a)}),O4=G("ZodE164",(e,a)=>{uD.init(e,a),Je.init(e,a)}),M4=G("ZodJWT",(e,a)=>{fD.init(e,a),Je.init(e,a)}),XS=G("ZodNumber",(e,a)=>{VS.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(o,l,f)=>R3(e,o,l),e.gt=(o,l)=>e.check(H0(o,l)),e.gte=(o,l)=>e.check(Wf(o,l)),e.min=(o,l)=>e.check(Wf(o,l)),e.lt=(o,l)=>e.check(Z0(o,l)),e.lte=(o,l)=>e.check(If(o,l)),e.max=(o,l)=>e.check(If(o,l)),e.int=o=>e.check(q0(o)),e.safe=o=>e.check(q0(o)),e.positive=o=>e.check(H0(0,o)),e.nonnegative=o=>e.check(Wf(0,o)),e.negative=o=>e.check(Z0(0,o)),e.nonpositive=o=>e.check(If(0,o)),e.multipleOf=(o,l)=>e.check($0(o,l)),e.step=(o,l)=>e.check($0(o,l)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function kd(e){return o3(XS,e)}const D4=G("ZodNumberFormat",(e,a)=>{dD.init(e,a),XS.init(e,a)});function q0(e){return s3(D4,e)}const N4=G("ZodBoolean",(e,a)=>{hD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>O3(e,r,o)});function Oo(e){return l3(N4,e)}const j4=G("ZodUnknown",(e,a)=>{mD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>D3()});function Y0(){return u3(j4)}const k4=G("ZodNever",(e,a)=>{pD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>M3(e,r,o)});function V4(e){return c3(k4,e)}const U4=G("ZodArray",(e,a)=>{gD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>V3(e,r,o,l),e.element=a.element,e.min=(r,o)=>e.check(Gl(r,o)),e.nonempty=r=>e.check(Gl(1,r)),e.max=(r,o)=>e.check(ZS(r,o)),e.length=(r,o)=>e.check(HS(r,o)),e.unwrap=()=>e.element});function Vh(e,a){return T3(U4,e,a)}const L4=G("ZodObject",(e,a)=>{vD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>U3(e,r,o,l),Ne(e,"shape",()=>a.shape),e.keyof=()=>Ud(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Y0()}),e.loose=()=>e.clone({...e._zod.def,catchall:Y0()}),e.strict=()=>e.clone({...e._zod.def,catchall:V4()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>LO(e,r),e.safeExtend=r=>BO(e,r),e.merge=r=>ZO(e,r),e.pick=r=>VO(e,r),e.omit=r=>UO(e,r),e.partial=(...r)=>HO(KS,e,r[0]),e.required=(...r)=>$O(QS,e,r[0])});function na(e,a){const r={type:"object",shape:e??{},...se(a)};return new L4(r)}const B4=G("ZodUnion",(e,a)=>{bD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>L3(e,r,o,l),e.options=a.options});function Z4(e,a){return new B4({type:"union",options:e,...se(a)})}const H4=G("ZodIntersection",(e,a)=>{SD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>B3(e,r,o,l)});function $4(e,a){return new H4({type:"intersection",left:e,right:a})}const Vd=G("ZodEnum",(e,a)=>{xD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(o,l,f)=>N3(e,o,l),e.enum=a.entries,e.options=Object.values(a.entries);const r=new Set(Object.keys(a.entries));e.extract=(o,l)=>{const f={};for(const c of o)if(r.has(c))f[c]=a.entries[c];else throw new Error(`Key ${c} not found in enum`);return new Vd({...a,checks:[],...se(l),entries:f})},e.exclude=(o,l)=>{const f={...a.entries};for(const c of o)if(r.has(c))delete f[c];else throw new Error(`Key ${c} not found in enum`);return new Vd({...a,checks:[],...se(l),entries:f})}});function Ud(e,a){const r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Vd({type:"enum",entries:r,...se(a)})}const G4=G("ZodTransform",(e,a)=>{TD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>k3(e,r),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new SS(e.constructor.name);r.addIssue=f=>{if(typeof f=="string")r.issues.push(Go(f,r.value,a));else{const c=f;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=r.value),c.inst??(c.inst=e),r.issues.push(Go(c))}};const l=a.transform(r.value,r);return l instanceof Promise?l.then(f=>(r.value=f,r)):(r.value=l,r)}});function q4(e){return new G4({type:"transform",transform:e})}const KS=G("ZodOptional",(e,a)=>{BS.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>YS(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function P0(e){return new KS({type:"optional",innerType:e})}const Y4=G("ZodExactOptional",(e,a)=>{ED.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>YS(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function P4(e){return new Y4({type:"optional",innerType:e})}const X4=G("ZodNullable",(e,a)=>{_D.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>Z3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function X0(e){return new X4({type:"nullable",innerType:e})}const K4=G("ZodDefault",(e,a)=>{wD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>$3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Q4(e,a){return new K4({type:"default",innerType:e,get defaultValue(){return typeof a=="function"?a():_S(a)}})}const F4=G("ZodPrefault",(e,a)=>{AD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>G3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function J4(e,a){return new F4({type:"prefault",innerType:e,get defaultValue(){return typeof a=="function"?a():_S(a)}})}const QS=G("ZodNonOptional",(e,a)=>{zD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>H3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function I4(e,a){return new QS({type:"nonoptional",innerType:e,...se(a)})}const W4=G("ZodCatch",(e,a)=>{CD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>q3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eN(e,a){return new W4({type:"catch",innerType:e,catchValue:typeof a=="function"?a:()=>a})}const tN=G("ZodPipe",(e,a)=>{RD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>Y3(e,r,o,l),e.in=a.in,e.out=a.out});function K0(e,a){return new tN({type:"pipe",in:e,out:a})}const nN=G("ZodReadonly",(e,a)=>{OD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>P3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function aN(e){return new nN({type:"readonly",innerType:e})}const iN=G("ZodCustom",(e,a)=>{MD.init(e,a),rt.init(e,a),e._zod.processJSONSchema=(r,o,l)=>j3(e,r)});function rN(e,a={}){return E3(iN,e,a)}function oN(e){return _3(e)}const at={agent:{name:"morpheus",personality:"helpful_dev"},logging:{enabled:!0,level:"info",retention:"14d"},audio:{enabled:!0,maxDurationSeconds:300,supportedMimeTypes:["audio/ogg","audio/mp3","audio/mpeg","audio/wav"]},llm:{provider:"openai",model:"gpt-4",temperature:.7},channels:{telegram:{enabled:!1,allowedUsers:[]},discord:{enabled:!1}},ui:{enabled:!0,port:3333}},sN=na({enabled:Oo().default(at.audio.enabled),apiKey:Dn().optional(),maxDurationSeconds:kd().default(at.audio.maxDurationSeconds),supportedMimeTypes:Vh(Dn()).default(at.audio.supportedMimeTypes)}),lN=na({agent:na({name:Dn().default(at.agent.name),personality:Dn().default(at.agent.personality)}).default(at.agent),llm:na({provider:Ud(["openai","anthropic","ollama","gemini"]).default(at.llm.provider),model:Dn().min(1).default(at.llm.model),temperature:kd().min(0).max(1).default(at.llm.temperature),api_key:Dn().optional()}).default(at.llm),audio:sN.default(at.audio),channels:na({telegram:na({enabled:Oo().default(!1),token:Dn().optional(),allowedUsers:Vh(Dn()).default([])}).default(at.channels.telegram),discord:na({enabled:Oo().default(!1),token:Dn().optional()}).default(at.channels.discord)}).default(at.channels),ui:na({enabled:Oo().default(at.ui.enabled),port:kd().default(at.ui.port)}).default(at.ui),logging:na({enabled:Oo().default(at.logging.enabled),level:Ud(["debug","info","warn","error"]).default(at.logging.level),retention:Dn().default(at.logging.retention)}).default(at.logging)});function FS(e,a,r){function o(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),a(h,m);const p=c.prototype,y=Object.keys(p);for(let v=0;v<y.length;v++){const S=y[v];S in h||(h[S]=p[S].bind(h))}}const l=r?.Parent??Object;class f extends l{}Object.defineProperty(f,"name",{value:e});function c(h){var m;const p=r?.Parent?new f:this;o(p,h),(m=p._zod).deferred??(m.deferred=[]);for(const y of p._zod.deferred)y();return p}return Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}function Ld(e,a){return typeof a=="bigint"?a.toString():a}const uN=(e,a)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:a,enumerable:!1}),e.message=JSON.stringify(a,Ld,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},cN=FS("$ZodError",uN);function fN(e,a=r=>r.message){const r={},o=[];for(const l of e.issues)l.path.length>0?(r[l.path[0]]=r[l.path[0]]||[],r[l.path[0]].push(a(l))):o.push(a(l));return{formErrors:o,fieldErrors:r}}function dN(e,a=r=>r.message){const r={_errors:[]},o=l=>{for(const f of l.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(c=>o({issues:c}));else if(f.code==="invalid_key")o({issues:f.issues});else if(f.code==="invalid_element")o({issues:f.issues});else if(f.path.length===0)r._errors.push(a(f));else{let c=r,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(a(f))):c[m]=c[m]||{_errors:[]},c=c[m],h++}}};return o(e),r}var Q0;class hN{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...r){const o=r[0];return this._map.set(a,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const r=this._map.get(a);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(a),this}get(a){const r=a._zod.parent;if(r){const o={...this.get(r)??{}};delete o.id;const l={...o,...this._map.get(a)};return Object.keys(l).length?l:void 0}return this._map.get(a)}has(a){return this._map.has(a)}}function mN(){return new hN}(Q0=globalThis).__zod_globalRegistry??(Q0.__zod_globalRegistry=mN());const pN=(e,a)=>{cN.init(e,a),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>dN(e,r)},flatten:{value:r=>fN(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ld,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ld,2)}},isEmpty:{get(){return e.issues.length===0}}})},gN=FS("ZodError",pN),yN=[{id:"general",label:"General"},{id:"llm",label:"LLM"},{id:"channels",label:"Channels"},{id:"ui",label:"Interface"},{id:"logging",label:"Logging"}];function vN(){const{data:e,error:a}=Kl("/api/config",A0.fetchConfig),[r,o]=A.useState(null),[l,f]=A.useState("general"),[c,h]=A.useState(!1),[m,p]=A.useState({}),[y,v]=A.useState(null);A.useEffect(()=>{e&&!r&&o(e)},[e]);const S=JSON.stringify(e)!==JSON.stringify(r),x=(E,O)=>{if(!r)return;const V=JSON.parse(JSON.stringify(r));let C=V;for(let j=0;j<E.length-1;j++)C=C[E[j]];C[E[E.length-1]]=O,o(V);try{lN.parse(V),p({})}catch(j){if(j instanceof gN){const Q={};j.errors.forEach(q=>{const I=q.path.join(".");Q[I]=q.message}),p(Q)}}},R=async()=>{if(r){h(!0),v(null);try{await A0.updateConfig(r),Eb("/api/config"),v({type:"success",message:"Settings saved successfully"})}catch(E){if(v({type:"error",message:E.message}),E.details&&Array.isArray(E.details)){const O={};E.details.forEach(V=>{const C=V.path.join(".");O[C]=V.message}),p(O)}}finally{h(!1)}}};return a?L.jsx("div",{className:"p-8 text-red-500",children:"Failed to load configuration"}):r?L.jsxs("div",{className:"max-w-4xl mx-auto p-6 space-y-6",children:[L.jsxs("div",{className:"flex justify-between items-center",children:[L.jsx("h1",{className:"text-2xl font-bold text-matrix-highlight",children:"Settings"}),L.jsx("button",{onClick:R,disabled:!S||Object.keys(m).length>0||c,className:`px-4 py-2 rounded font-medium transition-colors ${S&&Object.keys(m).length===0?"bg-matrix-highlight text-black hover:bg-matrix-highlight/90":"bg-matrix-primary/50 text-matrix-highlight/50 cursor-not-allowed"}`,children:c?"Saving...":"Save Changes"})]}),y&&L.jsx("div",{className:`p-4 rounded border ${y.type==="success"?"border-matrix-highlight text-matrix-highlight bg-matrix-highlight/10":"border-red-500 text-red-500 bg-red-900/10"}`,children:y.message}),L.jsx("div",{className:"flex space-x-1 border-b border-matrix-primary pb-px",children:yN.map(E=>L.jsx("button",{onClick:()=>f(E.id),className:`px-4 py-2 text-sm font-medium rounded-t-md transition-colors ${l===E.id?"bg-matrix-primary/20 text-matrix-highlight border-t border-x border-matrix-primary":"text-matrix-secondary hover:text-matrix-highlight"}`,children:E.label},E.id))}),L.jsxs("div",{className:"space-y-6",children:[l==="general"&&L.jsxs(_o,{title:"Agent Identity",children:[L.jsx(ir,{label:"Agent Name",value:r.agent.name,onChange:E=>x(["agent","name"],E.target.value),error:m["agent.name"]}),L.jsx(ir,{label:"Personality",value:r.agent.personality,onChange:E=>x(["agent","personality"],E.target.value),error:m["agent.personality"]})]}),l==="llm"&&L.jsxs(_o,{title:"LLM Provider",children:[L.jsx(E0,{label:"Provider",value:r.llm.provider,onChange:E=>x(["llm","provider"],E.target.value),options:[{label:"OpenAI",value:"openai"},{label:"Anthropic",value:"anthropic"},{label:"Ollama",value:"ollama"},{label:"Google Gemini",value:"gemini"}],error:m["llm.provider"]}),L.jsx(ir,{label:"Model Name",value:r.llm.model,onChange:E=>x(["llm","model"],E.target.value),error:m["llm.model"]}),L.jsx(_0,{label:"Temperature",value:r.llm.temperature,onChange:E=>x(["llm","temperature"],parseFloat(E.target.value)),step:.1,min:0,max:1,error:m["llm.temperature"]}),L.jsx(ir,{label:"API Key",type:"password",value:r.llm.api_key||"",onChange:E=>x(["llm","api_key"],E.target.value),placeholder:"sk-...",helperText:"Stored locally."})]}),l==="channels"&&L.jsxs(_o,{title:"Telegram",children:[L.jsx(Jf,{label:"Enable Telegram",checked:r.channels.telegram.enabled,onChange:E=>x(["channels","telegram","enabled"],E)}),r.channels.telegram.enabled&&L.jsxs("div",{className:"space-y-4 mt-4 pl-4 border-l border-matrix-primary",children:[L.jsx(ir,{label:"Bot Token",type:"password",value:r.channels.telegram.token||"",onChange:E=>x(["channels","telegram","token"],E.target.value)}),L.jsx(ir,{label:"Allowed Users (comma separated)",value:r.channels.telegram.allowedUsers.join(", "),onChange:E=>x(["channels","telegram","allowedUsers"],E.target.value.split(",").map(O=>O.trim()).filter(Boolean)),helperText:"User IDs allowed to interact with the bot"})]})]}),l==="ui"&&L.jsxs(_o,{title:"Dashboard",children:[L.jsx(Jf,{label:"Enable Web UI",checked:r.ui.enabled,onChange:E=>x(["ui","enabled"],E)}),L.jsx(_0,{label:"Port",value:r.ui.port,onChange:E=>x(["ui","port"],parseInt(E.target.value)),disabled:!0,helperText:"Requires restart to change."})]}),l==="logging"&&L.jsxs(_o,{title:"Logging",children:[L.jsx(Jf,{label:"Enable Logging",checked:r.logging.enabled,onChange:E=>x(["logging","enabled"],E)}),L.jsx(E0,{label:"Log Level",value:r.logging.level,onChange:E=>x(["logging","level"],E.target.value),options:[{label:"Debug",value:"debug"},{label:"Info",value:"info"},{label:"Warning",value:"warn"},{label:"Error",value:"error"}]})]})]})]}):L.jsx("div",{className:"p-8 text-matrix-highlight",children:"Loading settings..."})}function bN(){const{data:e}=r2(),[a,r]=A.useState(null),{data:o,mutate:l}=o2(a);return A.useEffect(()=>{!a&&e&&e.length>0&&r(e[0].name)},[e,a]),L.jsxs(ko.div,{className:"h-full flex flex-col space-y-4",initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.3},children:[L.jsxs("div",{children:[L.jsx("h2",{className:"text-2xl font-bold text-matrix-highlight",children:"SYSTEM LOGS"}),L.jsx("p",{className:"text-matrix-secondary opacity-80",children:"View runtime logs."})]}),L.jsxs("div",{className:"flex-1 flex gap-4 overflow-hidden border border-matrix-primary rounded bg-zinc-950 p-4",children:[L.jsxs("div",{className:"w-64 flex flex-col gap-2 border-r border-matrix-primary pr-4 overflow-y-auto shrink-0",children:[L.jsx("h3",{className:"font-bold text-matrix-secondary mb-2 sticky top-0 bg-zinc-950",children:"LOG FILES"}),e?.map(f=>L.jsxs("button",{onClick:()=>r(f.name),className:`text-left px-3 py-2 rounded text-sm truncate flex items-center gap-2 group transition-colors ${a===f.name?"bg-matrix-primary text-matrix-highlight":"text-matrix-secondary hover:bg-zinc-900 group-hover:text-matrix-highlight"}`,children:[L.jsx(gw,{className:"w-4 h-4 shrink-0"}),L.jsxs("div",{className:"flex flex-col overflow-hidden",children:[L.jsx("span",{className:"truncate font-bold",children:f.name}),L.jsxs("span",{className:"text-xs opacity-70",children:[(f.size/1024).toFixed(1)," KB"]})]})]},f.name))]}),L.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden bg-black border border-matrix-primary/50 rounded",children:[L.jsxs("div",{className:"flex justify-between items-center p-2 bg-zinc-900 border-b border-matrix-primary/50",children:[L.jsx("span",{className:"text-matrix-highlight font-bold font-mono text-sm",children:a}),L.jsx("button",{onClick:()=>l(),className:"text-matrix-secondary hover:text-matrix-highlight transition-colors",children:L.jsx(Tw,{className:"w-4 h-4"})})]}),L.jsx("div",{className:"flex-1 overflow-auto p-4 font-mono text-xs whitespace-pre-wrap text-green-500/80",children:o?o.lines.join(`
|
|
50
|
+
`):"Select a log file to view content..."})]})]})]})}function SN(){return L.jsx(Y_,{children:L.jsx(HR,{children:L.jsxs(x_,{children:[L.jsx(Ao,{path:"/",element:L.jsx($R,{})}),L.jsx(Ao,{path:"/config",element:L.jsx(vN,{})}),L.jsx(Ao,{path:"/logs",element:L.jsx(bN,{})}),L.jsx(Ao,{path:"*",element:L.jsx(b_,{to:"/",replace:!0})})]})})})}EE.createRoot(document.getElementById("root")).render(L.jsx(A.StrictMode,{children:L.jsx(SN,{})}));
|