morpheus-cli 0.2.2 → 0.2.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 +64 -0
- package/dist/cli/commands/init.js +14 -14
- package/dist/config/manager.js +1 -1
- package/dist/config/schemas.js +2 -2
- package/dist/http/api.js +66 -1
- package/dist/runtime/memory/sati/index.js +0 -1
- package/dist/runtime/memory/sati/repository.js +7 -0
- package/dist/runtime/memory/sati/service.js +2 -2
- package/dist/runtime/memory/sati/system-prompts.js +3 -1
- package/dist/ui/assets/index-3USYAgWN.css +1 -0
- package/dist/ui/assets/index-Pd9zlYEP.js +58 -0
- package/dist/ui/index.html +2 -2
- package/package.json +2 -2
- package/dist/ui/assets/index-Ddyo4FWH.js +0 -50
- package/dist/ui/assets/index-tz0YVye-.css +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
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 u of f.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).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 C_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Of={exports:{}},ko={};var Yy;function R_(){if(Yy)return ko;Yy=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(o,l,f){var u=null;if(f!==void 0&&(u=""+f),l.key!==void 0&&(u=""+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:u,ref:l!==void 0?l:null,props:f}}return ko.Fragment=a,ko.jsx=r,ko.jsxs=r,ko}var Py;function O_(){return Py||(Py=1,Of.exports=R_()),Of.exports}var _=O_(),Mf={exports:{}},de={};var Xy;function M_(){if(Xy)return de;Xy=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"),u=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"),x=Symbol.iterator;function S(z){return z===null||typeof z!="object"?null:(z=x&&z[x]||z["@@iterator"],typeof z=="function"?z:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,R={};function B(z,H,Q){this.props=z,this.context=H,this.refs=R,this.updater=Q||O}B.prototype.isReactComponent={},B.prototype.setState=function(z,H){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,H,"setState")},B.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function M(){}M.prototype=B.prototype;function V(z,H,Q){this.props=z,this.context=H,this.refs=R,this.updater=Q||O}var N=V.prototype=new M;N.constructor=V,C(N,B.prototype),N.isPureReactComponent=!0;var $=Array.isArray;function I(){}var F={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function W(z,H,Q){var J=Q.ref;return{$$typeof:e,type:z,key:H,ref:J!==void 0?J:null,props:Q}}function ye(z,H){return W(z.type,H,z.props)}function _e(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function Re(z){var H={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(Q){return H[Q]})}var st=/\/+/g;function Ne(z,H){return typeof z=="object"&&z!==null&&z.key!=null?Re(""+z.key):H.toString(36)}function je(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(I,I):(z.status="pending",z.then(function(H){z.status==="pending"&&(z.status="fulfilled",z.value=H)},function(H){z.status==="pending"&&(z.status="rejected",z.reason=H)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function U(z,H,Q,J,le){var fe=typeof z;(fe==="undefined"||fe==="boolean")&&(z=null);var re=!1;if(z===null)re=!0;else switch(fe){case"bigint":case"string":case"number":re=!0;break;case"object":switch(z.$$typeof){case e:case a:re=!0;break;case y:return re=z._init,U(re(z._payload),H,Q,J,le)}}if(re)return le=le(z),re=J===""?"."+Ne(z,0):J,$(le)?(Q="",re!=null&&(Q=re.replace(st,"$&/")+"/"),U(le,H,Q,"",function(Pt){return Pt})):le!=null&&(_e(le)&&(le=ye(le,Q+(le.key==null||z&&z.key===le.key?"":(""+le.key).replace(st,"$&/")+"/")+re)),H.push(le)),1;re=0;var lt=J===""?".":J+":";if($(z))for(var Oe=0;Oe<z.length;Oe++)J=z[Oe],fe=lt+Ne(J,Oe),re+=U(J,H,Q,fe,le);else if(Oe=S(z),typeof Oe=="function")for(z=Oe.call(z),Oe=0;!(J=z.next()).done;)J=J.value,fe=lt+Ne(J,Oe++),re+=U(J,H,Q,fe,le);else if(fe==="object"){if(typeof z.then=="function")return U(je(z),H,Q,J,le);throw H=String(z),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return re}function K(z,H,Q){if(z==null)return z;var J=[],le=0;return U(z,J,"","",function(fe){return H.call(Q,fe,le++)}),J}function X(z){if(z._status===-1){var H=z._result;H=H(),H.then(function(Q){(z._status===0||z._status===-1)&&(z._status=1,z._result=Q)},function(Q){(z._status===0||z._status===-1)&&(z._status=2,z._result=Q)}),z._status===-1&&(z._status=0,z._result=H)}if(z._status===1)return z._result.default;throw z._result}var ce=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},pe={map:K,forEach:function(z,H,Q){K(z,function(){H.apply(this,arguments)},Q)},count:function(z){var H=0;return K(z,function(){H++}),H},toArray:function(z){return K(z,function(H){return H})||[]},only:function(z){if(!_e(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return de.Activity=v,de.Children=pe,de.Component=B,de.Fragment=r,de.Profiler=l,de.PureComponent=V,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(z){return F.H.useMemoCache(z)}},de.cache=function(z){return function(){return z.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(z,H,Q){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var J=C({},z.props),le=z.key;if(H!=null)for(fe in H.key!==void 0&&(le=""+H.key),H)!Y.call(H,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&H.ref===void 0||(J[fe]=H[fe]);var fe=arguments.length-2;if(fe===1)J.children=Q;else if(1<fe){for(var re=Array(fe),lt=0;lt<fe;lt++)re[lt]=arguments[lt+2];J.children=re}return W(z.type,le,J)},de.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:f,_context:z},z},de.createElement=function(z,H,Q){var J,le={},fe=null;if(H!=null)for(J in H.key!==void 0&&(fe=""+H.key),H)Y.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(le[J]=H[J]);var re=arguments.length-2;if(re===1)le.children=Q;else if(1<re){for(var lt=Array(re),Oe=0;Oe<re;Oe++)lt[Oe]=arguments[Oe+2];le.children=lt}if(z&&z.defaultProps)for(J in re=z.defaultProps,re)le[J]===void 0&&(le[J]=re[J]);return W(z,fe,le)},de.createRef=function(){return{current:null}},de.forwardRef=function(z){return{$$typeof:h,render:z}},de.isValidElement=_e,de.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:X}},de.memo=function(z,H){return{$$typeof:p,type:z,compare:H===void 0?null:H}},de.startTransition=function(z){var H=F.T,Q={};F.T=Q;try{var J=z(),le=F.S;le!==null&&le(Q,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,ce)}catch(fe){ce(fe)}finally{H!==null&&Q.types!==null&&(H.types=Q.types),F.T=H}},de.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},de.use=function(z){return F.H.use(z)},de.useActionState=function(z,H,Q){return F.H.useActionState(z,H,Q)},de.useCallback=function(z,H){return F.H.useCallback(z,H)},de.useContext=function(z){return F.H.useContext(z)},de.useDebugValue=function(){},de.useDeferredValue=function(z,H){return F.H.useDeferredValue(z,H)},de.useEffect=function(z,H){return F.H.useEffect(z,H)},de.useEffectEvent=function(z){return F.H.useEffectEvent(z)},de.useId=function(){return F.H.useId()},de.useImperativeHandle=function(z,H,Q){return F.H.useImperativeHandle(z,H,Q)},de.useInsertionEffect=function(z,H){return F.H.useInsertionEffect(z,H)},de.useLayoutEffect=function(z,H){return F.H.useLayoutEffect(z,H)},de.useMemo=function(z,H){return F.H.useMemo(z,H)},de.useOptimistic=function(z,H){return F.H.useOptimistic(z,H)},de.useReducer=function(z,H,Q){return F.H.useReducer(z,H,Q)},de.useRef=function(z){return F.H.useRef(z)},de.useState=function(z){return F.H.useState(z)},de.useSyncExternalStore=function(z,H,Q){return F.H.useSyncExternalStore(z,H,Q)},de.useTransition=function(){return F.H.useTransition()},de.version="19.2.4",de}var Ky;function ru(){return Ky||(Ky=1,Mf.exports=M_()),Mf.exports}var E=ru();const Wd=C_(E);var kf={exports:{}},Do={},Df={exports:{}},Nf={};var Qy;function k_(){return Qy||(Qy=1,(function(e){function a(U,K){var X=U.length;U.push(K);e:for(;0<X;){var ce=X-1>>>1,pe=U[ce];if(0<l(pe,K))U[ce]=K,U[X]=pe,X=ce;else break e}}function r(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var K=U[0],X=U.pop();if(X!==K){U[0]=X;e:for(var ce=0,pe=U.length,z=pe>>>1;ce<z;){var H=2*(ce+1)-1,Q=U[H],J=H+1,le=U[J];if(0>l(Q,X))J<pe&&0>l(le,Q)?(U[ce]=le,U[J]=X,ce=J):(U[ce]=Q,U[H]=X,ce=H);else if(J<pe&&0>l(le,X))U[ce]=le,U[J]=X,ce=J;else break e}}return K}function l(U,K){var X=U.sortIndex-K.sortIndex;return X!==0?X:U.id-K.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 u=Date,h=u.now();e.unstable_now=function(){return u.now()-h}}var m=[],p=[],y=1,v=null,x=3,S=!1,O=!1,C=!1,R=!1,B=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function N(U){for(var K=r(p);K!==null;){if(K.callback===null)o(p);else if(K.startTime<=U)o(p),K.sortIndex=K.expirationTime,a(m,K);else break;K=r(p)}}function $(U){if(C=!1,N(U),!O)if(r(m)!==null)O=!0,I||(I=!0,Re());else{var K=r(p);K!==null&&je($,K.startTime-U)}}var I=!1,F=-1,Y=5,W=-1;function ye(){return R?!0:!(e.unstable_now()-W<Y)}function _e(){if(R=!1,I){var U=e.unstable_now();W=U;var K=!0;try{e:{O=!1,C&&(C=!1,M(F),F=-1),S=!0;var X=x;try{t:{for(N(U),v=r(m);v!==null&&!(v.expirationTime>U&&ye());){var ce=v.callback;if(typeof ce=="function"){v.callback=null,x=v.priorityLevel;var pe=ce(v.expirationTime<=U);if(U=e.unstable_now(),typeof pe=="function"){v.callback=pe,N(U),K=!0;break t}v===r(m)&&o(m),N(U)}else o(m);v=r(m)}if(v!==null)K=!0;else{var z=r(p);z!==null&&je($,z.startTime-U),K=!1}}break e}finally{v=null,x=X,S=!1}K=void 0}}finally{K?Re():I=!1}}}var Re;if(typeof V=="function")Re=function(){V(_e)};else if(typeof MessageChannel<"u"){var st=new MessageChannel,Ne=st.port2;st.port1.onmessage=_e,Re=function(){Ne.postMessage(null)}}else Re=function(){B(_e,0)};function je(U,K){F=B(function(){U(e.unstable_now())},K)}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"):Y=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(U){switch(x){case 1:case 2:case 3:var K=3;break;default:K=x}var X=x;x=K;try{return U()}finally{x=X}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var X=x;x=U;try{return K()}finally{x=X}},e.unstable_scheduleCallback=function(U,K,X){var ce=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ce+X:ce):X=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=X+pe,U={id:y++,callback:K,priorityLevel:U,startTime:X,expirationTime:pe,sortIndex:-1},X>ce?(U.sortIndex=X,a(p,U),r(m)===null&&U===r(p)&&(C?(M(F),F=-1):C=!0,je($,X-ce))):(U.sortIndex=pe,a(m,U),O||S||(O=!0,I||(I=!0,Re()))),U},e.unstable_shouldYield=ye,e.unstable_wrapCallback=function(U){var K=x;return function(){var X=x;x=K;try{return U.apply(this,arguments)}finally{x=X}}}})(Nf)),Nf}var Fy;function D_(){return Fy||(Fy=1,Df.exports=k_()),Df.exports}var jf={exports:{}},Ot={};var Jy;function N_(){if(Jy)return Ot;Jy=1;var e=ru();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 u=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 Ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ot.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)},Ot.flushSync=function(m){var p=u.T,y=o.p;try{if(u.T=null,o.p=2,m)return m()}finally{u.T=p,o.p=y,o.d.f()}},Ot.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))},Ot.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},Ot.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,v=h(y,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,S=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:x,fetchPriority:S}):y==="script"&&o.d.X(m,{crossOrigin:v,integrity:x,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ot.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)},Ot.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})}},Ot.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)},Ot.requestFormReset=function(m){o.d.r(m)},Ot.unstable_batchedUpdates=function(m,p){return m(p)},Ot.useFormState=function(m,p,y){return u.H.useFormState(m,p,y)},Ot.useFormStatus=function(){return u.H.useHostTransitionStatus()},Ot.version="19.2.4",Ot}var Iy;function j_(){if(Iy)return jf.exports;Iy=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(),jf.exports=N_(),jf.exports}var Wy;function V_(){if(Wy)return Do;Wy=1;var e=D_(),a=ru(),r=j_();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 u(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 c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){i=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return m(c),t;if(d===s)return m(c),n;d=d.sibling}throw Error(o(188))}if(i.return!==s.return)i=c,s=d;else{for(var g=!1,b=c.child;b;){if(b===i){g=!0,i=c,s=d;break}if(b===s){g=!0,s=c,i=d;break}b=b.sibling}if(!g){for(b=d.child;b;){if(b===i){g=!0,i=d,s=c;break}if(b===s){g=!0,s=d,i=c;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,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),V=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function Re(t){return t===null||typeof t!="object"?null:(t=_e&&t[_e]||t["@@iterator"],typeof t=="function"?t:null)}var st=Symbol.for("react.client.reference");function Ne(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===st?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case B:return"Profiler";case R:return"StrictMode";case $:return"Suspense";case I:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case O:return"Portal";case V:return t.displayName||"Context";case M:return(t._context.displayName||"Context")+".Consumer";case N: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:Ne(t.type)||"Memo";case Y:n=t._payload,t=t._init;try{return Ne(t(n))}catch{}}return null}var je=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},ce=[],pe=-1;function z(t){return{current:t}}function H(t){0>pe||(t.current=ce[pe],ce[pe]=null,pe--)}function Q(t,n){pe++,ce[pe]=t.current,t.current=n}var J=z(null),le=z(null),fe=z(null),re=z(null);function lt(t,n){switch(Q(fe,n),Q(le,t),Q(J,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?my(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=my(n),t=py(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(J),Q(J,t)}function Oe(){H(J),H(le),H(fe)}function Pt(t){t.memoizedState!==null&&Q(re,t);var n=J.current,i=py(n,t.type);n!==i&&(Q(le,t),Q(J,i))}function An(t){le.current===t&&(H(J),H(le)),re.current===t&&(H(re),Co._currentValue=X)}var Cn,da;function Rn(t){if(Cn===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Cn=n&&n[1]||"",da=-1<i.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Cn+t+da}var ls=!1;function Me(t,n){if(!t||ls)return"";ls=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(L){var j=L}Reflect.construct(t,[],P)}else{try{P.call()}catch(L){j=L}t.call(P.prototype)}}else{try{throw Error()}catch(L){j=L}(P=t())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(L){if(L&&j&&typeof L.stack=="string")return[L.stack,j.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.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
|
-
`),D=b.split(`
|
|
5
|
-
`);for(c=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;if(s===T.length||c===D.length)for(s=T.length-1,c=D.length-1;1<=s&&0<=c&&T[s]!==D[c];)c--;for(;1<=s&&0<=c;s--,c--)if(T[s]!==D[c]){if(s!==1||c!==1)do if(s--,c--,0>c||T[s]!==D[c]){var Z=`
|
|
6
|
-
`+T[s].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),Z}while(1<=s&&0<=c);break}}}finally{ls=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Rn(i):""}function qe(t,n){switch(t.tag){case 26:case 27:case 5:return Rn(t.type);case 16:return Rn("Lazy");case 13:return t.child!==n&&n!==null?Rn("Suspense Fallback"):Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 15:return Me(t.type,!1);case 11:return Me(t.type.render,!1);case 1:return Me(t.type,!0);case 31:return Rn("Activity");default:return""}}function Qe(t){try{var n="",i=null;do n+=qe(t,i),i=t,t=t.return;while(t);return n}catch(s){return`
|
|
7
|
-
Error generating stack: `+s.message+`
|
|
8
|
-
`+s.stack}}var Ze=Object.prototype.hasOwnProperty,Dt=e.unstable_scheduleCallback,On=e.unstable_cancelCallback,pt=e.unstable_shouldYield,Tt=e.unstable_requestPaint,Fe=e.unstable_now,us=e.unstable_getCurrentPriorityLevel,Vr=e.unstable_ImmediatePriority,Lr=e.unstable_UserBlockingPriority,_t=e.unstable_NormalPriority,bn=e.unstable_LowPriority,wi=e.unstable_IdlePriority,gu=e.log,Ur=e.unstable_setDisableYieldValue,Br=null,Xt=null;function ha(t){if(typeof gu=="function"&&Ur(t),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(Br,t)}catch{}}var Kt=Math.clz32?Math.clz32:mS,dS=Math.log,hS=Math.LN2;function mS(t){return t>>>=0,t===0?32:31-(dS(t)/hS|0)|0}var cs=256,fs=262144,ds=4194304;function Ja(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 hs(t,n,i){var s=t.pendingLanes;if(s===0)return 0;var c=0,d=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var b=s&134217727;return b!==0?(s=b&~d,s!==0?c=Ja(s):(g&=b,g!==0?c=Ja(g):i||(i=b&~t,i!==0&&(c=Ja(i))))):(b=s&~d,b!==0?c=Ja(b):g!==0?c=Ja(g):i||(i=s&~t,i!==0&&(c=Ja(i)))),c===0?0:n!==0&&n!==c&&(n&d)===0&&(d=c&-c,i=n&-n,d>=i||d===32&&(i&4194048)!==0)?n:c}function Zr(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function pS(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 Qh(){var t=ds;return ds<<=1,(ds&62914560)===0&&(ds=4194304),t}function yu(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Hr(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function gS(t,n,i,s,c,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 Z=31-Kt(i),P=1<<Z;b[Z]=0,T[Z]=-1;var j=D[Z];if(j!==null)for(D[Z]=null,Z=0;Z<j.length;Z++){var L=j[Z];L!==null&&(L.lane&=-536870913)}i&=~P}s!==0&&Fh(t,s,0),d!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=d&~(g&~n))}function Fh(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-Kt(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|i&261930}function Jh(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var s=31-Kt(i),c=1<<s;c&n|t[s]&n&&(t[s]|=n),i&=~c}}function Ih(t,n){var i=n&-n;return i=(i&42)!==0?1:vu(i),(i&(t.suspendedLanes|n))!==0?0:i}function vu(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 bu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Wh(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:Uy(t.type))}function em(t,n){var i=K.p;try{return K.p=t,n()}finally{K.p=i}}var ma=Math.random().toString(36).slice(2),Et="__reactFiber$"+ma,Ut="__reactProps$"+ma,zi="__reactContainer$"+ma,xu="__reactEvents$"+ma,yS="__reactListeners$"+ma,vS="__reactHandles$"+ma,tm="__reactResources$"+ma,$r="__reactMarker$"+ma;function Su(t){delete t[Et],delete t[Ut],delete t[xu],delete t[yS],delete t[vS]}function Ai(t){var n=t[Et];if(n)return n;for(var i=t.parentNode;i;){if(n=i[zi]||i[Et]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=Ty(t);t!==null;){if(i=t[Et])return i;t=Ty(t)}return n}t=i,i=t.parentNode}return null}function Ci(t){if(t=t[Et]||t[zi]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Gr(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(o(33))}function Ri(t){var n=t[tm];return n||(n=t[tm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function bt(t){t[$r]=!0}var nm=new Set,am={};function Ia(t,n){Oi(t,n),Oi(t+"Capture",n)}function Oi(t,n){for(am[t]=n,t=0;t<n.length;t++)nm.add(n[t])}var bS=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]*$"),im={},rm={};function xS(t){return Ze.call(rm,t)?!0:Ze.call(im,t)?!1:bS.test(t)?rm[t]=!0:(im[t]=!0,!1)}function ms(t,n,i){if(xS(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 ps(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 Zn(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 an(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function om(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function SS(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 c=s.get,d=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.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 Tu(t){if(!t._valueTracker){var n=om(t)?"checked":"value";t._valueTracker=SS(t,n,""+t[n])}}function sm(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return t&&(s=om(t)?t.checked?"true":"false":t.value),t=s,t!==i?(n.setValue(t),!0):!1}function gs(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 TS=/[\n"\\]/g;function rn(t){return t.replace(TS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function _u(t,n,i,s,c,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=""+an(n)):t.value!==""+an(n)&&(t.value=""+an(n)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),n!=null?Eu(t,g,an(n)):i!=null?Eu(t,g,an(i)):s!=null&&t.removeAttribute("value"),c==null&&d!=null&&(t.defaultChecked=!!d),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+an(b):t.removeAttribute("name")}function lm(t,n,i,s,c,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)){Tu(t);return}i=i!=null?""+an(i):"",n=n!=null?""+an(n):i,b||n===t.value||(t.value=n),t.defaultValue=n}s=s??c,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),Tu(t)}function Eu(t,n,i){n==="number"&&gs(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Mi(t,n,i,s){if(t=t.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<t.length;i++)c=n.hasOwnProperty("$"+t[i].value),t[i].selected!==c&&(t[i].selected=c),c&&s&&(t[i].defaultSelected=!0)}else{for(i=""+an(i),n=null,c=0;c<t.length;c++){if(t[c].value===i){t[c].selected=!0,s&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function um(t,n,i){if(n!=null&&(n=""+an(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+an(i):""}function cm(t,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(o(92));if(je(s)){if(1<s.length)throw Error(o(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=an(n),t.defaultValue=i,s=t.textContent,s===i&&s!==""&&s!==null&&(t.value=s),Tu(t)}function ki(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var _S=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 fm(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||_S.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function dm(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 c in n)s=n[c],n.hasOwnProperty(c)&&i[c]!==s&&fm(t,c,s)}else for(var d in n)n.hasOwnProperty(d)&&fm(t,d,n[d])}function wu(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 ES=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"]]),wS=/^[\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 ys(t){return wS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Hn(){}var zu=null;function Au(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Di=null,Ni=null;function hm(t){var n=Ci(t);if(n&&(t=n.stateNode)){var i=t[Ut]||null;e:switch(t=n.stateNode,n.type){case"input":if(_u(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="'+rn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==t&&s.form===t.form){var c=s[Ut]||null;if(!c)throw Error(o(90));_u(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===t.form&&sm(s)}break e;case"textarea":um(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Mi(t,!!i.multiple,n,!1)}}}var Cu=!1;function mm(t,n,i){if(Cu)return t(n,i);Cu=!0;try{var s=t(n);return s}finally{if(Cu=!1,(Di!==null||Ni!==null)&&(il(),Di&&(n=Di,t=Ni,Ni=Di=null,hm(n),t)))for(n=0;n<t.length;n++)hm(t[n])}}function qr(t,n){var i=t.stateNode;if(i===null)return null;var s=i[Ut]||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 $n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=!1;if($n)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Ru=!1}var pa=null,Ou=null,vs=null;function pm(){if(vs)return vs;var t,n=Ou,i=n.length,s,c="value"in pa?pa.value:pa.textContent,d=c.length;for(t=0;t<i&&n[t]===c[t];t++);var g=i-t;for(s=1;s<=g&&n[i-s]===c[d-s];s++);return vs=c.slice(t,1<s?1-s:void 0)}function bs(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 xs(){return!0}function gm(){return!1}function Bt(t){function n(i,s,c,d,g){this._reactName=i,this._targetInst=c,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)?xs:gm,this.isPropagationStopped=gm,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=xs)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),n}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ss=Bt(Wa),Pr=v({},Wa,{view:0,detail:0}),zS=Bt(Pr),Mu,ku,Xr,Ts=v({},Pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nu,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!==Xr&&(Xr&&t.type==="mousemove"?(Mu=t.screenX-Xr.screenX,ku=t.screenY-Xr.screenY):ku=Mu=0,Xr=t),Mu)},movementY:function(t){return"movementY"in t?t.movementY:ku}}),ym=Bt(Ts),AS=v({},Ts,{dataTransfer:0}),CS=Bt(AS),RS=v({},Pr,{relatedTarget:0}),Du=Bt(RS),OS=v({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),MS=Bt(OS),kS=v({},Wa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),DS=Bt(kS),NS=v({},Wa,{data:0}),vm=Bt(NS),jS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VS={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"},LS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function US(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=LS[t])?!!n[t]:!1}function Nu(){return US}var BS=v({},Pr,{key:function(t){if(t.key){var n=jS[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=bs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?VS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nu,charCode:function(t){return t.type==="keypress"?bs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ZS=Bt(BS),HS=v({},Ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bm=Bt(HS),$S=v({},Pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nu}),GS=Bt($S),qS=v({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),YS=Bt(qS),PS=v({},Ts,{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}),XS=Bt(PS),KS=v({},Wa,{newState:0,oldState:0}),QS=Bt(KS),FS=[9,13,27,32],ju=$n&&"CompositionEvent"in window,Kr=null;$n&&"documentMode"in document&&(Kr=document.documentMode);var JS=$n&&"TextEvent"in window&&!Kr,xm=$n&&(!ju||Kr&&8<Kr&&11>=Kr),Sm=" ",Tm=!1;function _m(t,n){switch(t){case"keyup":return FS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Em(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ji=!1;function IS(t,n){switch(t){case"compositionend":return Em(n);case"keypress":return n.which!==32?null:(Tm=!0,Sm);case"textInput":return t=n.data,t===Sm&&Tm?null:t;default:return null}}function WS(t,n){if(ji)return t==="compositionend"||!ju&&_m(t,n)?(t=pm(),vs=Ou=pa=null,ji=!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 xm&&n.locale!=="ko"?null:n.data;default:return null}}var eT={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 wm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!eT[t.type]:n==="textarea"}function zm(t,n,i,s){Di?Ni?Ni.push(s):Ni=[s]:Di=s,n=fl(n,"onChange"),0<n.length&&(i=new Ss("onChange","change",null,i,s),t.push({event:i,listeners:n}))}var Qr=null,Fr=null;function tT(t){ly(t,0)}function _s(t){var n=Gr(t);if(sm(n))return t}function Am(t,n){if(t==="change")return n}var Cm=!1;if($n){var Vu;if($n){var Lu="oninput"in document;if(!Lu){var Rm=document.createElement("div");Rm.setAttribute("oninput","return;"),Lu=typeof Rm.oninput=="function"}Vu=Lu}else Vu=!1;Cm=Vu&&(!document.documentMode||9<document.documentMode)}function Om(){Qr&&(Qr.detachEvent("onpropertychange",Mm),Fr=Qr=null)}function Mm(t){if(t.propertyName==="value"&&_s(Fr)){var n=[];zm(n,Fr,t,Au(t)),mm(tT,n)}}function nT(t,n,i){t==="focusin"?(Om(),Qr=n,Fr=i,Qr.attachEvent("onpropertychange",Mm)):t==="focusout"&&Om()}function aT(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return _s(Fr)}function iT(t,n){if(t==="click")return _s(n)}function rT(t,n){if(t==="input"||t==="change")return _s(n)}function oT(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Qt=typeof Object.is=="function"?Object.is:oT;function Jr(t,n){if(Qt(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 c=i[s];if(!Ze.call(n,c)||!Qt(t[c],n[c]))return!1}return!0}function km(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Dm(t,n){var i=km(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=km(i)}}function Nm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Nm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function jm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=gs(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=gs(t.document)}return n}function Uu(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 sT=$n&&"documentMode"in document&&11>=document.documentMode,Vi=null,Bu=null,Ir=null,Zu=!1;function Vm(t,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Zu||Vi==null||Vi!==gs(s)||(s=Vi,"selectionStart"in s&&Uu(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}),Ir&&Jr(Ir,s)||(Ir=s,s=fl(Bu,"onSelect"),0<s.length&&(n=new Ss("onSelect","select",null,n,i),t.push({event:n,listeners:s}),n.target=Vi)))}function ei(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Li={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionrun:ei("Transition","TransitionRun"),transitionstart:ei("Transition","TransitionStart"),transitioncancel:ei("Transition","TransitionCancel"),transitionend:ei("Transition","TransitionEnd")},Hu={},Lm={};$n&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function ti(t){if(Hu[t])return Hu[t];if(!Li[t])return t;var n=Li[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in Lm)return Hu[t]=n[i];return t}var Um=ti("animationend"),Bm=ti("animationiteration"),Zm=ti("animationstart"),lT=ti("transitionrun"),uT=ti("transitionstart"),cT=ti("transitioncancel"),Hm=ti("transitionend"),$m=new Map,$u="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(" ");$u.push("scrollEnd");function xn(t,n){$m.set(t,n),Ia(n,[t])}var Es=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)},on=[],Ui=0,Gu=0;function ws(){for(var t=Ui,n=Gu=Ui=0;n<t;){var i=on[n];on[n++]=null;var s=on[n];on[n++]=null;var c=on[n];on[n++]=null;var d=on[n];if(on[n++]=null,s!==null&&c!==null){var g=s.pending;g===null?c.next=c:(c.next=g.next,g.next=c),s.pending=c}d!==0&&Gm(i,c,d)}}function zs(t,n,i,s){on[Ui++]=t,on[Ui++]=n,on[Ui++]=i,on[Ui++]=s,Gu|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function qu(t,n,i,s){return zs(t,n,i,s),As(t)}function ni(t,n){return zs(t,null,null,n),As(t)}function Gm(t,n,i){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i);for(var c=!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||(c=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,c&&n!==null&&(c=31-Kt(i),t=d.hiddenUpdates,s=t[c],s===null?t[c]=[n]:s.push(n),n.lane=i|536870912),d):null}function As(t){if(50<So)throw So=0,Wc=null,Error(o(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Bi={};function fT(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 Ft(t,n,i,s){return new fT(t,n,i,s)}function Yu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Gn(t,n){var i=t.alternate;return i===null?(i=Ft(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 qm(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 Cs(t,n,i,s,c,d){var g=0;if(s=t,typeof t=="function")Yu(t)&&(g=1);else if(typeof t=="string")g=g_(t,i,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case W:return t=Ft(31,i,n,c),t.elementType=W,t.lanes=d,t;case C:return ai(i.children,c,d,n);case R:g=8,c|=24;break;case B:return t=Ft(12,i,n,c|2),t.elementType=B,t.lanes=d,t;case $:return t=Ft(13,i,n,c),t.elementType=$,t.lanes=d,t;case I:return t=Ft(19,i,n,c),t.elementType=I,t.lanes=d,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:g=10;break e;case M:g=9;break e;case N:g=11;break e;case F:g=14;break e;case Y:g=16,s=null;break e}g=29,i=Error(o(130,t===null?"null":typeof t,"")),s=null}return n=Ft(g,i,n,c),n.elementType=t,n.type=s,n.lanes=d,n}function ai(t,n,i,s){return t=Ft(7,t,s,n),t.lanes=i,t}function Pu(t,n,i){return t=Ft(6,t,null,n),t.lanes=i,t}function Ym(t){var n=Ft(18,null,null,0);return n.stateNode=t,n}function Xu(t,n,i){return n=Ft(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Pm=new WeakMap;function sn(t,n){if(typeof t=="object"&&t!==null){var i=Pm.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Qe(n)},Pm.set(t,n),n)}return{value:t,source:n,stack:Qe(n)}}var Zi=[],Hi=0,Rs=null,Wr=0,ln=[],un=0,ga=null,Mn=1,kn="";function qn(t,n){Zi[Hi++]=Wr,Zi[Hi++]=Rs,Rs=t,Wr=n}function Xm(t,n,i){ln[un++]=Mn,ln[un++]=kn,ln[un++]=ga,ga=t;var s=Mn;t=kn;var c=32-Kt(s)-1;s&=~(1<<c),i+=1;var d=32-Kt(n)+c;if(30<d){var g=c-c%5;d=(s&(1<<g)-1).toString(32),s>>=g,c-=g,Mn=1<<32-Kt(n)+c|i<<c|s,kn=d+t}else Mn=1<<d|i<<c|s,kn=t}function Ku(t){t.return!==null&&(qn(t,1),Xm(t,1,0))}function Qu(t){for(;t===Rs;)Rs=Zi[--Hi],Zi[Hi]=null,Wr=Zi[--Hi],Zi[Hi]=null;for(;t===ga;)ga=ln[--un],ln[un]=null,kn=ln[--un],ln[un]=null,Mn=ln[--un],ln[un]=null}function Km(t,n){ln[un++]=Mn,ln[un++]=kn,ln[un++]=ga,Mn=n.id,kn=n.overflow,ga=t}var wt=null,He=null,Te=!1,ya=null,cn=!1,Fu=Error(o(519));function va(t){var n=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eo(sn(n,t)),Fu}function Qm(t){var n=t.stateNode,i=t.type,s=t.memoizedProps;switch(n[Et]=t,n[Ut]=s,i){case"dialog":be("cancel",n),be("close",n);break;case"iframe":case"object":case"embed":be("load",n);break;case"video":case"audio":for(i=0;i<_o.length;i++)be(_o[i],n);break;case"source":be("error",n);break;case"img":case"image":case"link":be("error",n),be("load",n);break;case"details":be("toggle",n);break;case"input":be("invalid",n),lm(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":be("invalid",n);break;case"textarea":be("invalid",n),cm(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||dy(n.textContent,i)?(s.popover!=null&&(be("beforetoggle",n),be("toggle",n)),s.onScroll!=null&&be("scroll",n),s.onScrollEnd!=null&&be("scrollend",n),s.onClick!=null&&(n.onclick=Hn),n=!0):n=!1,n||va(t,!0)}function Fm(t){for(wt=t.return;wt;)switch(wt.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:wt=wt.return}}function $i(t){if(t!==wt)return!1;if(!Te)return Fm(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")||pf(t.type,t.memoizedProps)),i=!i),i&&He&&va(t),Fm(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,ka(t.type)?(t=xf,xf=null,He=t):He=n):He=wt?dn(t.stateNode.nextSibling):null;return!0}function ii(){He=wt=null,Te=!1}function Ju(){var t=ya;return t!==null&&(Gt===null?Gt=t:Gt.push.apply(Gt,t),ya=null),t}function eo(t){ya===null?ya=[t]:ya.push(t)}var Iu=z(null),ri=null,Yn=null;function ba(t,n,i){Q(Iu,n._currentValue),n._currentValue=i}function Pn(t){t._currentValue=Iu.current,H(Iu)}function Wu(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 ec(t,n,i,s){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var d=c.dependencies;if(d!==null){var g=c.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=c;for(var T=0;T<n.length;T++)if(b.context===n[T]){d.lanes|=i,b=d.alternate,b!==null&&(b.lanes|=i),Wu(d.return,i,t),s||(g=null);break e}d=b.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(o(341));g.lanes|=i,d=g.alternate,d!==null&&(d.lanes|=i),Wu(g,i,t),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===t){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function Gi(t,n,i,s){t=null;for(var c=n,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var b=c.type;Qt(c.pendingProps.value,g.value)||(t!==null?t.push(b):t=[b])}}else if(c===re.current){if(g=c.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(Co):t=[Co])}c=c.return}t!==null&&ec(n,t,i,s),n.flags|=262144}function Os(t){for(t=t.firstContext;t!==null;){if(!Qt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function oi(t){ri=t,Yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function zt(t){return Jm(ri,t)}function Ms(t,n){return ri===null&&oi(t),Jm(t,n)}function Jm(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Yn===null){if(t===null)throw Error(o(308));Yn=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Yn=Yn.next=n;return i}var dT=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()})}},hT=e.unstable_scheduleCallback,mT=e.unstable_NormalPriority,ut={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tc(){return{controller:new dT,data:new Map,refCount:0}}function to(t){t.refCount--,t.refCount===0&&hT(mT,function(){t.controller.abort()})}var no=null,nc=0,qi=0,Yi=null;function pT(t,n){if(no===null){var i=no=[];nc=0,qi=of(),Yi={status:"pending",value:void 0,then:function(s){i.push(s)}}}return nc++,n.then(Im,Im),n}function Im(){if(--nc===0&&no!==null){Yi!==null&&(Yi.status="fulfilled");var t=no;no=null,qi=0,Yi=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function gT(t,n){var i=[],s={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var c=0;c<i.length;c++)(0,i[c])(n)},function(c){for(s.status="rejected",s.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),s}var Wm=U.S;U.S=function(t,n){Vg=Fe(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&pT(t,n),Wm!==null&&Wm(t,n)};var si=z(null);function ac(){var t=si.current;return t!==null?t:Be.pooledCache}function ks(t,n){n===null?Q(si,si.current):Q(si,n.pool)}function ep(){var t=ac();return t===null?null:{parent:ut._currentValue,pool:t}}var Pi=Error(o(460)),ic=Error(o(474)),Ds=Error(o(542)),Ns={then:function(){}};function tp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function np(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Hn,Hn),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,ip(t),t;default:if(typeof n.status=="string")n.then(Hn,Hn);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 c=n;c.status="fulfilled",c.value=s}},function(s){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,ip(t),t}throw ui=n,Pi}}function li(t){try{var n=t._init;return n(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ui=i,Pi):i}}var ui=null;function ap(){if(ui===null)throw Error(o(459));var t=ui;return ui=null,t}function ip(t){if(t===Pi||t===Ds)throw Error(o(483))}var Xi=null,ao=0;function js(t){var n=ao;return ao+=1,Xi===null&&(Xi=[]),np(Xi,t,n)}function io(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Vs(t,n){throw n.$$typeof===x?Error(o(525)):(t=Object.prototype.toString.call(n),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function rp(t){function n(A,w){if(t){var k=A.deletions;k===null?(A.deletions=[w],A.flags|=16):k.push(w)}}function i(A,w){if(!t)return null;for(;w!==null;)n(A,w),w=w.sibling;return null}function s(A){for(var w=new Map;A!==null;)A.key!==null?w.set(A.key,A):w.set(A.index,A),A=A.sibling;return w}function c(A,w){return A=Gn(A,w),A.index=0,A.sibling=null,A}function d(A,w,k){return A.index=k,t?(k=A.alternate,k!==null?(k=k.index,k<w?(A.flags|=67108866,w):k):(A.flags|=67108866,w)):(A.flags|=1048576,w)}function g(A){return t&&A.alternate===null&&(A.flags|=67108866),A}function b(A,w,k,q){return w===null||w.tag!==6?(w=Pu(k,A.mode,q),w.return=A,w):(w=c(w,k),w.return=A,w)}function T(A,w,k,q){var se=k.type;return se===C?Z(A,w,k.props.children,q,k.key):w!==null&&(w.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Y&&li(se)===w.type)?(w=c(w,k.props),io(w,k),w.return=A,w):(w=Cs(k.type,k.key,k.props,null,A.mode,q),io(w,k),w.return=A,w)}function D(A,w,k,q){return w===null||w.tag!==4||w.stateNode.containerInfo!==k.containerInfo||w.stateNode.implementation!==k.implementation?(w=Xu(k,A.mode,q),w.return=A,w):(w=c(w,k.children||[]),w.return=A,w)}function Z(A,w,k,q,se){return w===null||w.tag!==7?(w=ai(k,A.mode,q,se),w.return=A,w):(w=c(w,k),w.return=A,w)}function P(A,w,k){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Pu(""+w,A.mode,k),w.return=A,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case S:return k=Cs(w.type,w.key,w.props,null,A.mode,k),io(k,w),k.return=A,k;case O:return w=Xu(w,A.mode,k),w.return=A,w;case Y:return w=li(w),P(A,w,k)}if(je(w)||Re(w))return w=ai(w,A.mode,k,null),w.return=A,w;if(typeof w.then=="function")return P(A,js(w),k);if(w.$$typeof===V)return P(A,Ms(A,w),k);Vs(A,w)}return null}function j(A,w,k,q){var se=w!==null?w.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return se!==null?null:b(A,w,""+k,q);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case S:return k.key===se?T(A,w,k,q):null;case O:return k.key===se?D(A,w,k,q):null;case Y:return k=li(k),j(A,w,k,q)}if(je(k)||Re(k))return se!==null?null:Z(A,w,k,q,null);if(typeof k.then=="function")return j(A,w,js(k),q);if(k.$$typeof===V)return j(A,w,Ms(A,k),q);Vs(A,k)}return null}function L(A,w,k,q,se){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return A=A.get(k)||null,b(w,A,""+q,se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return A=A.get(q.key===null?k:q.key)||null,T(w,A,q,se);case O:return A=A.get(q.key===null?k:q.key)||null,D(w,A,q,se);case Y:return q=li(q),L(A,w,k,q,se)}if(je(q)||Re(q))return A=A.get(k)||null,Z(w,A,q,se,null);if(typeof q.then=="function")return L(A,w,k,js(q),se);if(q.$$typeof===V)return L(A,w,k,Ms(w,q),se);Vs(w,q)}return null}function ee(A,w,k,q){for(var se=null,we=null,ie=w,me=w=0,Se=null;ie!==null&&me<k.length;me++){ie.index>me?(Se=ie,ie=null):Se=ie.sibling;var ze=j(A,ie,k[me],q);if(ze===null){ie===null&&(ie=Se);break}t&&ie&&ze.alternate===null&&n(A,ie),w=d(ze,w,me),we===null?se=ze:we.sibling=ze,we=ze,ie=Se}if(me===k.length)return i(A,ie),Te&&qn(A,me),se;if(ie===null){for(;me<k.length;me++)ie=P(A,k[me],q),ie!==null&&(w=d(ie,w,me),we===null?se=ie:we.sibling=ie,we=ie);return Te&&qn(A,me),se}for(ie=s(ie);me<k.length;me++)Se=L(ie,A,me,k[me],q),Se!==null&&(t&&Se.alternate!==null&&ie.delete(Se.key===null?me:Se.key),w=d(Se,w,me),we===null?se=Se:we.sibling=Se,we=Se);return t&&ie.forEach(function(La){return n(A,La)}),Te&&qn(A,me),se}function ue(A,w,k,q){if(k==null)throw Error(o(151));for(var se=null,we=null,ie=w,me=w=0,Se=null,ze=k.next();ie!==null&&!ze.done;me++,ze=k.next()){ie.index>me?(Se=ie,ie=null):Se=ie.sibling;var La=j(A,ie,ze.value,q);if(La===null){ie===null&&(ie=Se);break}t&&ie&&La.alternate===null&&n(A,ie),w=d(La,w,me),we===null?se=La:we.sibling=La,we=La,ie=Se}if(ze.done)return i(A,ie),Te&&qn(A,me),se;if(ie===null){for(;!ze.done;me++,ze=k.next())ze=P(A,ze.value,q),ze!==null&&(w=d(ze,w,me),we===null?se=ze:we.sibling=ze,we=ze);return Te&&qn(A,me),se}for(ie=s(ie);!ze.done;me++,ze=k.next())ze=L(ie,A,me,ze.value,q),ze!==null&&(t&&ze.alternate!==null&&ie.delete(ze.key===null?me:ze.key),w=d(ze,w,me),we===null?se=ze:we.sibling=ze,we=ze);return t&&ie.forEach(function(A_){return n(A,A_)}),Te&&qn(A,me),se}function Ue(A,w,k,q){if(typeof k=="object"&&k!==null&&k.type===C&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case S:e:{for(var se=k.key;w!==null;){if(w.key===se){if(se=k.type,se===C){if(w.tag===7){i(A,w.sibling),q=c(w,k.props.children),q.return=A,A=q;break e}}else if(w.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Y&&li(se)===w.type){i(A,w.sibling),q=c(w,k.props),io(q,k),q.return=A,A=q;break e}i(A,w);break}else n(A,w);w=w.sibling}k.type===C?(q=ai(k.props.children,A.mode,q,k.key),q.return=A,A=q):(q=Cs(k.type,k.key,k.props,null,A.mode,q),io(q,k),q.return=A,A=q)}return g(A);case O:e:{for(se=k.key;w!==null;){if(w.key===se)if(w.tag===4&&w.stateNode.containerInfo===k.containerInfo&&w.stateNode.implementation===k.implementation){i(A,w.sibling),q=c(w,k.children||[]),q.return=A,A=q;break e}else{i(A,w);break}else n(A,w);w=w.sibling}q=Xu(k,A.mode,q),q.return=A,A=q}return g(A);case Y:return k=li(k),Ue(A,w,k,q)}if(je(k))return ee(A,w,k,q);if(Re(k)){if(se=Re(k),typeof se!="function")throw Error(o(150));return k=se.call(k),ue(A,w,k,q)}if(typeof k.then=="function")return Ue(A,w,js(k),q);if(k.$$typeof===V)return Ue(A,w,Ms(A,k),q);Vs(A,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,w!==null&&w.tag===6?(i(A,w.sibling),q=c(w,k),q.return=A,A=q):(i(A,w),q=Pu(k,A.mode,q),q.return=A,A=q),g(A)):i(A,w)}return function(A,w,k,q){try{ao=0;var se=Ue(A,w,k,q);return Xi=null,se}catch(ie){if(ie===Pi||ie===Ds)throw ie;var we=Ft(29,ie,null,A.mode);return we.lanes=q,we.return=A,we}}}var ci=rp(!0),op=rp(!1),xa=!1;function rc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oc(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 Sa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ta(t,n,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Ae&2)!==0){var c=s.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),s.pending=n,n=As(t),Gm(t,null,i),n}return zs(t,s,n,i),As(t)}function ro(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,Jh(t,i)}}function sc(t,n){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var c=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?c=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?c=d=n:d=d.next=n}else c=d=n;i={baseState:s.baseState,firstBaseUpdate:c,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 lc=!1;function oo(){if(lc){var t=Yi;if(t!==null)throw t}}function so(t,n,i,s){lc=!1;var c=t.updateQueue;xa=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var T=b,D=T.next;T.next=null,g===null?d=D:g.next=D,g=T;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,b=Z.lastBaseUpdate,b!==g&&(b===null?Z.firstBaseUpdate=D:b.next=D,Z.lastBaseUpdate=T))}if(d!==null){var P=c.baseState;g=0,Z=D=T=null,b=d;do{var j=b.lane&-536870913,L=j!==b.lane;if(L?(xe&j)===j:(s&j)===j){j!==0&&j===qi&&(lc=!0),Z!==null&&(Z=Z.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ee=t,ue=b;j=n;var Ue=i;switch(ue.tag){case 1:if(ee=ue.payload,typeof ee=="function"){P=ee.call(Ue,P,j);break e}P=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ue.payload,j=typeof ee=="function"?ee.call(Ue,P,j):ee,j==null)break e;P=v({},P,j);break e;case 2:xa=!0}}j=b.callback,j!==null&&(t.flags|=64,L&&(t.flags|=8192),L=c.callbacks,L===null?c.callbacks=[j]:L.push(j))}else L={lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Z===null?(D=Z=L,T=P):Z=Z.next=L,g|=j;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;L=b,b=L.next,L.next=null,c.lastBaseUpdate=L,c.shared.pending=null}}while(!0);Z===null&&(T=P),c.baseState=T,c.firstBaseUpdate=D,c.lastBaseUpdate=Z,d===null&&(c.shared.lanes=0),Aa|=g,t.lanes=g,t.memoizedState=P}}function sp(t,n){if(typeof t!="function")throw Error(o(191,t));t.call(n)}function lp(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)sp(i[t],n)}var Ki=z(null),Ls=z(0);function up(t,n){t=ta,Q(Ls,t),Q(Ki,n),ta=t|n.baseLanes}function uc(){Q(Ls,ta),Q(Ki,Ki.current)}function cc(){ta=Ls.current,H(Ki),H(Ls)}var Jt=z(null),fn=null;function _a(t){var n=t.alternate;Q(rt,rt.current&1),Q(Jt,t),fn===null&&(n===null||Ki.current!==null||n.memoizedState!==null)&&(fn=t)}function fc(t){Q(rt,rt.current),Q(Jt,t),fn===null&&(fn=t)}function cp(t){t.tag===22?(Q(rt,rt.current),Q(Jt,t),fn===null&&(fn=t)):Ea()}function Ea(){Q(rt,rt.current),Q(Jt,Jt.current)}function It(t){H(Jt),fn===t&&(fn=null),H(rt)}var rt=z(0);function Us(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||vf(i)||bf(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 Xn=0,he=null,Ve=null,ct=null,Bs=!1,Qi=!1,fi=!1,Zs=0,lo=0,Fi=null,yT=0;function nt(){throw Error(o(321))}function dc(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!Qt(t[i],n[i]))return!1;return!0}function hc(t,n,i,s,c,d){return Xn=d,he=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,U.H=t===null||t.memoizedState===null?Xp:Cc,fi=!1,d=i(s,c),fi=!1,Qi&&(d=dp(n,i,s,c)),fp(t),d}function fp(t){U.H=fo;var n=Ve!==null&&Ve.next!==null;if(Xn=0,ct=Ve=he=null,Bs=!1,lo=0,Fi=null,n)throw Error(o(300));t===null||ft||(t=t.dependencies,t!==null&&Os(t)&&(ft=!0))}function dp(t,n,i,s){he=t;var c=0;do{if(Qi&&(Fi=null),lo=0,Qi=!1,25<=c)throw Error(o(301));if(c+=1,ct=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=Kp,d=n(i,s)}while(Qi);return d}function vT(){var t=U.H,n=t.useState()[0];return n=typeof n.then=="function"?uo(n):n,t=t.useState()[0],(Ve!==null?Ve.memoizedState:null)!==t&&(he.flags|=1024),n}function mc(){var t=Zs!==0;return Zs=0,t}function pc(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function gc(t){if(Bs){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Bs=!1}Xn=0,ct=Ve=he=null,Qi=!1,lo=Zs=0,Fi=null}function Nt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?he.memoizedState=ct=t:ct=ct.next=t,ct}function ot(){if(Ve===null){var t=he.alternate;t=t!==null?t.memoizedState:null}else t=Ve.next;var n=ct===null?he.memoizedState:ct.next;if(n!==null)ct=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},ct===null?he.memoizedState=ct=t:ct=ct.next=t}return ct}function Hs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uo(t){var n=lo;return lo+=1,Fi===null&&(Fi=[]),t=np(Fi,t,n),n=he,(ct===null?n.memoizedState:ct.next)===null&&(n=n.alternate,U.H=n===null||n.memoizedState===null?Xp:Cc),t}function $s(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return uo(t);if(t.$$typeof===V)return zt(t)}throw Error(o(438,String(t)))}function yc(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(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Hs(),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]=ye;return n.index++,i}function Kn(t,n){return typeof n=="function"?n(t):n}function Gs(t){var n=ot();return vc(n,Ve,t)}function vc(t,n,i){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=i;var c=t.baseQueue,d=s.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}n.baseQueue=c=d,s.pending=null}if(d=t.baseState,c===null)t.memoizedState=d;else{n=c.next;var b=g=null,T=null,D=n,Z=!1;do{var P=D.lane&-536870913;if(P!==D.lane?(xe&P)===P:(Xn&P)===P){var j=D.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),P===qi&&(Z=!0);else if((Xn&j)===j){D=D.next,j===qi&&(Z=!0);continue}else P={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=P,g=d):T=T.next=P,he.lanes|=j,Aa|=j;P=D.action,fi&&i(d,P),d=D.hasEagerState?D.eagerState:i(d,P)}else j={lane:P,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=j,g=d):T=T.next=j,he.lanes|=P,Aa|=P;D=D.next}while(D!==null&&D!==n);if(T===null?g=d:T.next=b,!Qt(d,t.memoizedState)&&(ft=!0,Z&&(i=Yi,i!==null)))throw i;t.memoizedState=d,t.baseState=g,t.baseQueue=T,s.lastRenderedState=d}return c===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function bc(t){var n=ot(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var s=i.dispatch,c=i.pending,d=n.memoizedState;if(c!==null){i.pending=null;var g=c=c.next;do d=t(d,g.action),g=g.next;while(g!==c);Qt(d,n.memoizedState)||(ft=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,s]}function hp(t,n,i){var s=he,c=ot(),d=Te;if(d){if(i===void 0)throw Error(o(407));i=i()}else i=n();var g=!Qt((Ve||c).memoizedState,i);if(g&&(c.memoizedState=i,ft=!0),c=c.queue,Tc(gp.bind(null,s,c,t),[t]),c.getSnapshot!==n||g||ct!==null&&ct.memoizedState.tag&1){if(s.flags|=2048,Ji(9,{destroy:void 0},pp.bind(null,s,c,i,n),null),Be===null)throw Error(o(349));d||(Xn&127)!==0||mp(s,n,i)}return i}function mp(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=he.updateQueue,n===null?(n=Hs(),he.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function pp(t,n,i,s){n.value=i,n.getSnapshot=s,yp(n)&&vp(t)}function gp(t,n,i){return i(function(){yp(n)&&vp(t)})}function yp(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!Qt(t,i)}catch{return!0}}function vp(t){var n=ni(t,2);n!==null&&qt(n,t,2)}function xc(t){var n=Nt();if(typeof t=="function"){var i=t;if(t=i(),fi){ha(!0);try{i()}finally{ha(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:t},n}function bp(t,n,i,s){return t.baseState=i,vc(t,Ve,typeof s=="function"?s:Kn)}function bT(t,n,i,s,c){if(Ps(t))throw Error(o(485));if(t=n.action,t!==null){var d={payload:c,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,xp(n,d)):(d.next=i.next,n.pending=i.next=d)}}function xp(t,n){var i=n.action,s=n.payload,c=t.state;if(n.isTransition){var d=U.T,g={};U.T=g;try{var b=i(c,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(c,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){Tp(t,n,s)},function(s){return Sc(t,n,s)}):Tp(t,n,i)}function Tp(t,n,i){n.status="fulfilled",n.value=i,_p(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,xp(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,_p(n),n=n.next;while(n!==s)}t.action=null}function _p(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Ep(t,n){return n}function wp(t,n){if(Te){var i=Be.formState;if(i!==null){e:{var s=he;if(Te){if(He){t:{for(var c=He,d=cn;c.nodeType!==8;){if(!d){c=null;break t}if(c=dn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){He=dn(c.nextSibling),s=c.data==="F!";break e}}va(s)}s=!1}s&&(n=i[0])}}return i=Nt(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ep,lastRenderedState:n},i.queue=s,i=qp.bind(null,he,s),s.dispatch=i,s=xc(!1),d=Ac.bind(null,he,!1,s.queue),s=Nt(),c={state:n,dispatch:null,action:t,pending:null},s.queue=c,i=bT.bind(null,he,c,d,i),c.dispatch=i,s.memoizedState=t,[n,i,!1]}function zp(t){var n=ot();return Ap(n,Ve,t)}function Ap(t,n,i){if(n=vc(t,n,Ep)[0],t=Gs(Kn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=uo(n)}catch(g){throw g===Pi?Ds:g}else s=n;n=ot();var c=n.queue,d=c.dispatch;return i!==n.memoizedState&&(he.flags|=2048,Ji(9,{destroy:void 0},xT.bind(null,c,i),null)),[s,d,t]}function xT(t,n){t.action=n}function Cp(t){var n=ot(),i=Ve;if(i!==null)return Ap(n,i,t);ot(),n=n.memoizedState,i=ot();var s=i.queue.dispatch;return i.memoizedState=t,[n,s,!1]}function Ji(t,n,i,s){return t={tag:t,create:i,deps:s,inst:n,next:null},n=he.updateQueue,n===null&&(n=Hs(),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 Rp(){return ot().memoizedState}function qs(t,n,i,s){var c=Nt();he.flags|=t,c.memoizedState=Ji(1|n,{destroy:void 0},i,s===void 0?null:s)}function Ys(t,n,i,s){var c=ot();s=s===void 0?null:s;var d=c.memoizedState.inst;Ve!==null&&s!==null&&dc(s,Ve.memoizedState.deps)?c.memoizedState=Ji(n,d,i,s):(he.flags|=t,c.memoizedState=Ji(1|n,d,i,s))}function Op(t,n){qs(8390656,8,t,n)}function Tc(t,n){Ys(2048,8,t,n)}function ST(t){he.flags|=4;var n=he.updateQueue;if(n===null)n=Hs(),he.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function Mp(t){var n=ot().memoizedState;return ST({ref:n,nextImpl:t}),function(){if((Ae&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}function kp(t,n){return Ys(4,2,t,n)}function Dp(t,n){return Ys(4,4,t,n)}function Np(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 jp(t,n,i){i=i!=null?i.concat([t]):null,Ys(4,4,Np.bind(null,n,t),i)}function _c(){}function Vp(t,n){var i=ot();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&dc(n,s[1])?s[0]:(i.memoizedState=[t,n],t)}function Lp(t,n){var i=ot();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&dc(n,s[1]))return s[0];if(s=t(),fi){ha(!0);try{t()}finally{ha(!1)}}return i.memoizedState=[s,n],s}function Ec(t,n,i){return i===void 0||(Xn&1073741824)!==0&&(xe&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=Ug(),he.lanes|=t,Aa|=t,i)}function Up(t,n,i,s){return Qt(i,n)?i:Ki.current!==null?(t=Ec(t,i,s),Qt(t,n)||(ft=!0),t):(Xn&42)===0||(Xn&1073741824)!==0&&(xe&261930)===0?(ft=!0,t.memoizedState=i):(t=Ug(),he.lanes|=t,Aa|=t,n)}function Bp(t,n,i,s,c){var d=K.p;K.p=d!==0&&8>d?d:8;var g=U.T,b={};U.T=b,Ac(t,!1,n,i);try{var T=c(),D=U.S;if(D!==null&&D(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Z=gT(T,s);co(t,n,Z,tn(t))}else co(t,n,s,tn(t))}catch(P){co(t,n,{then:function(){},status:"rejected",reason:P},tn())}finally{K.p=d,g!==null&&b.types!==null&&(g.types=b.types),U.T=g}}function TT(){}function wc(t,n,i,s){if(t.tag!==5)throw Error(o(476));var c=Zp(t).queue;Bp(t,c,n,X,i===null?TT:function(){return Hp(t),i(s)})}function Zp(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:X},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Hp(t){var n=Zp(t);n.next===null&&(n=t.alternate.memoizedState),co(t,n.next.queue,{},tn())}function zc(){return zt(Co)}function $p(){return ot().memoizedState}function Gp(){return ot().memoizedState}function _T(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=tn();t=Sa(i);var s=Ta(n,t,i);s!==null&&(qt(s,n,i),ro(s,n,i)),n={cache:tc()},t.payload=n;return}n=n.return}}function ET(t,n,i){var s=tn();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ps(t)?Yp(n,i):(i=qu(t,n,i,s),i!==null&&(qt(i,t,s),Pp(i,n,s)))}function qp(t,n,i){var s=tn();co(t,n,i,s)}function co(t,n,i,s){var c={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ps(t))Yp(n,c);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(c.hasEagerState=!0,c.eagerState=b,Qt(b,g))return zs(t,n,c,0),Be===null&&ws(),!1}catch{}if(i=qu(t,n,c,s),i!==null)return qt(i,t,s),Pp(i,n,s),!0}return!1}function Ac(t,n,i,s){if(s={lane:2,revertLane:of(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ps(t)){if(n)throw Error(o(479))}else n=qu(t,i,s,2),n!==null&&qt(n,t,2)}function Ps(t){var n=t.alternate;return t===he||n!==null&&n===he}function Yp(t,n){Qi=Bs=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function Pp(t,n,i){if((i&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,i|=s,n.lanes=i,Jh(t,i)}}var fo={readContext:zt,use:$s,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};fo.useEffectEvent=nt;var Xp={readContext:zt,use:$s,useCallback:function(t,n){return Nt().memoizedState=[t,n===void 0?null:n],t},useContext:zt,useEffect:Op,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,qs(4194308,4,Np.bind(null,n,t),i)},useLayoutEffect:function(t,n){return qs(4194308,4,t,n)},useInsertionEffect:function(t,n){qs(4,2,t,n)},useMemo:function(t,n){var i=Nt();n=n===void 0?null:n;var s=t();if(fi){ha(!0);try{t()}finally{ha(!1)}}return i.memoizedState=[s,n],s},useReducer:function(t,n,i){var s=Nt();if(i!==void 0){var c=i(n);if(fi){ha(!0);try{i(n)}finally{ha(!1)}}}else c=n;return s.memoizedState=s.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},s.queue=t,t=t.dispatch=ET.bind(null,he,t),[s.memoizedState,t]},useRef:function(t){var n=Nt();return t={current:t},n.memoizedState=t},useState:function(t){t=xc(t);var n=t.queue,i=qp.bind(null,he,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:_c,useDeferredValue:function(t,n){var i=Nt();return Ec(i,t,n)},useTransition:function(){var t=xc(!1);return t=Bp.bind(null,he,t.queue,!0,!1),Nt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var s=he,c=Nt();if(Te){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),Be===null)throw Error(o(349));(xe&127)!==0||mp(s,n,i)}c.memoizedState=i;var d={value:i,getSnapshot:n};return c.queue=d,Op(gp.bind(null,s,d,t),[t]),s.flags|=2048,Ji(9,{destroy:void 0},pp.bind(null,s,d,i,n),null),i},useId:function(){var t=Nt(),n=Be.identifierPrefix;if(Te){var i=kn,s=Mn;i=(s&~(1<<32-Kt(s)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Zs++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=yT++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:zc,useFormState:wp,useActionState:wp,useOptimistic:function(t){var n=Nt();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Ac.bind(null,he,!0,i),i.dispatch=n,[t,n]},useMemoCache:yc,useCacheRefresh:function(){return Nt().memoizedState=_T.bind(null,he)},useEffectEvent:function(t){var n=Nt(),i={impl:t};return n.memoizedState=i,function(){if((Ae&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Cc={readContext:zt,use:$s,useCallback:Vp,useContext:zt,useEffect:Tc,useImperativeHandle:jp,useInsertionEffect:kp,useLayoutEffect:Dp,useMemo:Lp,useReducer:Gs,useRef:Rp,useState:function(){return Gs(Kn)},useDebugValue:_c,useDeferredValue:function(t,n){var i=ot();return Up(i,Ve.memoizedState,t,n)},useTransition:function(){var t=Gs(Kn)[0],n=ot().memoizedState;return[typeof t=="boolean"?t:uo(t),n]},useSyncExternalStore:hp,useId:$p,useHostTransitionStatus:zc,useFormState:zp,useActionState:zp,useOptimistic:function(t,n){var i=ot();return bp(i,Ve,t,n)},useMemoCache:yc,useCacheRefresh:Gp};Cc.useEffectEvent=Mp;var Kp={readContext:zt,use:$s,useCallback:Vp,useContext:zt,useEffect:Tc,useImperativeHandle:jp,useInsertionEffect:kp,useLayoutEffect:Dp,useMemo:Lp,useReducer:bc,useRef:Rp,useState:function(){return bc(Kn)},useDebugValue:_c,useDeferredValue:function(t,n){var i=ot();return Ve===null?Ec(i,t,n):Up(i,Ve.memoizedState,t,n)},useTransition:function(){var t=bc(Kn)[0],n=ot().memoizedState;return[typeof t=="boolean"?t:uo(t),n]},useSyncExternalStore:hp,useId:$p,useHostTransitionStatus:zc,useFormState:Cp,useActionState:Cp,useOptimistic:function(t,n){var i=ot();return Ve!==null?bp(i,Ve,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:yc,useCacheRefresh:Gp};Kp.useEffectEvent=Mp;function Rc(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 Oc={enqueueSetState:function(t,n,i){t=t._reactInternals;var s=tn(),c=Sa(s);c.payload=n,i!=null&&(c.callback=i),n=Ta(t,c,s),n!==null&&(qt(n,t,s),ro(n,t,s))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var s=tn(),c=Sa(s);c.tag=1,c.payload=n,i!=null&&(c.callback=i),n=Ta(t,c,s),n!==null&&(qt(n,t,s),ro(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=tn(),s=Sa(i);s.tag=2,n!=null&&(s.callback=n),n=Ta(t,s,i),n!==null&&(qt(n,t,i),ro(n,t,i))}};function Qp(t,n,i,s,c,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,d,g):n.prototype&&n.prototype.isPureReactComponent?!Jr(i,s)||!Jr(c,d):!0}function Fp(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&&Oc.enqueueReplaceState(n,n.state,null)}function di(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 c in t)i[c]===void 0&&(i[c]=t[c])}return i}function Jp(t){Es(t)}function Ip(t){console.error(t)}function Wp(t){Es(t)}function Xs(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function eg(t,n,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Mc(t,n,i){return i=Sa(i),i.tag=3,i.payload={element:null},i.callback=function(){Xs(t,n)},i}function tg(t){return t=Sa(t),t.tag=3,t}function ng(t,n,i,s){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=s.value;t.payload=function(){return c(d)},t.callback=function(){eg(n,i,s)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){eg(n,i,s),typeof c!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function wT(t,n,i,s,c){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&Gi(n,i,c,!0),i=Jt.current,i!==null){switch(i.tag){case 31:case 13:return fn===null?rl():i.alternate===null&&at===0&&(at=3),i.flags&=-257,i.flags|=65536,i.lanes=c,s===Ns?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),nf(t,s,c)),!1;case 22:return i.flags|=65536,s===Ns?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)),nf(t,s,c)),!1}throw Error(o(435,i.tag))}return nf(t,s,c),rl(),!1}if(Te)return n=Jt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,s!==Fu&&(t=Error(o(422),{cause:s}),eo(sn(t,i)))):(s!==Fu&&(n=Error(o(423),{cause:s}),eo(sn(n,i))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,s=sn(s,i),c=Mc(t.stateNode,s,c),sc(t,c),at!==4&&(at=2)),!1;var d=Error(o(520),{cause:s});if(d=sn(d,i),xo===null?xo=[d]:xo.push(d),at!==4&&(at=2),n===null)return!0;s=sn(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=c&-c,i.lanes|=t,t=Mc(i.stateNode,s,t),sc(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"&&(Ca===null||!Ca.has(d))))return i.flags|=65536,c&=-c,i.lanes|=c,c=tg(c),ng(c,t,i,s),sc(i,c),!1}i=i.return}while(i!==null);return!1}var kc=Error(o(461)),ft=!1;function At(t,n,i,s){n.child=t===null?op(n,null,i,s):ci(n,t.child,i,s)}function ag(t,n,i,s,c){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 oi(n),s=hc(t,n,i,g,d,c),b=mc(),t!==null&&!ft?(pc(t,n,c),Qn(t,n,c)):(Te&&b&&Ku(n),n.flags|=1,At(t,n,s,c),n.child)}function ig(t,n,i,s,c){if(t===null){var d=i.type;return typeof d=="function"&&!Yu(d)&&d.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=d,rg(t,n,d,s,c)):(t=Cs(i.type,null,s,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(d=t.child,!Zc(t,c)){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:Jr,i(g,s)&&t.ref===n.ref)return Qn(t,n,c)}return n.flags|=1,t=Gn(d,s),t.ref=n.ref,t.return=n,n.child=t}function rg(t,n,i,s,c){if(t!==null){var d=t.memoizedProps;if(Jr(d,s)&&t.ref===n.ref)if(ft=!1,n.pendingProps=s=d,Zc(t,c))(t.flags&131072)!==0&&(ft=!0);else return n.lanes=t.lanes,Qn(t,n,c)}return Dc(t,n,i,s,c)}function og(t,n,i,s){var c=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,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;s=c&~d}else s=0,n.child=null;return sg(t,n,d,i,s)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&ks(n,d!==null?d.cachePool:null),d!==null?up(n,d):uc(),cp(n);else return s=n.lanes=536870912,sg(t,n,d!==null?d.baseLanes|i:i,i,s)}else d!==null?(ks(n,d.cachePool),up(n,d),Ea(),n.memoizedState=null):(t!==null&&ks(n,null),uc(),Ea());return At(t,n,c,i),n.child}function ho(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function sg(t,n,i,s,c){var d=ac();return d=d===null?null:{parent:ut._currentValue,pool:d},n.memoizedState={baseLanes:i,cachePool:d},t!==null&&ks(n,null),uc(),cp(n),t!==null&&Gi(t,n,s,!0),n.childLanes=c,null}function Ks(t,n){return n=Fs({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function lg(t,n,i){return ci(n,t.child,null,i),t=Ks(n,n.pendingProps),t.flags|=2,It(n),n.memoizedState=null,t}function zT(t,n,i){var s=n.pendingProps,c=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Te){if(s.mode==="hidden")return t=Ks(n,s),n.lanes=536870912,ho(null,t);if(fc(n),(t=He)?(t=xy(t,cn),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:ga!==null?{id:Mn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=Ym(t),i.return=n,n.child=i,wt=n,He=null)):t=null,t===null)throw va(n);return n.lanes=536870912,null}return Ks(n,s)}var d=t.memoizedState;if(d!==null){var g=d.dehydrated;if(fc(n),c)if(n.flags&256)n.flags&=-257,n=lg(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(o(558));else if(ft||Gi(t,n,i,!1),c=(i&t.childLanes)!==0,ft||c){if(s=Be,s!==null&&(g=Ih(s,i),g!==0&&g!==d.retryLane))throw d.retryLane=g,ni(t,g),qt(s,t,g),kc;rl(),n=lg(t,n,i)}else t=d.treeContext,He=dn(g.nextSibling),wt=n,Te=!0,ya=null,cn=!1,t!==null&&Km(n,t),n=Ks(n,s),n.flags|=4096;return n}return t=Gn(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function Qs(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 Dc(t,n,i,s,c){return oi(n),i=hc(t,n,i,s,void 0,c),s=mc(),t!==null&&!ft?(pc(t,n,c),Qn(t,n,c)):(Te&&s&&Ku(n),n.flags|=1,At(t,n,i,c),n.child)}function ug(t,n,i,s,c,d){return oi(n),n.updateQueue=null,i=dp(n,s,i,c),fp(t),s=mc(),t!==null&&!ft?(pc(t,n,d),Qn(t,n,d)):(Te&&s&&Ku(n),n.flags|=1,At(t,n,i,d),n.child)}function cg(t,n,i,s,c){if(oi(n),n.stateNode===null){var d=Bi,g=i.contextType;typeof g=="object"&&g!==null&&(d=zt(g)),d=new i(s,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Oc,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=s,d.state=n.memoizedState,d.refs={},rc(n),g=i.contextType,d.context=typeof g=="object"&&g!==null?zt(g):Bi,d.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Rc(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&&Oc.enqueueReplaceState(d,d.state,null),so(n,s,d,c),oo(),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=di(i,b);d.props=T;var D=d.context,Z=i.contextType;g=Bi,typeof Z=="object"&&Z!==null&&(g=zt(Z));var P=i.getDerivedStateFromProps;Z=typeof P=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,Z||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||D!==g)&&Fp(n,d,s,g),xa=!1;var j=n.memoizedState;d.state=j,so(n,s,d,c),oo(),D=n.memoizedState,b||j!==D||xa?(typeof P=="function"&&(Rc(n,i,P,s),D=n.memoizedState),(T=xa||Qp(n,i,T,s,j,D,g))?(Z||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,oc(t,n),g=n.memoizedProps,Z=di(i,g),d.props=Z,P=n.pendingProps,j=d.context,D=i.contextType,T=Bi,typeof D=="object"&&D!==null&&(T=zt(D)),b=i.getDerivedStateFromProps,(D=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==P||j!==T)&&Fp(n,d,s,T),xa=!1,j=n.memoizedState,d.state=j,so(n,s,d,c),oo();var L=n.memoizedState;g!==P||j!==L||xa||t!==null&&t.dependencies!==null&&Os(t.dependencies)?(typeof b=="function"&&(Rc(n,i,b,s),L=n.memoizedState),(Z=xa||Qp(n,i,Z,s,j,L,T)||t!==null&&t.dependencies!==null&&Os(t.dependencies))?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,L,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,L,T)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===t.memoizedProps&&j===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&j===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=L),d.props=s,d.state=L,d.context=T,s=Z):(typeof d.componentDidUpdate!="function"||g===t.memoizedProps&&j===t.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&j===t.memoizedState||(n.flags|=1024),s=!1)}return d=s,Qs(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=ci(n,t.child,null,c),n.child=ci(n,null,i,c)):At(t,n,i,c),n.memoizedState=d.state,t=n.child):t=Qn(t,n,c),t}function fg(t,n,i,s){return ii(),n.flags|=256,At(t,n,i,s),n.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jc(t){return{baseLanes:t,cachePool:ep()}}function Vc(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=en),t}function dg(t,n,i){var s=n.pendingProps,c=!1,d=(n.flags&128)!==0,g;if((g=d)||(g=t!==null&&t.memoizedState===null?!1:(rt.current&2)!==0),g&&(c=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,t===null){if(Te){if(c?_a(n):Ea(),(t=He)?(t=xy(t,cn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:ga!==null?{id:Mn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=Ym(t),i.return=n,n.child=i,wt=n,He=null)):t=null,t===null)throw va(n);return bf(t)?n.lanes=32:n.lanes=536870912,null}var b=s.children;return s=s.fallback,c?(Ea(),c=n.mode,b=Fs({mode:"hidden",children:b},c),s=ai(s,c,i,null),b.return=n,s.return=n,b.sibling=s,n.child=b,s=n.child,s.memoizedState=jc(i),s.childLanes=Vc(t,g,i),n.memoizedState=Nc,ho(null,s)):(_a(n),Lc(n,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(d)n.flags&256?(_a(n),n.flags&=-257,n=Uc(t,n,i)):n.memoizedState!==null?(Ea(),n.child=t.child,n.flags|=128,n=null):(Ea(),b=s.fallback,c=n.mode,s=Fs({mode:"visible",children:s.children},c),b=ai(b,c,i,null),b.flags|=2,s.return=n,b.return=n,s.sibling=b,n.child=s,ci(n,t.child,null,i),s=n.child,s.memoizedState=jc(i),s.childLanes=Vc(t,g,i),n.memoizedState=Nc,n=ho(null,s));else if(_a(n),bf(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var D=g.dgst;g=D,s=Error(o(419)),s.stack="",s.digest=g,eo({value:s,source:null,stack:null}),n=Uc(t,n,i)}else if(ft||Gi(t,n,i,!1),g=(i&t.childLanes)!==0,ft||g){if(g=Be,g!==null&&(s=Ih(g,i),s!==0&&s!==T.retryLane))throw T.retryLane=s,ni(t,s),qt(g,t,s),kc;vf(b)||rl(),n=Uc(t,n,i)}else vf(b)?(n.flags|=192,n.child=t.child,n=null):(t=T.treeContext,He=dn(b.nextSibling),wt=n,Te=!0,ya=null,cn=!1,t!==null&&Km(n,t),n=Lc(n,s.children),n.flags|=4096);return n}return c?(Ea(),b=s.fallback,c=n.mode,T=t.child,D=T.sibling,s=Gn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,D!==null?b=Gn(D,b):(b=ai(b,c,i,null),b.flags|=2),b.return=n,s.return=n,s.sibling=b,n.child=s,ho(null,s),s=n.child,b=t.child.memoizedState,b===null?b=jc(i):(c=b.cachePool,c!==null?(T=ut._currentValue,c=c.parent!==T?{parent:T,pool:T}:c):c=ep(),b={baseLanes:b.baseLanes|i,cachePool:c}),s.memoizedState=b,s.childLanes=Vc(t,g,i),n.memoizedState=Nc,ho(t.child,s)):(_a(n),i=t.child,t=i.sibling,i=Gn(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 Lc(t,n){return n=Fs({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Fs(t,n){return t=Ft(22,t,null,n),t.lanes=0,t}function Uc(t,n,i){return ci(n,t.child,null,i),t=Lc(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function hg(t,n,i){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),Wu(t.return,n,i)}function Bc(t,n,i,s,c,d){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:c,treeForkCount:d}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=i,g.tailMode=c,g.treeForkCount=d)}function mg(t,n,i){var s=n.pendingProps,c=s.revealOrder,d=s.tail;s=s.children;var g=rt.current,b=(g&2)!==0;if(b?(g=g&1|2,n.flags|=128):g&=1,Q(rt,g),At(t,n,s,i),s=Te?Wr:0,!b&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&hg(t,i,n);else if(t.tag===19)hg(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(c){case"forwards":for(i=n.child,c=null;i!==null;)t=i.alternate,t!==null&&Us(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),Bc(n,!1,c,i,d,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&Us(t)===null){n.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}Bc(n,!0,i,null,d,s);break;case"together":Bc(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Qn(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),Aa|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(Gi(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=Gn(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=Gn(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Zc(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Os(t)))}function AT(t,n,i){switch(n.tag){case 3:lt(n,n.stateNode.containerInfo),ba(n,ut,t.memoizedState.cache),ii();break;case 27:case 5:Pt(n);break;case 4:lt(n,n.stateNode.containerInfo);break;case 10:ba(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,fc(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(_a(n),n.flags|=128,null):(i&n.child.childLanes)!==0?dg(t,n,i):(_a(n),t=Qn(t,n,i),t!==null?t.sibling:null);_a(n);break;case 19:var c=(t.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(Gi(t,n,i,!1),s=(i&n.childLanes)!==0),c){if(s)return mg(t,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Q(rt,rt.current),s)break;return null;case 22:return n.lanes=0,og(t,n,i,n.pendingProps);case 24:ba(n,ut,t.memoizedState.cache)}return Qn(t,n,i)}function pg(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)ft=!0;else{if(!Zc(t,i)&&(n.flags&128)===0)return ft=!1,AT(t,n,i);ft=(t.flags&131072)!==0}else ft=!1,Te&&(n.flags&1048576)!==0&&Xm(n,Wr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=li(n.elementType),n.type=t,typeof t=="function")Yu(t)?(s=di(t,s),n.tag=1,n=cg(null,n,t,s,i)):(n.tag=0,n=Dc(null,n,t,s,i));else{if(t!=null){var c=t.$$typeof;if(c===N){n.tag=11,n=ag(null,n,t,s,i);break e}else if(c===F){n.tag=14,n=ig(null,n,t,s,i);break e}}throw n=Ne(t)||t,Error(o(306,n,""))}}return n;case 0:return Dc(t,n,n.type,n.pendingProps,i);case 1:return s=n.type,c=di(s,n.pendingProps),cg(t,n,s,c,i);case 3:e:{if(lt(n,n.stateNode.containerInfo),t===null)throw Error(o(387));s=n.pendingProps;var d=n.memoizedState;c=d.element,oc(t,n),so(n,s,null,i);var g=n.memoizedState;if(s=g.cache,ba(n,ut,s),s!==d.cache&&ec(n,[ut],i,!0),oo(),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=fg(t,n,s,i);break e}else if(s!==c){c=sn(Error(o(424)),n),eo(c),n=fg(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=dn(t.firstChild),wt=n,Te=!0,ya=null,cn=!0,i=op(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ii(),s===c){n=Qn(t,n,i);break e}At(t,n,s,i)}n=n.child}return n;case 26:return Qs(t,n),t===null?(i=zy(n.type,null,n.pendingProps,null))?n.memoizedState=i:Te||(i=n.type,t=n.pendingProps,s=dl(fe.current).createElement(i),s[Et]=n,s[Ut]=t,Ct(s,i,t),bt(s),n.stateNode=s):n.memoizedState=zy(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Pt(n),t===null&&Te&&(s=n.stateNode=_y(n.type,n.pendingProps,fe.current),wt=n,cn=!0,c=He,ka(n.type)?(xf=c,He=dn(s.firstChild)):He=c),At(t,n,n.pendingProps.children,i),Qs(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Te&&((c=s=He)&&(s=a_(s,n.type,n.pendingProps,cn),s!==null?(n.stateNode=s,wt=n,He=dn(s.firstChild),cn=!1,c=!0):c=!1),c||va(n)),Pt(n),c=n.type,d=n.pendingProps,g=t!==null?t.memoizedProps:null,s=d.children,pf(c,d)?s=null:g!==null&&pf(c,g)&&(n.flags|=32),n.memoizedState!==null&&(c=hc(t,n,vT,null,null,i),Co._currentValue=c),Qs(t,n),At(t,n,s,i),n.child;case 6:return t===null&&Te&&((t=i=He)&&(i=i_(i,n.pendingProps,cn),i!==null?(n.stateNode=i,wt=n,He=null,t=!0):t=!1),t||va(n)),null;case 13:return dg(t,n,i);case 4:return lt(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=ci(n,null,s,i):At(t,n,s,i),n.child;case 11:return ag(t,n,n.type,n.pendingProps,i);case 7:return At(t,n,n.pendingProps,i),n.child;case 8:return At(t,n,n.pendingProps.children,i),n.child;case 12:return At(t,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,ba(n,n.type,s.value),At(t,n,s.children,i),n.child;case 9:return c=n.type._context,s=n.pendingProps.children,oi(n),c=zt(c),s=s(c),n.flags|=1,At(t,n,s,i),n.child;case 14:return ig(t,n,n.type,n.pendingProps,i);case 15:return rg(t,n,n.type,n.pendingProps,i);case 19:return mg(t,n,i);case 31:return zT(t,n,i);case 22:return og(t,n,i,n.pendingProps);case 24:return oi(n),s=zt(ut),t===null?(c=ac(),c===null&&(c=Be,d=tc(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=i),c=d),n.memoizedState={parent:s,cache:c},rc(n),ba(n,ut,c)):((t.lanes&i)!==0&&(oc(t,n),so(n,null,null,i),oo()),c=t.memoizedState,d=n.memoizedState,c.parent!==s?(c={parent:s,cache:s},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),ba(n,ut,s)):(s=d.cache,ba(n,ut,s),s!==c.cache&&ec(n,[ut],i,!0))),At(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function Fn(t){t.flags|=4}function Hc(t,n,i,s,c){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if($g())t.flags|=8192;else throw ui=Ns,ic}else t.flags&=-16777217}function gg(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!My(n))if($g())t.flags|=8192;else throw ui=Ns,ic}function Js(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Qh():536870912,t.lanes|=n,tr|=n)}function mo(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 c=t.child;c!==null;)i|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)i|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=s,t.childLanes=i,n}function CT(t,n,i){var s=n.pendingProps;switch(Qu(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),Pn(ut),Oe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&($i(n)?Fn(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ju())),$e(n),null;case 26:var c=n.type,d=n.memoizedState;return t===null?(Fn(n),d!==null?($e(n),gg(n,d)):($e(n),Hc(n,c,null,s,i))):d?d!==t.memoizedState?(Fn(n),$e(n),gg(n,d)):($e(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&Fn(n),$e(n),Hc(n,c,t,s,i)),null;case 27:if(An(n),i=fe.current,c=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Fn(n);else{if(!s){if(n.stateNode===null)throw Error(o(166));return $e(n),null}t=J.current,$i(n)?Qm(n):(t=_y(c,s,i),n.stateNode=t,Fn(n))}return $e(n),null;case 5:if(An(n),c=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Fn(n);else{if(!s){if(n.stateNode===null)throw Error(o(166));return $e(n),null}if(d=J.current,$i(n))Qm(n);else{var g=dl(fe.current);switch(d){case 1:d=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);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(c,{is:s.is}):g.createElement(c)}}d[Et]=n,d[Ut]=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(Ct(d,c,s),c){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Fn(n)}}return $e(n),Hc(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&Fn(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(o(166));if(t=fe.current,$i(n)){if(t=n.stateNode,i=n.memoizedProps,s=null,c=wt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}t[Et]=n,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||dy(t.nodeValue,i)),t||va(n,!0)}else t=dl(t).createTextNode(s),t[Et]=n,n.stateNode=t}return $e(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(s=$i(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[Et]=n}else ii(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),t=!1}else i=Ju(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(It(n),n):(It(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(c=$i(n),s!==null&&s.dehydrated!==null){if(t===null){if(!c)throw Error(o(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[Et]=n}else ii(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),c=!1}else c=Ju(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?(It(n),n):(It(n),null)}return It(n),(n.flags&128)!==0?(n.lanes=i,n):(i=s!==null,t=t!==null&&t.memoizedState!==null,i&&(s=n.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==c&&(s.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),Js(n,n.updateQueue),$e(n),null);case 4:return Oe(),t===null&&cf(n.stateNode.containerInfo),$e(n),null;case 10:return Pn(n.type),$e(n),null;case 19:if(H(rt),s=n.memoizedState,s===null)return $e(n),null;if(c=(n.flags&128)!==0,d=s.rendering,d===null)if(c)mo(s,!1);else{if(at!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(d=Us(t),d!==null){for(n.flags|=128,mo(s,!1),t=d.updateQueue,n.updateQueue=t,Js(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)qm(i,t),i=i.sibling;return Q(rt,rt.current&1|2),Te&&qn(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&Fe()>nl&&(n.flags|=128,c=!0,mo(s,!1),n.lanes=4194304)}else{if(!c)if(t=Us(d),t!==null){if(n.flags|=128,c=!0,t=t.updateQueue,n.updateQueue=t,Js(n,t),mo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Te)return $e(n),null}else 2*Fe()-s.renderingStartTime>nl&&i!==536870912&&(n.flags|=128,c=!0,mo(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=Fe(),t.sibling=null,i=rt.current,Q(rt,c?i&1|2:i&1),Te&&qn(n,s.treeForkCount),t):($e(n),null);case 22:case 23:return It(n),cc(),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&&Js(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&&H(si),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Pn(ut),$e(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function RT(t,n){switch(Qu(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Pn(ut),Oe(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return An(n),null;case 31:if(n.memoizedState!==null){if(It(n),n.alternate===null)throw Error(o(340));ii()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(It(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(o(340));ii()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return H(rt),null;case 4:return Oe(),null;case 10:return Pn(n.type),null;case 22:case 23:return It(n),cc(),t!==null&&H(si),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Pn(ut),null;case 25:return null;default:return null}}function yg(t,n){switch(Qu(n),n.tag){case 3:Pn(ut),Oe();break;case 26:case 27:case 5:An(n);break;case 4:Oe();break;case 31:n.memoizedState!==null&&It(n);break;case 13:It(n);break;case 19:H(rt);break;case 10:Pn(n.type);break;case 22:case 23:It(n),cc(),t!==null&&H(si);break;case 24:Pn(ut)}}function po(t,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var c=s.next;i=c;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!==c)}}catch(b){De(n,n.return,b)}}function wa(t,n,i){try{var s=n.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var d=c.next;s=d;do{if((s.tag&t)===t){var g=s.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,c=n;var T=i,D=b;try{D()}catch(Z){De(c,T,Z)}}}s=s.next}while(s!==d)}}catch(Z){De(n,n.return,Z)}}function vg(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{lp(n,i)}catch(s){De(t,t.return,s)}}}function bg(t,n,i){i.props=di(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){De(t,n,s)}}function go(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(c){De(t,n,c)}}function Dn(t,n){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(c){De(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){De(t,n,c)}else i.current=null}function xg(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(c){De(t,t.return,c)}}function $c(t,n,i){try{var s=t.stateNode;JT(s,t.type,i,n),s[Ut]=n}catch(c){De(t,t.return,c)}}function Sg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ka(t.type)||t.tag===4}function Gc(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&&ka(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 qc(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=Hn));else if(s!==4&&(s===27&&ka(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(qc(t,n,i),t=t.sibling;t!==null;)qc(t,n,i),t=t.sibling}function Is(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&&ka(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Is(t,n,i),t=t.sibling;t!==null;)Is(t,n,i),t=t.sibling}function Tg(t){var n=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Ct(n,s,i),n[Et]=t,n[Ut]=i}catch(d){De(t,t.return,d)}}var Jn=!1,dt=!1,Yc=!1,_g=typeof WeakSet=="function"?WeakSet:Set,xt=null;function OT(t,n){if(t=t.containerInfo,hf=bl,t=jm(t),Uu(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 c=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,Z=0,P=t,j=null;t:for(;;){for(var L;P!==i||c!==0&&P.nodeType!==3||(b=g+c),P!==d||s!==0&&P.nodeType!==3||(T=g+s),P.nodeType===3&&(g+=P.nodeValue.length),(L=P.firstChild)!==null;)j=P,P=L;for(;;){if(P===t)break t;if(j===i&&++D===c&&(b=g),j===d&&++Z===s&&(T=g),(L=P.nextSibling)!==null)break;P=j,j=P.parentNode}P=L}i=b===-1||T===-1?null:{start:b,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(mf={focusedElem:t,selectionRange:i},bl=!1,xt=n;xt!==null;)if(n=xt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,xt=t;else for(;xt!==null;){switch(n=xt,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++)c=t[i],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&d!==null){t=void 0,i=n,c=d.memoizedProps,d=d.memoizedState,s=i.stateNode;try{var ee=di(i.type,c);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)yf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":yf(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,xt=t;break}xt=n.return}}function Eg(t,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Wn(t,i),s&4&&po(5,i);break;case 1:if(Wn(t,i),s&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(g){De(i,i.return,g)}else{var c=di(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(c,n,t.__reactInternalSnapshotBeforeUpdate)}catch(g){De(i,i.return,g)}}s&64&&vg(i),s&512&&go(i,i.return);break;case 3:if(Wn(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{lp(t,n)}catch(g){De(i,i.return,g)}}break;case 27:n===null&&s&4&&Tg(i);case 26:case 5:Wn(t,i),n===null&&s&4&&xg(i),s&512&&go(i,i.return);break;case 12:Wn(t,i);break;case 31:Wn(t,i),s&4&&Ag(t,i);break;case 13:Wn(t,i),s&4&&Cg(t,i),s&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=BT.bind(null,i),r_(t,i))));break;case 22:if(s=i.memoizedState!==null||Jn,!s){n=n!==null&&n.memoizedState!==null||dt,c=Jn;var d=dt;Jn=s,(dt=n)&&!d?ea(t,i,(i.subtreeFlags&8772)!==0):Wn(t,i),Jn=c,dt=d}break;case 30:break;default:Wn(t,i)}}function wg(t){var n=t.alternate;n!==null&&(t.alternate=null,wg(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,Zt=!1;function In(t,n,i){for(i=i.child;i!==null;)zg(t,n,i),i=i.sibling}function zg(t,n,i){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Br,i)}catch{}switch(i.tag){case 26:dt||Dn(i,n),In(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:dt||Dn(i,n);var s=Ye,c=Zt;ka(i.type)&&(Ye=i.stateNode,Zt=!1),In(t,n,i),wo(i.stateNode),Ye=s,Zt=c;break;case 5:dt||Dn(i,n);case 6:if(s=Ye,c=Zt,Ye=null,In(t,n,i),Ye=s,Zt=c,Ye!==null)if(Zt)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&&(Zt?(t=Ye,vy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),ur(t)):vy(Ye,i.stateNode));break;case 4:s=Ye,c=Zt,Ye=i.stateNode.containerInfo,Zt=!0,In(t,n,i),Ye=s,Zt=c;break;case 0:case 11:case 14:case 15:wa(2,i,n),dt||wa(4,i,n),In(t,n,i);break;case 1:dt||(Dn(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&bg(i,n,s)),In(t,n,i);break;case 21:In(t,n,i);break;case 22:dt=(s=dt)||i.memoizedState!==null,In(t,n,i),dt=s;break;default:In(t,n,i)}}function Ag(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ur(t)}catch(i){De(n,n.return,i)}}}function Cg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ur(t)}catch(i){De(n,n.return,i)}}function MT(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new _g),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new _g),n;default:throw Error(o(435,t.tag))}}function Ws(t,n){var i=MT(t);n.forEach(function(s){if(!i.has(s)){i.add(s);var c=ZT.bind(null,t,s);s.then(c,c)}})}function Ht(t,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var c=i[s],d=t,g=n,b=g;e:for(;b!==null;){switch(b.tag){case 27:if(ka(b.type)){Ye=b.stateNode,Zt=!1;break e}break;case 5:Ye=b.stateNode,Zt=!1;break e;case 3:case 4:Ye=b.stateNode.containerInfo,Zt=!0;break e}b=b.return}if(Ye===null)throw Error(o(160));zg(d,g,c),Ye=null,Zt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Rg(n,t),n=n.sibling}var Sn=null;function Rg(t,n){var i=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ht(n,t),$t(t),s&4&&(wa(3,t,t.return),po(3,t),wa(5,t,t.return));break;case 1:Ht(n,t),$t(t),s&512&&(dt||i===null||Dn(i,i.return)),s&64&&Jn&&(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 c=Sn;if(Ht(n,t),$t(t),s&512&&(dt||i===null||Dn(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,c=c.ownerDocument||c;t:switch(s){case"title":d=c.getElementsByTagName("title")[0],(!d||d[$r]||d[Et]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(s),c.head.insertBefore(d,c.querySelector("head > title"))),Ct(d,s,i),d[Et]=t,bt(d),s=d;break e;case"link":var g=Ry("link","href",c).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=c.createElement(s),Ct(d,s,i),c.head.appendChild(d);break;case"meta":if(g=Ry("meta","content",c).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=c.createElement(s),Ct(d,s,i),c.head.appendChild(d);break;default:throw Error(o(468,s))}d[Et]=t,bt(d),s=d}t.stateNode=s}else Oy(c,t.type,t.stateNode);else t.stateNode=Cy(c,s,t.memoizedProps);else d!==s?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,s===null?Oy(c,t.type,t.stateNode):Cy(c,s,t.memoizedProps)):s===null&&t.stateNode!==null&&$c(t,t.memoizedProps,i.memoizedProps)}break;case 27:Ht(n,t),$t(t),s&512&&(dt||i===null||Dn(i,i.return)),i!==null&&s&4&&$c(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Ht(n,t),$t(t),s&512&&(dt||i===null||Dn(i,i.return)),t.flags&32){c=t.stateNode;try{ki(c,"")}catch(ee){De(t,t.return,ee)}}s&4&&t.stateNode!=null&&(c=t.memoizedProps,$c(t,c,i!==null?i.memoizedProps:c)),s&1024&&(Yc=!0);break;case 6:if(Ht(n,t),$t(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(pl=null,c=Sn,Sn=hl(n.containerInfo),Ht(n,t),Sn=c,$t(t),s&4&&i!==null&&i.memoizedState.isDehydrated)try{ur(n.containerInfo)}catch(ee){De(t,t.return,ee)}Yc&&(Yc=!1,Og(t));break;case 4:s=Sn,Sn=hl(t.stateNode.containerInfo),Ht(n,t),$t(t),Sn=s;break;case 12:Ht(n,t),$t(t);break;case 31:Ht(n,t),$t(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ws(t,s)));break;case 13:Ht(n,t),$t(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(tl=Fe()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ws(t,s)));break;case 22:c=t.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,D=Jn,Z=dt;if(Jn=D||c,dt=Z||T,Ht(n,t),dt=Z,Jn=D,$t(t),s&8192)e:for(n=t.stateNode,n._visibility=c?n._visibility&-2:n._visibility|1,c&&(i===null||T||Jn||dt||hi(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){T=i=n;try{if(d=T.stateNode,c)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=T.stateNode;var P=T.memoizedProps.style,j=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(ee){De(T,T.return,ee)}}}else if(n.tag===6){if(i===null){T=n;try{T.stateNode.nodeValue=c?"":T.memoizedProps}catch(ee){De(T,T.return,ee)}}}else if(n.tag===18){if(i===null){T=n;try{var L=T.stateNode;c?by(L,!0):by(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,Ws(t,i))));break;case 19:Ht(n,t),$t(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ws(t,s)));break;case 30:break;case 21:break;default:Ht(n,t),$t(t)}}function $t(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 c=i.stateNode,d=Gc(t);Is(t,d,c);break;case 5:var g=i.stateNode;i.flags&32&&(ki(g,""),i.flags&=-33);var b=Gc(t);Is(t,b,g);break;case 3:case 4:var T=i.stateNode.containerInfo,D=Gc(t);qc(t,D,T);break;default:throw Error(o(161))}}catch(Z){De(t,t.return,Z)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Og(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Og(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Wn(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Eg(t,n.alternate,n),n=n.sibling}function hi(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:wa(4,n,n.return),hi(n);break;case 1:Dn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&bg(n,n.return,i),hi(n);break;case 27:wo(n.stateNode);case 26:case 5:Dn(n,n.return),hi(n);break;case 22:n.memoizedState===null&&hi(n);break;case 30:hi(n);break;default:hi(n)}t=t.sibling}}function ea(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,c=t,d=n,g=d.flags;switch(d.tag){case 0:case 11:case 15:ea(c,d,i),po(4,d);break;case 1:if(ea(c,d,i),s=d,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(D){De(s,s.return,D)}if(s=d,c=s.updateQueue,c!==null){var b=s.stateNode;try{var T=c.shared.hiddenCallbacks;if(T!==null)for(c.shared.hiddenCallbacks=null,c=0;c<T.length;c++)sp(T[c],b)}catch(D){De(s,s.return,D)}}i&&g&64&&vg(d),go(d,d.return);break;case 27:Tg(d);case 26:case 5:ea(c,d,i),i&&s===null&&g&4&&xg(d),go(d,d.return);break;case 12:ea(c,d,i);break;case 31:ea(c,d,i),i&&g&4&&Ag(c,d);break;case 13:ea(c,d,i),i&&g&4&&Cg(c,d);break;case 22:d.memoizedState===null&&ea(c,d,i),go(d,d.return);break;case 30:break;default:ea(c,d,i)}n=n.sibling}}function Pc(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&&to(i))}function Xc(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&to(t))}function Tn(t,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Mg(t,n,i,s),n=n.sibling}function Mg(t,n,i,s){var c=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(t,n,i,s),c&2048&&po(9,n);break;case 1:Tn(t,n,i,s);break;case 3:Tn(t,n,i,s),c&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&to(t)));break;case 12:if(c&2048){Tn(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 Tn(t,n,i,s);break;case 31:Tn(t,n,i,s);break;case 13:Tn(t,n,i,s);break;case 23:break;case 22:d=n.stateNode,g=n.alternate,n.memoizedState!==null?d._visibility&2?Tn(t,n,i,s):yo(t,n):d._visibility&2?Tn(t,n,i,s):(d._visibility|=2,Ii(t,n,i,s,(n.subtreeFlags&10256)!==0||!1)),c&2048&&Pc(g,n);break;case 24:Tn(t,n,i,s),c&2048&&Xc(n.alternate,n);break;default:Tn(t,n,i,s)}}function Ii(t,n,i,s,c){for(c=c&&((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:Ii(d,g,b,T,c),po(8,g);break;case 23:break;case 22:var Z=g.stateNode;g.memoizedState!==null?Z._visibility&2?Ii(d,g,b,T,c):yo(d,g):(Z._visibility|=2,Ii(d,g,b,T,c)),c&&D&2048&&Pc(g.alternate,g);break;case 24:Ii(d,g,b,T,c),c&&D&2048&&Xc(g.alternate,g);break;default:Ii(d,g,b,T,c)}n=n.sibling}}function yo(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,s=n,c=s.flags;switch(s.tag){case 22:yo(i,s),c&2048&&Pc(s.alternate,s);break;case 24:yo(i,s),c&2048&&Xc(s.alternate,s);break;default:yo(i,s)}n=n.sibling}}var vo=8192;function Wi(t,n,i){if(t.subtreeFlags&vo)for(t=t.child;t!==null;)kg(t,n,i),t=t.sibling}function kg(t,n,i){switch(t.tag){case 26:Wi(t,n,i),t.flags&vo&&t.memoizedState!==null&&y_(i,Sn,t.memoizedState,t.memoizedProps);break;case 5:Wi(t,n,i);break;case 3:case 4:var s=Sn;Sn=hl(t.stateNode.containerInfo),Wi(t,n,i),Sn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=vo,vo=16777216,Wi(t,n,i),vo=s):Wi(t,n,i));break;default:Wi(t,n,i)}}function Dg(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 bo(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];xt=s,jg(s,t)}Dg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ng(t),t=t.sibling}function Ng(t){switch(t.tag){case 0:case 11:case 15:bo(t),t.flags&2048&&wa(9,t,t.return);break;case 3:bo(t);break;case 12:bo(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,el(t)):bo(t);break;default:bo(t)}}function el(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];xt=s,jg(s,t)}Dg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:wa(8,n,n.return),el(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,el(n));break;default:el(n)}t=t.sibling}}function jg(t,n){for(;xt!==null;){var i=xt;switch(i.tag){case 0:case 11:case 15:wa(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:to(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,xt=s;else e:for(i=t;xt!==null;){s=xt;var c=s.sibling,d=s.return;if(wg(s),s===i){xt=null;break e}if(c!==null){c.return=d,xt=c;break e}xt=d}}}var kT={getCacheForType:function(t){var n=zt(ut),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return zt(ut).controller.signal}},DT=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Be=null,ve=null,xe=0,ke=0,Wt=null,za=!1,er=!1,Kc=!1,ta=0,at=0,Aa=0,mi=0,Qc=0,en=0,tr=0,xo=null,Gt=null,Fc=!1,tl=0,Vg=0,nl=1/0,al=null,Ca=null,gt=0,Ra=null,nr=null,na=0,Jc=0,Ic=null,Lg=null,So=0,Wc=null;function tn(){return(Ae&2)!==0&&xe!==0?xe&-xe:U.T!==null?of():Wh()}function Ug(){if(en===0)if((xe&536870912)===0||Te){var t=fs;fs<<=1,(fs&3932160)===0&&(fs=262144),en=t}else en=536870912;return t=Jt.current,t!==null&&(t.flags|=32),en}function qt(t,n,i){(t===Be&&(ke===2||ke===9)||t.cancelPendingCommit!==null)&&(ar(t,0),Oa(t,xe,en,!1)),Hr(t,i),((Ae&2)===0||t!==Be)&&(t===Be&&((Ae&2)===0&&(mi|=i),at===4&&Oa(t,xe,en,!1)),Nn(t))}function Bg(t,n,i){if((Ae&6)!==0)throw Error(o(327));var s=!i&&(n&127)===0&&(n&t.expiredLanes)===0||Zr(t,n),c=s?VT(t,n):tf(t,n,!0),d=s;do{if(c===0){er&&!s&&Oa(t,n,0,!1);break}else{if(i=t.current.alternate,d&&!NT(i)){c=tf(t,n,!1),d=!1;continue}if(c===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;c=xo;var T=b.current.memoizedState.isDehydrated;if(T&&(ar(b,g).flags|=256),g=tf(b,g,!1),g!==2){if(Kc&&!T){b.errorRecoveryDisabledLanes|=d,mi|=d,c=4;break e}d=Gt,Gt=c,d!==null&&(Gt===null?Gt=d:Gt.push.apply(Gt,d))}c=g}if(d=!1,c!==2)continue}}if(c===1){ar(t,0),Oa(t,n,0,!0);break}e:{switch(s=t,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:Oa(s,n,en,!za);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(c=tl+300-Fe(),10<c)){if(Oa(s,n,en,!za),hs(s,0,!0)!==0)break e;na=n,s.timeoutHandle=gy(Zg.bind(null,s,i,Gt,al,Fc,n,en,mi,tr,za,d,"Throttled",-0,0),c);break e}Zg(s,i,Gt,al,Fc,n,en,mi,tr,za,d,null,-0,0)}}break}while(!0);Nn(t)}function Zg(t,n,i,s,c,d,g,b,T,D,Z,P,j,L){if(t.timeoutHandle=-1,P=n.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},kg(n,d,P);var ee=(d&62914560)===d?tl-Fe():(d&4194048)===d?Vg-Fe():0;if(ee=v_(P,ee),ee!==null){na=d,t.cancelPendingCommit=ee(Kg.bind(null,t,n,d,i,s,c,g,b,T,Z,P,null,j,L)),Oa(t,d,g,!D);return}}Kg(t,n,d,i,s,c,g,b,T)}function NT(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 c=i[s],d=c.getSnapshot;c=c.value;try{if(!Qt(d(),c))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 Oa(t,n,i,s){n&=~Qc,n&=~mi,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var c=n;0<c;){var d=31-Kt(c),g=1<<d;s[d]=-1,c&=~g}i!==0&&Fh(t,i,n)}function il(){return(Ae&6)===0?(To(0),!1):!0}function ef(){if(ve!==null){if(ke===0)var t=ve.return;else t=ve,Yn=ri=null,gc(t),Xi=null,ao=0,t=ve;for(;t!==null;)yg(t.alternate,t),t=t.return;ve=null}}function ar(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,e_(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),na=0,ef(),Be=t,ve=i=Gn(t.current,null),xe=n,ke=0,Wt=null,za=!1,er=Zr(t,n),Kc=!1,tr=en=Qc=mi=Aa=at=0,Gt=xo=null,Fc=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var c=31-Kt(s),d=1<<c;n|=t[c],s&=~d}return ta=n,ws(),i}function Hg(t,n){he=null,U.H=fo,n===Pi||n===Ds?(n=ap(),ke=3):n===ic?(n=ap(),ke=4):ke=n===kc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Wt=n,ve===null&&(at=1,Xs(t,sn(n,t.current)))}function $g(){var t=Jt.current;return t===null?!0:(xe&4194048)===xe?fn===null:(xe&62914560)===xe||(xe&536870912)!==0?t===fn:!1}function Gg(){var t=U.H;return U.H=fo,t===null?fo:t}function qg(){var t=U.A;return U.A=kT,t}function rl(){at=4,za||(xe&4194048)!==xe&&Jt.current!==null||(er=!0),(Aa&134217727)===0&&(mi&134217727)===0||Be===null||Oa(Be,xe,en,!1)}function tf(t,n,i){var s=Ae;Ae|=2;var c=Gg(),d=qg();(Be!==t||xe!==n)&&(al=null,ar(t,n)),n=!1;var g=at;e:do try{if(ke!==0&&ve!==null){var b=ve,T=Wt;switch(ke){case 8:ef(),g=6;break e;case 3:case 2:case 9:case 6:Jt.current===null&&(n=!0);var D=ke;if(ke=0,Wt=null,ir(t,b,T,D),i&&er){g=0;break e}break;default:D=ke,ke=0,Wt=null,ir(t,b,T,D)}}jT(),g=at;break}catch(Z){Hg(t,Z)}while(!0);return n&&t.shellSuspendCounter++,Yn=ri=null,Ae=s,U.H=c,U.A=d,ve===null&&(Be=null,xe=0,ws()),g}function jT(){for(;ve!==null;)Yg(ve)}function VT(t,n){var i=Ae;Ae|=2;var s=Gg(),c=qg();Be!==t||xe!==n?(al=null,nl=Fe()+500,ar(t,n)):er=Zr(t,n);e:do try{if(ke!==0&&ve!==null){n=ve;var d=Wt;t:switch(ke){case 1:ke=0,Wt=null,ir(t,n,d,1);break;case 2:case 9:if(tp(d)){ke=0,Wt=null,Pg(n);break}n=function(){ke!==2&&ke!==9||Be!==t||(ke=7),Nn(t)},d.then(n,n);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:tp(d)?(ke=0,Wt=null,Pg(n)):(ke=0,Wt=null,ir(t,n,d,7));break;case 5:var g=null;switch(ve.tag){case 26:g=ve.memoizedState;case 5:case 27:var b=ve;if(g?My(g):b.stateNode.complete){ke=0,Wt=null;var T=b.sibling;if(T!==null)ve=T;else{var D=b.return;D!==null?(ve=D,ol(D)):ve=null}break t}}ke=0,Wt=null,ir(t,n,d,5);break;case 6:ke=0,Wt=null,ir(t,n,d,6);break;case 8:ef(),at=6;break e;default:throw Error(o(462))}}LT();break}catch(Z){Hg(t,Z)}while(!0);return Yn=ri=null,U.H=s,U.A=c,Ae=i,ve!==null?0:(Be=null,xe=0,ws(),at)}function LT(){for(;ve!==null&&!pt();)Yg(ve)}function Yg(t){var n=pg(t.alternate,t,ta);t.memoizedProps=t.pendingProps,n===null?ol(t):ve=n}function Pg(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=ug(i,n,n.pendingProps,n.type,void 0,xe);break;case 11:n=ug(i,n,n.pendingProps,n.type.render,n.ref,xe);break;case 5:gc(n);default:yg(i,n),n=ve=qm(n,ta),n=pg(i,n,ta)}t.memoizedProps=t.pendingProps,n===null?ol(t):ve=n}function ir(t,n,i,s){Yn=ri=null,gc(n),Xi=null,ao=0;var c=n.return;try{if(wT(t,c,n,i,xe)){at=1,Xs(t,sn(i,t.current)),ve=null;return}}catch(d){if(c!==null)throw ve=c,d;at=1,Xs(t,sn(i,t.current)),ve=null;return}n.flags&32768?(Te||s===1?t=!0:er||(xe&536870912)!==0?t=!1:(za=t=!0,(s===2||s===9||s===3||s===6)&&(s=Jt.current,s!==null&&s.tag===13&&(s.flags|=16384))),Xg(n,t)):ol(n)}function ol(t){var n=t;do{if((n.flags&32768)!==0){Xg(n,za);return}t=n.return;var i=CT(n.alternate,n,ta);if(i!==null){ve=i;return}if(n=n.sibling,n!==null){ve=n;return}ve=n=t}while(n!==null);at===0&&(at=5)}function Xg(t,n){do{var i=RT(t.alternate,t);if(i!==null){i.flags&=32767,ve=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){ve=t;return}ve=t=i}while(t!==null);at=6,ve=null}function Kg(t,n,i,s,c,d,g,b,T){t.cancelPendingCommit=null;do sl();while(gt!==0);if((Ae&6)!==0)throw Error(o(327));if(n!==null){if(n===t.current)throw Error(o(177));if(d=n.lanes|n.childLanes,d|=Gu,gS(t,i,d,g,b,T),t===Be&&(ve=Be=null,xe=0),nr=n,Ra=t,na=i,Jc=d,Ic=c,Lg=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,HT(_t,function(){return Wg(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,c=K.p,K.p=2,g=Ae,Ae|=4;try{OT(t,n,i)}finally{Ae=g,K.p=c,U.T=s}}gt=1,Qg(),Fg(),Jg()}}function Qg(){if(gt===1){gt=0;var t=Ra,n=nr,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var s=K.p;K.p=2;var c=Ae;Ae|=4;try{Rg(n,t);var d=mf,g=jm(t.containerInfo),b=d.focusedElem,T=d.selectionRange;if(g!==b&&b&&b.ownerDocument&&Nm(b.ownerDocument.documentElement,b)){if(T!==null&&Uu(b)){var D=T.start,Z=T.end;if(Z===void 0&&(Z=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(Z,b.value.length);else{var P=b.ownerDocument||document,j=P&&P.defaultView||window;if(j.getSelection){var L=j.getSelection(),ee=b.textContent.length,ue=Math.min(T.start,ee),Ue=T.end===void 0?ue:Math.min(T.end,ee);!L.extend&&ue>Ue&&(g=Ue,Ue=ue,ue=g);var A=Dm(b,ue),w=Dm(b,Ue);if(A&&w&&(L.rangeCount!==1||L.anchorNode!==A.node||L.anchorOffset!==A.offset||L.focusNode!==w.node||L.focusOffset!==w.offset)){var k=P.createRange();k.setStart(A.node,A.offset),L.removeAllRanges(),ue>Ue?(L.addRange(k),L.extend(w.node,w.offset)):(k.setEnd(w.node,w.offset),L.addRange(k))}}}}for(P=[],L=b;L=L.parentNode;)L.nodeType===1&&P.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var q=P[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}bl=!!hf,mf=hf=null}finally{Ae=c,K.p=s,U.T=i}}t.current=n,gt=2}}function Fg(){if(gt===2){gt=0;var t=Ra,n=nr,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var s=K.p;K.p=2;var c=Ae;Ae|=4;try{Eg(t,n.alternate,n)}finally{Ae=c,K.p=s,U.T=i}}gt=3}}function Jg(){if(gt===4||gt===3){gt=0,Tt();var t=Ra,n=nr,i=na,s=Lg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?gt=5:(gt=0,nr=Ra=null,Ig(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(Ca=null),bu(i),n=n.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Br,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=U.T,c=K.p,K.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,K.p=c}}(na&3)!==0&&sl(),Nn(t),c=t.pendingLanes,(i&261930)!==0&&(c&42)!==0?t===Wc?So++:(So=0,Wc=t):So=0,To(0)}}function Ig(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,to(n)))}function sl(){return Qg(),Fg(),Jg(),Wg()}function Wg(){if(gt!==5)return!1;var t=Ra,n=Jc;Jc=0;var i=bu(na),s=U.T,c=K.p;try{K.p=32>i?32:i,U.T=null,i=Ic,Ic=null;var d=Ra,g=na;if(gt=0,nr=Ra=null,na=0,(Ae&6)!==0)throw Error(o(331));var b=Ae;if(Ae|=4,Ng(d.current),Mg(d,d.current,g,i),Ae=b,To(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Br,d)}catch{}return!0}finally{K.p=c,U.T=s,Ig(t,n)}}function ey(t,n,i){n=sn(i,n),n=Mc(t.stateNode,n,2),t=Ta(t,n,2),t!==null&&(Hr(t,2),Nn(t))}function De(t,n,i){if(t.tag===3)ey(t,t,i);else for(;n!==null;){if(n.tag===3){ey(n,t,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ca===null||!Ca.has(s))){t=sn(i,t),i=tg(2),s=Ta(n,i,2),s!==null&&(ng(i,s,n,t),Hr(s,2),Nn(s));break}}n=n.return}}function nf(t,n,i){var s=t.pingCache;if(s===null){s=t.pingCache=new DT;var c=new Set;s.set(n,c)}else c=s.get(n),c===void 0&&(c=new Set,s.set(n,c));c.has(i)||(Kc=!0,c.add(i),t=UT.bind(null,t,n,i),n.then(t,t))}function UT(t,n,i){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Be===t&&(xe&i)===i&&(at===4||at===3&&(xe&62914560)===xe&&300>Fe()-tl?(Ae&2)===0&&ar(t,0):Qc|=i,tr===xe&&(tr=0)),Nn(t)}function ty(t,n){n===0&&(n=Qh()),t=ni(t,n),t!==null&&(Hr(t,n),Nn(t))}function BT(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),ty(t,i)}function ZT(t,n){var i=0;switch(t.tag){case 31:case 13:var s=t.stateNode,c=t.memoizedState;c!==null&&(i=c.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),ty(t,i)}function HT(t,n){return Dt(t,n)}var ll=null,rr=null,af=!1,ul=!1,rf=!1,Ma=0;function Nn(t){t!==rr&&t.next===null&&(rr===null?ll=rr=t:rr=rr.next=t),ul=!0,af||(af=!0,GT())}function To(t,n){if(!rf&&ul){rf=!0;do for(var i=!1,s=ll;s!==null;){if(t!==0){var c=s.pendingLanes;if(c===0)var d=0;else{var g=s.suspendedLanes,b=s.pingedLanes;d=(1<<31-Kt(42|t)+1)-1,d&=c&~(g&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,ry(s,d))}else d=xe,d=hs(s,s===Be?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||Zr(s,d)||(i=!0,ry(s,d));s=s.next}while(i);rf=!1}}function $T(){ny()}function ny(){ul=af=!1;var t=0;Ma!==0&&WT()&&(t=Ma);for(var n=Fe(),i=null,s=ll;s!==null;){var c=s.next,d=ay(s,n);d===0?(s.next=null,i===null?ll=c:i.next=c,c===null&&(rr=i)):(i=s,(t!==0||(d&3)!==0)&&(ul=!0)),s=c}gt!==0&>!==5||To(t),Ma!==0&&(Ma=0)}function ay(t,n){for(var i=t.suspendedLanes,s=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var g=31-Kt(d),b=1<<g,T=c[g];T===-1?((b&i)===0||(b&s)!==0)&&(c[g]=pS(b,n)):T<=n&&(t.expiredLanes|=b),d&=~b}if(n=Be,i=xe,i=hs(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,i===0||t===n&&(ke===2||ke===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&On(s),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Zr(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(s!==null&&On(s),bu(i)){case 2:case 8:i=Lr;break;case 32:i=_t;break;case 268435456:i=wi;break;default:i=_t}return s=iy.bind(null,t),i=Dt(i,s),t.callbackPriority=n,t.callbackNode=i,n}return s!==null&&s!==null&&On(s),t.callbackPriority=2,t.callbackNode=null,2}function iy(t,n){if(gt!==0&>!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(sl()&&t.callbackNode!==i)return null;var s=xe;return s=hs(t,t===Be?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Bg(t,s,n),ay(t,Fe()),t.callbackNode!=null&&t.callbackNode===i?iy.bind(null,t):null)}function ry(t,n){if(sl())return null;Bg(t,n,!0)}function GT(){t_(function(){(Ae&6)!==0?Dt(Vr,$T):ny()})}function of(){if(Ma===0){var t=qi;t===0&&(t=cs,cs<<=1,(cs&261888)===0&&(cs=256)),Ma=t}return Ma}function oy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ys(""+t)}function sy(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 qT(t,n,i,s,c){if(n==="submit"&&i&&i.stateNode===c){var d=oy((c[Ut]||null).action),g=s.submitter;g&&(n=(n=g[Ut]||null)?oy(n.formAction):g.getAttribute("formAction"),n!==null&&(d=n,g=null));var b=new Ss("action","action",null,s,c);t.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Ma!==0){var T=g?sy(c,g):new FormData(c);wc(i,{pending:!0,data:T,method:c.method,action:d},null,T)}}else typeof d=="function"&&(b.preventDefault(),T=g?sy(c,g):new FormData(c),wc(i,{pending:!0,data:T,method:c.method,action:d},d,T))},currentTarget:c}]})}}for(var sf=0;sf<$u.length;sf++){var lf=$u[sf],YT=lf.toLowerCase(),PT=lf[0].toUpperCase()+lf.slice(1);xn(YT,"on"+PT)}xn(Um,"onAnimationEnd"),xn(Bm,"onAnimationIteration"),xn(Zm,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(lT,"onTransitionRun"),xn(uT,"onTransitionStart"),xn(cT,"onTransitionCancel"),xn(Hm,"onTransitionEnd"),Oi("onMouseEnter",["mouseout","mouseover"]),Oi("onMouseLeave",["mouseout","mouseover"]),Oi("onPointerEnter",["pointerout","pointerover"]),Oi("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _o="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(" "),XT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_o));function ly(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var s=t[i],c=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&&c.isPropagationStopped())break e;d=b,c.currentTarget=D;try{d(c)}catch(Z){Es(Z)}c.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&&c.isPropagationStopped())break e;d=b,c.currentTarget=D;try{d(c)}catch(Z){Es(Z)}c.currentTarget=null,d=T}}}}function be(t,n){var i=n[xu];i===void 0&&(i=n[xu]=new Set);var s=t+"__bubble";i.has(s)||(uy(n,t,2,!1),i.add(s))}function uf(t,n,i){var s=0;n&&(s|=4),uy(i,t,s,n)}var cl="_reactListening"+Math.random().toString(36).slice(2);function cf(t){if(!t[cl]){t[cl]=!0,nm.forEach(function(i){i!=="selectionchange"&&(XT.has(i)||uf(i,!1,t),uf(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[cl]||(n[cl]=!0,uf("selectionchange",!1,n))}}function uy(t,n,i,s){switch(Uy(n)){case 2:var c=S_;break;case 8:c=T_;break;default:c=wf}i=c.bind(null,n,i,t),c=void 0,!Ru||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),s?c!==void 0?t.addEventListener(n,i,{capture:!0,passive:c}):t.addEventListener(n,i,!0):c!==void 0?t.addEventListener(n,i,{passive:c}):t.addEventListener(n,i,!1)}function ff(t,n,i,s,c){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===c)break;if(g===4)for(g=s.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;b!==null;){if(g=Ai(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}mm(function(){var D=d,Z=Au(i),P=[];e:{var j=$m.get(t);if(j!==void 0){var L=Ss,ee=t;switch(t){case"keypress":if(bs(i)===0)break e;case"keydown":case"keyup":L=ZS;break;case"focusin":ee="focus",L=Du;break;case"focusout":ee="blur",L=Du;break;case"beforeblur":case"afterblur":L=Du;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":L=ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=CS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=GS;break;case Um:case Bm:case Zm:L=MS;break;case Hm:L=YS;break;case"scroll":case"scrollend":L=zS;break;case"wheel":L=XS;break;case"copy":case"cut":case"paste":L=DS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=bm;break;case"toggle":case"beforetoggle":L=QS}var ue=(n&4)!==0,Ue=!ue&&(t==="scroll"||t==="scrollend"),A=ue?j!==null?j+"Capture":null:j;ue=[];for(var w=D,k;w!==null;){var q=w;if(k=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||k===null||A===null||(q=qr(w,A),q!=null&&ue.push(Eo(w,q,k))),Ue)break;w=w.return}0<ue.length&&(j=new L(j,ee,null,i,Z),P.push({event:j,listeners:ue}))}}if((n&7)===0){e:{if(j=t==="mouseover"||t==="pointerover",L=t==="mouseout"||t==="pointerout",j&&i!==zu&&(ee=i.relatedTarget||i.fromElement)&&(Ai(ee)||ee[zi]))break e;if((L||j)&&(j=Z.window===Z?Z:(j=Z.ownerDocument)?j.defaultView||j.parentWindow:window,L?(ee=i.relatedTarget||i.toElement,L=D,ee=ee?Ai(ee):null,ee!==null&&(Ue=f(ee),ue=ee.tag,ee!==Ue||ue!==5&&ue!==27&&ue!==6)&&(ee=null)):(L=null,ee=D),L!==ee)){if(ue=ym,q="onMouseLeave",A="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(ue=bm,q="onPointerLeave",A="onPointerEnter",w="pointer"),Ue=L==null?j:Gr(L),k=ee==null?j:Gr(ee),j=new ue(q,w+"leave",L,i,Z),j.target=Ue,j.relatedTarget=k,q=null,Ai(Z)===D&&(ue=new ue(A,w+"enter",ee,i,Z),ue.target=k,ue.relatedTarget=Ue,q=ue),Ue=q,L&&ee)t:{for(ue=KT,A=L,w=ee,k=0,q=A;q;q=ue(q))k++;q=0;for(var se=w;se;se=ue(se))q++;for(;0<k-q;)A=ue(A),k--;for(;0<q-k;)w=ue(w),q--;for(;k--;){if(A===w||w!==null&&A===w.alternate){ue=A;break t}A=ue(A),w=ue(w)}ue=null}else ue=null;L!==null&&cy(P,j,L,ue,!1),ee!==null&&Ue!==null&&cy(P,Ue,ee,ue,!0)}}e:{if(j=D?Gr(D):window,L=j.nodeName&&j.nodeName.toLowerCase(),L==="select"||L==="input"&&j.type==="file")var we=Am;else if(wm(j))if(Cm)we=rT;else{we=aT;var ie=nT}else L=j.nodeName,!L||L.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?D&&wu(D.elementType)&&(we=Am):we=iT;if(we&&(we=we(t,D))){zm(P,we,i,Z);break e}ie&&ie(t,j,D),t==="focusout"&&D&&j.type==="number"&&D.memoizedProps.value!=null&&Eu(j,"number",j.value)}switch(ie=D?Gr(D):window,t){case"focusin":(wm(ie)||ie.contentEditable==="true")&&(Vi=ie,Bu=D,Ir=null);break;case"focusout":Ir=Bu=Vi=null;break;case"mousedown":Zu=!0;break;case"contextmenu":case"mouseup":case"dragend":Zu=!1,Vm(P,i,Z);break;case"selectionchange":if(sT)break;case"keydown":case"keyup":Vm(P,i,Z)}var me;if(ju)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 ji?_m(t,i)&&(Se="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Se="onCompositionStart");Se&&(xm&&i.locale!=="ko"&&(ji||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&ji&&(me=pm()):(pa=Z,Ou="value"in pa?pa.value:pa.textContent,ji=!0)),ie=fl(D,Se),0<ie.length&&(Se=new vm(Se,t,null,i,Z),P.push({event:Se,listeners:ie}),me?Se.data=me:(me=Em(i),me!==null&&(Se.data=me)))),(me=JS?IS(t,i):WS(t,i))&&(Se=fl(D,"onBeforeInput"),0<Se.length&&(ie=new vm("onBeforeInput","beforeinput",null,i,Z),P.push({event:ie,listeners:Se}),ie.data=me)),qT(P,t,D,i,Z)}ly(P,n)})}function Eo(t,n,i){return{instance:t,listener:n,currentTarget:i}}function fl(t,n){for(var i=n+"Capture",s=[];t!==null;){var c=t,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=qr(t,i),c!=null&&s.unshift(Eo(t,c,d)),c=qr(t,n),c!=null&&s.push(Eo(t,c,d))),t.tag===3)return s;t=t.return}return[]}function KT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function cy(t,n,i,s,c){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,c?(D=qr(i,d),D!=null&&g.unshift(Eo(i,D,T))):c||(D=qr(i,d),D!=null&&g.push(Eo(i,D,T)))),i=i.return}g.length!==0&&t.push({event:n,listeners:g})}var QT=/\r\n?/g,FT=/\u0000|\uFFFD/g;function fy(t){return(typeof t=="string"?t:""+t).replace(QT,`
|
|
9
|
-
`).replace(FT,"")}function dy(t,n){return n=fy(n),fy(t)===n}function Le(t,n,i,s,c,d){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||ki(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&ki(t,""+s);break;case"className":ps(t,"class",s);break;case"tabIndex":ps(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(t,i,s);break;case"style":dm(t,s,d);break;case"data":if(n!=="object"){ps(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=ys(""+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"&&Le(t,n,"name",c.name,c,null),Le(t,n,"formEncType",c.formEncType,c,null),Le(t,n,"formMethod",c.formMethod,c,null),Le(t,n,"formTarget",c.formTarget,c,null)):(Le(t,n,"encType",c.encType,c,null),Le(t,n,"method",c.method,c,null),Le(t,n,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=ys(""+s),t.setAttribute(i,s);break;case"onClick":s!=null&&(t.onclick=Hn);break;case"onScroll":s!=null&&be("scroll",t);break;case"onScrollEnd":s!=null&&be("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(c.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=ys(""+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":be("beforetoggle",t),be("toggle",t),ms(t,"popover",s);break;case"xlinkActuate":Zn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Zn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Zn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Zn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Zn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Zn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Zn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Zn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Zn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ms(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=ES.get(i)||i,ms(t,i,s))}}function df(t,n,i,s,c,d){switch(i){case"style":dm(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(c.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof s=="string"?ki(t,s):(typeof s=="number"||typeof s=="bigint")&&ki(t,""+s);break;case"onScroll":s!=null&&be("scroll",t);break;case"onScrollEnd":s!=null&&be("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!am.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),n=i.slice(2,c?i.length-7:void 0),d=t[Ut]||null,d=d!=null?d[i]:null,typeof d=="function"&&t.removeEventListener(n,d,c),typeof s=="function")){typeof d!="function"&&d!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,s,c);break e}i in t?t[i]=s:s===!0?t.setAttribute(i,""):ms(t,i,s)}}}function Ct(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",t),be("load",t);var s=!1,c=!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":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Le(t,n,d,g,i,null)}}c&&Le(t,n,"srcSet",i.srcSet,i,null),s&&Le(t,n,"src",i.src,i,null);return;case"input":be("invalid",t);var b=d=g=c=null,T=null,D=null;for(s in i)if(i.hasOwnProperty(s)){var Z=i[s];if(Z!=null)switch(s){case"name":c=Z;break;case"type":g=Z;break;case"checked":T=Z;break;case"defaultChecked":D=Z;break;case"value":d=Z;break;case"defaultValue":b=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,n));break;default:Le(t,n,s,Z,i,null)}}lm(t,d,b,T,D,g,c,!1);return;case"select":be("invalid",t),s=g=d=null;for(c in i)if(i.hasOwnProperty(c)&&(b=i[c],b!=null))switch(c){case"value":d=b;break;case"defaultValue":g=b;break;case"multiple":s=b;default:Le(t,n,c,b,i,null)}n=d,i=g,t.multiple=!!s,n!=null?Mi(t,!!s,n,!1):i!=null&&Mi(t,!!s,i,!0);return;case"textarea":be("invalid",t),d=c=s=null;for(g in i)if(i.hasOwnProperty(g)&&(b=i[g],b!=null))switch(g){case"value":s=b;break;case"defaultValue":c=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Le(t,n,g,b,i,null)}cm(t,s,c,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":Le(t,n,T,s,i,null));return;case"dialog":be("beforetoggle",t),be("toggle",t),be("cancel",t),be("close",t);break;case"iframe":case"object":be("load",t);break;case"video":case"audio":for(s=0;s<_o.length;s++)be(_o[s],t);break;case"image":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"embed":case"source":case"link":be("error",t),be("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:Le(t,n,D,s,i,null)}return;default:if(wu(n)){for(Z in i)i.hasOwnProperty(Z)&&(s=i[Z],s!==void 0&&df(t,n,Z,s,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(s=i[b],s!=null&&Le(t,n,b,s,i,null))}function JT(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 c=null,d=null,g=null,b=null,T=null,D=null,Z=null;for(L in i){var P=i[L];if(i.hasOwnProperty(L)&&P!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":T=P;default:s.hasOwnProperty(L)||Le(t,n,L,null,s,P)}}for(var j in s){var L=s[j];if(P=i[j],s.hasOwnProperty(j)&&(L!=null||P!=null))switch(j){case"type":d=L;break;case"name":c=L;break;case"checked":D=L;break;case"defaultChecked":Z=L;break;case"value":g=L;break;case"defaultValue":b=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,n));break;default:L!==P&&Le(t,n,j,L,s,P)}}_u(t,g,b,T,D,Z,d,c);return;case"select":L=g=b=j=null;for(d in i)if(T=i[d],i.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":L=T;default:s.hasOwnProperty(d)||Le(t,n,d,null,s,T)}for(c in s)if(d=s[c],T=i[c],s.hasOwnProperty(c)&&(d!=null||T!=null))switch(c){case"value":j=d;break;case"defaultValue":b=d;break;case"multiple":g=d;default:d!==T&&Le(t,n,c,d,s,T)}n=b,i=g,s=L,j!=null?Mi(t,!!i,j,!1):!!s!=!!i&&(n!=null?Mi(t,!!i,n,!0):Mi(t,!!i,i?[]:"",!1));return;case"textarea":L=j=null;for(b in i)if(c=i[b],i.hasOwnProperty(b)&&c!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Le(t,n,b,null,s,c)}for(g in s)if(c=s[g],d=i[g],s.hasOwnProperty(g)&&(c!=null||d!=null))switch(g){case"value":j=c;break;case"defaultValue":L=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&Le(t,n,g,c,s,d)}um(t,j,L);return;case"option":for(var ee in i)j=i[ee],i.hasOwnProperty(ee)&&j!=null&&!s.hasOwnProperty(ee)&&(ee==="selected"?t.selected=!1:Le(t,n,ee,null,s,j));for(T in s)j=s[T],L=i[T],s.hasOwnProperty(T)&&j!==L&&(j!=null||L!=null)&&(T==="selected"?t.selected=j&&typeof j!="function"&&typeof j!="symbol":Le(t,n,T,j,s,L));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)j=i[ue],i.hasOwnProperty(ue)&&j!=null&&!s.hasOwnProperty(ue)&&Le(t,n,ue,null,s,j);for(D in s)if(j=s[D],L=i[D],s.hasOwnProperty(D)&&j!==L&&(j!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,n));break;default:Le(t,n,D,j,s,L)}return;default:if(wu(n)){for(var Ue in i)j=i[Ue],i.hasOwnProperty(Ue)&&j!==void 0&&!s.hasOwnProperty(Ue)&&df(t,n,Ue,void 0,s,j);for(Z in s)j=s[Z],L=i[Z],!s.hasOwnProperty(Z)||j===L||j===void 0&&L===void 0||df(t,n,Z,j,s,L);return}}for(var A in i)j=i[A],i.hasOwnProperty(A)&&j!=null&&!s.hasOwnProperty(A)&&Le(t,n,A,null,s,j);for(P in s)j=s[P],L=i[P],!s.hasOwnProperty(P)||j===L||j==null&&L==null||Le(t,n,P,j,s,L)}function hy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function IT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var c=i[s],d=c.transferSize,g=c.initiatorType,b=c.duration;if(d&&b&&hy(g)){for(g=0,b=c.responseEnd,s+=1;s<i.length;s++){var T=i[s],D=T.startTime;if(D>b)break;var Z=T.transferSize,P=T.initiatorType;Z&&hy(P)&&(T=T.responseEnd,g+=Z*(T<b?1:(b-D)/(T-D)))}if(--s,n+=8*(d+g)/(c.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 hf=null,mf=null;function dl(t){return t.nodeType===9?t:t.ownerDocument}function my(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 py(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 pf(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 gf=null;function WT(){var t=window.event;return t&&t.type==="popstate"?t===gf?!1:(gf=t,!0):(gf=null,!1)}var gy=typeof setTimeout=="function"?setTimeout:void 0,e_=typeof clearTimeout=="function"?clearTimeout:void 0,yy=typeof Promise=="function"?Promise:void 0,t_=typeof queueMicrotask=="function"?queueMicrotask:typeof yy<"u"?function(t){return yy.resolve(null).then(t).catch(n_)}:gy;function n_(t){setTimeout(function(){throw t})}function ka(t){return t==="head"}function vy(t,n){var i=n,s=0;do{var c=i.nextSibling;if(t.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"||i==="/&"){if(s===0){t.removeChild(c),ur(n);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")wo(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,wo(i);for(var d=i.firstChild;d;){var g=d.nextSibling,b=d.nodeName;d[$r]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=g}}else i==="body"&&wo(t.ownerDocument.body);i=c}while(i);ur(n)}function by(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 yf(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":yf(i),Su(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function a_(t,n,i,s){for(;t.nodeType===1;){var c=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[$r])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!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=dn(t.nextSibling),t===null)break}return null}function i_(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=dn(t.nextSibling),t===null))return null;return t}function xy(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=dn(t.nextSibling),t===null))return null;return t}function vf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function r_(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 dn(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 xf=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 dn(t.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}t=t.nextSibling}return null}function Ty(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 _y(t,n,i){switch(n=dl(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 wo(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Su(t)}var hn=new Map,Ey=new Set;function hl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var aa=K.d;K.d={f:o_,r:s_,D:l_,C:u_,L:c_,m:f_,X:h_,S:d_,M:m_};function o_(){var t=aa.f(),n=il();return t||n}function s_(t){var n=Ci(t);n!==null&&n.tag===5&&n.type==="form"?Hp(n):aa.r(t)}var or=typeof document>"u"?null:document;function wy(t,n,i){var s=or;if(s&&typeof n=="string"&&n){var c=rn(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Ey.has(c)||(Ey.add(c),t={rel:t,crossOrigin:i,href:n},s.querySelector(c)===null&&(n=s.createElement("link"),Ct(n,"link",t),bt(n),s.head.appendChild(n)))}}function l_(t){aa.D(t),wy("dns-prefetch",t,null)}function u_(t,n){aa.C(t,n),wy("preconnect",t,n)}function c_(t,n,i){aa.L(t,n,i);var s=or;if(s&&t&&n){var c='link[rel="preload"][as="'+rn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+rn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+rn(i.imageSizes)+'"]')):c+='[href="'+rn(t)+'"]';var d=c;switch(n){case"style":d=sr(t);break;case"script":d=lr(t)}hn.has(d)||(t=v({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),hn.set(d,t),s.querySelector(c)!==null||n==="style"&&s.querySelector(zo(d))||n==="script"&&s.querySelector(Ao(d))||(n=s.createElement("link"),Ct(n,"link",t),bt(n),s.head.appendChild(n)))}}function f_(t,n){aa.m(t,n);var i=or;if(i&&t){var s=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+rn(s)+'"][href="'+rn(t)+'"]',d=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=lr(t)}if(!hn.has(d)&&(t=v({rel:"modulepreload",href:t},n),hn.set(d,t),i.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ao(d)))return}s=i.createElement("link"),Ct(s,"link",t),bt(s),i.head.appendChild(s)}}}function d_(t,n,i){aa.S(t,n,i);var s=or;if(s&&t){var c=Ri(s).hoistableStyles,d=sr(t);n=n||"default";var g=c.get(d);if(!g){var b={loading:0,preload:null};if(g=s.querySelector(zo(d)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":n},i),(i=hn.get(d))&&Sf(t,i);var T=g=s.createElement("link");bt(T),Ct(T,"link",t),T._p=new Promise(function(D,Z){T.onload=D,T.onerror=Z}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,ml(g,n,s)}g={type:"stylesheet",instance:g,count:1,state:b},c.set(d,g)}}}function h_(t,n){aa.X(t,n);var i=or;if(i&&t){var s=Ri(i).hoistableScripts,c=lr(t),d=s.get(c);d||(d=i.querySelector(Ao(c)),d||(t=v({src:t,async:!0},n),(n=hn.get(c))&&Tf(t,n),d=i.createElement("script"),bt(d),Ct(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(c,d))}}function m_(t,n){aa.M(t,n);var i=or;if(i&&t){var s=Ri(i).hoistableScripts,c=lr(t),d=s.get(c);d||(d=i.querySelector(Ao(c)),d||(t=v({src:t,async:!0,type:"module"},n),(n=hn.get(c))&&Tf(t,n),d=i.createElement("script"),bt(d),Ct(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(c,d))}}function zy(t,n,i,s){var c=(c=fe.current)?hl(c):null;if(!c)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=sr(i.href),i=Ri(c).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=sr(i.href);var d=Ri(c).hoistableStyles,g=d.get(t);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(t,g),(d=c.querySelector(zo(t)))&&!d._p&&(g.instance=d,g.state.loading=5),hn.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},hn.set(t,i),d||p_(c,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=lr(i),i=Ri(c).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 sr(t){return'href="'+rn(t)+'"'}function zo(t){return'link[rel="stylesheet"]['+t+"]"}function Ay(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function p_(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}),Ct(n,"link",i),bt(n),t.head.appendChild(n))}function lr(t){return'[src="'+rn(t)+'"]'}function Ao(t){return"script[async]"+t}function Cy(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+rn(i.href)+'"]');if(s)return n.instance=s,bt(s),s;var c=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),bt(s),Ct(s,"style",c),ml(s,i.precedence,t),n.instance=s;case"stylesheet":c=sr(i.href);var d=t.querySelector(zo(c));if(d)return n.state.loading|=4,n.instance=d,bt(d),d;s=Ay(i),(c=hn.get(c))&&Sf(s,c),d=(t.ownerDocument||t).createElement("link"),bt(d);var g=d;return g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),Ct(d,"link",s),n.state.loading|=4,ml(d,i.precedence,t),n.instance=d;case"script":return d=lr(i.src),(c=t.querySelector(Ao(d)))?(n.instance=c,bt(c),c):(s=i,(c=hn.get(d))&&(s=v({},i),Tf(s,c)),t=t.ownerDocument||t,c=t.createElement("script"),bt(c),Ct(c,"link",s),t.head.appendChild(c),n.instance=c);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,ml(s,i.precedence,t));return n.instance}function ml(t,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,d=c,g=0;g<s.length;g++){var b=s[g];if(b.dataset.precedence===n)d=b;else if(d!==c)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 Tf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var pl=null;function Ry(t,n,i){if(pl===null){var s=new Map,c=pl=new Map;c.set(i,s)}else c=pl,s=c.get(i),s||(s=new Map,c.set(i,s));if(s.has(t))return s;for(s.set(t,null),i=i.getElementsByTagName(t),c=0;c<i.length;c++){var d=i[c];if(!(d[$r]||d[Et]||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 Oy(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function g_(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 My(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function y_(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 c=sr(s.href),d=n.querySelector(zo(c));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=gl.bind(t),n.then(t,t)),i.state.loading|=4,i.instance=d,bt(d);return}d=n.ownerDocument||n,s=Ay(s),(c=hn.get(c))&&Sf(s,c),d=d.createElement("link"),bt(d);var g=d;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),Ct(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=gl.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}var _f=0;function v_(t,n){return t.stylesheets&&t.count===0&&vl(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var s=setTimeout(function(){if(t.stylesheets&&vl(t,t.stylesheets),t.unsuspend){var d=t.unsuspend;t.unsuspend=null,d()}},6e4+n);0<t.imgBytes&&_f===0&&(_f=62500*IT());var c=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&vl(t,t.stylesheets),t.unsuspend)){var d=t.unsuspend;t.unsuspend=null,d()}},(t.imgBytes>_f?50:800)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function gl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var yl=null;function vl(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,yl=new Map,n.forEach(b_,t),yl=null,gl.call(t))}function b_(t,n){if(!(n.state.loading&4)){var i=yl.get(t);if(i)var s=i.get(null);else{i=new Map,yl.set(t,i);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var g=c[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),s=g)}s&&i.set(null,s)}c=n.instance,g=c.getAttribute("data-precedence"),d=i.get(g)||s,d===s&&i.set(null,c),i.set(g,c),this.count++,s=gl.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),d?d.parentNode.insertBefore(c,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),n.state.loading|=4}}var Co={$$typeof:V,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function x_(t,n,i,s,c,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=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function ky(t,n,i,s,c,d,g,b,T,D,Z,P){return t=new x_(t,n,i,g,T,D,Z,P,b),n=1,d===!0&&(n|=24),d=Ft(3,null,null,n),t.current=d,d.stateNode=t,n=tc(),n.refCount++,t.pooledCache=n,n.refCount++,d.memoizedState={element:s,isDehydrated:i,cache:n},rc(d),t}function Dy(t){return t?(t=Bi,t):Bi}function Ny(t,n,i,s,c,d){c=Dy(c),s.context===null?s.context=c:s.pendingContext=c,s=Sa(n),s.payload={element:i},d=d===void 0?null:d,d!==null&&(s.callback=d),i=Ta(t,s,n),i!==null&&(qt(i,t,n),ro(i,t,n))}function jy(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function Ef(t,n){jy(t,n),(t=t.alternate)&&jy(t,n)}function Vy(t){if(t.tag===13||t.tag===31){var n=ni(t,67108864);n!==null&&qt(n,t,67108864),Ef(t,67108864)}}function Ly(t){if(t.tag===13||t.tag===31){var n=tn();n=vu(n);var i=ni(t,n);i!==null&&qt(i,t,n),Ef(t,n)}}var bl=!0;function S_(t,n,i,s){var c=U.T;U.T=null;var d=K.p;try{K.p=2,wf(t,n,i,s)}finally{K.p=d,U.T=c}}function T_(t,n,i,s){var c=U.T;U.T=null;var d=K.p;try{K.p=8,wf(t,n,i,s)}finally{K.p=d,U.T=c}}function wf(t,n,i,s){if(bl){var c=zf(s);if(c===null)ff(t,n,s,xl,i),By(t,s);else if(E_(c,t,n,i,s))s.stopPropagation();else if(By(t,s),n&4&&-1<__.indexOf(t)){for(;c!==null;){var d=Ci(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=Ja(d.pendingLanes);if(g!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var T=1<<31-Kt(g);b.entanglements[1]|=T,g&=~T}Nn(d),(Ae&6)===0&&(nl=Fe()+500,To(0))}}break;case 31:case 13:b=ni(d,2),b!==null&&qt(b,d,2),il(),Ef(d,2)}if(d=zf(s),d===null&&ff(t,n,s,xl,i),d===c)break;c=d}c!==null&&s.stopPropagation()}else ff(t,n,s,null,i)}}function zf(t){return t=Au(t),Af(t)}var xl=null;function Af(t){if(xl=null,t=Ai(t),t!==null){var n=f(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=u(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 xl=t,null}function Uy(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(us()){case Vr:return 2;case Lr:return 8;case _t:case bn:return 32;case wi:return 268435456;default:return 32}default:return 32}}var Cf=!1,Da=null,Na=null,ja=null,Ro=new Map,Oo=new Map,Va=[],__="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 By(t,n){switch(t){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Na=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":Ro.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(n.pointerId)}}function Mo(t,n,i,s,c,d){return t===null||t.nativeEvent!==d?(t={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},n!==null&&(n=Ci(n),n!==null&&Vy(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function E_(t,n,i,s,c){switch(n){case"focusin":return Da=Mo(Da,t,n,i,s,c),!0;case"dragenter":return Na=Mo(Na,t,n,i,s,c),!0;case"mouseover":return ja=Mo(ja,t,n,i,s,c),!0;case"pointerover":var d=c.pointerId;return Ro.set(d,Mo(Ro.get(d)||null,t,n,i,s,c)),!0;case"gotpointercapture":return d=c.pointerId,Oo.set(d,Mo(Oo.get(d)||null,t,n,i,s,c)),!0}return!1}function Zy(t){var n=Ai(t.target);if(n!==null){var i=f(n);if(i!==null){if(n=i.tag,n===13){if(n=u(i),n!==null){t.blockedOn=n,em(t.priority,function(){Ly(i)});return}}else if(n===31){if(n=h(i),n!==null){t.blockedOn=n,em(t.priority,function(){Ly(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 Sl(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=zf(t.nativeEvent);if(i===null){i=t.nativeEvent;var s=new i.constructor(i.type,i);zu=s,i.target.dispatchEvent(s),zu=null}else return n=Ci(i),n!==null&&Vy(n),t.blockedOn=i,!1;n.shift()}return!0}function Hy(t,n,i){Sl(t)&&i.delete(n)}function w_(){Cf=!1,Da!==null&&Sl(Da)&&(Da=null),Na!==null&&Sl(Na)&&(Na=null),ja!==null&&Sl(ja)&&(ja=null),Ro.forEach(Hy),Oo.forEach(Hy)}function Tl(t,n){t.blockedOn===n&&(t.blockedOn=null,Cf||(Cf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,w_)))}var _l=null;function $y(t){_l!==t&&(_l=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_l===t&&(_l=null);for(var n=0;n<t.length;n+=3){var i=t[n],s=t[n+1],c=t[n+2];if(typeof s!="function"){if(Af(s||i)===null)continue;break}var d=Ci(i);d!==null&&(t.splice(n,3),n-=3,wc(d,{pending:!0,data:c,method:i.method,action:s},s,c))}}))}function ur(t){function n(T){return Tl(T,t)}Da!==null&&Tl(Da,t),Na!==null&&Tl(Na,t),ja!==null&&Tl(ja,t),Ro.forEach(n),Oo.forEach(n);for(var i=0;i<Va.length;i++){var s=Va[i];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Va.length&&(i=Va[0],i.blockedOn===null);)Zy(i),i.blockedOn===null&&Va.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var c=i[s],d=i[s+1],g=c[Ut]||null;if(typeof d=="function")g||$y(i);else if(g){var b=null;if(d&&d.hasAttribute("formAction")){if(c=d,g=d[Ut]||null)b=g.formAction;else if(Af(c)!==null)continue}else b=g.action;typeof b=="function"?i[s+1]=b:(i.splice(s,3),s-=3),$y(i)}}}function Gy(){function t(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(g){return c=g})},focusReset:"manual",scroll:"manual"})}function n(){c!==null&&(c(),c=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,c=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),c!==null&&(c(),c=null)}}}function Rf(t){this._internalRoot=t}El.prototype.render=Rf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(o(409));var i=n.current,s=tn();Ny(i,s,t,n,null,null)},El.prototype.unmount=Rf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Ny(t.current,2,null,t,null,null),il(),n[zi]=null}};function El(t){this._internalRoot=t}El.prototype.unstable_scheduleHydration=function(t){if(t){var n=Wh();t={blockedOn:null,target:t,priority:n};for(var i=0;i<Va.length&&n!==0&&n<Va[i].priority;i++);Va.splice(i,0,t),i===0&&Zy(t)}};var qy=a.version;if(qy!=="19.2.4")throw Error(o(527,qy,"19.2.4"));K.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 z_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{Br=wl.inject(z_),Xt=wl}catch{}}return Do.createRoot=function(t,n){if(!l(t))throw Error(o(299));var i=!1,s="",c=Jp,d=Ip,g=Wp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),n=ky(t,1,!1,null,null,i,s,null,c,d,g,Gy),t[zi]=n.current,cf(t),new Rf(n)},Do.hydrateRoot=function(t,n,i){if(!l(t))throw Error(o(299));var s=!1,c="",d=Jp,g=Ip,b=Wp,T=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=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=ky(t,1,!0,n,i??null,s,c,T,d,g,b,Gy),n.context=Dy(null),i=n.current,s=tn(),s=vu(s),c=Sa(s),c.callback=null,Ta(i,c,s),i=s,n.current.lanes=i,Hr(n,i),Nn(n),t[zi]=n.current,cf(t),new El(n)},Do.version="19.2.4",Do}var ev;function L_(){if(ev)return kf.exports;ev=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(),kf.exports=V_(),kf.exports}var U_=L_();var tv="popstate";function B_(e={}){function a(o,l){let{pathname:f,search:u,hash:h}=o.location;return md("",{pathname:f,search:u,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(o,l){return typeof l=="string"?l:Yo(l)}return H_(a,r,null,e)}function Xe(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function wn(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Z_(){return Math.random().toString(36).substring(2,10)}function nv(e,a){return{usr:e.state,key:e.key,idx:a}}function md(e,a,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?Ar(a):a,state:r,key:a&&a.key||o||Z_()}}function Yo({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 Ar(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 H_(e,a,r,o={}){let{window:l=document.defaultView,v5Compat:f=!1}=o,u=l.history,h="POP",m=null,p=y();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function y(){return(u.state||{idx:null}).idx}function v(){h="POP";let R=y(),B=R==null?null:R-p;p=R,m&&m({action:h,location:C.location,delta:B})}function x(R,B){h="PUSH";let M=md(C.location,R,B);p=y()+1;let V=nv(M,p),N=C.createHref(M);try{u.pushState(V,"",N)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;l.location.assign(N)}f&&m&&m({action:h,location:C.location,delta:1})}function S(R,B){h="REPLACE";let M=md(C.location,R,B);p=y();let V=nv(M,p),N=C.createHref(M);u.replaceState(V,"",N),f&&m&&m({action:h,location:C.location,delta:0})}function O(R){return $_(R)}let C={get action(){return h},get location(){return e(l,u)},listen(R){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(tv,v),m=R,()=>{l.removeEventListener(tv,v),m=null}},createHref(R){return a(l,R)},createURL:O,encodeLocation(R){let B=O(R);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:x,replace:S,go(R){return u.go(R)}};return C}function $_(e,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:Yo(e);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function ob(e,a,r="/"){return G_(e,a,r,!1)}function G_(e,a,r,o){let l=typeof a=="string"?Ar(a):a,f=ca(l.pathname||"/",r);if(f==null)return null;let u=sb(e);q_(u);let h=null;for(let m=0;h==null&&m<u.length;++m){let p=tE(f);h=W_(u[m],p,o)}return h}function sb(e,a=[],r=[],o="",l=!1){let f=(u,h,m=l,p)=>{let y={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:h,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&m)return;Xe(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=la([o,y.relativePath]),x=r.concat(y);u.children&&u.children.length>0&&(Xe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),sb(u.children,a,x,v,m)),!(u.path==null&&!u.index)&&a.push({path:v,score:J_(v,u.index),routesMeta:x})};return e.forEach((u,h)=>{if(u.path===""||!u.path?.includes("?"))f(u,h);else for(let m of lb(u.path))f(u,h,!0,m)}),a}function lb(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 u=lb(o.join("/")),h=[];return h.push(...u.map(m=>m===""?f:[f,m].join("/"))),l&&h.push(...u),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function q_(e){e.sort((a,r)=>a.score!==r.score?r.score-a.score:I_(a.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var Y_=/^:[\w-]+$/,P_=3,X_=2,K_=1,Q_=10,F_=-2,av=e=>e==="*";function J_(e,a){let r=e.split("/"),o=r.length;return r.some(av)&&(o+=F_),a&&(o+=X_),r.filter(l=>!av(l)).reduce((l,f)=>l+(Y_.test(f)?P_:f===""?K_:Q_),o)}function I_(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 W_(e,a,r=!1){let{routesMeta:o}=e,l={},f="/",u=[];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=Xl({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},y),x=m.route;if(!v&&p&&r&&!o[o.length-1].route.index&&(v=Xl({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(l,v.params),u.push({params:l,pathname:la([f,v.pathname]),pathnameBase:rE(la([f,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(f=la([f,v.pathnameBase]))}return u}function Xl(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=eE(e.path,e.caseSensitive,e.end),l=a.match(r);if(!l)return null;let f=l[0],u=f.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:o.reduce((p,{paramName:y,isOptional:v},x)=>{if(y==="*"){let O=h[x]||"";u=f.slice(0,f.length-O.length).replace(/(.)\/+$/,"$1")}const S=h[x];return v&&!S?p[y]=void 0:p[y]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:u,pattern:e}}function eE(e,a=!1,r=!0){wn(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,(u,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 tE(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return wn(!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 ca(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 nE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function aE(e,a="/"){let{pathname:r,search:o="",hash:l=""}=typeof e=="string"?Ar(e):e,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=iv(r.substring(1),"/"):f=iv(r,a)):f=a,{pathname:f,search:oE(o),hash:sE(l)}}function iv(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 Vf(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 iE(e){return e.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function eh(e){let a=iE(e);return a.map((r,o)=>o===a.length-1?r.pathname:r.pathnameBase)}function th(e,a,r,o=!1){let l;typeof e=="string"?l=Ar(e):(l={...e},Xe(!l.pathname||!l.pathname.includes("?"),Vf("?","pathname","search",l)),Xe(!l.pathname||!l.pathname.includes("#"),Vf("#","pathname","hash",l)),Xe(!l.search||!l.search.includes("#"),Vf("#","search","hash",l)));let f=e===""||l.pathname==="",u=f?"/":l.pathname,h;if(u==null)h=r;else{let v=a.length-1;if(!o&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),v-=1;l.pathname=x.join("/")}h=v>=0?a[v]:"/"}let m=aE(l,h),p=u&&u!=="/"&&u.endsWith("/"),y=(f||u===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var la=e=>e.join("/").replace(/\/\/+/g,"/"),rE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lE=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 uE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function cE(e){return e.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ub=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cb(e,a){let r=e;if(typeof r!="string"||!nE.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,l=!1;if(ub)try{let f=new URL(window.location.href),u=r.startsWith("//")?new URL(f.protocol+r):new URL(r),h=ca(u.pathname,a);u.origin===f.origin&&h!=null?r=h+u.search+u.hash:l=!0}catch{wn(!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 fb=["POST","PUT","PATCH","DELETE"];new Set(fb);var fE=["GET",...fb];new Set(fE);var Cr=E.createContext(null);Cr.displayName="DataRouter";var ou=E.createContext(null);ou.displayName="DataRouterState";var dE=E.createContext(!1),db=E.createContext({isTransitioning:!1});db.displayName="ViewTransition";var hE=E.createContext(new Map);hE.displayName="Fetchers";var mE=E.createContext(null);mE.displayName="Await";var nn=E.createContext(null);nn.displayName="Navigation";var ts=E.createContext(null);ts.displayName="Location";var Bn=E.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var nh=E.createContext(null);nh.displayName="RouteError";var hb="REACT_ROUTER_ERROR",pE="REDIRECT",gE="ROUTE_ERROR_RESPONSE";function yE(e){if(e.startsWith(`${hb}:${pE}:{`))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 vE(e){if(e.startsWith(`${hb}:${gE}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new lE(a.status,a.statusText,a.data)}catch{}}function bE(e,{relative:a}={}){Xe(Rr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=E.useContext(nn),{hash:l,pathname:f,search:u}=ns(e,{relative:a}),h=f;return r!=="/"&&(h=f==="/"?r:la([r,f])),o.createHref({pathname:h,search:u,hash:l})}function Rr(){return E.useContext(ts)!=null}function zn(){return Xe(Rr(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ts).location}var mb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pb(e){E.useContext(nn).static||E.useLayoutEffect(e)}function ah(){let{isDataRoute:e}=E.useContext(Bn);return e?kE():xE()}function xE(){Xe(Rr(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Cr),{basename:a,navigator:r}=E.useContext(nn),{matches:o}=E.useContext(Bn),{pathname:l}=zn(),f=JSON.stringify(eh(o)),u=E.useRef(!1);return pb(()=>{u.current=!0}),E.useCallback((m,p={})=>{if(wn(u.current,mb),!u.current)return;if(typeof m=="number"){r.go(m);return}let y=th(m,JSON.parse(f),l,p.relative==="path");e==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:la([a,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[a,r,f,l,e])}E.createContext(null);function ns(e,{relative:a}={}){let{matches:r}=E.useContext(Bn),{pathname:o}=zn(),l=JSON.stringify(eh(r));return E.useMemo(()=>th(e,JSON.parse(l),o,a==="path"),[e,l,o,a])}function SE(e,a){return gb(e,a)}function gb(e,a,r,o,l){Xe(Rr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=E.useContext(nn),{matches:u}=E.useContext(Bn),h=u[u.length-1],m=h?h.params:{},p=h?h.pathname:"/",y=h?h.pathnameBase:"/",v=h&&h.route;{let M=v&&v.path||"";vb(p,!v||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${M}">) 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
|
-
|
|
11
|
-
Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let x=zn(),S;if(a){let M=typeof a=="string"?Ar(a):a;Xe(y==="/"||M.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 "${M.pathname}" was given in the \`location\` prop.`),S=M}else S=x;let O=S.pathname||"/",C=O;if(y!=="/"){let M=y.replace(/^\//,"").split("/");C="/"+O.replace(/^\//,"").split("/").slice(M.length).join("/")}let R=ob(e,{pathname:C});wn(v||R!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),wn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 B=zE(R&&R.map(M=>Object.assign({},M,{params:Object.assign({},m,M.params),pathname:la([y,f.encodeLocation?f.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?y:la([y,f.encodeLocation?f.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),u,r,o,l);return a&&B?E.createElement(ts.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},B):B}function TE(){let e=ME(),a=uE(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},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:f},"ErrorBoundary")," or"," ",E.createElement("code",{style:f},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},a),r?E.createElement("pre",{style:l},r):null,u)}var _E=E.createElement(TE,null),yb=class extends E.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=vE(e.digest);r&&(e=r)}let a=e!==void 0?E.createElement(Bn.Provider,{value:this.props.routeContext},E.createElement(nh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?E.createElement(EE,{error:e},a):a}};yb.contextType=dE;var Lf=new WeakMap;function EE({children:e,error:a}){let{basename:r}=E.useContext(nn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let o=yE(a.digest);if(o){let l=Lf.get(a);if(l)throw l;let f=cb(o.location,r);if(ub&&!Lf.get(a))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw Lf.set(a,u),u}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return e}function wE({routeContext:e,match:a,children:r}){let o=E.useContext(Cr);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),E.createElement(Bn.Provider,{value:e},r)}function zE(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,u=r?.errors;if(u!=null){let y=f.findIndex(v=>v.route.id&&u?.[v.route.id]!==void 0);Xe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).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:x,errors:S}=r,O=v.route.loader&&!x.hasOwnProperty(v.route.id)&&(!S||S[v.route.id]===void 0);if(v.route.lazy||O){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:cE(r.matches),errorInfo:v})}:void 0;return f.reduceRight((y,v,x)=>{let S,O=!1,C=null,R=null;r&&(S=u&&v.route.id?u[v.route.id]:void 0,C=v.route.errorElement||_E,h&&(m<0&&x===0?(vb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,R=null):m===x&&(O=!0,R=v.route.hydrateFallbackElement||null)));let B=a.concat(f.slice(0,x+1)),M=()=>{let V;return S?V=C:O?V=R:v.route.Component?V=E.createElement(v.route.Component,null):v.route.element?V=v.route.element:V=y,E.createElement(wE,{match:v,routeContext:{outlet:y,matches:B,isDataRoute:r!=null},children:V})};return r&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?E.createElement(yb,{location:r.location,revalidation:r.revalidation,component:C,error:S,children:M(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:p}):M()},null)}function ih(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AE(e){let a=E.useContext(Cr);return Xe(a,ih(e)),a}function CE(e){let a=E.useContext(ou);return Xe(a,ih(e)),a}function RE(e){let a=E.useContext(Bn);return Xe(a,ih(e)),a}function rh(e){let a=RE(e),r=a.matches[a.matches.length-1];return Xe(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function OE(){return rh("useRouteId")}function ME(){let e=E.useContext(nh),a=CE("useRouteError"),r=rh("useRouteError");return e!==void 0?e:a.errors?.[r]}function kE(){let{router:e}=AE("useNavigate"),a=rh("useNavigate"),r=E.useRef(!1);return pb(()=>{r.current=!0}),E.useCallback(async(l,f={})=>{wn(r.current,mb),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:a,...f}))},[e,a])}var rv={};function vb(e,a,r){!a&&!rv[e]&&(rv[e]=!0,wn(!1,r))}E.memo(DE);function DE({routes:e,future:a,state:r,onError:o}){return gb(e,void 0,r,o,a)}function bb({to:e,replace:a,state:r,relative:o}){Xe(Rr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=E.useContext(nn);wn(!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}=E.useContext(Bn),{pathname:u}=zn(),h=ah(),m=th(e,eh(f),u,o==="path"),p=JSON.stringify(m);return E.useEffect(()=>{h(JSON.parse(p),{replace:a,state:r,relative:o})},[h,p,o,a,r]),null}function Ba(e){Xe(!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 NE({basename:e="/",children:a=null,location:r,navigationType:o="POP",navigator:l,static:f=!1,unstable_useTransitions:u}){Xe(!Rr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),m=E.useMemo(()=>({basename:h,navigator:l,static:f,unstable_useTransitions:u,future:{}}),[h,l,f,u]);typeof r=="string"&&(r=Ar(r));let{pathname:p="/",search:y="",hash:v="",state:x=null,key:S="default"}=r,O=E.useMemo(()=>{let C=ca(p,h);return C==null?null:{location:{pathname:C,search:y,hash:v,state:x,key:S},navigationType:o}},[h,p,y,v,x,S,o]);return wn(O!=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.`),O==null?null:E.createElement(nn.Provider,{value:m},E.createElement(ts.Provider,{children:a,value:O}))}function ov({children:e,location:a}){return SE(pd(e),a)}function pd(e,a=[]){let r=[];return E.Children.forEach(e,(o,l)=>{if(!E.isValidElement(o))return;let f=[...a,l];if(o.type===E.Fragment){r.push.apply(r,pd(o.props.children,f));return}Xe(o.type===Ba,`[${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>`),Xe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let u={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&&(u.children=pd(o.props.children,f)),r.push(u)}),r}var Zl="get",Hl="application/x-www-form-urlencoded";function su(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function jE(e){return su(e)&&e.tagName.toLowerCase()==="button"}function VE(e){return su(e)&&e.tagName.toLowerCase()==="form"}function LE(e){return su(e)&&e.tagName.toLowerCase()==="input"}function UE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function BE(e,a){return e.button===0&&(!a||a==="_self")&&!UE(e)}var zl=null;function ZE(){if(zl===null)try{new FormData(document.createElement("form"),0),zl=!1}catch{zl=!0}return zl}var HE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Uf(e){return e!=null&&!HE.has(e)?(wn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hl}"`),null):e}function $E(e,a){let r,o,l,f,u;if(VE(e)){let h=e.getAttribute("action");o=h?ca(h,a):null,r=e.getAttribute("method")||Zl,l=Uf(e.getAttribute("enctype"))||Hl,f=new FormData(e)}else if(jE(e)||LE(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?ca(m,a):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||Zl,l=Uf(e.getAttribute("formenctype"))||Uf(h.getAttribute("enctype"))||Hl,f=new FormData(h,e),!ZE()){let{name:p,type:y,value:v}=e;if(y==="image"){let x=p?`${p}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else p&&f.append(p,v)}}else{if(su(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Zl,o=null,l=Hl,u=e}return f&&l==="text/plain"&&(u=f,f=void 0),{action:o,method:r.toLowerCase(),encType:l,formData:f,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function oh(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function GE(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&&ca(l.pathname,a)==="/"?l.pathname=`${a.replace(/\/$/,"")}/_root.${o}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${o}`,l}async function qE(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 YE(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 PE(e,a,r){let o=await Promise.all(e.map(async l=>{let f=a.routes[l.route.id];if(f){let u=await qE(f,r);return u.links?u.links():[]}return[]}));return FE(o.flat(1).filter(YE).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function sv(e,a,r,o,l,f){let u=(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)=>u(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(u(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 XE(e,a,{includeHydrateFallback:r}={}){return KE(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 KE(e){return[...new Set(e)]}function QE(e){let a={},r=Object.keys(e).sort();for(let o of r)a[o]=e[o];return a}function FE(e,a){let r=new Set;return new Set(a),e.reduce((o,l)=>{let f=JSON.stringify(QE(l));return r.has(f)||(r.add(f),o.push({key:f,link:l})),o},[])}function xb(){let e=E.useContext(Cr);return oh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function JE(){let e=E.useContext(ou);return oh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var sh=E.createContext(void 0);sh.displayName="FrameworkContext";function Sb(){let e=E.useContext(sh);return oh(e,"You must render this element inside a <HydratedRouter> element"),e}function IE(e,a){let r=E.useContext(sh),[o,l]=E.useState(!1),[f,u]=E.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:v}=a,x=E.useRef(null);E.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let C=B=>{B.forEach(M=>{u(M.isIntersecting)})},R=new IntersectionObserver(C,{threshold:.5});return x.current&&R.observe(x.current),()=>{R.disconnect()}}},[e]),E.useEffect(()=>{if(o){let C=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(C)}}},[o]);let S=()=>{l(!0)},O=()=>{l(!1),u(!1)};return r?e!=="intent"?[f,x,{}]:[f,x,{onFocus:No(h,S),onBlur:No(m,O),onMouseEnter:No(p,S),onMouseLeave:No(y,O),onTouchStart:No(v,S)}]:[!1,x,{}]}function No(e,a){return r=>{e&&e(r),r.defaultPrevented||a(r)}}function WE({page:e,...a}){let{router:r}=xb(),o=E.useMemo(()=>ob(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?E.createElement(tw,{page:e,matches:o,...a}):null}function ew(e){let{manifest:a,routeModules:r}=Sb(),[o,l]=E.useState([]);return E.useEffect(()=>{let f=!1;return PE(e,a,r).then(u=>{f||l(u)}),()=>{f=!0}},[e,a,r]),o}function tw({page:e,matches:a,...r}){let o=zn(),{future:l,manifest:f,routeModules:u}=Sb(),{basename:h}=xb(),{loaderData:m,matches:p}=JE(),y=E.useMemo(()=>sv(e,a,p,f,o,"data"),[e,a,p,f,o]),v=E.useMemo(()=>sv(e,a,p,f,o,"assets"),[e,a,p,f,o]),x=E.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let C=new Set,R=!1;if(a.forEach(M=>{let V=f.routes[M.route.id];!V||!V.hasLoader||(!y.some(N=>N.route.id===M.route.id)&&M.route.id in m&&u[M.route.id]?.shouldRevalidate||V.hasClientLoader?R=!0:C.add(M.route.id))}),C.size===0)return[];let B=GE(e,h,l.unstable_trailingSlashAwareDataRequests,"data");return R&&C.size>0&&B.searchParams.set("_routes",a.filter(M=>C.has(M.route.id)).map(M=>M.route.id).join(",")),[B.pathname+B.search]},[h,l.unstable_trailingSlashAwareDataRequests,m,o,f,y,a,e,u]),S=E.useMemo(()=>XE(v,f),[v,f]),O=ew(v);return E.createElement(E.Fragment,null,x.map(C=>E.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),S.map(C=>E.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),O.map(({key:C,link:R})=>E.createElement("link",{key:C,nonce:r.nonce,...R,crossOrigin:R.crossOrigin??r.crossOrigin})))}function nw(...e){return a=>{e.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aw&&(window.__reactRouterVersion="7.13.0")}catch{}function iw({basename:e,children:a,unstable_useTransitions:r,window:o}){let l=E.useRef();l.current==null&&(l.current=B_({window:o,v5Compat:!0}));let f=l.current,[u,h]=E.useState({action:f.action,location:f.location}),m=E.useCallback(p=>{r===!1?h(p):E.startTransition(()=>h(p))},[r]);return E.useLayoutEffect(()=>f.listen(m),[f,m]),E.createElement(NE,{basename:e,children:a,location:u.location,navigationType:u.action,navigator:f,unstable_useTransitions:r})}var Tb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lh=E.forwardRef(function({onClick:a,discover:r="render",prefetch:o="none",relative:l,reloadDocument:f,replace:u,state:h,target:m,to:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:x,...S},O){let{basename:C,unstable_useTransitions:R}=E.useContext(nn),B=typeof p=="string"&&Tb.test(p),M=cb(p,C);p=M.to;let V=bE(p,{relative:l}),[N,$,I]=IE(o,S),F=lw(p,{replace:u,state:h,target:m,preventScrollReset:y,relative:l,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:R});function Y(ye){a&&a(ye),ye.defaultPrevented||F(ye)}let W=E.createElement("a",{...S,...I,href:M.absoluteURL||V,onClick:M.isExternal||f?a:Y,ref:nw(O,$),target:m,"data-discover":!B&&r==="render"?"true":void 0});return N&&!B?E.createElement(E.Fragment,null,W,E.createElement(WE,{page:V})):W});lh.displayName="Link";var rw=E.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:o="",end:l=!1,style:f,to:u,viewTransition:h,children:m,...p},y){let v=ns(u,{relative:p.relative}),x=zn(),S=E.useContext(ou),{navigator:O,basename:C}=E.useContext(nn),R=S!=null&&hw(v)&&h===!0,B=O.encodeLocation?O.encodeLocation(v).pathname:v.pathname,M=x.pathname,V=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(M=M.toLowerCase(),V=V?V.toLowerCase():null,B=B.toLowerCase()),V&&C&&(V=ca(V,C)||V);const N=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let $=M===B||!l&&M.startsWith(B)&&M.charAt(N)==="/",I=V!=null&&(V===B||!l&&V.startsWith(B)&&V.charAt(B.length)==="/"),F={isActive:$,isPending:I,isTransitioning:R},Y=$?a:void 0,W;typeof o=="function"?W=o(F):W=[o,$?"active":null,I?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let ye=typeof f=="function"?f(F):f;return E.createElement(lh,{...p,"aria-current":Y,className:W,ref:y,style:ye,to:u,viewTransition:h},typeof m=="function"?m(F):m)});rw.displayName="NavLink";var ow=E.forwardRef(({discover:e="render",fetcherKey:a,navigate:r,reloadDocument:o,replace:l,state:f,method:u=Zl,action:h,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:x,...S},O)=>{let{unstable_useTransitions:C}=E.useContext(nn),R=fw(),B=dw(h,{relative:p}),M=u.toLowerCase()==="get"?"get":"post",V=typeof h=="string"&&Tb.test(h),N=$=>{if(m&&m($),$.defaultPrevented)return;$.preventDefault();let I=$.nativeEvent.submitter,F=I?.getAttribute("formmethod")||u,Y=()=>R(I||$.currentTarget,{fetcherKey:a,method:F,navigate:r,replace:l,state:f,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:x});C&&r!==!1?E.startTransition(()=>Y()):Y()};return E.createElement("form",{ref:O,method:M,action:B,onSubmit:o?m:N,...S,"data-discover":!V&&e==="render"?"true":void 0})});ow.displayName="Form";function sw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _b(e){let a=E.useContext(Cr);return Xe(a,sw(e)),a}function lw(e,{target:a,replace:r,state:o,preventScrollReset:l,relative:f,viewTransition:u,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let p=ah(),y=zn(),v=ns(e,{relative:f});return E.useCallback(x=>{if(BE(x,a)){x.preventDefault();let S=r!==void 0?r:Yo(y)===Yo(v),O=()=>p(e,{replace:S,state:o,preventScrollReset:l,relative:f,viewTransition:u,unstable_defaultShouldRevalidate:h});m?E.startTransition(()=>O()):O()}},[y,p,v,r,o,a,e,l,f,u,h,m])}var uw=0,cw=()=>`__${String(++uw)}__`;function fw(){let{router:e}=_b("useSubmit"),{basename:a}=E.useContext(nn),r=OE(),o=e.fetch,l=e.navigate;return E.useCallback(async(f,u={})=>{let{action:h,method:m,encType:p,formData:y,body:v}=$E(f,a);if(u.navigate===!1){let x=u.fetcherKey||cw();await o(x,r,u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:v,formMethod:u.method||m,formEncType:u.encType||p,flushSync:u.flushSync})}else await l(u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:v,formMethod:u.method||m,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[o,l,a,r])}function dw(e,{relative:a}={}){let{basename:r}=E.useContext(nn),o=E.useContext(Bn);Xe(o,"useFormAction must be used inside a RouteContext");let[l]=o.matches.slice(-1),f={...ns(e||".",{relative:a})},u=zn();if(e==null){f.search=u.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:la([r,f.pathname])),Yo(f)}function hw(e,{relative:a}={}){let r=E.useContext(db);Xe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=_b("useViewTransitionState"),l=ns(e,{relative:a});if(!r.isTransitioning)return!1;let f=ca(r.currentLocation.pathname,o)||r.currentLocation.pathname,u=ca(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Xl(l.pathname,u)!=null||Xl(l.pathname,f)!=null}const Eb=(...e)=>e.filter((a,r,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===r).join(" ").trim();const mw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const pw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,o)=>o?o.toUpperCase():r.toLowerCase());const lv=e=>{const a=pw(e);return a.charAt(0).toUpperCase()+a.slice(1)};var gw={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 yw=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};const vw=E.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:f,iconNode:u,...h},m)=>E.createElement("svg",{ref:m,...gw,width:a,height:a,stroke:e,strokeWidth:o?Number(r)*24/Number(a):r,className:Eb("lucide",l),...!f&&!yw(h)&&{"aria-hidden":"true"},...h},[...u.map(([p,y])=>E.createElement(p,y)),...Array.isArray(f)?f:[f]]));const St=(e,a)=>{const r=E.forwardRef(({className:o,...l},f)=>E.createElement(vw,{ref:f,iconNode:a,className:Eb(`lucide-${mw(lv(e))}`,`lucide-${e}`,o),...l}));return r.displayName=lv(e),r};const bw=[["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"}]],wb=St("activity",bw);const xw=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Sw=St("arrow-down",xw);const Tw=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],_w=St("arrow-up",Tw);const Ew=[["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"}]],ww=St("box",Ew);const zw=[["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"}]],Aw=St("brain",zw);const Cw=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],zb=St("chart-column",Cw);const Rw=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ow=St("clock",Rw);const Mw=[["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"}]],kw=St("cpu",Mw);const Dw=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Nw=St("database",Dw);const jw=[["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"}]],Vw=St("file-text",jw);const Lw=[["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"}]],Uw=St("layout-dashboard",Lw);const Bw=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Zw=St("log-out",Bw);const Hw=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],$w=St("message-square",Hw);const Gw=[["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"}]],qw=St("moon",Gw);const Yw=[["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"}]],Pw=St("refresh-cw",Yw);const Xw=[["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"}]],Kw=St("settings",Xw);const Qw=[["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"}]],Fw=St("sun",Qw);const Jw=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Iw=St("terminal",Jw);var Bf={exports:{}},Zf={};var uv;function Ww(){if(uv)return Zf;uv=1;var e=ru();function a(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var r=typeof Object.is=="function"?Object.is:a,o=e.useState,l=e.useEffect,f=e.useLayoutEffect,u=e.useDebugValue;function h(v,x){var S=x(),O=o({inst:{value:S,getSnapshot:x}}),C=O[0].inst,R=O[1];return f(function(){C.value=S,C.getSnapshot=x,m(C)&&R({inst:C})},[v,S,x]),l(function(){return m(C)&&R({inst:C}),v(function(){m(C)&&R({inst:C})})},[v]),u(S),S}function m(v){var x=v.getSnapshot;v=v.value;try{var S=x();return!r(v,S)}catch{return!0}}function p(v,x){return x()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return Zf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Zf}var cv;function ez(){return cv||(cv=1,Bf.exports=Ww()),Bf.exports}var fv=ez();const Ab=0,Cb=1,Rb=2,dv=3;var hv=Object.prototype.hasOwnProperty;function gd(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--&&gd(e[o],a[o]););return o===-1}if(!r||typeof e=="object"){o=0;for(r in e)if(hv.call(e,r)&&++o&&!hv.call(a,r)||!(r in a)||!gd(e[r],a[r]))return!1;return Object.keys(a).length===o}}return e!==e&&a!==a}const ra=new WeakMap,oa=()=>{},Mt=oa(),yd=Object,Ee=e=>e===Mt,Vn=e=>typeof e=="function",Ga=(e,a)=>({...e,...a}),Ob=e=>Vn(e.then),Hf={},Al={},uh="undefined",as=typeof window!=uh,vd=typeof document!=uh,tz=as&&"Deno"in window,nz=()=>as&&typeof window.requestAnimationFrame!=uh,Mb=(e,a)=>{const r=ra.get(e);return[()=>!Ee(a)&&e.get(a)||Hf,o=>{if(!Ee(a)){const l=e.get(a);a in Al||(Al[a]=l),r[5](a,Ga(l,o),l||Hf)}},r[6],()=>!Ee(a)&&a in Al?Al[a]:!Ee(a)&&e.get(a)||Hf]};let bd=!0;const az=()=>bd,[xd,Sd]=as&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[oa,oa],iz=()=>{const e=vd&&document.visibilityState;return Ee(e)||e!=="hidden"},rz=e=>(vd&&document.addEventListener("visibilitychange",e),xd("focus",e),()=>{vd&&document.removeEventListener("visibilitychange",e),Sd("focus",e)}),oz=e=>{const a=()=>{bd=!0,e()},r=()=>{bd=!1};return xd("online",a),xd("offline",r),()=>{Sd("online",a),Sd("offline",r)}},sz={isOnline:az,isVisible:iz},lz={initFocus:rz,initReconnect:oz},mv=!Wd.useId,br=!as||tz,uz=e=>nz()?window.requestAnimationFrame(e):setTimeout(e,1),$f=br?E.useEffect:E.useLayoutEffect,Gf=typeof navigator<"u"&&navigator.connection,pv=!br&&Gf&&(["slow-2g","2g"].includes(Gf.effectiveType)||Gf.saveData),Cl=new WeakMap,cz=e=>yd.prototype.toString.call(e),qf=(e,a)=>e===`[object ${a}]`;let fz=0;const Td=e=>{const a=typeof e,r=cz(e),o=qf(r,"Date"),l=qf(r,"RegExp"),f=qf(r,"Object");let u,h;if(yd(e)===e&&!o&&!l){if(u=Cl.get(e),u)return u;if(u=++fz+"~",Cl.set(e,u),Array.isArray(e)){for(u="@",h=0;h<e.length;h++)u+=Td(e[h])+",";Cl.set(e,u)}if(f){u="#";const m=yd.keys(e).sort();for(;!Ee(h=m.pop());)Ee(e[h])||(u+=h+":"+Td(e[h])+",");Cl.set(e,u)}}else u=o?e.toJSON():a=="symbol"?e.toString():a=="string"?JSON.stringify(e):""+e;return u},ch=e=>{if(Vn(e))try{e=e()}catch{e=""}const a=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Td(e):"",[e,a]};let dz=0;const _d=()=>++dz;async function kb(...e){const[a,r,o,l]=e,f=Ga({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let u=f.populateCache;const h=f.rollbackOnError;let m=f.optimisticData;const p=x=>typeof h=="function"?h(x):h!==!1,y=f.throwOnError;if(Vn(r)){const x=r,S=[],O=a.keys();for(const C of O)!/^\$(inf|sub)\$/.test(C)&&x(a.get(C)._k)&&S.push(C);return Promise.all(S.map(v))}return v(r);async function v(x){const[S]=ch(x);if(!S)return;const[O,C]=Mb(a,S),[R,B,M,V]=ra.get(a),N=()=>{const Ne=R[S];return(Vn(f.revalidate)?f.revalidate(O().data,x):f.revalidate!==!1)&&(delete M[S],delete V[S],Ne&&Ne[0])?Ne[0](Rb).then(()=>O().data):O().data};if(e.length<3)return N();let $=o,I,F=!1;const Y=_d();B[S]=[Y,0];const W=!Ee(m),ye=O(),_e=ye.data,Re=ye._c,st=Ee(Re)?_e:Re;if(W&&(m=Vn(m)?m(st,_e):m,C({data:m,_c:st})),Vn($))try{$=$(st)}catch(Ne){I=Ne,F=!0}if($&&Ob($))if($=await $.catch(Ne=>{I=Ne,F=!0}),Y!==B[S][0]){if(F)throw I;return $}else F&&W&&p(I)&&(u=!0,C({data:st,_c:Mt}));if(u&&!F)if(Vn(u)){const Ne=u($,st);C({data:Ne,error:Mt,_c:Mt})}else C({data:$,error:Mt,_c:Mt});if(B[S][1]=_d(),Promise.resolve(N()).then(()=>{C({_c:Mt})}),F){if(y)throw I;return}return $}}const gv=(e,a)=>{for(const r in e)e[r][0]&&e[r][0](a)},hz=(e,a)=>{if(!ra.has(e)){const r=Ga(lz,a),o=Object.create(null),l=kb.bind(Mt,e);let f=oa;const u=Object.create(null),h=(y,v)=>{const x=u[y]||[];return u[y]=x,x.push(v),()=>x.splice(x.indexOf(v),1)},m=(y,v,x)=>{e.set(y,v);const S=u[y];if(S)for(const O of S)O(v,x)},p=()=>{if(!ra.has(e)&&(ra.set(e,[o,Object.create(null),Object.create(null),Object.create(null),l,m,h]),!br)){const y=r.initFocus(setTimeout.bind(Mt,gv.bind(Mt,o,Ab))),v=r.initReconnect(setTimeout.bind(Mt,gv.bind(Mt,o,Cb)));f=()=>{y&&y(),v&&v(),ra.delete(e)}}};return p(),[e,l,p,f]}return[e,ra.get(e)[4]]},mz=(e,a,r,o,l)=>{const f=r.errorRetryCount,u=l.retryCount,h=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;!Ee(f)&&u>f||setTimeout(o,h,l)},pz=gd,[Db,Ed]=hz(new Map),gz=Ga({onLoadingSlow:oa,onSuccess:oa,onError:oa,onErrorRetry:mz,onDiscarded:oa,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:pv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:pv?5e3:3e3,compare:pz,isPaused:()=>!1,cache:Db,mutate:Ed,fallback:{}},sz),yz=(e,a)=>{const r=Ga(e,a);if(a){const{use:o,fallback:l}=e,{use:f,fallback:u}=a;o&&f&&(r.use=o.concat(f)),l&&u&&(r.fallback=Ga(l,u))}return r},vz=E.createContext({}),bz="$inf$",Nb=as&&window.__SWR_DEVTOOLS_USE__,xz=Nb?window.__SWR_DEVTOOLS_USE__:[],Sz=()=>{Nb&&(window.__SWR_DEVTOOLS_REACT__=Wd)},Tz=e=>Vn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],_z=()=>{const e=E.useContext(vz);return E.useMemo(()=>Ga(gz,e),[e])},Ez=e=>(a,r,o)=>e(a,r&&((...f)=>{const[u]=ch(a),[,,,h]=ra.get(Db);if(u.startsWith(bz))return r(...f);const m=h[u];return Ee(m)?r(...f):(delete h[u],m)}),o),wz=xz.concat(Ez),zz=e=>function(...r){const o=_z(),[l,f,u]=Tz(r),h=yz(o,u);let m=e;const{use:p}=h,y=(p||[]).concat(wz);for(let v=y.length;v--;)m=y[v](m);return m(l,f||h.fetcher||null,h)},Az=(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())}};Sz();const Yf=Wd.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}}),Pf={dedupe:!0},yv=Promise.resolve(Mt),Cz=(e,a,r)=>{const{cache:o,compare:l,suspense:f,fallbackData:u,revalidateOnMount:h,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:x,strictServerPrefetchWarning:S}=r,[O,C,R,B]=ra.get(o),[M,V]=ch(e),N=E.useRef(!1),$=E.useRef(!1),I=E.useRef(M),F=E.useRef(a),Y=E.useRef(r),W=()=>Y.current,ye=()=>W().isVisible()&&W().isOnline(),[_e,Re,st,Ne]=Mb(o,M),je=E.useRef({}).current,U=Ee(u)?Ee(r.fallback)?Mt:r.fallback[M]:u,K=(Me,qe)=>{for(const Qe in je){const Ze=Qe;if(Ze==="data"){if(!l(Me[Ze],qe[Ze])&&(!Ee(Me[Ze])||!l(fe,qe[Ze])))return!1}else if(qe[Ze]!==Me[Ze])return!1}return!0},X=E.useMemo(()=>{const Me=!M||!a?!1:Ee(h)?W().isPaused()||f?!1:m!==!1:h,qe=Tt=>{const Fe=Ga(Tt);return delete Fe._k,Me?{isValidating:!0,isLoading:!0,...Fe}:Fe},Qe=_e(),Ze=Ne(),Dt=qe(Qe),On=Qe===Ze?Dt:qe(Ze);let pt=Dt;return[()=>{const Tt=qe(_e());return K(Tt,pt)?(pt.data=Tt.data,pt.isLoading=Tt.isLoading,pt.isValidating=Tt.isValidating,pt.error=Tt.error,pt):(pt=Tt,Tt)},()=>On]},[o,M]),ce=fv.useSyncExternalStore(E.useCallback(Me=>st(M,(qe,Qe)=>{K(Qe,qe)||Me()}),[o,M]),X[0],X[1]),pe=!N.current,z=O[M]&&O[M].length>0,H=ce.data,Q=Ee(H)?U&&Ob(U)?Yf(U):U:H,J=ce.error,le=E.useRef(Q),fe=x?Ee(H)?Ee(le.current)?Q:le.current:H:Q,re=M&&Ee(Q),lt=!br&&fv.useSyncExternalStore(()=>oa,()=>!1,()=>!0);S&<&&!f&&re&&console.warn(`Missing pre-initiated data for serialized key "${M}" 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 Oe=z&&!Ee(J)?!1:pe&&!Ee(h)?h:W().isPaused()?!1:f?Ee(Q)?!1:m:Ee(Q)||m,Pt=!!(M&&a&&pe&&Oe),An=Ee(ce.isValidating)?Pt:ce.isValidating,Cn=Ee(ce.isLoading)?Pt:ce.isLoading,da=E.useCallback(async Me=>{const qe=F.current;if(!M||!qe||$.current||W().isPaused())return!1;let Qe,Ze,Dt=!0;const On=Me||{},pt=!R[M]||!On.dedupe,Tt=()=>mv?!$.current&&M===I.current&&N.current:M===I.current,Fe={isValidating:!1,isLoading:!1},us=()=>{Re(Fe)},Vr=()=>{const _t=R[M];_t&&_t[1]===Ze&&delete R[M]},Lr={isValidating:!0};Ee(_e().data)&&(Lr.isLoading=!0);try{if(pt&&(Re(Lr),r.loadingTimeout&&Ee(_e().data)&&setTimeout(()=>{Dt&&Tt()&&W().onLoadingSlow(M,r)},r.loadingTimeout),R[M]=[qe(V),_d()]),[Qe,Ze]=R[M],Qe=await Qe,pt&&setTimeout(Vr,r.dedupingInterval),!R[M]||R[M][1]!==Ze)return pt&&Tt()&&W().onDiscarded(M),!1;Fe.error=Mt;const _t=C[M];if(!Ee(_t)&&(Ze<=_t[0]||Ze<=_t[1]||_t[1]===0))return us(),pt&&Tt()&&W().onDiscarded(M),!1;const bn=_e().data;Fe.data=l(bn,Qe)?bn:Qe,pt&&Tt()&&W().onSuccess(Qe,M,r)}catch(_t){Vr();const bn=W(),{shouldRetryOnError:wi}=bn;bn.isPaused()||(Fe.error=_t,pt&&Tt()&&(bn.onError(_t,M,bn),(wi===!0||Vn(wi)&&wi(_t))&&(!W().revalidateOnFocus||!W().revalidateOnReconnect||ye())&&bn.onErrorRetry(_t,M,bn,gu=>{const Ur=O[M];Ur&&Ur[0]&&Ur[0](dv,gu)},{retryCount:(On.retryCount||0)+1,dedupe:!0})))}return Dt=!1,us(),!0},[M,o]),Rn=E.useCallback((...Me)=>kb(o,I.current,...Me),[]);if($f(()=>{F.current=a,Y.current=r,Ee(H)||(le.current=H)}),$f(()=>{if(!M)return;const Me=da.bind(Mt,Pf);let qe=0;W().revalidateOnFocus&&(qe=Date.now()+W().focusThrottleInterval);const Ze=Az(M,O,(Dt,On={})=>{if(Dt==Ab){const pt=Date.now();W().revalidateOnFocus&&pt>qe&&ye()&&(qe=pt+W().focusThrottleInterval,Me())}else if(Dt==Cb)W().revalidateOnReconnect&&ye()&&Me();else{if(Dt==Rb)return da();if(Dt==dv)return da(On)}});return $.current=!1,I.current=M,N.current=!0,Re({_k:V}),Oe&&(R[M]||(Ee(Q)||br?Me():uz(Me))),()=>{$.current=!0,Ze()}},[M]),$f(()=>{let Me;function qe(){const Ze=Vn(p)?p(_e().data):p;Ze&&Me!==-1&&(Me=setTimeout(Qe,Ze))}function Qe(){!_e().error&&(y||W().isVisible())&&(v||W().isOnline())?da(Pf).then(qe):qe()}return qe(),()=>{Me&&(clearTimeout(Me),Me=-1)}},[p,y,v,M]),E.useDebugValue(fe),f){if(!mv&&br&&re)throw new Error("Fallback data is required when using Suspense in SSR.");re&&(F.current=a,Y.current=r,$.current=!1);const Me=B[M],qe=!Ee(Me)&&re?Rn(Me):yv;if(Yf(qe),!Ee(J)&&re)throw J;const Qe=re?da(Pf):yv;!Ee(fe)&&re&&(Qe.status="fulfilled",Qe.value=!0),Yf(Qe)}return{mutate:Rn,get data(){return je.data=!0,fe},get error(){return je.error=!0,J},get isValidating(){return je.isValidating=!0,An},get isLoading(){return je.isLoading=!0,Cn}}},_r=zz(Cz),Rz="x-architect-pass",Xf="/api";class dr{static instance;constructor(){}static getInstance(){return dr.instance||(dr.instance=new dr),dr.instance}getHeaders(a={}){const r=localStorage.getItem("morpheus.auth.token"),o={...a};return r&&(o[Rz]=r),o}async handleResponse(a){if(a.status===401)throw localStorage.removeItem("morpheus.auth.token"),window.location.pathname.endsWith("/login")||(window.location.href="/login"),new Error("Unauthorized");if(!a.ok){const r=await a.json().catch(()=>({error:"Unknown error"})),o=new Error(r.error||`HTTP error! status: ${a.status}`);throw o.details=r.details,o}return a.json()}async get(a){const r=await fetch(`${Xf}${a}`,{headers:this.getHeaders()});return this.handleResponse(r)}async post(a,r){const o=await fetch(`${Xf}${a}`,{method:"POST",headers:this.getHeaders({"Content-Type":"application/json"}),body:JSON.stringify(r)});return this.handleResponse(o)}async delete(a){const r=await fetch(`${Xf}${a}`,{method:"DELETE",headers:this.getHeaders()});return this.handleResponse(r)}}const Ha=dr.getInstance(),Po="/api",fh=e=>{const a=e.startsWith(Po)?e.substring(Po.length):e;return Ha.get(a)};function jb(){return _r(`${Po}/status`,fh,{refreshInterval:5e3})}function Oz(){return _r(`${Po}/logs`,fh)}function Mz(e){return _r(e?`${Po}/logs/${e}?limit=1000`:null,fh,{refreshInterval:2e3})}function kz(){const{data:e}=jb();return _.jsxs("footer",{className:"h-8 bg-azure-bg dark:bg-zinc-950 border-t border-azure-border dark:border-matrix-primary flex items-center px-4 text-xs justify-between select-none z-10 shrink-0",children:[_.jsxs("div",{className:"flex gap-4",children:[_.jsxs("span",{className:e?"text-azure-primary dark:text-matrix-highlight":"text-red-500",children:["● ",e?.status.toUpperCase()||"OFFLINE"]}),_.jsxs("span",{children:["PID: ",e?.pid||"-"]}),_.jsxs("span",{children:["UPTIME: ",e?Math.floor(e.uptimeSeconds/60)+"m":"-"]})]}),_.jsxs("div",{className:"flex gap-4 opacity-70",children:[_.jsxs("span",{children:["v",e?.projectVersion||"0.0.0"]}),_.jsx("span",{children:e?.agentName||"Morpheus"})]})]})}const Vb=E.createContext({});function Dz(e){const a=E.useRef(null);return a.current===null&&(a.current=e()),a.current}const Lb=typeof window<"u",Nz=Lb?E.useLayoutEffect:E.useEffect,dh=E.createContext(null);function hh(e,a){e.indexOf(a)===-1&&e.push(a)}function mh(e,a){const r=e.indexOf(a);r>-1&&e.splice(r,1)}const Un=(e,a,r)=>r>a?a:r<e?e:r;let ph=()=>{};const fa={},Ub=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Bb(e){return typeof e=="object"&&e!==null}const Zb=e=>/^0[^.\s]+$/u.test(e);function gh(e){let a;return()=>(a===void 0&&(a=e()),a)}const yn=e=>e,jz=(e,a)=>r=>a(e(r)),is=(...e)=>e.reduce(jz),Xo=(e,a,r)=>{const o=a-e;return o===0?1:(r-e)/o};class yh{constructor(){this.subscriptions=[]}add(a){return hh(this.subscriptions,a),()=>mh(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 u=this.subscriptions[f];u&&u(a,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ua=e=>e*1e3,gn=e=>e/1e3;function Hb(e,a){return a?e*(1e3/a):0}const $b=(e,a,r)=>(((1-3*r+3*a)*e+(3*r-6*a))*e+3*a)*e,Vz=1e-7,Lz=12;function Uz(e,a,r,o,l){let f,u,h=0;do u=a+(r-a)/2,f=$b(u,o,l)-e,f>0?r=u:a=u;while(Math.abs(f)>Vz&&++h<Lz);return u}function rs(e,a,r,o){if(e===a&&r===o)return yn;const l=f=>Uz(f,0,1,e,r);return f=>f===0||f===1?f:$b(l(f),a,o)}const Gb=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2,qb=e=>a=>1-e(1-a),Yb=rs(.33,1.53,.69,.99),vh=qb(Yb),Pb=Gb(vh),Xb=e=>(e*=2)<1?.5*vh(e):.5*(2-Math.pow(2,-10*(e-1))),bh=e=>1-Math.sin(Math.acos(e)),Kb=qb(bh),Qb=Gb(bh),Bz=rs(.42,0,1,1),Zz=rs(0,0,.58,1),Fb=rs(.42,0,.58,1),Hz=e=>Array.isArray(e)&&typeof e[0]!="number",Jb=e=>Array.isArray(e)&&typeof e[0]=="number",$z={linear:yn,easeIn:Bz,easeInOut:Fb,easeOut:Zz,circIn:bh,circInOut:Qb,circOut:Kb,backIn:vh,backInOut:Pb,backOut:Yb,anticipate:Xb},Gz=e=>typeof e=="string",vv=e=>{if(Jb(e)){ph(e.length===4);const[a,r,o,l]=e;return rs(a,r,o,l)}else if(Gz(e))return $z[e];return e},Rl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qz(e,a){let r=new Set,o=new Set,l=!1,f=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(y){u.has(y)&&(p.schedule(y),e()),y(h)}const p={schedule:(y,v=!1,x=!1)=>{const O=x&&l?r:o;return v&&u.add(y),O.has(y)||O.add(y),y},cancel:y=>{o.delete(y),u.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 Yz=40;function Ib(e,a){let r=!1,o=!0;const l={delta:0,timestamp:0,isProcessing:!1},f=()=>r=!0,u=Rl.reduce((V,N)=>(V[N]=qz(f),V),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:y,update:v,preRender:x,render:S,postRender:O}=u,C=()=>{const V=fa.useManualTiming?l.timestamp:performance.now();r=!1,fa.useManualTiming||(l.delta=o?1e3/60:Math.max(Math.min(V-l.timestamp,Yz),1)),l.timestamp=V,l.isProcessing=!0,h.process(l),m.process(l),p.process(l),y.process(l),v.process(l),x.process(l),S.process(l),O.process(l),l.isProcessing=!1,r&&a&&(o=!1,e(C))},R=()=>{r=!0,o=!0,l.isProcessing||e(C)};return{schedule:Rl.reduce((V,N)=>{const $=u[N];return V[N]=(I,F=!1,Y=!1)=>(r||R(),$.schedule(I,F,Y)),V},{}),cancel:V=>{for(let N=0;N<Rl.length;N++)u[Rl[N]].cancel(V)},state:l,steps:u}}const{schedule:Ge,cancel:qa,state:Rt,steps:Kf}=Ib(typeof requestAnimationFrame<"u"?requestAnimationFrame:yn,!0);let $l;function Pz(){$l=void 0}const Vt={now:()=>($l===void 0&&Vt.set(Rt.isProcessing||fa.useManualTiming?Rt.timestamp:performance.now()),$l),set:e=>{$l=e,queueMicrotask(Pz)}},Wb=e=>a=>typeof a=="string"&&a.startsWith(e),ex=Wb("--"),Xz=Wb("var(--"),xh=e=>Xz(e)?Kz.test(e.split("/*")[0].trim()):!1,Kz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Or={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ko={...Or,transform:e=>Un(0,1,e)},Ol={...Or,default:1},Ho=e=>Math.round(e*1e5)/1e5,Sh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qz(e){return e==null}const Fz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Th=(e,a)=>r=>!!(typeof r=="string"&&Fz.test(r)&&r.startsWith(e)||a&&!Qz(r)&&Object.prototype.hasOwnProperty.call(r,a)),tx=(e,a,r)=>o=>{if(typeof o!="string")return o;const[l,f,u,h]=o.match(Sh);return{[e]:parseFloat(l),[a]:parseFloat(f),[r]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},Jz=e=>Un(0,255,e),Qf={...Or,transform:e=>Math.round(Jz(e))},xi={test:Th("rgb","red"),parse:tx("red","green","blue"),transform:({red:e,green:a,blue:r,alpha:o=1})=>"rgba("+Qf.transform(e)+", "+Qf.transform(a)+", "+Qf.transform(r)+", "+Ho(Ko.transform(o))+")"};function Iz(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 wd={test:Th("#"),parse:Iz,transform:xi.transform},os=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),Za=os("deg"),Ln=os("%"),ae=os("px"),Wz=os("vh"),e2=os("vw"),xv={...Ln,parse:e=>Ln.parse(e)/100,transform:e=>Ln.transform(e*100)},hr={test:Th("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ln.transform(Ho(a))+", "+Ln.transform(Ho(r))+", "+Ho(Ko.transform(o))+")"},ht={test:e=>xi.test(e)||wd.test(e)||hr.test(e),parse:e=>xi.test(e)?xi.parse(e):hr.test(e)?hr.parse(e):wd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xi.transform(e):hr.transform(e),getAnimatableNone:e=>{const a=ht.parse(e);return a.alpha=0,ht.transform(a)}},t2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function n2(e){return isNaN(e)&&typeof e=="string"&&(e.match(Sh)?.length||0)+(e.match(t2)?.length||0)>0}const nx="number",ax="color",a2="var",i2="var(",Sv="${}",r2=/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 Qo(e){const a=e.toString(),r=[],o={color:[],number:[],var:[]},l=[];let f=0;const h=a.replace(r2,m=>(ht.test(m)?(o.color.push(f),l.push(ax),r.push(ht.parse(m))):m.startsWith(i2)?(o.var.push(f),l.push(a2),r.push(m)):(o.number.push(f),l.push(nx),r.push(parseFloat(m))),++f,Sv)).split(Sv);return{values:r,split:h,indexes:o,types:l}}function ix(e){return Qo(e).values}function rx(e){const{split:a,types:r}=Qo(e),o=a.length;return l=>{let f="";for(let u=0;u<o;u++)if(f+=a[u],l[u]!==void 0){const h=r[u];h===nx?f+=Ho(l[u]):h===ax?f+=ht.transform(l[u]):f+=l[u]}return f}}const o2=e=>typeof e=="number"?0:ht.test(e)?ht.getAnimatableNone(e):e;function s2(e){const a=ix(e);return rx(e)(a.map(o2))}const Ya={test:n2,parse:ix,createTransformer:rx,getAnimatableNone:s2};function Ff(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 l2({hue:e,saturation:a,lightness:r,alpha:o}){e/=360,a/=100,r/=100;let l=0,f=0,u=0;if(!a)l=f=u=r;else{const h=r<.5?r*(1+a):r+a-r*a,m=2*r-h;l=Ff(m,h,e+1/3),f=Ff(m,h,e),u=Ff(m,h,e-1/3)}return{red:Math.round(l*255),green:Math.round(f*255),blue:Math.round(u*255),alpha:o}}function Kl(e,a){return r=>r>0?a:e}const Ie=(e,a,r)=>e+(a-e)*r,Jf=(e,a,r)=>{const o=e*e,l=r*(a*a-o)+o;return l<0?0:Math.sqrt(l)},u2=[wd,xi,hr],c2=e=>u2.find(a=>a.test(e));function Tv(e){const a=c2(e);if(!a)return!1;let r=a.parse(e);return a===hr&&(r=l2(r)),r}const _v=(e,a)=>{const r=Tv(e),o=Tv(a);if(!r||!o)return Kl(e,a);const l={...r};return f=>(l.red=Jf(r.red,o.red,f),l.green=Jf(r.green,o.green,f),l.blue=Jf(r.blue,o.blue,f),l.alpha=Ie(r.alpha,o.alpha,f),xi.transform(l))},zd=new Set(["none","hidden"]);function f2(e,a){return zd.has(e)?r=>r<=0?e:a:r=>r>=1?a:e}function d2(e,a){return r=>Ie(e,a,r)}function _h(e){return typeof e=="number"?d2:typeof e=="string"?xh(e)?Kl:ht.test(e)?_v:p2:Array.isArray(e)?ox:typeof e=="object"?ht.test(e)?_v:h2:Kl}function ox(e,a){const r=[...e],o=r.length,l=e.map((f,u)=>_h(f)(f,a[u]));return f=>{for(let u=0;u<o;u++)r[u]=l[u](f);return r}}function h2(e,a){const r={...e,...a},o={};for(const l in r)e[l]!==void 0&&a[l]!==void 0&&(o[l]=_h(e[l])(e[l],a[l]));return l=>{for(const f in o)r[f]=o[f](l);return r}}function m2(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],u=e.indexes[f][o[f]],h=e.values[u]??0;r[l]=h,o[f]++}return r}const p2=(e,a)=>{const r=Ya.createTransformer(a),o=Qo(e),l=Qo(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?zd.has(e)&&!l.values.length||zd.has(a)&&!o.values.length?f2(e,a):is(ox(m2(o,l),l.values),r):Kl(e,a)};function sx(e,a,r){return typeof e=="number"&&typeof a=="number"&&typeof r=="number"?Ie(e,a,r):_h(e)(e,a)}const g2=e=>{const a=({timestamp:r})=>e(r);return{start:(r=!0)=>Ge.update(a,r),stop:()=>qa(a),now:()=>Rt.isProcessing?Rt.timestamp:Vt.now()}},lx=(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)})`},Ql=2e4;function Eh(e){let a=0;const r=50;let o=e.next(a);for(;!o.done&&a<Ql;)a+=r,o=e.next(a);return a>=Ql?1/0:a}function y2(e,a=100,r){const o=r({...e,keyframes:[0,a]}),l=Math.min(Eh(o),Ql);return{type:"keyframes",ease:f=>o.next(l*f).value/a,duration:gn(l)}}const v2=5;function ux(e,a,r){const o=Math.max(a-v2,0);return Hb(r-e(o),a-o)}const it={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},If=.001;function b2({duration:e=it.duration,bounce:a=it.bounce,velocity:r=it.velocity,mass:o=it.mass}){let l,f,u=1-a;u=Un(it.minDamping,it.maxDamping,u),e=Un(it.minDuration,it.maxDuration,gn(e)),u<1?(l=p=>{const y=p*u,v=y*e,x=y-r,S=Ad(p,u),O=Math.exp(-v);return If-x/S*O},f=p=>{const v=p*u*e,x=v*r+r,S=Math.pow(u,2)*Math.pow(p,2)*e,O=Math.exp(-v),C=Ad(Math.pow(p,2),u);return(-l(p)+If>0?-1:1)*((x-S)*O)/C}):(l=p=>{const y=Math.exp(-p*e),v=(p-r)*e+1;return-If+y*v},f=p=>{const y=Math.exp(-p*e),v=(r-p)*(e*e);return y*v});const h=5/e,m=S2(l,f,h);if(e=ua(e),isNaN(m))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:u*2*Math.sqrt(o*p),duration:e}}}const x2=12;function S2(e,a,r){let o=r;for(let l=1;l<x2;l++)o=o-e(o)/a(o);return o}function Ad(e,a){return e*Math.sqrt(1-a*a)}const T2=["duration","bounce"],_2=["stiffness","damping","mass"];function Ev(e,a){return a.some(r=>e[r]!==void 0)}function E2(e){let a={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Ev(e,_2)&&Ev(e,T2))if(e.visualDuration){const r=e.visualDuration,o=2*Math.PI/(r*1.2),l=o*o,f=2*Un(.05,1,1-(e.bounce||0))*Math.sqrt(l);a={...a,mass:it.mass,stiffness:l,damping:f}}else{const r=b2(e);a={...a,...r,mass:it.mass},a.isResolvedFromDuration=!0}return a}function Fl(e=it.visualDuration,a=it.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],u=r.keyframes[r.keyframes.length-1],h={done:!1,value:f},{stiffness:m,damping:p,mass:y,duration:v,velocity:x,isResolvedFromDuration:S}=E2({...r,velocity:-gn(r.velocity||0)}),O=x||0,C=p/(2*Math.sqrt(m*y)),R=u-f,B=gn(Math.sqrt(m/y)),M=Math.abs(R)<5;o||(o=M?it.restSpeed.granular:it.restSpeed.default),l||(l=M?it.restDelta.granular:it.restDelta.default);let V;if(C<1){const $=Ad(B,C);V=I=>{const F=Math.exp(-C*B*I);return u-F*((O+C*B*R)/$*Math.sin($*I)+R*Math.cos($*I))}}else if(C===1)V=$=>u-Math.exp(-B*$)*(R+(O+B*R)*$);else{const $=B*Math.sqrt(C*C-1);V=I=>{const F=Math.exp(-C*B*I),Y=Math.min($*I,300);return u-F*((O+C*B*R)*Math.sinh(Y)+$*R*Math.cosh(Y))/$}}const N={calculatedDuration:S&&v||null,next:$=>{const I=V($);if(S)h.done=$>=v;else{let F=$===0?O:0;C<1&&(F=$===0?ua(O):ux(V,$,I));const Y=Math.abs(F)<=o,W=Math.abs(u-I)<=l;h.done=Y&&W}return h.value=h.done?u:I,h},toString:()=>{const $=Math.min(Eh(N),Ql),I=lx(F=>N.next($*F).value,$,30);return $+"ms "+I},toTransition:()=>{}};return N}Fl.applyToOptions=e=>{const a=y2(e,100,Fl);return e.ease=a.ease,e.duration=ua(a.duration),e.type="keyframes",e};function Cd({keyframes:e,velocity:a=0,power:r=.8,timeConstant:o=325,bounceDamping:l=10,bounceStiffness:f=500,modifyTarget:u,min:h,max:m,restDelta:p=.5,restSpeed:y}){const v=e[0],x={done:!1,value:v},S=Y=>h!==void 0&&Y<h||m!==void 0&&Y>m,O=Y=>h===void 0?m:m===void 0||Math.abs(h-Y)<Math.abs(m-Y)?h:m;let C=r*a;const R=v+C,B=u===void 0?R:u(R);B!==R&&(C=B-v);const M=Y=>-C*Math.exp(-Y/o),V=Y=>B+M(Y),N=Y=>{const W=M(Y),ye=V(Y);x.done=Math.abs(W)<=p,x.value=x.done?B:ye};let $,I;const F=Y=>{S(x.value)&&($=Y,I=Fl({keyframes:[x.value,O(x.value)],velocity:ux(V,Y,x.value),damping:l,stiffness:f,restDelta:p,restSpeed:y}))};return F(0),{calculatedDuration:null,next:Y=>{let W=!1;return!I&&$===void 0&&(W=!0,N(Y),F(Y)),$!==void 0&&Y>=$?I.next(Y-$):(!W&&N(Y),x)}}}function w2(e,a,r){const o=[],l=r||fa.mix||sx,f=e.length-1;for(let u=0;u<f;u++){let h=l(e[u],e[u+1]);if(a){const m=Array.isArray(a)?a[u]||yn:a;h=is(m,h)}o.push(h)}return o}function z2(e,a,{clamp:r=!0,ease:o,mixer:l}={}){const f=e.length;if(ph(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const u=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),a=[...a].reverse());const h=w2(a,o,l),m=h.length,p=y=>{if(u&&y<e[0])return a[0];let v=0;if(m>1)for(;v<e.length-2&&!(y<e[v+1]);v++);const x=Xo(e[v],e[v+1],y);return h[v](x)};return r?y=>p(Un(e[0],e[f-1],y)):p}function A2(e,a){const r=e[e.length-1];for(let o=1;o<=a;o++){const l=Xo(0,a,o);e.push(Ie(r,1,l))}}function C2(e){const a=[0];return A2(a,e.length-1),a}function R2(e,a){return e.map(r=>r*a)}function O2(e,a){return e.map(()=>a||Fb).splice(0,e.length-1)}function $o({duration:e=300,keyframes:a,times:r,ease:o="easeInOut"}){const l=Hz(o)?o.map(vv):vv(o),f={done:!1,value:a[0]},u=R2(r&&r.length===a.length?r:C2(a),e),h=z2(u,a,{ease:Array.isArray(l)?l:O2(a,l)});return{calculatedDuration:e,next:m=>(f.value=h(m),f.done=m>=e,f)}}const M2=e=>e!==null;function wh(e,{repeat:a,repeatType:r="loop"},o,l=1){const f=e.filter(M2),h=l<0||a&&r!=="loop"&&a%2===1?0:f.length-1;return!h||o===void 0?f[h]:o}const k2={decay:Cd,inertia:Cd,tween:$o,keyframes:$o,spring:Fl};function cx(e){typeof e.type=="string"&&(e.type=k2[e.type])}class zh{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 D2=e=>e/100;class Ah extends zh{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!==Vt.now()&&this.tick(Vt.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;cx(a);const{type:r=$o,repeat:o=0,repeatDelay:l=0,repeatType:f,velocity:u=0}=a;let{keyframes:h}=a;const m=r||$o;m!==$o&&typeof h[0]!="number"&&(this.mixKeyframes=is(D2,sx(h[0],h[1])),h=[0,100]);const p=m({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=Eh(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:u,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:v,repeatType:x,repeatDelay:S,type:O,onUpdate:C,finalKeyframe:R}=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 B=this.currentTime-p*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?B<0:B>l;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let V=this.currentTime,N=o;if(v){const Y=Math.min(this.currentTime,l)/h;let W=Math.floor(Y),ye=Y%1;!ye&&Y>=1&&(ye=1),ye===1&&W--,W=Math.min(W,v+1),W%2&&(x==="reverse"?(ye=1-ye,S&&(ye-=S/h)):x==="mirror"&&(N=u)),V=Un(0,1,ye)*h}const $=M?{done:!1,value:y[0]}:N.next(V);f&&($.value=f($.value));let{done:I}=$;!M&&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&&O!==Cd&&($.value=wh(y,this.options,R,this.speed)),C&&C($.value),F&&this.finish(),$}then(a,r){return this.finished.then(a,r)}get duration(){return gn(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+gn(a)}get time(){return gn(this.currentTime)}set time(a){a=ua(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(Vt.now());const r=this.playbackSpeed!==a;this.playbackSpeed=a,r&&(this.time=gn(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=g2,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(Vt.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 N2(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}const Si=e=>e*180/Math.PI,Rd=e=>{const a=Si(Math.atan2(e[1],e[0]));return Od(a)},j2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rd,rotateZ:Rd,skewX:e=>Si(Math.atan(e[1])),skewY:e=>Si(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Od=e=>(e=e%360,e<0&&(e+=360),e),wv=Rd,zv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Av=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),V2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zv,scaleY:Av,scale:e=>(zv(e)+Av(e))/2,rotateX:e=>Od(Si(Math.atan2(e[6],e[5]))),rotateY:e=>Od(Si(Math.atan2(-e[2],e[0]))),rotateZ:wv,rotate:wv,skewX:e=>Si(Math.atan(e[4])),skewY:e=>Si(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Md(e){return e.includes("scale")?1:0}function kd(e,a){if(!e||e==="none")return Md(a);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,l;if(r)o=V2,l=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=j2,l=h}if(!l)return Md(a);const f=o[a],u=l[1].split(",").map(U2);return typeof f=="function"?f(u):u[f]}const L2=(e,a)=>{const{transform:r="none"}=getComputedStyle(e);return kd(r,a)};function U2(e){return parseFloat(e.trim())}const Mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kr=new Set(Mr),Cv=e=>e===Or||e===ae,B2=new Set(["x","y","z"]),Z2=Mr.filter(e=>!B2.has(e));function H2(e){const a=[];return Z2.forEach(r=>{const o=e.getValue(r);o!==void 0&&(a.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),a}const $a={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})=>kd(a,"x"),y:(e,{transform:a})=>kd(a,"y")};$a.translateX=$a.x;$a.translateY=$a.y;const Ti=new Set;let Dd=!1,Nd=!1,jd=!1;function fx(){if(Nd){const e=Array.from(Ti).filter(o=>o.needsMeasurement),a=new Set(e.map(o=>o.element)),r=new Map;a.forEach(o=>{const l=H2(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,u])=>{o.getValue(f)?.set(u)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Nd=!1,Dd=!1,Ti.forEach(e=>e.complete(jd)),Ti.clear()}function dx(){Ti.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nd=!0)})}function $2(){jd=!0,dx(),fx(),jd=!1}class Ch{constructor(a,r,o,l,f,u=!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=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Ti.add(this),Dd||(Dd=!0,Ge.read(dx),Ge.resolveKeyframes(fx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:r,element:o,motionValue:l}=this;if(a[0]===null){const f=l?.get(),u=a[a.length-1];if(f!==void 0)a[0]=f;else if(o&&r){const h=o.readValue(r,u);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=u),l&&f===void 0&&l.set(a[0])}N2(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Ti.delete(this)}cancel(){this.state==="scheduled"&&(Ti.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const G2=e=>e.startsWith("--");function q2(e,a,r){G2(a)?e.style.setProperty(a,r):e.style[a]=r}const Y2=gh(()=>window.ScrollTimeline!==void 0),P2={};function X2(e,a){const r=gh(e);return()=>P2[a]??r()}const hx=X2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Lo=([e,a,r,o])=>`cubic-bezier(${e}, ${a}, ${r}, ${o})`,Rv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lo([0,.65,.55,1]),circOut:Lo([.55,0,1,.45]),backIn:Lo([.31,.01,.66,-.59]),backOut:Lo([.33,1.53,.69,.99])};function mx(e,a){if(e)return typeof e=="function"?hx()?lx(e,a):"ease-out":Jb(e)?Lo(e):Array.isArray(e)?e.map(r=>mx(r,a)||Rv.easeOut):Rv[e]}function K2(e,a,r,{delay:o=0,duration:l=300,repeat:f=0,repeatType:u="loop",ease:h="easeOut",times:m}={},p=void 0){const y={[a]:r};m&&(y.offset=m);const v=mx(h,l);Array.isArray(v)&&(y.easing=v);const x={delay:o,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:u==="reverse"?"alternate":"normal"};return p&&(x.pseudoElement=p),e.animate(y,x)}function px(e){return typeof e=="function"&&"applyToOptions"in e}function Q2({type:e,...a}){return px(e)&&hx()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class F2 extends zh{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:u=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!f,this.allowFlatten=u,this.options=a,ph(typeof a.type!="string");const p=Q2(a);this.animation=K2(r,o,l,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=wh(l,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(y):q2(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 gn(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+gn(a)}get time(){return gn(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ua(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&&Y2()?(this.animation.timeline=a,yn):r(this)}}const gx={anticipate:Xb,backInOut:Pb,circInOut:Qb};function J2(e){return e in gx}function I2(e){typeof e.ease=="string"&&J2(e.ease)&&(e.ease=gx[e.ease])}const Wf=10;class W2 extends F2{constructor(a){I2(a),cx(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,...u}=this.options;if(!r)return;if(a!==void 0){r.set(a);return}const h=new Ah({...u,autoplay:!1}),m=Math.max(Wf,Vt.now()-this.startTime),p=Un(0,Wf,m-Wf);r.setWithVelocity(h.sample(Math.max(0,m-p)).value,h.sample(m).value,p),h.stop()}}const Ov=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ya.test(e)||e==="0")&&!e.startsWith("url("));function eA(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 tA(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],u=Ov(l,a),h=Ov(f,a);return!u||!h?!1:eA(e)||(r==="spring"||px(r))&&o}function Vd(e){e.duration=0,e.type="keyframes"}const nA=new Set(["opacity","clipPath","filter","transform"]),aA=gh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iA(e){const{motionValue:a,name:r,repeatDelay:o,repeatType:l,damping:f,type:u}=e;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=a.owner.getProps();return aA()&&r&&nA.has(r)&&(r!=="transform"||!p)&&!m&&!o&&l!=="mirror"&&f!==0&&u!=="inertia"}const rA=40;class oA extends zh{constructor({autoplay:a=!0,delay:r=0,type:o="keyframes",repeat:l=0,repeatDelay:f=0,repeatType:u="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=Vt.now();const x={autoplay:a,delay:r,type:o,repeat:l,repeatDelay:f,repeatType:u,name:m,motionValue:p,element:y,...v},S=y?.KeyframeResolver||Ch;this.keyframeResolver=new S(h,(O,C,R)=>this.onKeyframesResolved(O,C,x,!R),m,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,r,o,l){this.keyframeResolver=void 0;const{name:f,type:u,velocity:h,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=Vt.now(),tA(a,f,u,h)||((fa.instantAnimations||!m)&&y?.(wh(a,o,r)),a[0]=a[a.length-1],Vd(o),o.repeat=0);const x={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>rA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:a},S=!p&&iA(x),O=x.motionValue?.owner?.current,C=S?new W2({...x,element:O}):new Ah(x);C.finished.then(()=>{this.notifyFinished()}).catch(yn),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}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(),$2()),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 yx(e,a,r,o=0,l=1){const f=Array.from(e).sort((p,y)=>p.sortNodePosition(y)).indexOf(a),u=e.size,h=(u-1)*o;return typeof r=="function"?r(f,u):l===1?f*o:h-f*o}const sA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lA(e){const a=sA.exec(e);if(!a)return[,];const[,r,o,l]=a;return[`--${r??o}`,l]}function vx(e,a,r=1){const[o,l]=lA(e);if(!o)return;const f=window.getComputedStyle(a).getPropertyValue(o);if(f){const u=f.trim();return Ub(u)?parseFloat(u):u}return xh(l)?vx(l,a,r+1):l}const uA={type:"spring",stiffness:500,damping:25,restSpeed:10},cA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fA={type:"keyframes",duration:.8},dA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hA=(e,{keyframes:a})=>a.length>2?fA:kr.has(e)?e.startsWith("scale")?cA(a[1]):uA:dA,mA=e=>e!==null;function pA(e,{repeat:a,repeatType:r="loop"},o){const l=e.filter(mA),f=a&&r!=="loop"&&a%2===1?0:l.length-1;return l[f]}function Rh(e,a){return e?.[a]??e?.default??e}function gA({when:e,delay:a,delayChildren:r,staggerChildren:o,staggerDirection:l,repeat:f,repeatType:u,repeatDelay:h,from:m,elapsed:p,...y}){return!!Object.keys(y).length}const Oh=(e,a,r,o={},l,f)=>u=>{const h=Rh(o,e)||{},m=h.delay||o.delay||0;let{elapsed:p=0}=o;p=p-ua(m);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:x=>{a.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:e,motionValue:a,element:f?void 0:l};gA(h)||Object.assign(y,hA(e,y)),y.duration&&(y.duration=ua(y.duration)),y.repeatDelay&&(y.repeatDelay=ua(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Vd(y),y.delay===0&&(v=!0)),(fa.instantAnimations||fa.skipAnimations)&&(v=!0,Vd(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,v&&!f&&a.get()!==void 0){const x=pA(y.keyframes,h);if(x!==void 0){Ge.update(()=>{y.onUpdate(x),y.onComplete()});return}}return h.isSync?new Ah(y):new oA(y)};function Mv(e){const a=[{},{}];return e?.values.forEach((r,o)=>{a[0][o]=r.get(),a[1][o]=r.getVelocity()}),a}function Mh(e,a,r,o){if(typeof a=="function"){const[l,f]=Mv(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]=Mv(o);a=a(r!==void 0?r:e.custom,l,f)}return a}function xr(e,a,r){const o=e.getProps();return Mh(o,a,r!==void 0?r:o.custom,e)}const bx=new Set(["width","height","top","left","right","bottom",...Mr]),kv=30,yA=e=>!isNaN(parseFloat(e));class vA{constructor(a,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const l=Vt.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=Vt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=yA(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 yh);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=Vt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>kv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,kv);return Hb(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 Er(e,a){return new vA(e,a)}const Ld=e=>Array.isArray(e);function bA(e,a,r){e.hasValue(a)?e.getValue(a).set(r):e.addValue(a,Er(r))}function xA(e){return Ld(e)?e[e.length-1]||0:e}function SA(e,a){const r=xr(e,a);let{transitionEnd:o={},transition:l={},...f}=r||{};f={...f,...o};for(const u in f){const h=xA(f[u]);bA(e,u,h)}}const kt=e=>!!(e&&e.getVelocity);function TA(e){return!!(kt(e)&&e.add)}function Ud(e,a){const r=e.getValue("willChange");if(TA(r))return r.add(a);if(!r&&fa.WillChange){const o=new fa.WillChange("auto");e.addValue("willChange",o),o.add(a)}}function kh(e){return e.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const _A="framerAppearId",xx="data-"+kh(_A);function Sx(e){return e.props[xx]}function EA({protectedKeys:e,needsAnimating:a},r){const o=e.hasOwnProperty(r)&&a[r]!==!0;return a[r]=!1,o}function Tx(e,a,{delay:r=0,transitionOverride:o,type:l}={}){let{transition:f=e.getDefaultTransition(),transitionEnd:u,...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 x=e.getValue(v,e.latestValues[v]??null),S=h[v];if(S===void 0||y&&EA(y,v))continue;const O={delay:r,...Rh(f||{},v)},C=x.get();if(C!==void 0&&!x.isAnimating&&!Array.isArray(S)&&S===C&&!O.velocity)continue;let R=!1;if(window.MotionHandoffAnimation){const V=Sx(e);if(V){const N=window.MotionHandoffAnimation(V,v,Ge);N!==null&&(O.startTime=N,R=!0)}}Ud(e,v);const B=m??e.shouldReduceMotion;x.start(Oh(v,x,S,B&&bx.has(v)?{type:!1}:O,e,R));const M=x.animation;M&&p.push(M)}return u&&Promise.all(p).then(()=>{Ge.update(()=>{u&&SA(e,u)})}),p}function Bd(e,a,r={}){const o=xr(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(Tx(e,o,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:v}=l;return wA(e,a,m,p,y,v,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,p]=h==="beforeChildren"?[f,u]:[u,f];return m().then(()=>p())}else return Promise.all([f(),u(r.delay)])}function wA(e,a,r=0,o=0,l=0,f=1,u){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",a),h.push(Bd(m,a,{...u,delay:r+(typeof o=="function"?0:o)+yx(e.variantChildren,m,o,l,f)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function zA(e,a,r={}){e.notify("AnimationStart",a);let o;if(Array.isArray(a)){const l=a.map(f=>Bd(e,f,r));o=Promise.all(l)}else if(typeof a=="string")o=Bd(e,a,r);else{const l=typeof a=="function"?xr(e,a,r.custom):a;o=Promise.all(Tx(e,l,r))}return o.then(()=>{e.notify("AnimationComplete",a)})}const AA={test:e=>e==="auto",parse:e=>e},_x=e=>a=>a.test(e),Ex=[Or,ae,Ln,Za,e2,Wz,AA],Dv=e=>Ex.find(_x(e));function CA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zb(e):!0}const RA=new Set(["brightness","contrast","saturate","opacity"]);function OA(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=RA.has(a)?1:0;return o!==r&&(f*=100),a+"("+f+l+")"}const MA=/\b([a-z-]*)\(.*?\)/gu,Zd={...Ya,getAnimatableNone:e=>{const a=e.match(MA);return a?a.map(OA).join(" "):e}},Nv={...Or,transform:Math.round},kA={rotate:Za,rotateX:Za,rotateY:Za,rotateZ:Za,scale:Ol,scaleX:Ol,scaleY:Ol,scaleZ:Ol,skew:Za,skewX:Za,skewY:Za,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Ko,originX:xv,originY:xv,originZ:ae},Dh={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,...kA,zIndex:Nv,fillOpacity:Ko,strokeOpacity:Ko,numOctaves:Nv},DA={...Dh,color:ht,backgroundColor:ht,outlineColor:ht,fill:ht,stroke:ht,borderColor:ht,borderTopColor:ht,borderRightColor:ht,borderBottomColor:ht,borderLeftColor:ht,filter:Zd,WebkitFilter:Zd},wx=e=>DA[e];function zx(e,a){let r=wx(e);return r!==Zd&&(r=Ya),r.getAnimatableNone?r.getAnimatableNone(a):void 0}const NA=new Set(["auto","none","0"]);function jA(e,a,r){let o=0,l;for(;o<e.length&&!l;){const f=e[o];typeof f=="string"&&!NA.has(f)&&Qo(f).values.length&&(l=e[o]),o++}if(l&&r)for(const f of a)e[f]=zx(r,l)}class VA extends Ch{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(),xh(v))){const x=vx(v,r.current);x!==void 0&&(a[y]=x),y===a.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!bx.has(o)||a.length!==2)return;const[l,f]=a,u=Dv(l),h=Dv(f),m=bv(l),p=bv(f);if(m!==p&&$a[o]){this.needsMeasurement=!0;return}if(u!==h)if(Cv(u)&&Cv(h))for(let y=0;y<a.length;y++){const v=a[y];typeof v=="string"&&(a[y]=parseFloat(v))}else $a[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:r}=this,o=[];for(let l=0;l<a.length;l++)(a[l]===null||CA(a[l]))&&o.push(l);o.length&&jA(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=$a[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,u=o[f];o[f]=$a[r](a.measureViewportBox(),window.getComputedStyle(a.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,m])=>{a.getValue(h).set(m)}),this.resolveNoneKeyframes()}}function LA(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 Ax=(e,a)=>a&&typeof e=="number"?a.transform(e):e;function UA(e){return Bb(e)&&"offsetHeight"in e}const{schedule:Nh}=Ib(queueMicrotask,!1),En={x:!1,y:!1};function Cx(){return En.x||En.y}function BA(e){return e==="x"||e==="y"?En[e]?null:(En[e]=!0,()=>{En[e]=!1}):En.x||En.y?null:(En.x=En.y=!0,()=>{En.x=En.y=!1})}function Rx(e,a){const r=LA(e),o=new AbortController,l={passive:!0,...a,signal:o.signal};return[r,l,()=>o.abort()]}function jv(e){return!(e.pointerType==="touch"||Cx())}function ZA(e,a,r={}){const[o,l,f]=Rx(e,r),u=h=>{if(!jv(h))return;const{target:m}=h,p=a(m,h);if(typeof p!="function"||!m)return;const y=v=>{jv(v)&&(p(v),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,l)};return o.forEach(h=>{h.addEventListener("pointerenter",u,l)}),f}const Ox=(e,a)=>a?e===a?!0:Ox(e,a.parentElement):!1,jh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Mx(e){return HA.has(e.tagName)||e.isContentEditable===!0}const Gl=new WeakSet;function Vv(e){return a=>{a.key==="Enter"&&e(a)}}function ed(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const $A=(e,a)=>{const r=e.currentTarget;if(!r)return;const o=Vv(()=>{if(Gl.has(r))return;ed(r,"down");const l=Vv(()=>{ed(r,"up")}),f=()=>ed(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 Lv(e){return jh(e)&&!Cx()}function GA(e,a,r={}){const[o,l,f]=Rx(e,r),u=h=>{const m=h.currentTarget;if(!Lv(h))return;Gl.add(m);const p=a(m,h),y=(S,O)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",x),Gl.has(m)&&Gl.delete(m),Lv(S)&&typeof p=="function"&&p(S,{success:O})},v=S=>{y(S,m===window||m===document||r.useGlobalTarget||Ox(m,S.target))},x=S=>{y(S,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",x,l)};return o.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",u,l),UA(h)&&(h.addEventListener("focus",p=>$A(p,l)),!Mx(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function kx(e){return Bb(e)&&"ownerSVGElement"in e}function qA(e){return kx(e)&&e.tagName==="svg"}const YA=[...Ex,ht,Ya],PA=e=>YA.find(_x(e)),Uv=()=>({translate:0,scale:1,origin:0,originPoint:0}),mr=()=>({x:Uv(),y:Uv()}),Bv=()=>({min:0,max:0}),vt=()=>({x:Bv(),y:Bv()}),Hd={current:null},Dx={current:!1},XA=typeof window<"u";function KA(){if(Dx.current=!0,!!XA)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),a=()=>Hd.current=e.matches;e.addEventListener("change",a),a()}else Hd.current=!1}const QA=new WeakMap;function lu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Fo(e){return typeof e=="string"||Array.isArray(e)}const Vh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lh=["initial",...Vh];function uu(e){return lu(e.animate)||Lh.some(a=>Fo(e[a]))}function Nx(e){return!!(uu(e)||e.variants)}function FA(e,a,r){for(const o in a){const l=a[o],f=r[o];if(kt(l))e.addValue(o,l);else if(kt(f))e.addValue(o,Er(l,{owner:e}));else if(f!==l)if(e.hasValue(o)){const u=e.getValue(o);u.liveStyle===!0?u.jump(l):u.hasAnimated||u.set(l)}else{const u=e.getStaticValue(o);e.addValue(o,Er(u!==void 0?u: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 Jl={};function jx(e){Jl=e}function JA(){return Jl}class IA{scrapeMotionValuesFromProps(a,r,o){return{}}constructor({parent:a,props:r,presenceContext:o,reducedMotionConfig:l,blockInitialAnimation:f,visualState:u},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ch,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 x=Vt.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ge.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=u;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=uu(r),this.isVariantNode=Nx(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(r,{},this);for(const x in v){const S=v[x];m[x]!==void 0&&kt(S)&&S.set(m[x])}}mount(a){this.current=a,QA.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:(Dx.current||KA(),this.shouldReduceMotion=Hd.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),qa(this.notifyUpdate),qa(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=kr.has(a);o&&this.onBindTransform&&this.onBindTransform();const l=r.on("change",u=>{this.latestValues[a]=u,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 Jl){const r=Jl[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):vt()}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,u=a[f];u&&(this.propEventSubscriptions[l]=this.on(l,u))}this.prevMotionValues=FA(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=Er(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"&&(Ub(o)||Zb(o))?o=parseFloat(o):!PA(o)&&Ya.test(r)&&(o=zx(a,r)),this.setBaseTarget(a,kt(o)?o.get():o)),kt(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=Mh(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&&!kt(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 yh),this.events[a].add(r)}notify(a,...r){this.events[a]&&this.events[a].notify(...r)}scheduleRenderMicrotask(){Nh.render(this.render)}}class Vx extends IA{constructor(){super(...arguments),this.KeyframeResolver=VA}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;kt(a)&&(this.childSubscription=a.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Ka{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Lx({top:e,left:a,right:r,bottom:o}){return{x:{min:a,max:r},y:{min:e,max:o}}}function WA({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function eC(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 td(e){return e===void 0||e===1}function $d({scale:e,scaleX:a,scaleY:r}){return!td(e)||!td(a)||!td(r)}function vi(e){return $d(e)||Ux(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ux(e){return Hv(e.x)||Hv(e.y)}function Hv(e){return e&&e!=="0%"}function Il(e,a,r){const o=e-r,l=a*o;return r+l}function $v(e,a,r,o,l){return l!==void 0&&(e=Il(e,l,o)),Il(e,r,o)+a}function Gd(e,a=0,r=1,o,l){e.min=$v(e.min,a,r,o,l),e.max=$v(e.max,a,r,o,l)}function Bx(e,{x:a,y:r}){Gd(e.x,a.translate,a.scale,a.originPoint),Gd(e.y,r.translate,r.scale,r.originPoint)}const Gv=.999999999999,qv=1.0000000000001;function tC(e,a,r,o=!1){const l=r.length;if(!l)return;a.x=a.y=1;let f,u;for(let h=0;h<l;h++){f=r[h],u=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&&gr(e,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),u&&(a.x*=u.x.scale,a.y*=u.y.scale,Bx(e,u)),o&&vi(f.latestValues)&&gr(e,f.latestValues))}a.x<qv&&a.x>Gv&&(a.x=1),a.y<qv&&a.y>Gv&&(a.y=1)}function pr(e,a){e.min=e.min+a,e.max=e.max+a}function Yv(e,a,r,o,l=.5){const f=Ie(e.min,e.max,l);Gd(e,a,r,f,o)}function gr(e,a){Yv(e.x,a.x,a.scaleX,a.scale,a.originX),Yv(e.y,a.y,a.scaleY,a.scale,a.originY)}function Zx(e,a){return Lx(eC(e.getBoundingClientRect(),a))}function nC(e,a,r){const o=Zx(e,r),{scroll:l}=a;return l&&(pr(o.x,l.offset.x),pr(o.y,l.offset.y)),o}const aC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iC=Mr.length;function rC(e,a,r){let o="",l=!0;for(let f=0;f<iC;f++){const u=Mr[f],h=e[u];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(u.startsWith("scale")?1:0);else{const p=parseFloat(h);m=u.startsWith("scale")?p===1:p===0}if(!m||r){const p=Ax(h,Dh[u]);if(!m){l=!1;const y=aC[u]||u;o+=`${y}(${p}) `}r&&(a[u]=p)}}return o=o.trim(),r?o=r(a,l?"":o):l&&(o="none"),o}function Uh(e,a,r){const{style:o,vars:l,transformOrigin:f}=e;let u=!1,h=!1;for(const m in a){const p=a[m];if(kr.has(m)){u=!0;continue}else if(ex(m)){l[m]=p;continue}else{const y=Ax(p,Dh[m]);m.startsWith("origin")?(h=!0,f[m]=y):o[m]=y}}if(a.transform||(u||r?o.transform=rC(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 Hx(e,{style:a,vars:r},o,l){const f=e.style;let u;for(u in a)f[u]=a[u];l?.applyProjectionStyles(f,o);for(u in r)f.setProperty(u,r[u])}function Pv(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}const jo={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const r=Pv(e,a.target.x),o=Pv(e,a.target.y);return`${r}% ${o}%`}},oC={correct:(e,{treeScale:a,projectionDelta:r})=>{const o=e,l=Ya.parse(e);if(l.length>5)return o;const f=Ya.createTransformer(e),u=typeof l[0]!="number"?1:0,h=r.x.scale*a.x,m=r.y.scale*a.y;l[0+u]/=h,l[1+u]/=m;const p=Ie(h,m,.5);return typeof l[2+u]=="number"&&(l[2+u]/=p),typeof l[3+u]=="number"&&(l[3+u]/=p),f(l)}},qd={borderRadius:{...jo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jo,borderTopRightRadius:jo,borderBottomLeftRadius:jo,borderBottomRightRadius:jo,boxShadow:oC};function $x(e,{layout:a,layoutId:r}){return kr.has(e)||e.startsWith("origin")||(a||r!==void 0)&&(!!qd[e]||e==="opacity")}function Bh(e,a,r){const o=e.style,l=a?.style,f={};if(!o)return f;for(const u in o)(kt(o[u])||l&&kt(l[u])||$x(u,e)||r?.getValue(u)?.liveStyle!==void 0)&&(f[u]=o[u]);return f}function sC(e){return window.getComputedStyle(e)}class lC extends Vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Hx}readValueFromInstance(a,r){if(kr.has(r))return this.projection?.isProjecting?Md(r):L2(a,r);{const o=sC(a),l=(ex(r)?o.getPropertyValue(r):o[r])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(a,{transformPagePoint:r}){return Zx(a,r)}build(a,r,o){Uh(a,r,o.transformTemplate)}scrapeMotionValuesFromProps(a,r,o){return Bh(a,r,o)}}const uC={offset:"stroke-dashoffset",array:"stroke-dasharray"},cC={offset:"strokeDashoffset",array:"strokeDasharray"};function fC(e,a,r=1,o=0,l=!0){e.pathLength=1;const f=l?uC:cC;e[f.offset]=`${-o}`,e[f.array]=`${a} ${r}`}const dC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Gx(e,{attrX:a,attrY:r,attrScale:o,pathLength:l,pathSpacing:f=1,pathOffset:u=0,...h},m,p,y){if(Uh(e,h,p),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:x}=e;v.transform&&(x.transform=v.transform,delete v.transform),(x.transform||v.transformOrigin)&&(x.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),x.transform&&(x.transformBox=y?.transformBox??"fill-box",delete v.transformBox);for(const S of dC)v[S]!==void 0&&(x[S]=v[S],delete v[S]);a!==void 0&&(v.x=a),r!==void 0&&(v.y=r),o!==void 0&&(v.scale=o),l!==void 0&&fC(v,l,f,u,!1)}const qx=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"]),Yx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hC(e,a,r,o){Hx(e,a,void 0,o);for(const l in a.attrs)e.setAttribute(qx.has(l)?l:kh(l),a.attrs[l])}function Px(e,a,r){const o=Bh(e,a,r);for(const l in e)if(kt(e[l])||kt(a[l])){const f=Mr.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;o[f]=e[l]}return o}class mC extends Vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vt}getBaseTargetFromProps(a,r){return a[r]}readValueFromInstance(a,r){if(kr.has(r)){const o=wx(r);return o&&o.default||0}return r=qx.has(r)?r:kh(r),a.getAttribute(r)}scrapeMotionValuesFromProps(a,r,o){return Px(a,r,o)}build(a,r,o){Gx(a,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,r,o,l){hC(a,r,o,l)}mount(a){this.isSVGTag=Yx(a.tagName),super.mount(a)}}const pC=Lh.length;function Xx(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Xx(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const a={};for(let r=0;r<pC;r++){const o=Lh[r],l=e.props[o];(Fo(l)||l===!1)&&(a[o]=l)}return a}function Kx(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 gC=[...Vh].reverse(),yC=Vh.length;function vC(e){return a=>Promise.all(a.map(({animation:r,options:o})=>zA(e,r,o)))}function bC(e){let a=vC(e),r=Xv(),o=!0;const l=m=>(p,y)=>{const v=xr(e,y,m==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:x,transitionEnd:S,...O}=v;p={...p,...O,...S}}return p};function f(m){a=m(e)}function u(m){const{props:p}=e,y=Xx(e.parent)||{},v=[],x=new Set;let S={},O=1/0;for(let R=0;R<yC;R++){const B=gC[R],M=r[B],V=p[B]!==void 0?p[B]:y[B],N=Fo(V),$=B===m?M.isActive:null;$===!1&&(O=R);let I=V===y[B]&&V!==p[B]&&N;if(I&&o&&e.manuallyAnimateOnMount&&(I=!1),M.protectedKeys={...S},!M.isActive&&$===null||!V&&!M.prevProp||lu(V)||typeof V=="boolean")continue;const F=xC(M.prevProp,V);let Y=F||B===m&&M.isActive&&!I&&N||R>O&&N,W=!1;const ye=Array.isArray(V)?V:[V];let _e=ye.reduce(l(B),{});$===!1&&(_e={});const{prevResolvedValues:Re={}}=M,st={...Re,..._e},Ne=K=>{Y=!0,x.has(K)&&(W=!0,x.delete(K)),M.needsAnimating[K]=!0;const X=e.getValue(K);X&&(X.liveStyle=!1)};for(const K in st){const X=_e[K],ce=Re[K];if(S.hasOwnProperty(K))continue;let pe=!1;Ld(X)&&Ld(ce)?pe=!Kx(X,ce):pe=X!==ce,pe?X!=null?Ne(K):x.add(K):X!==void 0&&x.has(K)?Ne(K):M.protectedKeys[K]=!0}M.prevProp=V,M.prevResolvedValues=_e,M.isActive&&(S={...S,..._e}),o&&e.blockInitialAnimation&&(Y=!1);const je=I&&F;Y&&(!je||W)&&v.push(...ye.map(K=>{const X={type:B};if(typeof K=="string"&&o&&!je&&e.manuallyAnimateOnMount&&e.parent){const{parent:ce}=e,pe=xr(ce,K);if(ce.enteringChildren&&pe){const{delayChildren:z}=pe.transition||{};X.delay=yx(ce.enteringChildren,e,z)}}return{animation:K,options:X}}))}if(x.size){const R={};if(typeof p.initial!="boolean"){const B=xr(e,Array.isArray(p.initial)?p.initial[0]:p.initial);B&&B.transition&&(R.transition=B.transition)}x.forEach(B=>{const M=e.getBaseTarget(B),V=e.getValue(B);V&&(V.liveStyle=!0),R[B]=M??null}),v.push({animation:R})}let C=!!v.length;return o&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(C=!1),o=!1,C?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=u(m);for(const v in r)r[v].protectedKeys={};return y}return{animateChanges:u,setActive:h,setAnimateFunction:f,getState:()=>r,reset:()=>{r=Xv()}}}function xC(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!Kx(a,e):!1}function pi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xv(){return{animate:pi(!0),whileInView:pi(),whileHover:pi(),whileTap:pi(),whileDrag:pi(),whileFocus:pi(),exit:pi()}}function Kv(e,a){e.min=a.min,e.max=a.max}function _n(e,a){Kv(e.x,a.x),Kv(e.y,a.y)}function Qv(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}const Qx=1e-4,SC=1-Qx,TC=1+Qx,Fx=.01,_C=0-Fx,EC=0+Fx;function Lt(e){return e.max-e.min}function wC(e,a,r){return Math.abs(e-a)<=r}function Fv(e,a,r,o=.5){e.origin=o,e.originPoint=Ie(a.min,a.max,e.origin),e.scale=Lt(r)/Lt(a),e.translate=Ie(r.min,r.max,e.origin)-e.originPoint,(e.scale>=SC&&e.scale<=TC||isNaN(e.scale))&&(e.scale=1),(e.translate>=_C&&e.translate<=EC||isNaN(e.translate))&&(e.translate=0)}function Go(e,a,r,o){Fv(e.x,a.x,r.x,o?o.originX:void 0),Fv(e.y,a.y,r.y,o?o.originY:void 0)}function Jv(e,a,r){e.min=r.min+a.min,e.max=e.min+Lt(a)}function zC(e,a,r){Jv(e.x,a.x,r.x),Jv(e.y,a.y,r.y)}function Iv(e,a,r){e.min=a.min-r.min,e.max=e.min+Lt(a)}function Wl(e,a,r){Iv(e.x,a.x,r.x),Iv(e.y,a.y,r.y)}function Wv(e,a,r,o,l){return e-=a,e=Il(e,1/r,o),l!==void 0&&(e=Il(e,1/l,o)),e}function AC(e,a=0,r=1,o=.5,l,f=e,u=e){if(Ln.test(a)&&(a=parseFloat(a),a=Ie(u.min,u.max,a/100)-u.min),typeof a!="number")return;let h=Ie(f.min,f.max,o);e===f&&(h-=a),e.min=Wv(e.min,a,r,h,l),e.max=Wv(e.max,a,r,h,l)}function e0(e,a,[r,o,l],f,u){AC(e,a[r],a[o],a[l],a.scale,f,u)}const CC=["x","scaleX","originX"],RC=["y","scaleY","originY"];function t0(e,a,r,o){e0(e.x,a,CC,r?r.x:void 0,o?o.x:void 0),e0(e.y,a,RC,r?r.y:void 0,o?o.y:void 0)}function n0(e){return e.translate===0&&e.scale===1}function Jx(e){return n0(e.x)&&n0(e.y)}function a0(e,a){return e.min===a.min&&e.max===a.max}function OC(e,a){return a0(e.x,a.x)&&a0(e.y,a.y)}function i0(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function Ix(e,a){return i0(e.x,a.x)&&i0(e.y,a.y)}function r0(e){return Lt(e.x)/Lt(e.y)}function o0(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}function mn(e){return[e("x"),e("y")]}function MC(e,a,r){let o="";const l=e.x.translate/a.x,f=e.y.translate/a.y,u=r?.z||0;if((l||f||u)&&(o=`translate3d(${l}px, ${f}px, ${u}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),r){const{transformPerspective:p,rotate:y,rotateX:v,rotateY:x,skewX:S,skewY:O}=r;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotateX(${v}deg) `),x&&(o+=`rotateY(${x}deg) `),S&&(o+=`skewX(${S}deg) `),O&&(o+=`skewY(${O}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 Wx=["TopLeft","TopRight","BottomLeft","BottomRight"],kC=Wx.length,s0=e=>typeof e=="string"?parseFloat(e):e,l0=e=>typeof e=="number"||ae.test(e);function DC(e,a,r,o,l,f){l?(e.opacity=Ie(0,r.opacity??1,NC(o)),e.opacityExit=Ie(a.opacity??1,0,jC(o))):f&&(e.opacity=Ie(a.opacity??1,r.opacity??1,o));for(let u=0;u<kC;u++){const h=`border${Wx[u]}Radius`;let m=u0(a,h),p=u0(r,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||l0(m)===l0(p)?(e[h]=Math.max(Ie(s0(m),s0(p),o),0),(Ln.test(p)||Ln.test(m))&&(e[h]+="%")):e[h]=p}(a.rotate||r.rotate)&&(e.rotate=Ie(a.rotate||0,r.rotate||0,o))}function u0(e,a){return e[a]!==void 0?e[a]:e.borderRadius}const NC=e1(0,.5,Kb),jC=e1(.5,.95,yn);function e1(e,a,r){return o=>o<e?0:o>a?1:r(Xo(e,a,o))}function VC(e,a,r){const o=kt(e)?e:Er(e);return o.start(Oh("",o,a,r)),o.animation}function Jo(e,a,r,o={passive:!0}){return e.addEventListener(a,r,o),()=>e.removeEventListener(a,r)}const LC=(e,a)=>e.depth-a.depth;class UC{constructor(){this.children=[],this.isDirty=!1}add(a){hh(this.children,a),this.isDirty=!0}remove(a){mh(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(LC),this.isDirty=!1,this.children.forEach(a)}}function BC(e,a){const r=Vt.now(),o=({timestamp:l})=>{const f=l-r;f>=a&&(qa(o),e(f-a))};return Ge.setup(o,!0),()=>qa(o)}function ql(e){return kt(e)?e.get():e}class ZC{constructor(){this.members=[]}add(a){hh(this.members,a),a.scheduleRender()}remove(a){if(mh(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 Yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nd=["","X","Y","Z"],HC=1e3;let $C=0;function ad(e,a,r,o){const{latestValues:l}=a;l[e]&&(r[e]=l[e],a.setStaticValue(e,0),o&&(o[e]=0))}function t1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:a}=e.options;if(!a)return;const r=Sx(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&&t1(o)}function n1({attachResizeListener:e,defaultParent:a,measureScroll:r,checkIsScrollRoot:o,resetTransform:l}){return class{constructor(u={},h=a?.()){this.id=$C++,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(YC),this.nodes.forEach(QC),this.nodes.forEach(FC),this.nodes.forEach(PC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,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 UC)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new yh),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const m=this.eventHandlers.get(u);m&&m.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=kx(u)&&!qA(u),this.instance=u;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(u),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 x=()=>this.root.updateBlockedByResize=!1;Ge.read(()=>{v=window.innerWidth}),e(u,()=>{const S=window.innerWidth;S!==v&&(v=S,this.root.updateBlockedByResize=!0,y&&y(),y=BC(x,250),Yl.hasAnimatedSinceResize&&(Yl.hasAnimatedSinceResize=!1,this.nodes.forEach(d0)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||p.getDefaultTransition()||tR,{onLayoutAnimationStart:C,onLayoutAnimationComplete:R}=p.getProps(),B=!this.targetLayout||!Ix(this.targetLayout,S),M=!v&&x;if(this.options.layoutRoot||this.resumeFrom||M||v&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const V={...Rh(O,"layout"),onPlay:C,onComplete:R};(p.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V),this.setAnimationOrigin(y,M)}else v||d0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),qa(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(JC),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&t1(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(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(c0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(f0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(KC),this.nodes.forEach(GC),this.nodes.forEach(qC)):this.nodes.forEach(f0),this.clearAllSnapshots();const h=Vt.now();Rt.delta=Un(0,1e3/60,h-Rt.timestamp),Rt.timestamp=h,Rt.isProcessing=!0,Kf.update.process(Rt),Kf.preRender.process(Rt),Kf.render.process(Rt),Rt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(XC),this.sharedNodes.forEach(IC)}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&&!Lt(this.snapshot.measuredBox.x)&&!Lt(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 u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=vt(),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,u?u.layoutBox:void 0)}updateScroll(u="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(h=!1),h&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Jx(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;u&&this.instance&&(h||vi(this.latestValues)||y)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return u&&(m=this.removeTransform(m)),nR(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return vt();const h=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(aR))){const{scroll:p}=this.root;p&&(pr(h.x,p.offset.x),pr(h.y,p.offset.y))}return h}removeElementScroll(u){const h=vt();if(_n(h,u),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&&_n(h,u),pr(h.x,y.offset.x),pr(h.y,y.offset.y))}return h}applyTransform(u,h=!1){const m=vt();_n(m,u);for(let p=0;p<this.path.length;p++){const y=this.path[p];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&gr(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),vi(y.latestValues)&&gr(m,y.latestValues)}return vi(this.latestValues)&&gr(m,this.latestValues),m}removeTransform(u){const h=vt();_n(h,u);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!vi(p.latestValues))continue;$d(p.latestValues)&&p.updateSnapshot();const y=vt(),v=p.measurePageBox();_n(y,v),t0(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return vi(this.latestValues)&&t0(h,this.latestValues),h}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==Rt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!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(!(u||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=Rt.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=vt(),this.targetWithTransforms=vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_n(this.target,this.layout.layoutBox),Bx(this.target,this.targetDelta)):_n(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$d(this.parent.latestValues)||Ux(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,h,m){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vt(),this.relativeTargetOrigin=vt(),Wl(this.relativeTargetOrigin,h,m),_n(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const u=this.getLead(),h=!!this.resumingFrom||this!==u;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Rt.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;_n(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,x=this.treeScale.y;tC(this.layoutCorrected,this.treeScale,this.path,h),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=vt());const{target:S}=u;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qv(this.prevProjectionDelta.x,this.projectionDelta.x),Qv(this.prevProjectionDelta.y,this.projectionDelta.y)),Go(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==x||!o0(this.projectionDelta.x,this.prevProjectionDelta.x)||!o0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mr(),this.projectionDelta=mr(),this.projectionDeltaWithTransform=mr()}setAnimationOrigin(u,h=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},v=mr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const x=vt(),S=m?m.source:void 0,O=this.layout?this.layout.source:void 0,C=S!==O,R=this.getStack(),B=!R||R.members.length<=1,M=!!(C&&!B&&this.options.crossfade===!0&&!this.path.some(eR));this.animationProgress=0;let V;this.mixTargetDelta=N=>{const $=N/1e3;h0(v.x,u.x,$),h0(v.y,u.y,$),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wl(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),WC(this.relativeTarget,this.relativeTargetOrigin,x,$),V&&OC(this.relativeTarget,V)&&(this.isProjectionDirty=!1),V||(V=vt()),_n(V,this.relativeTarget)),C&&(this.animationValues=y,DC(y,p,this.latestValues,$,M,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(qa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{Yl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Er(0)),this.currentAnimation=VC(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),u.onUpdate&&u.onUpdate(h)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(HC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:y}=u;if(!(!h||!m||!p)){if(this!==u&&this.layout&&p&&a1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||vt();const v=Lt(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+v;const x=Lt(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+x}_n(h,m),gr(h,y),Go(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new ZC),this.sharedNodes.get(u).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 u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&ad("z",u,p,this.animationValues);for(let y=0;y<nd.length;y++)ad(`rotate${nd[y]}`,u,p,this.animationValues),ad(`skew${nd[y]}`,u,p,this.animationValues);u.render();for(const y in p)u.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);u.scheduleRender()}applyProjectionStyles(u,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=ql(h?.pointerEvents)||"",u.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=ql(h?.pointerEvents)||""),this.hasProjected&&!vi(this.latestValues)&&(u.transform=m?m({},""):"none",this.hasProjected=!1);return}u.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=MC(this.projectionDeltaWithTransform,this.treeScale,y);m&&(v=m(y,v)),u.transform=v;const{x,y:S}=this.projectionDelta;u.transformOrigin=`${x.origin*100}% ${S.origin*100}% 0`,p.animationValues?u.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:u.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const O in qd){if(y[O]===void 0)continue;const{correct:C,applyTo:R,isCSSVariable:B}=qd[O],M=v==="none"?y[O]:C(y[O],p);if(R){const V=R.length;for(let N=0;N<V;N++)u[R[N]]=M}else B?this.options.visualElement.renderState.vars[O]=M:u[O]=M}this.options.layoutId&&(u.pointerEvents=p===this?ql(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(c0),this.root.sharedNodes.clear()}}}function GC(e){e.updateLayout()}function qC(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"?mn(y=>{const v=f?a.measuredBox[y]:a.layoutBox[y],x=Lt(v);v.min=r[y].min,v.max=v.min+x}):a1(l,a.layoutBox,r)&&mn(y=>{const v=f?a.measuredBox[y]:a.layoutBox[y],x=Lt(r[y]);v.max=v.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+x)});const u=mr();Go(u,r,a.layoutBox);const h=mr();f?Go(h,e.applyTransform(o,!0),a.measuredBox):Go(h,r,a.layoutBox);const m=!Jx(u);let p=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:x}=y;if(v&&x){const S=vt();Wl(S,a.layoutBox,v.layoutBox);const O=vt();Wl(O,r,x.layoutBox),Ix(S,O)||(p=!0),y.options.layoutRoot&&(e.relativeTarget=O,e.relativeTargetOrigin=S,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:h,layoutDelta:u,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function YC(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 PC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function XC(e){e.clearSnapshot()}function c0(e){e.clearMeasurements()}function f0(e){e.isLayoutDirty=!1}function KC(e){const{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function d0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QC(e){e.resolveTargetDelta()}function FC(e){e.calcProjection()}function JC(e){e.resetSkewAndRotation()}function IC(e){e.removeLeadSnapshot()}function h0(e,a,r){e.translate=Ie(a.translate,0,r),e.scale=Ie(a.scale,1,r),e.origin=a.origin,e.originPoint=a.originPoint}function m0(e,a,r,o){e.min=Ie(a.min,r.min,o),e.max=Ie(a.max,r.max,o)}function WC(e,a,r,o){m0(e.x,a.x,r.x,o),m0(e.y,a.y,r.y,o)}function eR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tR={duration:.45,ease:[.4,0,.1,1]},p0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),g0=p0("applewebkit/")&&!p0("chrome/")?Math.round:yn;function y0(e){e.min=g0(e.min),e.max=g0(e.max)}function nR(e){y0(e.x),y0(e.y)}function a1(e,a,r){return e==="position"||e==="preserve-aspect"&&!wC(r0(a),r0(r),.2)}function aR(e){return e!==e.root&&e.scroll?.wasRoot}const iR=n1({attachResizeListener:(e,a)=>Jo(e,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),id={current:void 0},i1=n1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!id.current){const e=new iR({});e.mount(window),e.setOptions({layoutScroll:!0}),id.current=e}return id.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),r1=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function rR(e=!0){const a=E.useContext(dh);if(a===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:l}=a,f=E.useId();E.useEffect(()=>{if(e)return l(f)},[e]);const u=E.useCallback(()=>e&&o&&o(f),[f,o,e]);return!r&&o?[!1,u]:[!0]}const o1=E.createContext({strict:!1}),v0={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 b0=!1;function oR(){if(b0)return;const e={};for(const a in v0)e[a]={isEnabled:r=>v0[a].some(o=>!!r[o])};jx(e),b0=!0}function s1(){return oR(),JA()}function sR(e){const a=s1();for(const r in e)a[r]={...a[r],...e[r]};jx(a)}const lR=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 eu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lR.has(e)}let l1=e=>!eu(e);function uR(e){typeof e=="function"&&(l1=a=>a.startsWith("on")?!eu(a):e(a))}try{uR(require("@emotion/is-prop-valid").default)}catch{}function cR(e,a,r){const o={};for(const l in e)l==="values"&&typeof e.values=="object"||(l1(l)||r===!0&&eu(l)||!a&&!eu(l)||e.draggable&&l.startsWith("onDrag"))&&(o[l]=e[l]);return o}const cu=E.createContext({});function fR(e,a){if(uu(e)){const{initial:r,animate:o}=e;return{initial:r===!1||Fo(r)?r:void 0,animate:Fo(o)?o:void 0}}return e.inherit!==!1?a:{}}function dR(e){const{initial:a,animate:r}=fR(e,E.useContext(cu));return E.useMemo(()=>({initial:a,animate:r}),[x0(a),x0(r)])}function x0(e){return Array.isArray(e)?e.join(" "):e}const Zh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function u1(e,a,r){for(const o in a)!kt(a[o])&&!$x(o,r)&&(e[o]=a[o])}function hR({transformTemplate:e},a){return E.useMemo(()=>{const r=Zh();return Uh(r,a,e),Object.assign({},r.vars,r.style)},[a])}function mR(e,a){const r=e.style||{},o={};return u1(o,r,e),Object.assign(o,hR(e,a)),o}function pR(e,a){const r={},o=mR(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 c1=()=>({...Zh(),attrs:{}});function gR(e,a,r,o){const l=E.useMemo(()=>{const f=c1();return Gx(f,a,Yx(o),e.transformTemplate,e.style),{...f.attrs,style:{...f.style}}},[a]);if(e.style){const f={};u1(f,e.style,e),l.style={...f,...l.style}}return l}const yR=["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 Hh(e){return typeof e!="string"||e.includes("-")?!1:!!(yR.indexOf(e)>-1||/[A-Z]/u.test(e))}function vR(e,a,r,{latestValues:o},l,f=!1,u){const m=(u??Hh(e)?gR:pR)(a,o,l,e),p=cR(a,typeof e=="string",f),y=e!==E.Fragment?{...p,...m,ref:r}:{},{children:v}=a,x=E.useMemo(()=>kt(v)?v.get():v,[v]);return E.createElement(e,{...y,children:x})}function bR({scrapeMotionValuesFromProps:e,createRenderState:a},r,o,l){return{latestValues:xR(r,o,l,e),renderState:a()}}function xR(e,a,r,o){const l={},f=o(e,{});for(const x in f)l[x]=ql(f[x]);let{initial:u,animate:h}=e;const m=uu(e),p=Nx(e);a&&p&&!m&&e.inherit!==!1&&(u===void 0&&(u=a.initial),h===void 0&&(h=a.animate));let y=r?r.initial===!1:!1;y=y||u===!1;const v=y?h:u;if(v&&typeof v!="boolean"&&!lu(v)){const x=Array.isArray(v)?v:[v];for(let S=0;S<x.length;S++){const O=Mh(e,x[S]);if(O){const{transitionEnd:C,transition:R,...B}=O;for(const M in B){let V=B[M];if(Array.isArray(V)){const N=y?V.length-1:0;V=V[N]}V!==null&&(l[M]=V)}for(const M in C)l[M]=C[M]}}}return l}const f1=e=>(a,r)=>{const o=E.useContext(cu),l=E.useContext(dh),f=()=>bR(e,a,o,l);return r?f():Dz(f)},SR=f1({scrapeMotionValuesFromProps:Bh,createRenderState:Zh}),TR=f1({scrapeMotionValuesFromProps:Px,createRenderState:c1}),_R=Symbol.for("motionComponentSymbol");function ER(e,a,r){const o=E.useRef(r);E.useInsertionEffect(()=>{o.current=r});const l=E.useRef(null);return E.useCallback(f=>{f&&e.onMount?.(f),a&&(f?a.mount(f):a.unmount());const u=o.current;if(typeof u=="function")if(f){const h=u(f);typeof h=="function"&&(l.current=h)}else l.current?(l.current(),l.current=null):u(f);else u&&(u.current=f)},[a])}const d1=E.createContext({});function Uo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wR(e,a,r,o,l,f){const{visualElement:u}=E.useContext(cu),h=E.useContext(o1),m=E.useContext(dh),p=E.useContext(r1).reducedMotion,y=E.useRef(null),v=E.useRef(!1);o=o||h.renderer,!y.current&&o&&(y.current=o(e,{visualState:a,parent:u,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p,isSVG:f}),v.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const x=y.current,S=E.useContext(d1);x&&!x.projection&&l&&(x.type==="html"||x.type==="svg")&&zR(y.current,r,l,S);const O=E.useRef(!1);E.useInsertionEffect(()=>{x&&O.current&&x.update(r,m)});const C=r[xx],R=E.useRef(!!C&&!window.MotionHandoffIsComplete?.(C)&&window.MotionHasOptimisedAnimation?.(C));return Nz(()=>{v.current=!0,x&&(O.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),R.current&&x.animationState&&x.animationState.animateChanges())}),E.useEffect(()=>{x&&(!R.current&&x.animationState&&x.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(C)}),R.current=!1),x.enteringChildren=void 0)}),x}function zR(e,a,r,o){const{layoutId:l,layout:f,drag:u,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:y}=a;e.projection=new r(e.latestValues,a["data-framer-portal-id"]?void 0:h1(e.parent)),e.projection.setOptions({layoutId:l,layout:f,alwaysMeasureLayout:!!u||h&&Uo(h),visualElement:e,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:m,layoutRoot:p})}function h1(e){if(e)return e.options.allowProjection!==!1?e.projection:h1(e.parent)}function rd(e,{forwardMotionProps:a=!1,type:r}={},o,l){o&&sR(o);const f=r?r==="svg":Hh(e),u=f?TR:SR;function h(p,y){let v;const x={...E.useContext(r1),...p,layoutId:AR(p)},{isStatic:S}=x,O=dR(p),C=u(p,S);if(!S&&Lb){CR();const R=RR(x);v=R.MeasureLayout,O.visualElement=wR(e,C,x,l,R.ProjectionNode,f)}return _.jsxs(cu.Provider,{value:O,children:[v&&O.visualElement?_.jsx(v,{visualElement:O.visualElement,...x}):null,vR(e,p,ER(C,O.visualElement,y),C,S,a,f)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=E.forwardRef(h);return m[_R]=e,m}function AR({layoutId:e}){const a=E.useContext(Vb).id;return a&&e!==void 0?a+"-"+e:e}function CR(e,a){E.useContext(o1).strict}function RR(e){const a=s1(),{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 OR(e,a){if(typeof Proxy>"u")return rd;const r=new Map,o=(f,u)=>rd(f,u,e,a),l=(f,u)=>o(f,u);return new Proxy(l,{get:(f,u)=>u==="create"?o:(r.has(u)||r.set(u,rd(u,void 0,e,a)),r.get(u))})}const MR=(e,a)=>a.isSVG??Hh(e)?new mC(a):new lC(a,{allowProjection:e!==E.Fragment});class kR extends Ka{constructor(a){super(a),a.animationState||(a.animationState=bC(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();lu(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 DR=0;class NR extends Ka{constructor(){super(...arguments),this.id=DR++}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 jR={animation:{Feature:kR},exit:{Feature:NR}};function ss(e){return{point:{x:e.pageX,y:e.pageY}}}const VR=e=>a=>jh(a)&&e(a,ss(a));function qo(e,a,r,o){return Jo(e,a,VR(r),o)}const m1=({current:e})=>e?e.ownerDocument.defaultView:null,S0=(e,a)=>Math.abs(e-a);function LR(e,a){const r=S0(e.x,a.x),o=S0(e.y,a.y);return Math.sqrt(r**2+o**2)}const T0=new Set(["auto","scroll"]);class p1{constructor(a,r,{transformPagePoint:o,contextWindow:l=window,dragSnapToOrigin:f=!1,distanceThreshold:u=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=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=sd(this.lastMoveEventInfo,this.history),O=this.startEvent!==null,C=LR(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!O&&!C)return;const{point:R}=S,{timestamp:B}=Rt;this.history.push({...R,timestamp:B});const{onStart:M,onMove:V}=this.handlers;O||(M&&M(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),V&&V(this.lastMoveEvent,S)},this.handlePointerMove=(S,O)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=od(O,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(S,O)=>{this.end();const{onEnd:C,onSessionEnd:R,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=sd(S.type==="pointercancel"?this.lastMoveEventInfo:od(O,this.transformPagePoint),this.history);this.startEvent&&C&&C(S,M),R&&R(S,M)},!jh(a))return;this.dragSnapToOrigin=f,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=u,this.contextWindow=l||window;const m=ss(a),p=od(m,this.transformPagePoint),{point:y}=p,{timestamp:v}=Rt;this.history=[{...y,timestamp:v}];const{onSessionStart:x}=r;x&&x(a,sd(p,this.history)),this.removeListeners=is(qo(this.contextWindow,"pointermove",this.handlePointerMove),qo(this.contextWindow,"pointerup",this.handlePointerUp),qo(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let r=a.parentElement;for(;r;){const o=getComputedStyle(r);(T0.has(o.overflowX)||T0.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(),qa(this.updatePoint)}}function od(e,a){return a?{point:a(e.point)}:e}function _0(e,a){return{x:e.x-a.x,y:e.y-a.y}}function sd({point:e},a){return{point:e,delta:_0(e,g1(a)),offset:_0(e,UR(a)),velocity:BR(a,.1)}}function UR(e){return e[0]}function g1(e){return e[e.length-1]}function BR(e,a){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null;const l=g1(e);for(;r>=0&&(o=e[r],!(l.timestamp-o.timestamp>ua(a)));)r--;if(!o)return{x:0,y:0};const f=gn(l.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const u={x:(l.x-o.x)/f,y:(l.y-o.y)/f};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function ZR(e,{min:a,max:r},o){return a!==void 0&&e<a?e=o?Ie(a,e,o.min):Math.max(e,a):r!==void 0&&e>r&&(e=o?Ie(r,e,o.max):Math.min(e,r)),e}function E0(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 HR(e,{top:a,left:r,bottom:o,right:l}){return{x:E0(e.x,r,l),y:E0(e.y,a,o)}}function w0(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 $R(e,a){return{x:w0(e.x,a.x),y:w0(e.y,a.y)}}function GR(e,a){let r=.5;const o=Lt(e),l=Lt(a);return l>o?r=Xo(a.min,a.max-o,e.min):o>l&&(r=Xo(e.min,e.max-l,a.min)),Un(0,1,r)}function qR(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 Yd=.35;function YR(e=Yd){return e===!1?e=0:e===!0&&(e=Yd),{x:z0(e,"left","right"),y:z0(e,"top","bottom")}}function z0(e,a,r){return{min:A0(e,a),max:A0(e,r)}}function A0(e,a){return typeof e=="number"?e:e[a]||0}const PR=new WeakMap;class XR{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=vt(),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(ss(v).point)):this.pauseAnimation()},u=(v,x)=>{this.stopAnimation();const{drag:S,dragPropagation:O,onDragStart:C}=this.getProps();if(S&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=BA(S),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mn(B=>{let M=this.getAxisMotionValue(B).get()||0;if(Ln.test(M)){const{projection:V}=this.visualElement;if(V&&V.layout){const N=V.layout.layoutBox[B];N&&(M=Lt(N)*(parseFloat(M)/100))}}this.originPoint[B]=M}),C&&Ge.postRender(()=>C(v,x)),Ud(this.visualElement,"transform");const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},h=(v,x)=>{this.latestPointerEvent=v,this.latestPanInfo=x;const{dragPropagation:S,dragDirectionLock:O,onDirectionLock:C,onDrag:R}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:B}=x;if(O&&this.currentDirection===null){this.currentDirection=KR(B),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",x.point,B),this.updateAxis("y",x.point,B),this.visualElement.render(),R&&R(v,x)},m=(v,x)=>{this.latestPointerEvent=v,this.latestPanInfo=x,this.stop(v,x),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>mn(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new p1(a,{onSessionStart:f,onStart:u,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:m1(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:u}=l;this.startAnimation(u);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||!Ml(a,l,this.currentDirection))return;const f=this.getAxisMotionValue(a);let u=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(u=ZR(u,this.constraints[a],this.elastic[a])),f.set(u)}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&&Uo(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=HR(o.layoutBox,a):this.constraints=!1,this.elastic=YR(r),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&mn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=qR(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:r}=this.getProps();if(!a||!Uo(a))return!1;const o=a.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const f=nC(o,l.root,this.visualElement.getTransformPagePoint());let u=$R(l.layout.layoutBox,f);if(r){const h=r(WA(u));this.hasMutatedConstraints=!!h,h&&(u=Lx(h))}return u}startAnimation(a){const{drag:r,dragMomentum:o,dragElastic:l,dragTransition:f,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=mn(y=>{if(!Ml(y,r,this.currentDirection))return;let v=m&&m[y]||{};u&&(v={min:0,max:0});const x=l?200:1e6,S=l?40:1e7,O={type:"inertia",velocity:o?a[y]:0,bounceStiffness:x,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,O)});return Promise.all(p).then(h)}startAxisValueAnimation(a,r){const o=this.getAxisMotionValue(a);return Ud(this.visualElement,a),o.start(Oh(a,o,0,r,this.visualElement,!1))}stopAnimation(){mn(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){mn(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){mn(r=>{const{drag:o}=this.getProps();if(!Ml(r,o,this.currentDirection))return;const{projection:l}=this.visualElement,f=this.getAxisMotionValue(r);if(l&&l.layout){const{min:u,max:h}=l.layout.layoutBox[r],m=f.get()||0;f.set(a[r]-Ie(u,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Uo(r)||!o||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};mn(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const m=h.get();l[u]=GR({min:m,max:m},this.constraints[u])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),mn(u=>{if(!Ml(u,a,null))return;const h=this.getAxisMotionValue(u),{min:m,max:p}=this.constraints[u];h.set(Ie(m,p,l[u]))})}addListeners(){if(!this.visualElement.current)return;PR.set(this.visualElement,this);const a=this.visualElement.current,r=qo(a,"pointerdown",m=>{const{drag:p,dragListener:y=!0}=this.getProps(),v=m.target,x=v!==a&&Mx(v);p&&y&&!x&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();Uo(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 u=Jo(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(mn(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=m[y].translate,v.set(v.get()+m[y].translate))}),this.visualElement.render())}));return()=>{u(),r(),f(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:l=!1,dragConstraints:f=!1,dragElastic:u=Yd,dragMomentum:h=!0}=a;return{...a,drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:f,dragElastic:u,dragMomentum:h}}}function Ml(e,a,r){return(a===!0||a===e)&&(r===null||r===e)}function KR(e,a=10){let r=null;return Math.abs(e.y)>a?r="y":Math.abs(e.x)>a&&(r="x"),r}class QR extends Ka{constructor(a){super(a),this.removeGroupControls=yn,this.removeListeners=yn,this.controls=new XR(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yn}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 C0=e=>(a,r)=>{e&&Ge.postRender(()=>e(a,r))};class FR extends Ka{constructor(){super(...arguments),this.removePointerDownListener=yn}onPointerDown(a){this.session=new p1(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m1(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:r,onPan:o,onPanEnd:l}=this.node.getProps();return{onSessionStart:C0(a),onStart:C0(r),onMove:o,onEnd:(f,u)=>{delete this.session,l&&Ge.postRender(()=>l(f,u))}}}mount(){this.removePointerDownListener=qo(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 ld=!1;class JR extends E.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),ld&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:r,visualElement:o,drag:l,isPresent:f}=this.props,{projection:u}=o;return u&&(u.isPresent=f,a.layoutDependency!==r&&u.setOptions({...u.options,layoutDependency:r}),ld=!0,l||a.layoutDependency!==r||r===void 0||a.isPresent!==f?u.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?u.promote():u.relegate()||Ge.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Nh.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:l}=a;ld=!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 y1(e){const[a,r]=rR(),o=E.useContext(Vb);return _.jsx(JR,{...e,layoutGroup:o,switchLayoutGroup:E.useContext(d1),isPresent:a,safeToRemove:r})}const IR={pan:{Feature:FR},drag:{Feature:QR,ProjectionNode:i1,MeasureLayout:y1}};function R0(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,ss(a)))}class WR extends Ka{mount(){const{current:a}=this.node;a&&(this.unmount=ZA(a,(r,o)=>(R0(this.node,o,"Start"),l=>R0(this.node,l,"End"))))}unmount(){}}class eO extends Ka{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=is(Jo(this.node.current,"focus",()=>this.onFocus()),Jo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function O0(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,ss(a)))}class tO extends Ka{mount(){const{current:a}=this.node;a&&(this.unmount=GA(a,(r,o)=>(O0(this.node,o,"Start"),(l,{success:f})=>O0(this.node,l,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,ud=new WeakMap,nO=e=>{const a=Pd.get(e.target);a&&a(e)},aO=e=>{e.forEach(nO)};function iO({root:e,...a}){const r=e||document;ud.has(r)||ud.set(r,{});const o=ud.get(r),l=JSON.stringify(a);return o[l]||(o[l]=new IntersectionObserver(aO,{root:e,...a})),o[l]}function rO(e,a,r){const o=iO(a);return Pd.set(e,r),o.observe(e),()=>{Pd.delete(e),o.unobserve(e)}}const oO={some:0,all:1};class sO extends Ka{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,u={root:r?r.current:void 0,rootMargin:o,threshold:typeof l=="number"?l:oO[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(),x=p?y:v;x&&x(m)};return rO(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:r}=this.node;["amount","margin","root"].some(lO(a,r))&&this.startObserver()}unmount(){}}function lO({viewport:e={}},{viewport:a={}}={}){return r=>e[r]!==a[r]}const uO={inView:{Feature:sO},tap:{Feature:tO},focus:{Feature:eO},hover:{Feature:WR}},cO={layout:{ProjectionNode:i1,MeasureLayout:y1}},fO={...jR,...uO,...IR,...cO},sa=OR(fO,MR),v1=()=>{const[e,a]=E.useState(!!localStorage.getItem("morpheus.auth.token"));return E.useEffect(()=>{const l=()=>{a(!!localStorage.getItem("morpheus.auth.token"))};return window.addEventListener("storage",l),()=>window.removeEventListener("storage",l)},[]),{isAuthenticated:e,login:l=>{localStorage.setItem("morpheus.auth.token",l),a(!0)},logout:()=>{localStorage.removeItem("morpheus.auth.token"),a(!1),window.location.href="/login"}}};function dO({children:e}){const a=zn(),[r,o]=E.useState(!0),{logout:l}=v1();E.useEffect(()=>{const u=localStorage.getItem("theme");o(u?u==="dark":!0)},[]),E.useEffect(()=>{r?(document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"))},[r]);const f=[{icon:Uw,label:"Dashboard",path:"/"},{icon:Kw,label:"Configuration",path:"/config"},{icon:zb,label:"Usage Stats",path:"/stats"},{icon:Iw,label:"Logs",path:"/logs"}];return _.jsxs("div",{className:"flex flex-col h-screen bg-azure-bg dark:bg-black text-azure-text-primary dark:text-matrix-secondary font-mono overflow-hidden transition-colors duration-300",children:[_.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[_.jsxs(sa.div,{className:"w-64 border-r border-azure-border dark:border-matrix-primary bg-azure-surface 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:[_.jsxs("div",{className:"p-4 border-b border-azure-border dark:border-matrix-primary flex justify-between items-center",children:[_.jsxs("h1",{className:"text-xl font-bold text-azure-primary dark:text-matrix-highlight flex items-center gap-2",children:[_.jsx(wb,{className:"w-6 h-6"}),"MORPHEUS"]}),_.jsx("button",{onClick:()=>o(!r),className:"p-1 rounded hover:bg-azure-hover dark:hover:bg-matrix-primary/50 text-azure-text-muted dark:text-matrix-secondary transition-colors",children:r?_.jsx(Fw,{className:"w-4 h-4"}):_.jsx(qw,{className:"w-4 h-4"})})]}),_.jsx("nav",{className:"flex-1 p-4 space-y-2",children:f.map(u=>{const h=a.pathname===u.path;return _.jsxs(lh,{to:u.path,className:`flex items-center gap-3 px-4 py-3 rounded transition-colors ${h?"bg-azure-active text-azure-primary dark:bg-matrix-primary dark:text-matrix-highlight":"hover:bg-azure-hover dark:hover:bg-matrix-primary/50 text-azure-text-secondary dark:text-matrix-secondary"}`,children:[_.jsx(u.icon,{className:"w-5 h-5"}),_.jsx("span",{children:u.label})]},u.path)})}),_.jsx("div",{className:"p-4 border-t border-azure-border dark:border-matrix-primary",children:_.jsxs("button",{onClick:l,className:"flex items-center gap-3 px-4 py-3 rounded w-full text-left hover:bg-red-50 dark:hover:bg-red-900/20 text-azure-text-secondary dark:text-matrix-secondary hover:text-red-600 transition-colors",children:[_.jsx(Zw,{className:"w-5 h-5"}),_.jsx("span",{children:"Logout"})]})})]}),_.jsxs("main",{className:"flex-1 overflow-auto p-8 relative flex flex-col",children:[_.jsx("div",{className:"max-w-6xl w-full mx-auto flex-1",children:e}),_.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"})]})]}),_.jsx(kz,{})]})}const hO={hidden:{opacity:0,y:20},show:{opacity:1,y:0}},bi=({title:e,value:a,icon:r,subValue:o})=>_.jsxs(sa.div,{variants:hO,className:"border border-azure-border dark:border-matrix-primary bg-azure-surface/50 dark:bg-zinc-950/50 p-6 rounded relative overflow-hidden group hover:border-azure-primary dark:hover:border-matrix-highlight transition-colors",children:[_.jsxs("div",{className:"flex justify-between items-start mb-4",children:[_.jsx("h3",{className:"text-azure-text-secondary dark:text-matrix-secondary text-sm font-bold uppercase",children:e}),_.jsx(r,{className:"w-6 h-6 text-azure-primary dark:text-matrix-primary group-hover:text-azure-primary dark:group-hover:text-matrix-highlight transition-colors"})]}),_.jsx("div",{className:"text-3xl font-bold text-azure-primary dark:text-matrix-highlight mb-1 font-mono tracking-tighter truncate",children:a}),o&&_.jsx("div",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary opacity-70 font-mono",children:o})]}),Xd={fetchUsageStats:async()=>Ha.get("/stats/usage"),fetchGroupedUsageStats:async()=>Ha.get("/stats/usage/grouped")};function mO(){const{data:e}=_r("/api/stats/usage",Xd.fetchUsageStats,{refreshInterval:5e3});return _.jsxs(_.Fragment,{children:[_.jsx(bi,{title:"Total Input",value:e?e.totalInputTokens.toLocaleString():"-",icon:Sw,subValue:"Tokens processed"}),_.jsx(bi,{title:"Total Output",value:e?e.totalOutputTokens.toLocaleString():"-",icon:_w,subValue:"Tokens generated"})]})}function pO(){const{data:e}=jb(),a={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.1}}},r={hidden:{opacity:0,y:20},show:{opacity:1,y:0}};return _.jsxs(sa.div,{className:"space-y-8",variants:a,initial:"hidden",animate:"show",children:[_.jsxs(sa.div,{variants:r,children:[_.jsx("h2",{className:"text-2xl font-bold text-azure-primary dark:text-matrix-highlight mb-2",children:"SYSTEM STATUS"}),_.jsx("p",{className:"text-azure-text-secondary dark:text-matrix-secondary opacity-80",children:"Overview of the Morpheus agent runtime."})]}),_.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[_.jsx(bi,{title:"Agent Status",value:e?.status.toUpperCase()||"CONNECTING...",icon:wb,subValue:e?`PID: ${e.pid}`:""}),_.jsx(bi,{title:"Uptime",value:e?`${Math.floor(e.uptimeSeconds/60)}m`:"-",icon:Ow,subValue:e?`${e.uptimeSeconds.toFixed(0)} seconds`:""}),_.jsx(bi,{title:"Version",value:e?.projectVersion||"-",icon:kw,subValue:`Node ${e?.nodeVersion||"-"}`}),_.jsx(bi,{title:"Provider",value:e?.llmProvider?.toUpperCase()||"-",icon:Aw,subValue:"LLM Inference Engine"}),_.jsx(bi,{title:"Model",value:e?.llmModel||"-",icon:ww,subValue:"Active Model"}),_.jsx(mO,{})]})]})}function gi({title:e,description:a,children:r}){return _.jsxs("div",{className:"border border-azure-border dark:border-matrix-primary rounded-lg p-6 bg-azure-surface/50 dark:bg-matrix-base/50",children:[_.jsxs("div",{className:"mb-4",children:[_.jsx("h3",{className:"text-lg font-medium text-azure-text-primary dark:text-matrix-highlight",children:e}),a&&_.jsx("p",{className:"text-sm text-azure-text-secondary dark:text-matrix-secondary mt-1",children:a})]}),_.jsx("div",{className:"space-y-4",children:r})]})}const gO=(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},yO=(e,a)=>({classGroupId:e,validator:a}),b1=(e=new Map,a=null,r)=>({nextPart:e,validators:a,classGroupId:r}),tu="-",M0=[],vO="arbitrary..",bO=e=>{const a=SO(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return xO(u);const h=u.split(tu),m=h[0]===""&&h.length>1?1:0;return x1(h,m,a)},getConflictingClassGroupIds:(u,h)=>{if(h){const m=o[u],p=r[u];return m?p?gO(p,m):m:p||M0}return r[u]||M0}}},x1=(e,a,r)=>{if(e.length-a===0)return r.classGroupId;const l=e[a],f=r.nextPart.get(l);if(f){const p=x1(e,a+1,f);if(p)return p}const u=r.validators;if(u===null)return;const h=a===0?e.join(tu):e.slice(a).join(tu),m=u.length;for(let p=0;p<m;p++){const y=u[p];if(y.validator(h))return y.classGroupId}},xO=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?vO+o:void 0})(),SO=e=>{const{theme:a,classGroups:r}=e;return TO(r,a)},TO=(e,a)=>{const r=b1();for(const o in e){const l=e[o];$h(l,r,o,a)}return r},$h=(e,a,r,o)=>{const l=e.length;for(let f=0;f<l;f++){const u=e[f];_O(u,a,r,o)}},_O=(e,a,r,o)=>{if(typeof e=="string"){EO(e,a,r);return}if(typeof e=="function"){wO(e,a,r,o);return}zO(e,a,r,o)},EO=(e,a,r)=>{const o=e===""?a:S1(a,e);o.classGroupId=r},wO=(e,a,r,o)=>{if(AO(e)){$h(e(o),a,r,o);return}a.validators===null&&(a.validators=[]),a.validators.push(yO(r,e))},zO=(e,a,r,o)=>{const l=Object.entries(e),f=l.length;for(let u=0;u<f;u++){const[h,m]=l[u];$h(m,S1(a,h),r,o)}},S1=(e,a)=>{let r=e;const o=a.split(tu),l=o.length;for(let f=0;f<l;f++){const u=o[f];let h=r.nextPart.get(u);h||(h=b1(),r.nextPart.set(u,h)),r=h}return r},AO=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,CO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),o=Object.create(null);const l=(f,u)=>{r[f]=u,a++,a>e&&(a=0,o=r,r=Object.create(null))};return{get(f){let u=r[f];if(u!==void 0)return u;if((u=o[f])!==void 0)return l(f,u),u},set(f,u){f in r?r[f]=u:l(f,u)}}},Kd="!",k0=":",RO=[],D0=(e,a,r,o,l)=>({modifiers:e,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:o,isExternal:l}),OO=e=>{const{prefix:a,experimentalParseClassName:r}=e;let o=l=>{const f=[];let u=0,h=0,m=0,p;const y=l.length;for(let C=0;C<y;C++){const R=l[C];if(u===0&&h===0){if(R===k0){f.push(l.slice(m,C)),m=C+1;continue}if(R==="/"){p=C;continue}}R==="["?u++:R==="]"?u--:R==="("?h++:R===")"&&h--}const v=f.length===0?l:l.slice(m);let x=v,S=!1;v.endsWith(Kd)?(x=v.slice(0,-1),S=!0):v.startsWith(Kd)&&(x=v.slice(1),S=!0);const O=p&&p>m?p-m:void 0;return D0(f,S,x,O)};if(a){const l=a+k0,f=o;o=u=>u.startsWith(l)?f(u.slice(l.length)):D0(RO,!1,u,void 0,!0)}if(r){const l=o;o=f=>r({className:f,parseClassName:l})}return o},MO=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 u=r[f],h=u[0]==="[",m=a.has(u);h||m?(l.length>0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},kO=e=>({cache:CO(e.cacheSize),parseClassName:OO(e),sortModifiers:MO(e),...bO(e)}),DO=/\s+/,NO=(e,a)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:f}=a,u=[],h=e.trim().split(DO);let m="";for(let p=h.length-1;p>=0;p-=1){const y=h[p],{isExternal:v,modifiers:x,hasImportantModifier:S,baseClassName:O,maybePostfixModifierPosition:C}=r(y);if(v){m=y+(m.length>0?" "+m:m);continue}let R=!!C,B=o(R?O.substring(0,C):O);if(!B){if(!R){m=y+(m.length>0?" "+m:m);continue}if(B=o(O),!B){m=y+(m.length>0?" "+m:m);continue}R=!1}const M=x.length===0?"":x.length===1?x[0]:f(x).join(":"),V=S?M+Kd:M,N=V+B;if(u.indexOf(N)>-1)continue;u.push(N);const $=l(B,R);for(let I=0;I<$.length;++I){const F=$[I];u.push(V+F)}m=y+(m.length>0?" "+m:m)}return m},jO=(...e)=>{let a=0,r,o,l="";for(;a<e.length;)(r=e[a++])&&(o=T1(r))&&(l&&(l+=" "),l+=o);return l},T1=e=>{if(typeof e=="string")return e;let a,r="";for(let o=0;o<e.length;o++)e[o]&&(a=T1(e[o]))&&(r&&(r+=" "),r+=a);return r},VO=(e,...a)=>{let r,o,l,f;const u=m=>{const p=a.reduce((y,v)=>v(y),e());return r=kO(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=NO(m,r);return l(m,y),y};return f=u,(...m)=>f(jO(...m))},LO=[],yt=e=>{const a=r=>r[e]||LO;return a.isThemeGetter=!0,a},_1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UO=/^\d+\/\d+$/,BO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZO=/\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$/,HO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$O=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cr=e=>UO.test(e),ge=e=>!!e&&!Number.isNaN(Number(e)),Ua=e=>!!e&&Number.isInteger(Number(e)),cd=e=>e.endsWith("%")&&ge(e.slice(0,-1)),ia=e=>BO.test(e),qO=()=>!0,YO=e=>ZO.test(e)&&!HO.test(e),w1=()=>!1,PO=e=>$O.test(e),XO=e=>GO.test(e),KO=e=>!te(e)&&!ne(e),QO=e=>Dr(e,C1,w1),te=e=>_1.test(e),yi=e=>Dr(e,R1,YO),fd=e=>Dr(e,eM,ge),N0=e=>Dr(e,z1,w1),FO=e=>Dr(e,A1,XO),kl=e=>Dr(e,O1,PO),ne=e=>E1.test(e),Vo=e=>Nr(e,R1),JO=e=>Nr(e,tM),j0=e=>Nr(e,z1),IO=e=>Nr(e,C1),WO=e=>Nr(e,A1),Dl=e=>Nr(e,O1,!0),Dr=(e,a,r)=>{const o=_1.exec(e);return o?o[1]?a(o[1]):r(o[2]):!1},Nr=(e,a,r=!1)=>{const o=E1.exec(e);return o?o[1]?a(o[1]):r:!1},z1=e=>e==="position"||e==="percentage",A1=e=>e==="image"||e==="url",C1=e=>e==="length"||e==="size"||e==="bg-size",R1=e=>e==="length",eM=e=>e==="number",tM=e=>e==="family-name",O1=e=>e==="shadow",nM=()=>{const e=yt("color"),a=yt("font"),r=yt("text"),o=yt("font-weight"),l=yt("tracking"),f=yt("leading"),u=yt("breakpoint"),h=yt("container"),m=yt("spacing"),p=yt("radius"),y=yt("shadow"),v=yt("inset-shadow"),x=yt("text-shadow"),S=yt("drop-shadow"),O=yt("blur"),C=yt("perspective"),R=yt("aspect"),B=yt("ease"),M=yt("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...N(),ne,te],I=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],Y=()=>[ne,te,m],W=()=>[cr,"full","auto",...Y()],ye=()=>[Ua,"none","subgrid",ne,te],_e=()=>["auto",{span:["full",Ua,ne,te]},Ua,ne,te],Re=()=>[Ua,"auto",ne,te],st=()=>["auto","min","max","fr",ne,te],Ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],je=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...Y()],K=()=>[cr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],X=()=>[e,ne,te],ce=()=>[...N(),j0,N0,{position:[ne,te]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",IO,QO,{size:[ne,te]}],H=()=>[cd,Vo,yi],Q=()=>["","none","full",p,ne,te],J=()=>["",ge,Vo,yi],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,cd,j0,N0],lt=()=>["","none",O,ne,te],Oe=()=>["none",ge,ne,te],Pt=()=>["none",ge,ne,te],An=()=>[ge,ne,te],Cn=()=>[cr,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ia],breakpoint:[ia],color:[qO],container:[ia],"drop-shadow":[ia],ease:["in","out","in-out"],font:[KO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ia],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ia],shadow:[ia],spacing:["px",ge],text:[ia],"text-shadow":[ia],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",cr,te,ne,R]}],container:["container"],columns:[{columns:[ge,te,ne,h]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:$()}],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:[Ua,"auto",ne,te]}],basis:[{basis:[cr,"full","auto",h,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,cr,"auto","initial","none",te]}],grow:[{grow:["",ge,ne,te]}],shrink:[{shrink:["",ge,ne,te]}],order:[{order:[Ua,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:_e()}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:_e()}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":st()}],"auto-rows":[{"auto-rows":st()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...Ne(),"normal"]}],"justify-items":[{"justify-items":[...je(),"normal"]}],"justify-self":[{"justify-self":["auto",...je()]}],"align-content":[{content:["normal",...Ne()]}],"align-items":[{items:[...je(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...je(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ne()}],"place-items":[{"place-items":[...je(),"baseline"]}],"place-self":[{"place-self":["auto",...je()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],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":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[h,"screen",...K()]}],"min-w":[{"min-w":[h,"screen","none",...K()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[u]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Vo,yi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ne,fd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cd,te]}],"font-family":[{font:[JO,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,fd]}],leading:[{leading:[f,...Y()]}],"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:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",ne,yi]}],"text-decoration-color":[{decoration:X()}],"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:Y()}],"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:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ua,ne,te],radial:["",ne,te],conic:[Ua,ne,te]},WO,FO]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"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:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,ne,te]}],"outline-w":[{outline:["",ge,Vo,yi]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",y,Dl,kl]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",v,Dl,kl]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[ge,yi]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",x,Dl,kl]}],"text-shadow-color":[{"text-shadow":X()}],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":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"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":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"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":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"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":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"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":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"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":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"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":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"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":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"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":N()}],"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":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"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:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:lt()}],brightness:[{brightness:[ge,ne,te]}],contrast:[{contrast:[ge,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",S,Dl,kl]}],"drop-shadow-color":[{"drop-shadow":X()}],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":lt()}],"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":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"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",B,ne,te]}],delay:[{delay:[ge,ne,te]}],animate:[{animate:["none",M,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ne,te]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Pt()}],"scale-x":[{"scale-x":Pt()}],"scale-y":[{"scale-y":Pt()}],"scale-z":[{"scale-z":Pt()}],"scale-3d":["scale-3d"],skew:[{skew:An()}],"skew-x":[{"skew-x":An()}],"skew-y":[{"skew-y":An()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Cn()}],"translate-x":[{"translate-x":Cn()}],"translate-y":[{"translate-y":Cn()}],"translate-z":[{"translate-z":Cn()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"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":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",...X()]}],"stroke-w":[{stroke:[ge,Vo,yi,fd]}],stroke:[{stroke:["none",...X()]}],"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"]}},Sr=VO(nM);function jn({label:e,error:a,helperText:r,className:o,...l}){return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[_.jsx("label",{className:"text-sm font-medium text-azure-text-primary/80 dark:text-matrix-highlight/80",children:e}),_.jsx("input",{className:Sr("bg-azure-bg dark:bg-matrix-base border border-azure-border dark:border-matrix-primary text-azure-text-primary dark:text-matrix-highlight placeholder-azure-text-secondary/50 dark:placeholder-matrix-secondary/50 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:border-azure-primary dark:focus:border-matrix-highlight transition-colors",a&&"border-red-500 focus:border-red-500 focus:ring-red-500",o),...l}),r&&!a&&_.jsx("p",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:r}),a&&_.jsx("p",{className:"text-xs text-red-500",children:a})]})}function Nl({label:e,options:a,error:r,helperText:o,className:l,...f}){return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[_.jsx("label",{className:"text-sm font-medium text-azure-text-primary/80 dark:text-matrix-highlight/80",children:e}),_.jsx("select",{className:Sr("bg-azure-bg dark:bg-matrix-base border border-azure-border dark:border-matrix-primary text-azure-text-primary dark:text-matrix-highlight rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:border-azure-primary dark: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(u=>_.jsx("option",{value:u.value,className:"bg-azure-bg dark:bg-matrix-base",children:u.label},u.value))}),o&&!r&&_.jsx("p",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:o}),r&&_.jsx("p",{className:"text-xs text-red-500",children:r})]})}function fr({label:e,error:a,helperText:r,className:o,...l}){return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[_.jsx("label",{className:"text-sm font-medium text-azure-text-primary/80 dark:text-matrix-highlight/80",children:e}),_.jsx("input",{type:"number",className:Sr("bg-azure-bg dark:bg-matrix-base border border-azure-border dark:border-matrix-primary text-azure-text-primary dark:text-matrix-highlight placeholder-azure-text-secondary/50 dark:placeholder-matrix-secondary/50 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:border-azure-primary dark:focus:border-matrix-highlight transition-colors",a&&"border-red-500 focus:border-red-500 focus:ring-red-500",o),...l}),r&&!a&&_.jsx("p",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:r}),a&&_.jsx("p",{className:"text-xs text-red-500",children:a})]})}function jl({label:e,checked:a,onChange:r,helperText:o,disabled:l}){return _.jsxs("div",{className:"flex items-center justify-between",children:[_.jsxs("div",{className:"flex flex-col",children:[_.jsx("span",{className:Sr("text-sm font-medium text-azure-text-primary/80 dark:text-matrix-highlight/80",l&&"opacity-50"),children:e}),o&&_.jsx("span",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:o})]}),_.jsx("button",{type:"button",role:"switch","aria-checked":a,onClick:()=>!l&&r(!a),className:Sr("relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:ring-offset-2 focus:ring-offset-azure-bg dark:focus:ring-offset-black",a?"bg-azure-primary dark:bg-matrix-highlight":"bg-slate-300 dark:bg-matrix-primary",l&&"opacity-50 cursor-not-allowed"),children:_.jsx("span",{className:Sr("inline-block h-4 w-4 transform rounded-full bg-white dark:bg-black transition-transform",a?"translate-x-6":"translate-x-1")})})]})}const Vl={fetchConfig:async()=>Ha.get("/config"),updateConfig:async e=>Ha.post("/config",e),getSatiConfig:async()=>Ha.get("/config/sati"),updateSatiConfig:async e=>Ha.post("/config/sati",e),deleteSatiConfig:async()=>Ha.delete("/config/sati")};function G(e,a,r){function o(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:u,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),a(h,m);const p=u.prototype,y=Object.keys(p);for(let v=0;v<y.length;v++){const x=y[v];x in h||(h[x]=p[x].bind(h))}}const l=r?.Parent??Object;class f extends l{}Object.defineProperty(f,"name",{value:e});function u(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(u,"init",{value:o}),Object.defineProperty(u,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class Tr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class M1 extends Error{constructor(a){super(`Encountered unidirectional transform during encode: ${a}`),this.name="ZodEncodeError"}}const k1={};function Pa(e){return k1}function D1(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 Qd(e,a){return typeof a=="bigint"?a.toString():a}function fu(e){return{get value(){{const a=e();return Object.defineProperty(this,"value",{value:a}),a}}}}function Gh(e){return e==null}function qh(e){const a=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(a,r)}function aM(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,u=Number.parseInt(e.toFixed(f).replace(".","")),h=Number.parseInt(a.toFixed(f).replace(".",""));return u%h/10**f}const V0=Symbol("evaluating");function Ce(e,a,r){let o;Object.defineProperty(e,a,{get(){if(o!==V0)return o===void 0&&(o=V0,o=r()),o},set(l){Object.defineProperty(e,a,{value:l})},configurable:!0})}function Ei(e,a,r){Object.defineProperty(e,a,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Qa(...e){const a={};for(const r of e){const o=Object.getOwnPropertyDescriptors(r);Object.assign(a,o)}return Object.defineProperties({},a)}function L0(e){return JSON.stringify(e)}function iM(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const N1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Io(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const rM=fu(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function wr(e){if(Io(e)===!1)return!1;const a=e.constructor;if(a===void 0||typeof a!="function")return!0;const r=a.prototype;return!(Io(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function j1(e){return wr(e)?{...e}:Array.isArray(e)?[...e]:e}const oM=new Set(["string","number","symbol"]);function zr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Fa(e,a,r){const o=new e._zod.constr(a??e._zod.def);return(!a||r?.parent)&&(o._zod.parent=e),o}function oe(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 sM(e){return Object.keys(e).filter(a=>e[a]._zod.optin==="optional"&&e[a]._zod.optout==="optional")}const lM={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 uM(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=Qa(e._zod.def,{get shape(){const u={};for(const h in a){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&(u[h]=r.shape[h])}return Ei(this,"shape",u),u},checks:[]});return Fa(e,f)}function cM(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=Qa(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const h in a){if(!(h in r.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&delete u[h]}return Ei(this,"shape",u),u},checks:[]});return Fa(e,f)}function fM(e,a){if(!wr(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 u in a)if(Object.getOwnPropertyDescriptor(f,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const l=Qa(e._zod.def,{get shape(){const f={...e._zod.def.shape,...a};return Ei(this,"shape",f),f}});return Fa(e,l)}function dM(e,a){if(!wr(a))throw new Error("Invalid input to safeExtend: expected a plain object");const r=Qa(e._zod.def,{get shape(){const o={...e._zod.def.shape,...a};return Ei(this,"shape",o),o}});return Fa(e,r)}function hM(e,a){const r=Qa(e._zod.def,{get shape(){const o={...e._zod.def.shape,...a._zod.def.shape};return Ei(this,"shape",o),o},get catchall(){return a._zod.def.catchall},checks:[]});return Fa(e,r)}function mM(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 u=Qa(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 Ei(this,"shape",m),m},checks:[]});return Fa(a,u)}function pM(e,a,r){const o=Qa(a._zod.def,{get shape(){const l=a._zod.def.shape,f={...l};if(r)for(const u in r){if(!(u in f))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(f[u]=new e({type:"nonoptional",innerType:l[u]}))}else for(const u in l)f[u]=new e({type:"nonoptional",innerType:l[u]});return Ei(this,"shape",f),f}});return Fa(a,o)}function yr(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 vr(e,a){return a.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Ll(e){return typeof e=="string"?e:e?.message}function Xa(e,a,r){const o={...e,path:e.path??[]};if(!e.message){const l=Ll(e.inst?._zod.def?.error?.(e))??Ll(a?.error?.(e))??Ll(r.customError?.(e))??Ll(r.localeError?.(e))??"Invalid input";o.message=l}return delete o.inst,delete o.continue,a?.reportInput||delete o.input,o}function Yh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Wo(...e){const[a,r,o]=e;return typeof a=="string"?{message:a,code:"custom",input:r,inst:o}:{...a}}const V1=(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,Qd,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},L1=G("$ZodError",V1),U1=G("$ZodError",V1,{Parent:Error});function gM(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 yM(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(u=>o({issues:u}));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 u=r,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(u[m]=u[m]||{_errors:[]},u[m]._errors.push(a(f))):u[m]=u[m]||{_errors:[]},u=u[m],h++}}};return o(e),r}const Ph=e=>(a,r,o,l)=>{const f=o?Object.assign(o,{async:!1}):{async:!1},u=a._zod.run({value:r,issues:[]},f);if(u instanceof Promise)throw new Tr;if(u.issues.length){const h=new(l?.Err??e)(u.issues.map(m=>Xa(m,f,Pa())));throw N1(h,l?.callee),h}return u.value},Xh=e=>async(a,r,o,l)=>{const f=o?Object.assign(o,{async:!0}):{async:!0};let u=a._zod.run({value:r,issues:[]},f);if(u instanceof Promise&&(u=await u),u.issues.length){const h=new(l?.Err??e)(u.issues.map(m=>Xa(m,f,Pa())));throw N1(h,l?.callee),h}return u.value},du=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 Tr;return f.issues.length?{success:!1,error:new(e??L1)(f.issues.map(u=>Xa(u,l,Pa())))}:{success:!0,data:f.value}},vM=du(U1),hu=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(u=>Xa(u,l,Pa())))}:{success:!0,data:f.value}},bM=hu(U1),xM=e=>(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ph(e)(a,r,l)},SM=e=>(a,r,o)=>Ph(e)(a,r,o),TM=e=>async(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Xh(e)(a,r,l)},_M=e=>async(a,r,o)=>Xh(e)(a,r,o),EM=e=>(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return du(e)(a,r,l)},wM=e=>(a,r,o)=>du(e)(a,r,o),zM=e=>async(a,r,o)=>{const l=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return hu(e)(a,r,l)},AM=e=>async(a,r,o)=>hu(e)(a,r,o),CM=/^[cC][^\s-]{8,}$/,RM=/^[0-9a-z]+$/,OM=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,MM=/^[0-9a-vA-V]{20}$/,kM=/^[A-Za-z0-9]{27}$/,DM=/^[a-zA-Z0-9_-]{21}$/,NM=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jM=/^([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})$/,U0=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)$/,VM=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,LM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function UM(){return new RegExp(LM,"u")}const BM=/^(?:(?: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])$/,ZM=/^(([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}|:))$/,HM=/^((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])$/,$M=/^(([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}=))?$/,B1=/^[A-Za-z0-9_-]*$/,qM=/^\+[1-9]\d{6,14}$/,Z1="(?:(?:\\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])))",YM=new RegExp(`^${Z1}$`);function H1(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 PM(e){return new RegExp(`^${H1(e)}$`)}function XM(e){const a=H1({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(`^${Z1}T(?:${o})$`)}const KM=e=>{const a=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${a}$`)},QM=/^-?\d+$/,$1=/^-?\d+(?:\.\d+)?$/,FM=/^(?:true|false)$/i,JM=/^[^A-Z]*$/,IM=/^[^a-z]*$/,Yt=G("$ZodCheck",(e,a)=>{var r;e._zod??(e._zod={}),e._zod.def=a,(r=e._zod).onattach??(r.onattach=[])}),G1={number:"number",bigint:"bigint",object:"date"},q1=G("$ZodCheckLessThan",(e,a)=>{Yt.init(e,a);const r=G1[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})}}),Y1=G("$ZodCheckGreaterThan",(e,a)=>{Yt.init(e,a);const r=G1[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})}}),WM=G("$ZodCheckMultipleOf",(e,a)=>{Yt.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):aM(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})}}),ek=G("$ZodCheckNumberFormat",(e,a)=>{Yt.init(e,a),a.format=a.format||"float64";const r=a.format?.includes("int"),o=r?"int":"number",[l,f]=lM[a.format];e._zod.onattach.push(u=>{const h=u._zod.bag;h.format=a.format,h.minimum=l,h.maximum=f,r&&(h.pattern=QM)}),e._zod.check=u=>{const h=u.value;if(r){if(!Number.isInteger(h)){u.issues.push({expected:o,format:a.format,code:"invalid_type",continue:!1,input:h,inst:e});return}if(!Number.isSafeInteger(h)){h>0?u.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}):u.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&&u.issues.push({origin:"number",input:h,code:"too_small",minimum:l,inclusive:!0,inst:e,continue:!a.abort}),h>f&&u.issues.push({origin:"number",input:h,code:"too_big",maximum:f,inclusive:!0,inst:e,continue:!a.abort})}}),tk=G("$ZodCheckMaxLength",(e,a)=>{var r;Yt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Gh(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 u=Yh(l);o.issues.push({origin:u,code:"too_big",maximum:a.maximum,inclusive:!0,input:l,inst:e,continue:!a.abort})}}),nk=G("$ZodCheckMinLength",(e,a)=>{var r;Yt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Gh(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 u=Yh(l);o.issues.push({origin:u,code:"too_small",minimum:a.minimum,inclusive:!0,input:l,inst:e,continue:!a.abort})}}),ak=G("$ZodCheckLengthEquals",(e,a)=>{var r;Yt.init(e,a),(r=e._zod.def).when??(r.when=o=>{const l=o.value;return!Gh(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 u=Yh(l),h=f>a.length;o.issues.push({origin:u,...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})}}),mu=G("$ZodCheckStringFormat",(e,a)=>{var r,o;Yt.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=()=>{})}),ik=G("$ZodCheckRegex",(e,a)=>{mu.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})}}),rk=G("$ZodCheckLowerCase",(e,a)=>{a.pattern??(a.pattern=JM),mu.init(e,a)}),ok=G("$ZodCheckUpperCase",(e,a)=>{a.pattern??(a.pattern=IM),mu.init(e,a)}),sk=G("$ZodCheckIncludes",(e,a)=>{Yt.init(e,a);const r=zr(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})}}),lk=G("$ZodCheckStartsWith",(e,a)=>{Yt.init(e,a);const r=new RegExp(`^${zr(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})}}),uk=G("$ZodCheckEndsWith",(e,a)=>{Yt.init(e,a);const r=new RegExp(`.*${zr(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})}}),ck=G("$ZodCheckOverwrite",(e,a)=>{Yt.init(e,a),e._zod.check=r=>{r.value=a.tx(r.value)}});class fk{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
|
-
`).filter(u=>u),l=Math.min(...o.map(u=>u.length-u.trimStart().length)),f=o.map(u=>u.slice(l)).map(u=>" ".repeat(this.indent*2)+u);for(const u of f)this.content.push(u)}compile(){const a=Function,r=this?.args,l=[...(this?.content??[""]).map(f=>` ${f}`)];return new a(...r,l.join(`
|
|
13
|
-
`))}}const dk={major:4,minor:3,patch:6},We=G("$ZodType",(e,a)=>{var r;e??(e={}),e._zod.def=a,e._zod.bag=e._zod.bag||{},e._zod.version=dk;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=(u,h,m)=>{let p=yr(u),y;for(const v of h){if(v._zod.def.when){if(!v._zod.def.when(u))continue}else if(p)continue;const x=u.issues.length,S=v._zod.check(u);if(S instanceof Promise&&m?.async===!1)throw new Tr;if(y||S instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await S,u.issues.length!==x&&(p||(p=yr(u,x)))});else{if(u.issues.length===x)continue;p||(p=yr(u,x))}}return y?y.then(()=>u):u},f=(u,h,m)=>{if(yr(u))return u.aborted=!0,u;const p=l(h,o,m);if(p instanceof Promise){if(m.async===!1)throw new Tr;return p.then(y=>e._zod.parse(y,m))}return e._zod.parse(p,m)};e._zod.run=(u,h)=>{if(h.skipChecks)return e._zod.parse(u,h);if(h.direction==="backward"){const p=e._zod.parse({value:u.value,issues:[]},{...h,skipChecks:!0});return p instanceof Promise?p.then(y=>f(y,u,h)):f(p,u,h)}const m=e._zod.parse(u,h);if(m instanceof Promise){if(h.async===!1)throw new Tr;return m.then(p=>l(p,o,h))}return l(m,o,h)}}Ce(e,"~standard",()=>({validate:l=>{try{const f=vM(e,l);return f.success?{value:f.data}:{issues:f.error?.issues}}catch{return bM(e,l).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Kh=G("$ZodString",(e,a)=>{We.init(e,a),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??KM(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}}),Ke=G("$ZodStringFormat",(e,a)=>{mu.init(e,a),Kh.init(e,a)}),hk=G("$ZodGUID",(e,a)=>{a.pattern??(a.pattern=jM),Ke.init(e,a)}),mk=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=U0(o))}else a.pattern??(a.pattern=U0());Ke.init(e,a)}),pk=G("$ZodEmail",(e,a)=>{a.pattern??(a.pattern=VM),Ke.init(e,a)}),gk=G("$ZodURL",(e,a)=>{Ke.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})}}}),yk=G("$ZodEmoji",(e,a)=>{a.pattern??(a.pattern=UM()),Ke.init(e,a)}),vk=G("$ZodNanoID",(e,a)=>{a.pattern??(a.pattern=DM),Ke.init(e,a)}),bk=G("$ZodCUID",(e,a)=>{a.pattern??(a.pattern=CM),Ke.init(e,a)}),xk=G("$ZodCUID2",(e,a)=>{a.pattern??(a.pattern=RM),Ke.init(e,a)}),Sk=G("$ZodULID",(e,a)=>{a.pattern??(a.pattern=OM),Ke.init(e,a)}),Tk=G("$ZodXID",(e,a)=>{a.pattern??(a.pattern=MM),Ke.init(e,a)}),_k=G("$ZodKSUID",(e,a)=>{a.pattern??(a.pattern=kM),Ke.init(e,a)}),Ek=G("$ZodISODateTime",(e,a)=>{a.pattern??(a.pattern=XM(a)),Ke.init(e,a)}),wk=G("$ZodISODate",(e,a)=>{a.pattern??(a.pattern=YM),Ke.init(e,a)}),zk=G("$ZodISOTime",(e,a)=>{a.pattern??(a.pattern=PM(a)),Ke.init(e,a)}),Ak=G("$ZodISODuration",(e,a)=>{a.pattern??(a.pattern=NM),Ke.init(e,a)}),Ck=G("$ZodIPv4",(e,a)=>{a.pattern??(a.pattern=BM),Ke.init(e,a),e._zod.bag.format="ipv4"}),Rk=G("$ZodIPv6",(e,a)=>{a.pattern??(a.pattern=ZM),Ke.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})}}}),Ok=G("$ZodCIDRv4",(e,a)=>{a.pattern??(a.pattern=HM),Ke.init(e,a)}),Mk=G("$ZodCIDRv6",(e,a)=>{a.pattern??(a.pattern=$M),Ke.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 u=Number(f);if(`${u}`!==f)throw new Error;if(u<0||u>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 P1(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const kk=G("$ZodBase64",(e,a)=>{a.pattern??(a.pattern=GM),Ke.init(e,a),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{P1(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!a.abort})}});function Dk(e){if(!B1.test(e))return!1;const a=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=a.padEnd(Math.ceil(a.length/4)*4,"=");return P1(r)}const Nk=G("$ZodBase64URL",(e,a)=>{a.pattern??(a.pattern=B1),Ke.init(e,a),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Dk(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!a.abort})}}),jk=G("$ZodE164",(e,a)=>{a.pattern??(a.pattern=qM),Ke.init(e,a)});function Vk(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 Lk=G("$ZodJWT",(e,a)=>{Ke.init(e,a),e._zod.check=r=>{Vk(r.value,a.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!a.abort})}}),X1=G("$ZodNumber",(e,a)=>{We.init(e,a),e._zod.pattern=e._zod.bag.pattern??$1,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}}),Uk=G("$ZodNumberFormat",(e,a)=>{ek.init(e,a),X1.init(e,a)}),Bk=G("$ZodBoolean",(e,a)=>{We.init(e,a),e._zod.pattern=FM,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}}),Zk=G("$ZodUnknown",(e,a)=>{We.init(e,a),e._zod.parse=r=>r}),Hk=G("$ZodNever",(e,a)=>{We.init(e,a),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function B0(e,a,r){e.issues.length&&a.issues.push(...vr(r,e.issues)),a.value[r]=e.value}const $k=G("$ZodArray",(e,a)=>{We.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 u=0;u<l.length;u++){const h=l[u],m=a.element._zod.run({value:h,issues:[]},o);m instanceof Promise?f.push(m.then(p=>B0(p,r,u))):B0(m,r,u)}return f.length?Promise.all(f).then(()=>r):r}});function nu(e,a,r,o,l){if(e.issues.length){if(l&&!(r in o))return;a.issues.push(...vr(r,e.issues))}e.value===void 0?r in o&&(a.value[r]=void 0):a.value[r]=e.value}function K1(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=sM(e.shape);return{...e,keys:a,keySet:new Set(a),numKeys:a.length,optionalKeys:new Set(r)}}function Q1(e,a,r,o,l,f){const u=[],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"){u.push(v);continue}const x=m.run({value:a[v],issues:[]},o);x instanceof Promise?e.push(x.then(S=>nu(S,r,v,a,y))):nu(x,r,v,a,y)}return u.length&&r.issues.push({code:"unrecognized_keys",keys:u,input:a,inst:f}),e.length?Promise.all(e).then(()=>r):r}const Gk=G("$ZodObject",(e,a)=>{if(We.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=fu(()=>K1(a));Ce(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=Io,f=a.catchall;let u;e._zod.parse=(h,m)=>{u??(u=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=u.shape;for(const x of u.keys){const S=v[x],O=S._zod.optout==="optional",C=S._zod.run({value:p[x],issues:[]},m);C instanceof Promise?y.push(C.then(R=>nu(R,h,x,p,O))):nu(C,h,x,p,O)}return f?Q1(y,p,h,m,o.value,e):y.length?Promise.all(y).then(()=>h):h}}),qk=G("$ZodObjectJIT",(e,a)=>{Gk.init(e,a);const r=e._zod.parse,o=fu(()=>K1(a)),l=x=>{const S=new fk(["shape","payload","ctx"]),O=o.value,C=V=>{const N=L0(V);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};S.write("const input = payload.value;");const R=Object.create(null);let B=0;for(const V of O.keys)R[V]=`key_${B++}`;S.write("const newResult = {};");for(const V of O.keys){const N=R[V],$=L0(V),F=x[V]?._zod?.optout==="optional";S.write(`const ${N} = ${C(V)};`),F?S.write(`
|
|
14
|
-
if (${N}.issues.length) {
|
|
15
|
-
if (${$} in input) {
|
|
16
|
-
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
17
|
-
...iss,
|
|
18
|
-
path: iss.path ? [${$}, ...iss.path] : [${$}]
|
|
19
|
-
})));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (${N}.value === undefined) {
|
|
24
|
-
if (${$} in input) {
|
|
25
|
-
newResult[${$}] = undefined;
|
|
26
|
-
}
|
|
27
|
-
} else {
|
|
28
|
-
newResult[${$}] = ${N}.value;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
`):S.write(`
|
|
32
|
-
if (${N}.issues.length) {
|
|
33
|
-
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
34
|
-
...iss,
|
|
35
|
-
path: iss.path ? [${$}, ...iss.path] : [${$}]
|
|
36
|
-
})));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (${N}.value === undefined) {
|
|
40
|
-
if (${$} in input) {
|
|
41
|
-
newResult[${$}] = undefined;
|
|
42
|
-
}
|
|
43
|
-
} else {
|
|
44
|
-
newResult[${$}] = ${N}.value;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
`)}S.write("payload.value = newResult;"),S.write("return payload;");const M=S.compile();return(V,N)=>M(x,V,N)};let f;const u=Io,h=!k1.jitless,p=h&&rM.value,y=a.catchall;let v;e._zod.parse=(x,S)=>{v??(v=o.value);const O=x.value;return u(O)?h&&p&&S?.async===!1&&S.jitless!==!0?(f||(f=l(a.shape)),x=f(x,S),y?Q1([],O,x,S,v,e):x):r(x,S):(x.issues.push({expected:"object",code:"invalid_type",input:O,inst:e}),x)}});function Z0(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=>!yr(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(u=>Xa(u,o,Pa())))}),a)}const F1=G("$ZodUnion",(e,a)=>{We.init(e,a),Ce(e._zod,"optin",()=>a.options.some(l=>l._zod.optin==="optional")?"optional":void 0),Ce(e._zod,"optout",()=>a.options.some(l=>l._zod.optout==="optional")?"optional":void 0),Ce(e._zod,"values",()=>{if(a.options.every(l=>l._zod.values))return new Set(a.options.flatMap(l=>Array.from(l._zod.values)))}),Ce(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=>qh(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 u=!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),u=!0;else{if(p.issues.length===0)return p;h.push(p)}}return u?Promise.all(h).then(m=>Z0(m,l,e,f)):Z0(h,l,e,f)}}),Yk=G("$ZodDiscriminatedUnion",(e,a)=>{a.inclusive=!1,F1.init(e,a);const r=e._zod.parse;Ce(e._zod,"propValues",()=>{const l={};for(const f of a.options){const u=f._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(f)}"`);for(const[h,m]of Object.entries(u)){l[h]||(l[h]=new Set);for(const p of m)l[h].add(p)}}return l});const o=fu(()=>{const l=a.options,f=new Map;for(const u of l){const h=u._zod.propValues?.[a.discriminator];if(!h||h.size===0)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(u)}"`);for(const m of h){if(f.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);f.set(m,u)}}return f});e._zod.parse=(l,f)=>{const u=l.value;if(!Io(u))return l.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),l;const h=o.value.get(u?.[a.discriminator]);return h?h._zod.run(l,f):a.unionFallback?r(l,f):(l.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:a.discriminator,input:u,path:[a.discriminator],inst:e}),l)}}),Pk=G("$ZodIntersection",(e,a)=>{We.init(e,a),e._zod.parse=(r,o)=>{const l=r.value,f=a.left._zod.run({value:l,issues:[]},o),u=a.right._zod.run({value:l,issues:[]},o);return f instanceof Promise||u instanceof Promise?Promise.all([f,u]).then(([m,p])=>H0(r,m,p)):H0(r,f,u)}});function Fd(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(wr(e)&&wr(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 u=Fd(e[f],a[f]);if(!u.valid)return{valid:!1,mergeErrorPath:[f,...u.mergeErrorPath]};l[f]=u.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],u=Fd(l,f);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function H0(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}),yr(e))return e;const u=Fd(a.value,r.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const Xk=G("$ZodRecord",(e,a)=>{We.init(e,a),e._zod.parse=(r,o)=>{const l=r.value;if(!wr(l))return r.issues.push({expected:"record",code:"invalid_type",input:l,inst:e}),r;const f=[],u=a.keyType._zod.values;if(u){r.value={};const h=new Set;for(const p of u)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){h.add(typeof p=="number"?p.toString():p);const y=a.valueType._zod.run({value:l[p],issues:[]},o);y instanceof Promise?f.push(y.then(v=>{v.issues.length&&r.issues.push(...vr(p,v.issues)),r.value[p]=v.value})):(y.issues.length&&r.issues.push(...vr(p,y.issues)),r.value[p]=y.value)}let m;for(const p in l)h.has(p)||(m=m??[],m.push(p));m&&m.length>0&&r.issues.push({code:"unrecognized_keys",input:l,inst:e,keys:m})}else{r.value={};for(const h of Reflect.ownKeys(l)){if(h==="__proto__")continue;let m=a.keyType._zod.run({value:h,issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof h=="string"&&$1.test(h)&&m.issues.length){const v=a.keyType._zod.run({value:Number(h),issues:[]},o);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");v.issues.length===0&&(m=v)}if(m.issues.length){a.mode==="loose"?r.value[h]=l[h]:r.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(v=>Xa(v,o,Pa())),input:h,path:[h],inst:e});continue}const y=a.valueType._zod.run({value:l[h],issues:[]},o);y instanceof Promise?f.push(y.then(v=>{v.issues.length&&r.issues.push(...vr(h,v.issues)),r.value[m.value]=v.value})):(y.issues.length&&r.issues.push(...vr(h,y.issues)),r.value[m.value]=y.value)}}return f.length?Promise.all(f).then(()=>r):r}}),Kk=G("$ZodEnum",(e,a)=>{We.init(e,a);const r=D1(a.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(l=>oM.has(typeof l)).map(l=>typeof l=="string"?zr(l):l.toString()).join("|")})$`),e._zod.parse=(l,f)=>{const u=l.value;return o.has(u)||l.issues.push({code:"invalid_value",values:r,input:u,inst:e}),l}}),Qk=G("$ZodLiteral",(e,a)=>{if(We.init(e,a),a.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(a.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${a.values.map(o=>typeof o=="string"?zr(o):o?zr(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,l)=>{const f=o.value;return r.has(f)||o.issues.push({code:"invalid_value",values:a.values,input:f,inst:e}),o}}),Fk=G("$ZodTransform",(e,a)=>{We.init(e,a),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new M1(e.constructor.name);const l=a.transform(r.value,r);if(o.async)return(l instanceof Promise?l:Promise.resolve(l)).then(u=>(r.value=u,r));if(l instanceof Promise)throw new Tr;return r.value=l,r}});function $0(e,a){return e.issues.length&&a===void 0?{issues:[],value:void 0}:e}const J1=G("$ZodOptional",(e,a)=>{We.init(e,a),e._zod.optin="optional",e._zod.optout="optional",Ce(e._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,void 0]):void 0),Ce(e._zod,"pattern",()=>{const r=a.innerType._zod.pattern;return r?new RegExp(`^(${qh(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=>$0(f,r.value)):$0(l,r.value)}return r.value===void 0?r:a.innerType._zod.run(r,o)}}),Jk=G("$ZodExactOptional",(e,a)=>{J1.init(e,a),Ce(e._zod,"values",()=>a.innerType._zod.values),Ce(e._zod,"pattern",()=>a.innerType._zod.pattern),e._zod.parse=(r,o)=>a.innerType._zod.run(r,o)}),Ik=G("$ZodNullable",(e,a)=>{We.init(e,a),Ce(e._zod,"optin",()=>a.innerType._zod.optin),Ce(e._zod,"optout",()=>a.innerType._zod.optout),Ce(e._zod,"pattern",()=>{const r=a.innerType._zod.pattern;return r?new RegExp(`^(${qh(r.source)}|null)$`):void 0}),Ce(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)}),Wk=G("$ZodDefault",(e,a)=>{We.init(e,a),e._zod.optin="optional",Ce(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=>G0(f,a)):G0(l,a)}});function G0(e,a){return e.value===void 0&&(e.value=a.defaultValue),e}const eD=G("$ZodPrefault",(e,a)=>{We.init(e,a),e._zod.optin="optional",Ce(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))}),tD=G("$ZodNonOptional",(e,a)=>{We.init(e,a),Ce(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=>q0(f,e)):q0(l,e)}});function q0(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 nD=G("$ZodCatch",(e,a)=>{We.init(e,a),Ce(e._zod,"optin",()=>a.innerType._zod.optin),Ce(e._zod,"optout",()=>a.innerType._zod.optout),Ce(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(u=>Xa(u,o,Pa()))},input:r.value}),r.issues=[]),r)):(r.value=l.value,l.issues.length&&(r.value=a.catchValue({...r,error:{issues:l.issues.map(f=>Xa(f,o,Pa()))},input:r.value}),r.issues=[]),r)}}),aD=G("$ZodPipe",(e,a)=>{We.init(e,a),Ce(e._zod,"values",()=>a.in._zod.values),Ce(e._zod,"optin",()=>a.in._zod.optin),Ce(e._zod,"optout",()=>a.out._zod.optout),Ce(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(u=>Ul(u,a.in,o)):Ul(f,a.in,o)}const l=a.in._zod.run(r,o);return l instanceof Promise?l.then(f=>Ul(f,a.out,o)):Ul(l,a.out,o)}});function Ul(e,a,r){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:e.value,issues:e.issues},r)}const iD=G("$ZodReadonly",(e,a)=>{We.init(e,a),Ce(e._zod,"propValues",()=>a.innerType._zod.propValues),Ce(e._zod,"values",()=>a.innerType._zod.values),Ce(e._zod,"optin",()=>a.innerType?._zod?.optin),Ce(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(Y0):Y0(l)}});function Y0(e){return e.value=Object.freeze(e.value),e}const rD=G("$ZodCustom",(e,a)=>{Yt.init(e,a),We.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=>P0(f,r,o,e));P0(l,r,o,e)}});function P0(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(Wo(l))}}var X0;let oD=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 sD(){return new oD}(X0=globalThis).__zod_globalRegistry??(X0.__zod_globalRegistry=sD());const Bo=globalThis.__zod_globalRegistry;function lD(e,a){return new e({type:"string",...oe(a)})}function uD(e,a){return new e({type:"string",format:"email",check:"string_format",abort:!1,...oe(a)})}function K0(e,a){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...oe(a)})}function cD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...oe(a)})}function fD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...oe(a)})}function dD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...oe(a)})}function hD(e,a){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...oe(a)})}function mD(e,a){return new e({type:"string",format:"url",check:"string_format",abort:!1,...oe(a)})}function pD(e,a){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...oe(a)})}function gD(e,a){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...oe(a)})}function yD(e,a){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...oe(a)})}function vD(e,a){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...oe(a)})}function bD(e,a){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...oe(a)})}function xD(e,a){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...oe(a)})}function SD(e,a){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...oe(a)})}function TD(e,a){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...oe(a)})}function _D(e,a){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...oe(a)})}function ED(e,a){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...oe(a)})}function wD(e,a){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...oe(a)})}function zD(e,a){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...oe(a)})}function AD(e,a){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...oe(a)})}function CD(e,a){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...oe(a)})}function RD(e,a){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...oe(a)})}function OD(e,a){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...oe(a)})}function MD(e,a){return new e({type:"string",format:"date",check:"string_format",...oe(a)})}function kD(e,a){return new e({type:"string",format:"time",check:"string_format",precision:null,...oe(a)})}function DD(e,a){return new e({type:"string",format:"duration",check:"string_format",...oe(a)})}function ND(e,a){return new e({type:"number",checks:[],...oe(a)})}function jD(e,a){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...oe(a)})}function VD(e,a){return new e({type:"boolean",...oe(a)})}function LD(e){return new e({type:"unknown"})}function UD(e,a){return new e({type:"never",...oe(a)})}function Q0(e,a){return new q1({check:"less_than",...oe(a),value:e,inclusive:!1})}function dd(e,a){return new q1({check:"less_than",...oe(a),value:e,inclusive:!0})}function F0(e,a){return new Y1({check:"greater_than",...oe(a),value:e,inclusive:!1})}function hd(e,a){return new Y1({check:"greater_than",...oe(a),value:e,inclusive:!0})}function J0(e,a){return new WM({check:"multiple_of",...oe(a),value:e})}function I1(e,a){return new tk({check:"max_length",...oe(a),maximum:e})}function au(e,a){return new nk({check:"min_length",...oe(a),minimum:e})}function W1(e,a){return new ak({check:"length_equals",...oe(a),length:e})}function BD(e,a){return new ik({check:"string_format",format:"regex",...oe(a),pattern:e})}function ZD(e){return new rk({check:"string_format",format:"lowercase",...oe(e)})}function HD(e){return new ok({check:"string_format",format:"uppercase",...oe(e)})}function $D(e,a){return new sk({check:"string_format",format:"includes",...oe(a),includes:e})}function GD(e,a){return new lk({check:"string_format",format:"starts_with",...oe(a),prefix:e})}function qD(e,a){return new uk({check:"string_format",format:"ends_with",...oe(a),suffix:e})}function jr(e){return new ck({check:"overwrite",tx:e})}function YD(e){return jr(a=>a.normalize(e))}function PD(){return jr(e=>e.trim())}function XD(){return jr(e=>e.toLowerCase())}function KD(){return jr(e=>e.toUpperCase())}function QD(){return jr(e=>iM(e))}function FD(e,a,r){return new e({type:"array",element:a,...oe(r)})}function JD(e,a,r){return new e({type:"custom",check:"custom",fn:a,...oe(r)})}function ID(e){const a=WD(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Wo(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(Wo(l))}},e(r.value,r)));return a}function WD(e,a){const r=new Yt({check:"custom",...oe(a)});return r._zod.check=e,r}function eS(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??Bo,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 mt(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 u={schema:{},count:1,cycle:void 0,path:r.path};a.seen.set(e,u);const h=e._zod.toJSONSchema?.();if(h)u.schema=h;else{const y={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(a,u.schema,y);else{const x=u.schema,S=a.processors[l.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);S(e,a,x,y)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),mt(v,a,y),a.seen.get(v).isParent=!0)}const m=a.metadataRegistry.get(e);return m&&Object.assign(u.schema,m),a.io==="input"&&jt(e)&&(delete u.schema.examples,delete u.schema.default),a.io==="input"&&u.schema._prefault&&((o=u.schema).default??(o.default=u.schema._prefault)),delete u.schema._prefault,a.seen.get(e).schema}function tS(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 u of e.seen.entries()){const h=e.metadataRegistry.get(u[0])?.id;if(h){const m=o.get(h);if(m&&m!==u[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,u[0])}}const l=u=>{const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(u[0])?.id,x=e.external.uri??(O=>O);if(v)return{ref:x(v)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${x("__shared")}#/${h}/${S}`}}if(u[1]===r)return{ref:"#"};const p=`#/${h}/`,y=u[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:p+y}},f=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:m,defId:p}=l(u);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 u of e.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
|
|
48
|
-
|
|
49
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const h=u[1];if(a===u[0]){f(u);continue}if(e.external){const p=e.external.registry.get(u[0])?.id;if(a!==u[0]&&p){f(u);continue}}if(e.metadataRegistry.get(u[0])?.id){f(u);continue}if(h.cycle){f(u);continue}if(h.count>1&&e.reused==="ref"){f(u);continue}}}function nS(e,a){const r=e.seen.get(a);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=u=>{const h=e.seen.get(u);if(h.ref===null)return;const m=h.def??h.schema,p={...m},y=h.ref;if(h.ref=null,y){o(y);const x=e.seen.get(y),S=x.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(S)):Object.assign(m,S),Object.assign(m,p),u._zod.parent===y)for(const C in m)C==="$ref"||C==="allOf"||C in p||delete m[C];if(S.$ref&&x.def)for(const C in m)C==="$ref"||C==="allOf"||C in x.def&&JSON.stringify(m[C])===JSON.stringify(x.def[C])&&delete m[C]}const v=u._zod.parent;if(v&&v!==y){o(v);const x=e.seen.get(v);if(x?.schema.$ref&&(m.$ref=x.schema.$ref,x.def))for(const S in m)S==="$ref"||S==="allOf"||S in x.def&&JSON.stringify(m[S])===JSON.stringify(x.def[S])&&delete m[S]}e.override({zodSchema:u,jsonSchema:m,path:h.path??[]})};for(const u of[...e.seen.entries()].reverse())o(u[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 u=e.external.registry.get(a)?.id;if(!u)throw new Error("Schema is missing an `id` property");l.$id=e.external.uri(u)}Object.assign(l,r.def??r.schema);const f=e.external?.defs??{};for(const u of e.seen.entries()){const h=u[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 u=JSON.parse(JSON.stringify(l));return Object.defineProperty(u,"~standard",{value:{...a["~standard"],jsonSchema:{input:iu(a,"input",e.processors),output:iu(a,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function jt(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 jt(o.element,r);if(o.type==="set")return jt(o.valueType,r);if(o.type==="lazy")return jt(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 jt(o.innerType,r);if(o.type==="intersection")return jt(o.left,r)||jt(o.right,r);if(o.type==="record"||o.type==="map")return jt(o.keyType,r)||jt(o.valueType,r);if(o.type==="pipe")return jt(o.in,r)||jt(o.out,r);if(o.type==="object"){for(const l in o.shape)if(jt(o.shape[l],r))return!0;return!1}if(o.type==="union"){for(const l of o.options)if(jt(l,r))return!0;return!1}if(o.type==="tuple"){for(const l of o.items)if(jt(l,r))return!0;return!!(o.rest&&jt(o.rest,r))}return!1}const e3=(e,a={})=>r=>{const o=eS({...r,processors:a});return mt(e,o),tS(o,e),nS(o,e)},iu=(e,a,r={})=>o=>{const{libraryOptions:l,target:f}=o??{},u=eS({...l??{},target:f,io:a,processors:r});return mt(e,u),tS(u,e),nS(u,e)},t3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},n3=(e,a,r,o)=>{const l=r;l.type="string";const{minimum:f,maximum:u,format:h,patterns:m,contentEncoding:p}=e._zod.bag;if(typeof f=="number"&&(l.minLength=f),typeof u=="number"&&(l.maxLength=u),h&&(l.format=t3[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}))])}},a3=(e,a,r,o)=>{const l=r,{minimum:f,maximum:u,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 u=="number"&&(l.maximum=u,typeof p=="number"&&a.target!=="draft-04"&&(p<=u?delete l.maximum:delete l.exclusiveMaximum)),typeof m=="number"&&(l.multipleOf=m)},i3=(e,a,r,o)=>{r.type="boolean"},r3=(e,a,r,o)=>{r.not={}},o3=(e,a,r,o)=>{},s3=(e,a,r,o)=>{const l=e._zod.def,f=D1(l.entries);f.every(u=>typeof u=="number")&&(r.type="number"),f.every(u=>typeof u=="string")&&(r.type="string"),r.enum=f},l3=(e,a,r,o)=>{const l=e._zod.def,f=[];for(const u of l.values)if(u===void 0){if(a.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof u=="bigint"){if(a.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");f.push(Number(u))}else f.push(u);if(f.length!==0)if(f.length===1){const u=f[0];r.type=u===null?"null":typeof u,a.target==="draft-04"||a.target==="openapi-3.0"?r.enum=[u]:r.const=u}else f.every(u=>typeof u=="number")&&(r.type="number"),f.every(u=>typeof u=="string")&&(r.type="string"),f.every(u=>typeof u=="boolean")&&(r.type="boolean"),f.every(u=>u===null)&&(r.type="null"),r.enum=f},u3=(e,a,r,o)=>{if(a.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},c3=(e,a,r,o)=>{if(a.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},f3=(e,a,r,o)=>{const l=r,f=e._zod.def,{minimum:u,maximum:h}=e._zod.bag;typeof u=="number"&&(l.minItems=u),typeof h=="number"&&(l.maxItems=h),l.type="array",l.items=mt(f.element,a,{...o,path:[...o.path,"items"]})},d3=(e,a,r,o)=>{const l=r,f=e._zod.def;l.type="object",l.properties={};const u=f.shape;for(const p in u)l.properties[p]=mt(u[p],a,{...o,path:[...o.path,"properties",p]});const h=new Set(Object.keys(u)),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=mt(f.catchall,a,{...o,path:[...o.path,"additionalProperties"]})):a.io==="output"&&(l.additionalProperties=!1)},h3=(e,a,r,o)=>{const l=e._zod.def,f=l.inclusive===!1,u=l.options.map((h,m)=>mt(h,a,{...o,path:[...o.path,f?"oneOf":"anyOf",m]}));f?r.oneOf=u:r.anyOf=u},m3=(e,a,r,o)=>{const l=e._zod.def,f=mt(l.left,a,{...o,path:[...o.path,"allOf",0]}),u=mt(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(u)?u.allOf:[u]];r.allOf=m},p3=(e,a,r,o)=>{const l=r,f=e._zod.def;l.type="object";const u=f.keyType,m=u._zod.bag?.patterns;if(f.mode==="loose"&&m&&m.size>0){const y=mt(f.valueType,a,{...o,path:[...o.path,"patternProperties","*"]});l.patternProperties={};for(const v of m)l.patternProperties[v.source]=y}else(a.target==="draft-07"||a.target==="draft-2020-12")&&(l.propertyNames=mt(f.keyType,a,{...o,path:[...o.path,"propertyNames"]})),l.additionalProperties=mt(f.valueType,a,{...o,path:[...o.path,"additionalProperties"]});const p=u._zod.values;if(p){const y=[...p].filter(v=>typeof v=="string"||typeof v=="number");y.length>0&&(l.required=y)}},g3=(e,a,r,o)=>{const l=e._zod.def,f=mt(l.innerType,a,o),u=a.seen.get(e);a.target==="openapi-3.0"?(u.ref=l.innerType,r.nullable=!0):r.anyOf=[f,{type:"null"}]},y3=(e,a,r,o)=>{const l=e._zod.def;mt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType},v3=(e,a,r,o)=>{const l=e._zod.def;mt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,r.default=JSON.parse(JSON.stringify(l.defaultValue))},b3=(e,a,r,o)=>{const l=e._zod.def;mt(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)))},x3=(e,a,r,o)=>{const l=e._zod.def;mt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType;let u;try{u=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},S3=(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;mt(f,a,o);const u=a.seen.get(e);u.ref=f},T3=(e,a,r,o)=>{const l=e._zod.def;mt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType,r.readOnly=!0},aS=(e,a,r,o)=>{const l=e._zod.def;mt(l.innerType,a,o);const f=a.seen.get(e);f.ref=l.innerType},_3=G("ZodISODateTime",(e,a)=>{Ek.init(e,a),tt.init(e,a)});function E3(e){return OD(_3,e)}const w3=G("ZodISODate",(e,a)=>{wk.init(e,a),tt.init(e,a)});function z3(e){return MD(w3,e)}const A3=G("ZodISOTime",(e,a)=>{zk.init(e,a),tt.init(e,a)});function C3(e){return kD(A3,e)}const R3=G("ZodISODuration",(e,a)=>{Ak.init(e,a),tt.init(e,a)});function O3(e){return DD(R3,e)}const M3=(e,a)=>{L1.init(e,a),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>yM(e,r)},flatten:{value:r=>gM(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Qd,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Qd,2)}},isEmpty:{get(){return e.issues.length===0}}})},vn=G("ZodError",M3,{Parent:Error}),k3=Ph(vn),D3=Xh(vn),N3=du(vn),j3=hu(vn),V3=xM(vn),L3=SM(vn),U3=TM(vn),B3=_M(vn),Z3=EM(vn),H3=wM(vn),$3=zM(vn),G3=AM(vn),et=G("ZodType",(e,a)=>(We.init(e,a),Object.assign(e["~standard"],{jsonSchema:{input:iu(e,"input"),output:iu(e,"output")}}),e.toJSONSchema=e3(e,{}),e.def=a,e.type=a.type,Object.defineProperty(e,"_def",{value:a}),e.check=(...r)=>e.clone(Qa(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)=>Fa(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>k3(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>N3(e,r,o),e.parseAsync=async(r,o)=>D3(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>j3(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>V3(e,r,o),e.decode=(r,o)=>L3(e,r,o),e.encodeAsync=async(r,o)=>U3(e,r,o),e.decodeAsync=async(r,o)=>B3(e,r,o),e.safeEncode=(r,o)=>Z3(e,r,o),e.safeDecode=(r,o)=>H3(e,r,o),e.safeEncodeAsync=async(r,o)=>$3(e,r,o),e.safeDecodeAsync=async(r,o)=>G3(e,r,o),e.refine=(r,o)=>e.check(L4(r,o)),e.superRefine=r=>e.check(U4(r)),e.overwrite=r=>e.check(jr(r)),e.optional=()=>nb(e),e.exactOptional=()=>E4(e),e.nullable=()=>ab(e),e.nullish=()=>nb(ab(e)),e.nonoptional=r=>O4(e,r),e.array=()=>es(e),e.or=r=>sS([e,r]),e.and=r=>v4(e,r),e.transform=r=>ib(e,T4(r)),e.default=r=>A4(e,r),e.prefault=r=>R4(e,r),e.catch=r=>k4(e,r),e.pipe=r=>ib(e,r),e.readonly=()=>j4(e),e.describe=r=>{const o=e.clone();return Bo.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Bo.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Bo.get(e);const o=e.clone();return Bo.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),iS=G("_ZodString",(e,a)=>{Kh.init(e,a),et.init(e,a),e._zod.processJSONSchema=(o,l,f)=>n3(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(BD(...o)),e.includes=(...o)=>e.check($D(...o)),e.startsWith=(...o)=>e.check(GD(...o)),e.endsWith=(...o)=>e.check(qD(...o)),e.min=(...o)=>e.check(au(...o)),e.max=(...o)=>e.check(I1(...o)),e.length=(...o)=>e.check(W1(...o)),e.nonempty=(...o)=>e.check(au(1,...o)),e.lowercase=o=>e.check(ZD(o)),e.uppercase=o=>e.check(HD(o)),e.trim=()=>e.check(PD()),e.normalize=(...o)=>e.check(YD(...o)),e.toLowerCase=()=>e.check(XD()),e.toUpperCase=()=>e.check(KD()),e.slugify=()=>e.check(QD())}),q3=G("ZodString",(e,a)=>{Kh.init(e,a),iS.init(e,a),e.email=r=>e.check(uD(Y3,r)),e.url=r=>e.check(mD(P3,r)),e.jwt=r=>e.check(RD(s4,r)),e.emoji=r=>e.check(pD(X3,r)),e.guid=r=>e.check(K0(I0,r)),e.uuid=r=>e.check(cD(Bl,r)),e.uuidv4=r=>e.check(fD(Bl,r)),e.uuidv6=r=>e.check(dD(Bl,r)),e.uuidv7=r=>e.check(hD(Bl,r)),e.nanoid=r=>e.check(gD(K3,r)),e.guid=r=>e.check(K0(I0,r)),e.cuid=r=>e.check(yD(Q3,r)),e.cuid2=r=>e.check(vD(F3,r)),e.ulid=r=>e.check(bD(J3,r)),e.base64=r=>e.check(zD(i4,r)),e.base64url=r=>e.check(AD(r4,r)),e.xid=r=>e.check(xD(I3,r)),e.ksuid=r=>e.check(SD(W3,r)),e.ipv4=r=>e.check(TD(e4,r)),e.ipv6=r=>e.check(_D(t4,r)),e.cidrv4=r=>e.check(ED(n4,r)),e.cidrv6=r=>e.check(wD(a4,r)),e.e164=r=>e.check(CD(o4,r)),e.datetime=r=>e.check(E3(r)),e.date=r=>e.check(z3(r)),e.time=r=>e.check(C3(r)),e.duration=r=>e.check(O3(r))});function Pe(e){return lD(q3,e)}const tt=G("ZodStringFormat",(e,a)=>{Ke.init(e,a),iS.init(e,a)}),Y3=G("ZodEmail",(e,a)=>{pk.init(e,a),tt.init(e,a)}),I0=G("ZodGUID",(e,a)=>{hk.init(e,a),tt.init(e,a)}),Bl=G("ZodUUID",(e,a)=>{mk.init(e,a),tt.init(e,a)}),P3=G("ZodURL",(e,a)=>{gk.init(e,a),tt.init(e,a)}),X3=G("ZodEmoji",(e,a)=>{yk.init(e,a),tt.init(e,a)}),K3=G("ZodNanoID",(e,a)=>{vk.init(e,a),tt.init(e,a)}),Q3=G("ZodCUID",(e,a)=>{bk.init(e,a),tt.init(e,a)}),F3=G("ZodCUID2",(e,a)=>{xk.init(e,a),tt.init(e,a)}),J3=G("ZodULID",(e,a)=>{Sk.init(e,a),tt.init(e,a)}),I3=G("ZodXID",(e,a)=>{Tk.init(e,a),tt.init(e,a)}),W3=G("ZodKSUID",(e,a)=>{_k.init(e,a),tt.init(e,a)}),e4=G("ZodIPv4",(e,a)=>{Ck.init(e,a),tt.init(e,a)}),t4=G("ZodIPv6",(e,a)=>{Rk.init(e,a),tt.init(e,a)}),n4=G("ZodCIDRv4",(e,a)=>{Ok.init(e,a),tt.init(e,a)}),a4=G("ZodCIDRv6",(e,a)=>{Mk.init(e,a),tt.init(e,a)}),i4=G("ZodBase64",(e,a)=>{kk.init(e,a),tt.init(e,a)}),r4=G("ZodBase64URL",(e,a)=>{Nk.init(e,a),tt.init(e,a)}),o4=G("ZodE164",(e,a)=>{jk.init(e,a),tt.init(e,a)}),s4=G("ZodJWT",(e,a)=>{Lk.init(e,a),tt.init(e,a)}),rS=G("ZodNumber",(e,a)=>{X1.init(e,a),et.init(e,a),e._zod.processJSONSchema=(o,l,f)=>a3(e,o,l),e.gt=(o,l)=>e.check(F0(o,l)),e.gte=(o,l)=>e.check(hd(o,l)),e.min=(o,l)=>e.check(hd(o,l)),e.lt=(o,l)=>e.check(Q0(o,l)),e.lte=(o,l)=>e.check(dd(o,l)),e.max=(o,l)=>e.check(dd(o,l)),e.int=o=>e.check(W0(o)),e.safe=o=>e.check(W0(o)),e.positive=o=>e.check(F0(0,o)),e.nonnegative=o=>e.check(hd(0,o)),e.negative=o=>e.check(Q0(0,o)),e.nonpositive=o=>e.check(dd(0,o)),e.multipleOf=(o,l)=>e.check(J0(o,l)),e.step=(o,l)=>e.check(J0(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 _i(e){return ND(rS,e)}const l4=G("ZodNumberFormat",(e,a)=>{Uk.init(e,a),rS.init(e,a)});function W0(e){return jD(l4,e)}const u4=G("ZodBoolean",(e,a)=>{Bk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>i3(e,r,o)});function Zo(e){return VD(u4,e)}const c4=G("ZodUnknown",(e,a)=>{Zk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>o3()});function eb(){return LD(c4)}const f4=G("ZodNever",(e,a)=>{Hk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>r3(e,r,o)});function d4(e){return UD(f4,e)}const h4=G("ZodArray",(e,a)=>{$k.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>f3(e,r,o,l),e.element=a.element,e.min=(r,o)=>e.check(au(r,o)),e.nonempty=r=>e.check(au(1,r)),e.max=(r,o)=>e.check(I1(r,o)),e.length=(r,o)=>e.check(W1(r,o)),e.unwrap=()=>e.element});function es(e,a){return FD(h4,e,a)}const m4=G("ZodObject",(e,a)=>{qk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>d3(e,r,o,l),Ce(e,"shape",()=>a.shape),e.keyof=()=>pu(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:eb()}),e.loose=()=>e.clone({...e._zod.def,catchall:eb()}),e.strict=()=>e.clone({...e._zod.def,catchall:d4()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>fM(e,r),e.safeExtend=r=>dM(e,r),e.merge=r=>hM(e,r),e.pick=r=>uM(e,r),e.omit=r=>cM(e,r),e.partial=(...r)=>mM(lS,e,r[0]),e.required=(...r)=>pM(uS,e,r[0])});function pn(e,a){const r={type:"object",shape:e??{},...oe(a)};return new m4(r)}const oS=G("ZodUnion",(e,a)=>{F1.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>h3(e,r,o,l),e.options=a.options});function sS(e,a){return new oS({type:"union",options:e,...oe(a)})}const p4=G("ZodDiscriminatedUnion",(e,a)=>{oS.init(e,a),Yk.init(e,a)});function g4(e,a,r){return new p4({type:"union",options:a,discriminator:e,...oe(r)})}const y4=G("ZodIntersection",(e,a)=>{Pk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>m3(e,r,o,l)});function v4(e,a){return new y4({type:"intersection",left:e,right:a})}const b4=G("ZodRecord",(e,a)=>{Xk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>p3(e,r,o,l),e.keyType=a.keyType,e.valueType=a.valueType});function Pl(e,a,r){return new b4({type:"record",keyType:e,valueType:a,...oe(r)})}const Jd=G("ZodEnum",(e,a)=>{Kk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(o,l,f)=>s3(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 u of o)if(r.has(u))f[u]=a.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Jd({...a,checks:[],...oe(l),entries:f})},e.exclude=(o,l)=>{const f={...a.entries};for(const u of o)if(r.has(u))delete f[u];else throw new Error(`Key ${u} not found in enum`);return new Jd({...a,checks:[],...oe(l),entries:f})}});function pu(e,a){const r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Jd({type:"enum",entries:r,...oe(a)})}const x4=G("ZodLiteral",(e,a)=>{Qk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>l3(e,r,o),e.values=new Set(a.values),Object.defineProperty(e,"value",{get(){if(a.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return a.values[0]}})});function tb(e,a){return new x4({type:"literal",values:Array.isArray(e)?e:[e],...oe(a)})}const S4=G("ZodTransform",(e,a)=>{Fk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>c3(e,r),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new M1(e.constructor.name);r.addIssue=f=>{if(typeof f=="string")r.issues.push(Wo(f,r.value,a));else{const u=f;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(Wo(u))}};const l=a.transform(r.value,r);return l instanceof Promise?l.then(f=>(r.value=f,r)):(r.value=l,r)}});function T4(e){return new S4({type:"transform",transform:e})}const lS=G("ZodOptional",(e,a)=>{J1.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>aS(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function nb(e){return new lS({type:"optional",innerType:e})}const _4=G("ZodExactOptional",(e,a)=>{Jk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>aS(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function E4(e){return new _4({type:"optional",innerType:e})}const w4=G("ZodNullable",(e,a)=>{Ik.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>g3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function ab(e){return new w4({type:"nullable",innerType:e})}const z4=G("ZodDefault",(e,a)=>{Wk.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>v3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function A4(e,a){return new z4({type:"default",innerType:e,get defaultValue(){return typeof a=="function"?a():j1(a)}})}const C4=G("ZodPrefault",(e,a)=>{eD.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>b3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function R4(e,a){return new C4({type:"prefault",innerType:e,get defaultValue(){return typeof a=="function"?a():j1(a)}})}const uS=G("ZodNonOptional",(e,a)=>{tD.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>y3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function O4(e,a){return new uS({type:"nonoptional",innerType:e,...oe(a)})}const M4=G("ZodCatch",(e,a)=>{nD.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>x3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function k4(e,a){return new M4({type:"catch",innerType:e,catchValue:typeof a=="function"?a:()=>a})}const D4=G("ZodPipe",(e,a)=>{aD.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>S3(e,r,o,l),e.in=a.in,e.out=a.out});function ib(e,a){return new D4({type:"pipe",in:e,out:a})}const N4=G("ZodReadonly",(e,a)=>{iD.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>T3(e,r,o,l),e.unwrap=()=>e._zod.def.innerType});function j4(e){return new N4({type:"readonly",innerType:e})}const V4=G("ZodCustom",(e,a)=>{rD.init(e,a),et.init(e,a),e._zod.processJSONSchema=(r,o,l)=>u3(e,r)});function L4(e,a={}){return JD(V4,e,a)}function U4(e){return ID(e)}const Je={agent:{name:"morpheus",personality:"helpful_dev"},logging:{enabled:!0,level:"info",retention:"14d"},audio:{provider:"google",enabled:!0,maxDurationSeconds:300,supportedMimeTypes:["audio/ogg","audio/mp3","audio/mpeg","audio/wav"]},memory:{limit:100},llm:{provider:"openai",model:"gpt-4",temperature:.7,context_window:100},channels:{telegram:{enabled:!1,allowedUsers:[]},discord:{enabled:!1}},ui:{enabled:!0,port:3333}},B4=pn({provider:pu(["google"]).default(Je.audio.provider),enabled:Zo().default(Je.audio.enabled),apiKey:Pe().optional(),maxDurationSeconds:_i().default(Je.audio.maxDurationSeconds),supportedMimeTypes:es(Pe()).default(Je.audio.supportedMimeTypes)}),cS=pn({provider:pu(["openai","anthropic","ollama","gemini"]).default(Je.llm.provider),model:Pe().min(1).default(Je.llm.model),temperature:_i().min(0).max(1).default(Je.llm.temperature),max_tokens:_i().int().positive().optional(),api_key:Pe().optional(),context_window:_i().int().positive().optional()}),Z4=cS.extend({memory_limit:_i().int().positive().optional()}),H4=pn({agent:pn({name:Pe().default(Je.agent.name),personality:Pe().default(Je.agent.personality)}).default(Je.agent),llm:cS.default(Je.llm),santi:Z4.optional(),audio:B4.default(Je.audio),memory:pn({limit:_i().int().positive().optional()}).default(Je.memory),channels:pn({telegram:pn({enabled:Zo().default(!1),token:Pe().optional(),allowedUsers:es(Pe()).default([])}).default(Je.channels.telegram),discord:pn({enabled:Zo().default(!1),token:Pe().optional()}).default(Je.channels.discord)}).default(Je.channels),ui:pn({enabled:Zo().default(Je.ui.enabled),port:_i().default(Je.ui.port)}).default(Je.ui),logging:pn({enabled:Zo().default(Je.logging.enabled),level:pu(["debug","info","warn","error"]).default(Je.logging.level),retention:Pe().default(Je.logging.retention)}).default(Je.logging)}),$4=g4("transport",[pn({transport:tb("stdio"),command:Pe().min(1,"Command is required for stdio transport"),args:es(Pe()).optional().default([]),env:Pl(Pe(),Pe()).optional().default({}),_comment:Pe().optional()}),pn({transport:tb("http"),url:Pe().url("Valid URL is required for http transport"),headers:Pl(Pe(),Pe()).optional().default({}),args:es(Pe()).optional().default([]),env:Pl(Pe(),Pe()).optional().default({}),_comment:Pe().optional()})]);Pl(Pe(),sS([$4,Pe()]));function fS(e,a,r){function o(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:u,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),a(h,m);const p=u.prototype,y=Object.keys(p);for(let v=0;v<y.length;v++){const x=y[v];x in h||(h[x]=p[x].bind(h))}}const l=r?.Parent??Object;class f extends l{}Object.defineProperty(f,"name",{value:e});function u(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(u,"init",{value:o}),Object.defineProperty(u,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}function Id(e,a){return typeof a=="bigint"?a.toString():a}const G4=(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,Id,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},q4=fS("$ZodError",G4);function Y4(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 P4(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(u=>o({issues:u}));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 u=r,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(u[m]=u[m]||{_errors:[]},u[m]._errors.push(a(f))):u[m]=u[m]||{_errors:[]},u=u[m],h++}}};return o(e),r}var rb;class X4{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 K4(){return new X4}(rb=globalThis).__zod_globalRegistry??(rb.__zod_globalRegistry=K4());const Q4=(e,a)=>{q4.init(e,a),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>P4(e,r)},flatten:{value:r=>Y4(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Id,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Id,2)}},isEmpty:{get(){return e.issues.length===0}}})},F4=fS("ZodError",Q4),J4=[{id:"general",label:"General"},{id:"llm",label:"LLM"},{id:"audio",label:"Audio"},{id:"channels",label:"Channels"},{id:"ui",label:"Interface"},{id:"logging",label:"Logging"}];function I4(){const{data:e,error:a}=_r("/api/config",Vl.fetchConfig),{data:r}=_r("/api/config/sati",Vl.getSatiConfig),[o,l]=E.useState(null),[f,u]=E.useState(null),[h,m]=E.useState("general"),[p,y]=E.useState(!1),[v,x]=E.useState({}),[S,O]=E.useState(null);E.useEffect(()=>{e&&!o&&l(e)},[e]),E.useEffect(()=>{r&&!f&&u(r)},[r]);const C=JSON.stringify(e)!==JSON.stringify(o)||JSON.stringify(r)!==JSON.stringify(f),R=(N,$)=>{if(!o)return;const I=JSON.parse(JSON.stringify(o));let F=I;for(let Y=0;Y<N.length-1;Y++)F=F[N[Y]];F[N[N.length-1]]=$,l(I);try{H4.parse(I),x({})}catch(Y){if(Y instanceof F4){const W={};Y.errors.forEach(ye=>{const _e=ye.path.join(".");W[_e]=ye.message}),x(W)}}},B=(N,$)=>{f&&u({...f,[N]:$})},M=()=>{!o||!f||u({...f,provider:o.llm.provider,model:o.llm.model,api_key:o.llm.api_key})},V=async()=>{if(o){y(!0),O(null);try{await Vl.updateConfig(o),f&&await Vl.updateSatiConfig(f),Ed("/api/config"),Ed("/api/config/sati"),O({type:"success",message:"Settings saved successfully. Restart Morpheus daemon for changes to take effect."})}catch(N){if(O({type:"error",message:N.message}),N.details&&Array.isArray(N.details)){const $={};N.details.forEach(I=>{const F=I.path.join(".");$[F]=I.message}),x($)}}finally{y(!1)}}};return a?_.jsx("div",{className:"p-8 text-red-500",children:"Failed to load configuration"}):o?_.jsxs("div",{className:"max-w-4xl mx-auto p-6 space-y-6",children:[_.jsxs("div",{className:"flex justify-between items-center",children:[_.jsx("h1",{className:"text-2xl font-bold text-azure-primary dark:text-matrix-highlight",children:"Settings"}),_.jsx("button",{onClick:V,disabled:!C||Object.keys(v).length>0||p,className:`px-4 py-2 rounded font-medium transition-colors ${C&&Object.keys(v).length===0?"bg-azure-primary text-white hover:bg-azure-active dark:bg-matrix-highlight dark:text-black dark:hover:bg-matrix-highlight/90":"bg-azure-border text-azure-text-secondary cursor-not-allowed dark:bg-matrix-primary/50 dark:text-matrix-highlight/50"}`,children:p?"Saving...":"Save Changes"})]}),S&&_.jsx("div",{className:`p-4 rounded border ${S.type==="success"?"border-azure-primary text-azure-primary bg-azure-primary/10 dark:border-matrix-highlight dark:text-matrix-highlight dark:bg-matrix-highlight/10":"border-red-500 text-red-500 bg-red-900/10"}`,children:S.message}),_.jsx("div",{className:"flex space-x-1 border-b border-azure-border dark:border-matrix-primary pb-px",children:J4.map(N=>_.jsx("button",{onClick:()=>m(N.id),className:`px-4 py-2 text-sm font-medium rounded-t-md transition-colors ${h===N.id?"bg-azure-surface/50 text-azure-primary border-t border-x border-azure-border dark:bg-matrix-primary/20 dark:text-matrix-highlight dark:border-t dark:border-x dark:border-matrix-primary":"text-azure-text-secondary hover:text-azure-primary dark:text-matrix-secondary dark:hover:text-matrix-highlight"}`,children:N.label},N.id))}),_.jsxs("div",{className:"space-y-6",children:[h==="general"&&_.jsxs(gi,{title:"Agent Identity",children:[_.jsx(jn,{label:"Agent Name",value:o.agent.name,onChange:N=>R(["agent","name"],N.target.value),error:v["agent.name"]}),_.jsx(jn,{label:"Personality",value:o.agent.personality,onChange:N=>R(["agent","personality"],N.target.value),error:v["agent.personality"]})]}),h==="llm"&&_.jsxs(_.Fragment,{children:[_.jsxs(gi,{title:"Oracle Agent",children:[_.jsx(Nl,{label:"Provider",value:o.llm.provider,onChange:N=>R(["llm","provider"],N.target.value),options:[{label:"OpenAI",value:"openai"},{label:"Anthropic",value:"anthropic"},{label:"Ollama",value:"ollama"},{label:"Google Gemini",value:"gemini"}],error:v["llm.provider"]}),_.jsx(jn,{label:"Model Name",value:o.llm.model,onChange:N=>R(["llm","model"],N.target.value),error:v["llm.model"]}),_.jsx(fr,{label:"Temperature",value:o.llm.temperature,onChange:N=>R(["llm","temperature"],parseFloat(N.target.value)),step:.1,min:0,max:1,error:v["llm.temperature"]}),_.jsx(fr,{label:"Max Tokens",value:o.llm.max_tokens??"",onChange:N=>R(["llm","max_tokens"],N.target.value?parseInt(N.target.value):void 0),min:1,error:v["llm.max_tokens"],helperText:"Maximum tokens per response. Leave empty for model default."}),_.jsx(fr,{label:"Context Window (Messages)",value:o.llm.context_window??100,onChange:N=>R(["llm","context_window"],parseInt(N.target.value)),min:1,step:1,error:v["llm.context_window"],helperText:"Number of past interactions to load into LLM context (e.g., 100)."}),_.jsx(jn,{label:"API Key",type:"password",value:o.llm.api_key||"",onChange:N=>R(["llm","api_key"],N.target.value),placeholder:"sk-...",helperText:"Stored locally."})]}),_.jsxs(gi,{title:"Sati Agent",children:[_.jsx("p",{className:"text-sm text-azure-text-secondary dark:text-matrix-secondary mb-4",children:"Configure the LLM used for memory consolidation"}),_.jsxs("div",{className:"mb-4",children:[_.jsx("button",{type:"button",onClick:M,className:"px-3 py-1.5 text-sm bg-azure-surface border border-azure-border rounded hover:bg-azure-primary/10 dark:bg-matrix-primary/20 dark:border-matrix-primary dark:hover:bg-matrix-highlight/10 text-azure-primary dark:text-matrix-highlight transition-colors",children:"Copy from Oracle Agent"}),_.jsx("p",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary mt-1",children:"Copy Provider, Model, and API Key from Oracle Agent configuration"})]}),f&&_.jsxs(_.Fragment,{children:[_.jsx(Nl,{label:"Provider",value:f.provider,onChange:N=>B("provider",N.target.value),options:[{label:"OpenAI",value:"openai"},{label:"Anthropic",value:"anthropic"},{label:"Ollama",value:"ollama"},{label:"Google Gemini",value:"gemini"}]}),_.jsx(jn,{label:"Model Name",value:f.model,onChange:N=>B("model",N.target.value)}),_.jsx(jn,{label:"API Key",type:"password",value:f.api_key||"",onChange:N=>B("api_key",N.target.value),placeholder:"sk-...",helperText:"Stored locally."}),_.jsx(fr,{label:"Memory Limit",value:f.memory_limit??10,onChange:N=>B("memory_limit",parseInt(N.target.value)),min:1,step:1,helperText:"Number of memory items to retrieve from long-term storage."})]})]})]}),h==="audio"&&_.jsxs(gi,{title:"Audio Transcription",children:[_.jsx(jl,{label:"Enable Audio",checked:o.audio.enabled,onChange:N=>R(["audio","enabled"],N)}),_.jsx(Nl,{label:"Provider",value:o.audio.provider||"google",onChange:N=>R(["audio","provider"],N.target.value),options:[{label:"Google Gemini",value:"google"}],error:v["audio.provider"]}),_.jsx(jn,{label:"API Key",type:"password",value:o.audio.apiKey||"",onChange:N=>R(["audio","apiKey"],N.target.value),placeholder:"If different from LLM key...",helperText:"Leave empty to use LLM API key if using same provider."}),_.jsx(fr,{label:"Max Duration (Seconds)",value:o.audio.maxDurationSeconds,onChange:N=>R(["audio","maxDurationSeconds"],parseInt(N.target.value)),min:1}),_.jsx(jn,{label:"Supported Mime Types",value:o.audio.supportedMimeTypes.join(", "),onChange:N=>R(["audio","supportedMimeTypes"],N.target.value.split(",").map($=>$.trim()).filter(Boolean)),helperText:"Comma separated list (e.g. audio/ogg, audio/mp3)"})]}),h==="channels"&&_.jsxs(gi,{title:"Telegram",children:[_.jsx(jl,{label:"Enable Telegram",checked:o.channels.telegram.enabled,onChange:N=>R(["channels","telegram","enabled"],N)}),o.channels.telegram.enabled&&_.jsxs("div",{className:"space-y-4 mt-4 pl-4 border-l border-matrix-primary",children:[_.jsx(jn,{label:"Bot Token",type:"password",value:o.channels.telegram.token||"",onChange:N=>R(["channels","telegram","token"],N.target.value)}),_.jsx(jn,{label:"Allowed Users (comma separated)",value:o.channels.telegram.allowedUsers.join(", "),onChange:N=>R(["channels","telegram","allowedUsers"],N.target.value.split(",").map($=>$.trim()).filter(Boolean)),helperText:"User IDs allowed to interact with the bot"})]})]}),h==="ui"&&_.jsxs(gi,{title:"Dashboard",children:[_.jsx(jl,{label:"Enable Web UI",checked:o.ui.enabled,onChange:N=>R(["ui","enabled"],N)}),_.jsx(fr,{label:"Port",value:o.ui.port,onChange:N=>R(["ui","port"],parseInt(N.target.value)),disabled:!0,helperText:"Requires restart to change."})]}),h==="logging"&&_.jsxs(gi,{title:"Logging",children:[_.jsx(jl,{label:"Enable Logging",checked:o.logging.enabled,onChange:N=>R(["logging","enabled"],N)}),_.jsx(Nl,{label:"Log Level",value:o.logging.level,onChange:N=>R(["logging","level"],N.target.value),options:[{label:"Debug",value:"debug"},{label:"Info",value:"info"},{label:"Warning",value:"warn"},{label:"Error",value:"error"}]})]})]})]}):_.jsx("div",{className:"p-8 text-azure-primary dark:text-matrix-highlight",children:"Loading settings..."})}function W4(){const{data:e}=Oz(),[a,r]=E.useState(null),{data:o,mutate:l}=Mz(a);return E.useEffect(()=>{!a&&e&&e.length>0&&r(e[0].name)},[e,a]),_.jsxs(sa.div,{className:"h-full flex flex-col space-y-4",initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.3},children:[_.jsxs("div",{children:[_.jsx("h2",{className:"text-2xl font-bold text-azure-primary dark:text-matrix-highlight",children:"SYSTEM LOGS"}),_.jsx("p",{className:"text-azure-text-secondary dark:text-matrix-secondary opacity-80",children:"View runtime logs."})]}),_.jsxs("div",{className:"flex-1 flex gap-4 overflow-hidden border border-azure-border dark:border-matrix-primary rounded bg-azure-surface dark:bg-zinc-950 p-4",children:[_.jsxs("div",{className:"w-64 flex flex-col gap-2 border-r border-azure-border dark:border-matrix-primary pr-4 overflow-y-auto shrink-0",children:[_.jsx("h3",{className:"font-bold text-azure-text-secondary dark:text-matrix-secondary mb-2 sticky top-0 bg-azure-surface dark:bg-zinc-950",children:"LOG FILES"}),e?.map(f=>_.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-azure-active text-azure-primary dark:bg-matrix-primary dark:text-matrix-highlight":"text-azure-text-secondary dark:text-matrix-secondary hover:bg-azure-hover dark:hover:bg-zinc-900 group-hover:text-azure-primary dark:group-hover:text-matrix-highlight"}`,children:[_.jsx(Vw,{className:"w-4 h-4 shrink-0"}),_.jsxs("div",{className:"flex flex-col overflow-hidden",children:[_.jsx("span",{className:"truncate font-bold",children:f.name}),_.jsxs("span",{className:"text-xs opacity-70",children:[(f.size/1024).toFixed(1)," KB"]})]})]},f.name))]}),_.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden bg-azure-bg dark:bg-black border border-azure-border dark:border-matrix-primary/50 rounded",children:[_.jsxs("div",{className:"flex justify-between items-center p-2 bg-azure-hover dark:bg-zinc-900 border-b border-azure-border dark:border-matrix-primary/50",children:[_.jsx("span",{className:"text-azure-text-primary dark:text-matrix-highlight font-bold font-mono text-sm",children:a}),_.jsx("button",{onClick:()=>l(),className:"text-azure-text-secondary dark:text-matrix-secondary hover:text-azure-primary dark:hover:text-matrix-highlight transition-colors",children:_.jsx(Pw,{className:"w-4 h-4"})})]}),_.jsx("div",{className:"flex-1 overflow-auto p-4 font-mono text-xs whitespace-pre-wrap text-azure-text-primary dark:text-white",children:o?o.lines.join(`
|
|
50
|
-
`):"Select a log file to view content..."})]})]})]})}function eN(){const[e,a]=E.useState(null),[r,o]=E.useState([]),[l,f]=E.useState(!0),[u,h]=E.useState("");if(E.useEffect(()=>{async function y(){try{const[v,x]=await Promise.all([Xd.fetchUsageStats(),Xd.fetchGroupedUsageStats()]);a(v),o(x)}catch(v){h("Failed to load usage statistics"),console.error(v)}finally{f(!1)}}y()},[]),l)return _.jsx("div",{className:"flex items-center justify-center h-64 text-azure-accent dark:text-matrix-highlight font-mono animate-pulse",children:"LOADING_DATA_STREAM..."});if(u)return _.jsxs("div",{className:"p-4 bg-red-900/20 border border-red-500/50 text-red-500 font-mono rounded",children:["ERROR_ACCESSING_DATABASE: ",u]});const m={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.1}}},p={hidden:{y:20,opacity:0},show:{y:0,opacity:1}};return _.jsxs(sa.div,{variants:m,initial:"hidden",animate:"show",className:"space-y-6",children:[_.jsx("div",{className:"flex items-center justify-between border-b border-azure-border dark:border-matrix-primary pb-4",children:_.jsxs("div",{children:[_.jsxs("h2",{className:"text-2xl font-bold text-azure-primary dark:text-matrix-highlight font-mono flex items-center gap-2",children:[_.jsx(zb,{className:"w-6 h-6"}),"USAGE_ANALYTICS"]}),_.jsx("p",{className:"text-azure-text-muted dark:text-matrix-secondary mt-1 font-mono text-sm",children:"Resource consumption tracking and metrics"})]})}),_.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[_.jsxs(sa.div,{variants:p,className:"p-6 bg-azure-surface dark:bg-black/40 border border-azure-border dark:border-matrix-primary rounded-lg shadow-sm backdrop-blur-sm",children:[_.jsxs("div",{className:"flex items-center gap-3 mb-2 text-azure-text-muted dark:text-matrix-secondary",children:[_.jsx($w,{className:"w-5 h-5"}),_.jsx("h3",{className:"font-mono text-sm font-bold uppercase",children:"Total Input Tokens"})]}),_.jsx("p",{className:"text-3xl font-bold text-azure-text-primary dark:text-matrix-highlight font-mono",children:e?.totalInputTokens.toLocaleString()??0})]}),_.jsxs(sa.div,{variants:p,className:"p-6 bg-azure-surface dark:bg-black/40 border border-azure-border dark:border-matrix-primary rounded-lg shadow-sm backdrop-blur-sm",children:[_.jsxs("div",{className:"flex items-center gap-3 mb-2 text-azure-text-muted dark:text-matrix-secondary",children:[_.jsx(Nw,{className:"w-5 h-5"}),_.jsx("h3",{className:"font-mono text-sm font-bold uppercase",children:"Total Output Tokens"})]}),_.jsx("p",{className:"text-3xl font-bold text-azure-text-primary dark:text-matrix-highlight font-mono",children:e?.totalOutputTokens.toLocaleString()??0})]})]}),_.jsxs(sa.div,{variants:p,className:"bg-azure-surface dark:bg-black/40 border border-azure-border dark:border-matrix-primary rounded-lg overflow-hidden backdrop-blur-sm",children:[_.jsx("div",{className:"p-4 border-b border-azure-border dark:border-matrix-primary bg-azure-bg dark:bg-zinc-900/50",children:_.jsx("h3",{className:"text-lg font-bold text-azure-text-primary dark:text-matrix-highlight font-mono uppercase",children:"Usage Breakdown by Model"})}),_.jsx("div",{className:"overflow-x-auto",children:_.jsxs("table",{className:"w-full text-left font-mono text-sm",children:[_.jsx("thead",{className:"bg-azure-bg dark:bg-zinc-900/50 text-azure-text-secondary dark:text-matrix-secondary border-b border-azure-border dark:border-matrix-primary",children:_.jsxs("tr",{children:[_.jsx("th",{className:"p-4",children:"Provider"}),_.jsx("th",{className:"p-4",children:"Model"}),_.jsx("th",{className:"p-4 text-right",children:"Messages"}),_.jsx("th",{className:"p-4 text-right",children:"Input Tokens"}),_.jsx("th",{className:"p-4 text-right",children:"Output Tokens"}),_.jsx("th",{className:"p-4 text-right",children:"Total Tokens"})]})}),_.jsx("tbody",{className:"divide-y divide-azure-border dark:divide-matrix-primary/30",children:r.length===0?_.jsx("tr",{children:_.jsx("td",{colSpan:6,className:"p-8 text-center text-azure-text-muted dark:text-matrix-secondary italic",children:"NO_DATA_AVAILABLE"})}):r.map((y,v)=>_.jsxs("tr",{className:"hover:bg-azure-hover dark:hover:bg-matrix-primary/10 transition-colors",children:[_.jsx("td",{className:"p-4 font-bold text-azure-text-primary dark:text-matrix-highlight",children:y.provider}),_.jsx("td",{className:"p-4 text-azure-text-secondary dark:text-matrix-secondary",children:y.model}),_.jsx("td",{className:"p-4 text-right text-azure-text-primary dark:text-gray-300",children:y.messageCount.toLocaleString()}),_.jsx("td",{className:"p-4 text-right text-azure-text-primary dark:text-gray-300",children:y.totalInputTokens.toLocaleString()}),_.jsx("td",{className:"p-4 text-right text-azure-text-primary dark:text-gray-300",children:y.totalOutputTokens.toLocaleString()}),_.jsx("td",{className:"p-4 text-right font-bold text-azure-text-primary dark:text-matrix-highlight",children:y.totalTokens.toLocaleString()})]},`${y.provider}-${y.model}-${v}`))})]})})]})]})}const tN=()=>{const[e,a]=E.useState(""),[r,o]=E.useState(""),l=ah(),f=zn(),u=h=>{h.preventDefault(),e&&(o(""),fetch("/api/config",{headers:{"x-architect-pass":e}}).then(async m=>{if(m.ok){localStorage.setItem("morpheus.auth.token",e);const p=f.state?.from?.pathname||"/";l(p,{replace:!0})}else o("Invalid architect password")}).catch(()=>{o("Connection failed")}))};return _.jsx("div",{className:"flex items-center justify-center min-h-screen bg-azure-bg dark:bg-black text-azure-primary dark:text-green-500 font-mono",children:_.jsxs("div",{className:"max-w-md w-full p-8 border border-azure-primary dark:border-green-500 shadow-xl dark:shadow-[0_0_15px_rgba(34,197,94,0.3)] bg-white dark:bg-black rounded-lg dark:rounded-none",children:[_.jsx("h1",{className:"text-2xl font-bold mb-6 text-center tracking-widest uppercase text-azure-primary dark:text-green-500",children:"> The Architect Login"}),_.jsxs("form",{onSubmit:u,className:"space-y-6",children:[_.jsxs("div",{children:[_.jsx("label",{className:"block text-sm mb-2 opacity-70 text-azure-text-secondary dark:text-green-500",children:"ACCESS_PASS:"}),_.jsx("input",{type:"password",value:e,onChange:h=>a(h.target.value),className:"w-full bg-azure-bg dark:bg-black border border-azure-border dark:border-green-800 p-2 focus:outline-none focus:border-azure-primary dark:focus:border-green-500 text-azure-text-primary dark:text-green-500 placeholder-azure-text-secondary/50 dark:placeholder-green-900 rounded dark:rounded-none",placeholder:"••••••••",autoFocus:!0})]}),r&&_.jsxs("div",{className:"text-red-500 text-sm animate-pulse",children:["[!] ERROR: ",r]}),_.jsx("button",{type:"submit",className:"w-full bg-azure-primary hover:bg-azure-active dark:bg-green-900 dark:hover:bg-green-700 text-white dark:text-black font-bold py-2 transition-colors duration-200 uppercase tracking-wider rounded dark:rounded-none",children:"Authenticate"})]}),_.jsx("div",{className:"mt-8 text-[10px] opacity-30 text-center uppercase text-azure-text-secondary dark:text-green-500",children:"Morpheus OS v0.1.5 | Unauthorized access is logged."})]})})},nN=({children:e})=>{const{isAuthenticated:a}=v1(),r=zn();return a?_.jsx(_.Fragment,{children:e}):_.jsx(bb,{to:"/login",state:{from:r},replace:!0})};function aN(){return _.jsx(iw,{children:_.jsxs(ov,{children:[_.jsx(Ba,{path:"/login",element:_.jsx(tN,{})}),_.jsx(Ba,{path:"/*",element:_.jsx(nN,{children:_.jsx(dO,{children:_.jsxs(ov,{children:[_.jsx(Ba,{path:"/",element:_.jsx(pO,{})}),_.jsx(Ba,{path:"/config",element:_.jsx(I4,{})}),_.jsx(Ba,{path:"/logs",element:_.jsx(W4,{})}),_.jsx(Ba,{path:"/stats",element:_.jsx(eN,{})}),_.jsx(Ba,{path:"*",element:_.jsx(bb,{to:"/",replace:!0})})]})})})})]})})}U_.createRoot(document.getElementById("root")).render(_.jsx(E.StrictMode,{children:_.jsx(aN,{})}));
|