@openparachute/agent 0.2.2 → 0.2.3-rc.2
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/.parachute/module.json +3 -3
- package/package.json +1 -1
- package/src/agent-defs.test.ts +11 -11
- package/src/agents.test.ts +2 -2
- package/src/backends/programmatic.test.ts +5 -5
- package/src/daemon-agent-defs-api.test.ts +6 -6
- package/src/daemon-agent-env-api.test.ts +2 -2
- package/src/daemon-config-api.test.ts +2 -2
- package/src/daemon-jobs-api.test.ts +2 -2
- package/src/daemon.test.ts +5 -5
- package/src/jobs.test.ts +2 -2
- package/src/mint-token.test.ts +2 -2
- package/src/module-manifest.test.ts +2 -2
- package/src/programmatic-wiring.test.ts +2 -2
- package/src/spawn-agent-cli.test.ts +2 -2
- package/src/spawn-agent.test.ts +4 -4
- package/src/transports/vault.test.ts +65 -64
- package/src/transports/vault.ts +21 -21
- package/web/ui/dist/assets/index-5KEwEhfi.js +60 -0
- package/web/ui/dist/index.html +1 -1
- package/web/ui/dist/assets/index-VFETBk0a.js +0 -60
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))s(d);new MutationObserver(d=>{for(const y of d)if(y.type==="childList")for(const b of y.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&s(b)}).observe(document,{childList:!0,subtree:!0});function f(d){const y={};return d.integrity&&(y.integrity=d.integrity),d.referrerPolicy&&(y.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?y.credentials="include":d.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function s(d){if(d.ep)return;d.ep=!0;const y=f(d);fetch(d.href,y)}})();var Gs={exports:{}},qn={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Eh;function Zy(){if(Eh)return qn;Eh=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(s,d,y){var b=null;if(y!==void 0&&(b=""+y),d.key!==void 0&&(b=""+d.key),"key"in d){y={};for(var j in d)j!=="key"&&(y[j]=d[j])}else y=d;return d=y.ref,{$$typeof:i,type:s,key:b,ref:d!==void 0?d:null,props:y}}return qn.Fragment=o,qn.jsx=f,qn.jsxs=f,qn}var jh;function ky(){return jh||(jh=1,Gs.exports=Zy()),Gs.exports}var r=ky(),Xs={exports:{}},ne={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Nh;function Ky(){if(Nh)return ne;Nh=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),D=Symbol.iterator;function Y(v){return v===null||typeof v!="object"?null:(v=D&&v[D]||v["@@iterator"],typeof v=="function"?v:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,Q={};function H(v,_,w){this.props=v,this.context=_,this.refs=Q,this.updater=w||V}H.prototype.isReactComponent={},H.prototype.setState=function(v,_){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,_,"setState")},H.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function O(){}O.prototype=H.prototype;function X(v,_,w){this.props=v,this.context=_,this.refs=Q,this.updater=w||V}var K=X.prototype=new O;K.constructor=X,q(K,H.prototype),K.isPureReactComponent=!0;var $=Array.isArray;function se(){}var F={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function be(v,_,w){var k=w.ref;return{$$typeof:i,type:v,key:_,ref:k!==void 0?k:null,props:w}}function Me(v,_){return be(v.type,_,v.props)}function te(v){return typeof v=="object"&&v!==null&&v.$$typeof===i}function xe(v){var _={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(w){return _[w]})}var Ie=/\/+/g;function ke(v,_){return typeof v=="object"&&v!==null&&v.key!=null?xe(""+v.key):_.toString(36)}function _e(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(se,se):(v.status="pending",v.then(function(_){v.status==="pending"&&(v.status="fulfilled",v.value=_)},function(_){v.status==="pending"&&(v.status="rejected",v.reason=_)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function M(v,_,w,k,le){var ce=typeof v;(ce==="undefined"||ce==="boolean")&&(v=null);var ye=!1;if(v===null)ye=!0;else switch(ce){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(v.$$typeof){case i:case o:ye=!0;break;case C:return ye=v._init,M(ye(v._payload),_,w,k,le)}}if(ye)return le=le(v),ye=k===""?"."+ke(v,0):k,$(le)?(w="",ye!=null&&(w=ye.replace(Ie,"$&/")+"/"),M(le,_,w,"",function(Pe){return Pe})):le!=null&&(te(le)&&(le=Me(le,w+(le.key==null||v&&v.key===le.key?"":(""+le.key).replace(Ie,"$&/")+"/")+ye)),_.push(le)),1;ye=0;var Qe=k===""?".":k+":";if($(v))for(var de=0;de<v.length;de++)k=v[de],ce=Qe+ke(k,de),ye+=M(k,_,w,ce,le);else if(de=Y(v),typeof de=="function")for(v=de.call(v),de=0;!(k=v.next()).done;)k=k.value,ce=Qe+ke(k,de++),ye+=M(k,_,w,ce,le);else if(ce==="object"){if(typeof v.then=="function")return M(_e(v),_,w,k,le);throw _=String(v),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return ye}function Z(v,_,w){if(v==null)return v;var k=[],le=0;return M(v,k,"","",function(ce){return _.call(w,ce,le++)}),k}function G(v){if(v._status===-1){var _=v._result;_=_(),_.then(function(w){(v._status===0||v._status===-1)&&(v._status=1,v._result=w)},function(w){(v._status===0||v._status===-1)&&(v._status=2,v._result=w)}),v._status===-1&&(v._status=0,v._result=_)}if(v._status===1)return v._result.default;throw v._result}var ae=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},re={map:Z,forEach:function(v,_,w){Z(v,function(){_.apply(this,arguments)},w)},count:function(v){var _=0;return Z(v,function(){_++}),_},toArray:function(v){return Z(v,function(_){return _})||[]},only:function(v){if(!te(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return ne.Activity=N,ne.Children=re,ne.Component=H,ne.Fragment=f,ne.Profiler=d,ne.PureComponent=X,ne.StrictMode=s,ne.Suspense=S,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ne.__COMPILER_RUNTIME={__proto__:null,c:function(v){return F.H.useMemoCache(v)}},ne.cache=function(v){return function(){return v.apply(null,arguments)}},ne.cacheSignal=function(){return null},ne.cloneElement=function(v,_,w){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var k=q({},v.props),le=v.key;if(_!=null)for(ce in _.key!==void 0&&(le=""+_.key),_)!I.call(_,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&_.ref===void 0||(k[ce]=_[ce]);var ce=arguments.length-2;if(ce===1)k.children=w;else if(1<ce){for(var ye=Array(ce),Qe=0;Qe<ce;Qe++)ye[Qe]=arguments[Qe+2];k.children=ye}return be(v.type,le,k)},ne.createContext=function(v){return v={$$typeof:b,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:y,_context:v},v},ne.createElement=function(v,_,w){var k,le={},ce=null;if(_!=null)for(k in _.key!==void 0&&(ce=""+_.key),_)I.call(_,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(le[k]=_[k]);var ye=arguments.length-2;if(ye===1)le.children=w;else if(1<ye){for(var Qe=Array(ye),de=0;de<ye;de++)Qe[de]=arguments[de+2];le.children=Qe}if(v&&v.defaultProps)for(k in ye=v.defaultProps,ye)le[k]===void 0&&(le[k]=ye[k]);return be(v,ce,le)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(v){return{$$typeof:j,render:v}},ne.isValidElement=te,ne.lazy=function(v){return{$$typeof:C,_payload:{_status:-1,_result:v},_init:G}},ne.memo=function(v,_){return{$$typeof:m,type:v,compare:_===void 0?null:_}},ne.startTransition=function(v){var _=F.T,w={};F.T=w;try{var k=v(),le=F.S;le!==null&&le(w,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(se,ae)}catch(ce){ae(ce)}finally{_!==null&&w.types!==null&&(_.types=w.types),F.T=_}},ne.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ne.use=function(v){return F.H.use(v)},ne.useActionState=function(v,_,w){return F.H.useActionState(v,_,w)},ne.useCallback=function(v,_){return F.H.useCallback(v,_)},ne.useContext=function(v){return F.H.useContext(v)},ne.useDebugValue=function(){},ne.useDeferredValue=function(v,_){return F.H.useDeferredValue(v,_)},ne.useEffect=function(v,_){return F.H.useEffect(v,_)},ne.useEffectEvent=function(v){return F.H.useEffectEvent(v)},ne.useId=function(){return F.H.useId()},ne.useImperativeHandle=function(v,_,w){return F.H.useImperativeHandle(v,_,w)},ne.useInsertionEffect=function(v,_){return F.H.useInsertionEffect(v,_)},ne.useLayoutEffect=function(v,_){return F.H.useLayoutEffect(v,_)},ne.useMemo=function(v,_){return F.H.useMemo(v,_)},ne.useOptimistic=function(v,_){return F.H.useOptimistic(v,_)},ne.useReducer=function(v,_,w){return F.H.useReducer(v,_,w)},ne.useRef=function(v){return F.H.useRef(v)},ne.useState=function(v){return F.H.useState(v)},ne.useSyncExternalStore=function(v,_,w){return F.H.useSyncExternalStore(v,_,w)},ne.useTransition=function(){return F.H.useTransition()},ne.version="19.2.7",ne}var Ch;function lr(){return Ch||(Ch=1,Xs.exports=Ky()),Xs.exports}var g=lr(),Qs={exports:{}},Yn={},Vs={exports:{}},Zs={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Th;function Jy(){return Th||(Th=1,(function(i){function o(M,Z){var G=M.length;M.push(Z);e:for(;0<G;){var ae=G-1>>>1,re=M[ae];if(0<d(re,Z))M[ae]=Z,M[G]=re,G=ae;else break e}}function f(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var Z=M[0],G=M.pop();if(G!==Z){M[0]=G;e:for(var ae=0,re=M.length,v=re>>>1;ae<v;){var _=2*(ae+1)-1,w=M[_],k=_+1,le=M[k];if(0>d(w,G))k<re&&0>d(le,w)?(M[ae]=le,M[k]=G,ae=k):(M[ae]=w,M[_]=G,ae=_);else if(k<re&&0>d(le,G))M[ae]=le,M[k]=G,ae=k;else break e}}return Z}function d(M,Z){var G=M.sortIndex-Z.sortIndex;return G!==0?G:M.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;i.unstable_now=function(){return y.now()}}else{var b=Date,j=b.now();i.unstable_now=function(){return b.now()-j}}var S=[],m=[],C=1,N=null,D=3,Y=!1,V=!1,q=!1,Q=!1,H=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function K(M){for(var Z=f(m);Z!==null;){if(Z.callback===null)s(m);else if(Z.startTime<=M)s(m),Z.sortIndex=Z.expirationTime,o(S,Z);else break;Z=f(m)}}function $(M){if(q=!1,K(M),!V)if(f(S)!==null)V=!0,se||(se=!0,xe());else{var Z=f(m);Z!==null&&_e($,Z.startTime-M)}}var se=!1,F=-1,I=5,be=-1;function Me(){return Q?!0:!(i.unstable_now()-be<I)}function te(){if(Q=!1,se){var M=i.unstable_now();be=M;var Z=!0;try{e:{V=!1,q&&(q=!1,O(F),F=-1),Y=!0;var G=D;try{t:{for(K(M),N=f(S);N!==null&&!(N.expirationTime>M&&Me());){var ae=N.callback;if(typeof ae=="function"){N.callback=null,D=N.priorityLevel;var re=ae(N.expirationTime<=M);if(M=i.unstable_now(),typeof re=="function"){N.callback=re,K(M),Z=!0;break t}N===f(S)&&s(S),K(M)}else s(S);N=f(S)}if(N!==null)Z=!0;else{var v=f(m);v!==null&&_e($,v.startTime-M),Z=!1}}break e}finally{N=null,D=G,Y=!1}Z=void 0}}finally{Z?xe():se=!1}}}var xe;if(typeof X=="function")xe=function(){X(te)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,ke=Ie.port2;Ie.port1.onmessage=te,xe=function(){ke.postMessage(null)}}else xe=function(){H(te,0)};function _e(M,Z){F=H(function(){M(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return D},i.unstable_next=function(M){switch(D){case 1:case 2:case 3:var Z=3;break;default:Z=D}var G=D;D=Z;try{return M()}finally{D=G}},i.unstable_requestPaint=function(){Q=!0},i.unstable_runWithPriority=function(M,Z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var G=D;D=M;try{return Z()}finally{D=G}},i.unstable_scheduleCallback=function(M,Z,G){var ae=i.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ae+G:ae):G=ae,M){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=G+re,M={id:C++,callback:Z,priorityLevel:M,startTime:G,expirationTime:re,sortIndex:-1},G>ae?(M.sortIndex=G,o(m,M),f(S)===null&&M===f(m)&&(q?(O(F),F=-1):q=!0,_e($,G-ae))):(M.sortIndex=re,o(S,M),V||Y||(V=!0,se||(se=!0,xe()))),M},i.unstable_shouldYield=Me,i.unstable_wrapCallback=function(M){var Z=D;return function(){var G=D;D=Z;try{return M.apply(this,arguments)}finally{D=G}}}})(Zs)),Zs}var Ah;function $y(){return Ah||(Ah=1,Vs.exports=Jy()),Vs.exports}var ks={exports:{}},et={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Rh;function Wy(){if(Rh)return et;Rh=1;var i=lr();function o(S){var m="https://react.dev/errors/"+S;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)m+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+S+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var s={d:{f,r:function(){throw Error(o(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},d=Symbol.for("react.portal");function y(S,m,C){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:N==null?null:""+N,children:S,containerInfo:m,implementation:C}}var b=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(S,m){if(S==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,et.createPortal=function(S,m){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return y(S,m,null,C)},et.flushSync=function(S){var m=b.T,C=s.p;try{if(b.T=null,s.p=2,S)return S()}finally{b.T=m,s.p=C,s.d.f()}},et.preconnect=function(S,m){typeof S=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(S,m))},et.prefetchDNS=function(S){typeof S=="string"&&s.d.D(S)},et.preinit=function(S,m){if(typeof S=="string"&&m&&typeof m.as=="string"){var C=m.as,N=j(C,m.crossOrigin),D=typeof m.integrity=="string"?m.integrity:void 0,Y=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;C==="style"?s.d.S(S,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:N,integrity:D,fetchPriority:Y}):C==="script"&&s.d.X(S,{crossOrigin:N,integrity:D,fetchPriority:Y,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},et.preinitModule=function(S,m){if(typeof S=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var C=j(m.as,m.crossOrigin);s.d.M(S,{crossOrigin:C,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(S)},et.preload=function(S,m){if(typeof S=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var C=m.as,N=j(C,m.crossOrigin);s.d.L(S,C,{crossOrigin:N,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},et.preloadModule=function(S,m){if(typeof S=="string")if(m){var C=j(m.as,m.crossOrigin);s.d.m(S,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:C,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(S)},et.requestFormReset=function(S){s.d.r(S)},et.unstable_batchedUpdates=function(S,m){return S(m)},et.useFormState=function(S,m,C){return b.H.useFormState(S,m,C)},et.useFormStatus=function(){return b.H.useHostTransitionStatus()},et.version="19.2.7",et}var zh;function Fy(){if(zh)return ks.exports;zh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),ks.exports=Wy(),ks.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var _h;function Iy(){if(_h)return Yn;_h=1;var i=$y(),o=lr(),f=Fy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function b(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function j(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(y(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=y(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(s(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,h=n.child;h;){if(h===l){c=!0,l=n,a=u;break}if(h===a){c=!0,a=n,l=u;break}h=h.sibling}if(!c){for(h=u.child;h;){if(h===l){c=!0,l=u,a=n;break}if(h===a){c=!0,a=u,l=n;break}h=h.sibling}if(!c)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,D=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),X=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),be=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function xe(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Symbol.for("react.client.reference");function ke(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case H:return"Profiler";case Q:return"StrictMode";case $:return"Suspense";case se:return"SuspenseList";case be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case V:return"Portal";case X:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ke(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ke(e(t))}catch{}}return null}var _e=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ae=[],re=-1;function v(e){return{current:e}}function _(e){0>re||(e.current=ae[re],ae[re]=null,re--)}function w(e,t){re++,ae[re]=e.current,e.current=t}var k=v(null),le=v(null),ce=v(null),ye=v(null);function Qe(e,t){switch(w(ce,t),w(le,e),w(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=kd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(k),w(k,e)}function de(){_(k),_(le),_(ce)}function Pe(e){e.memoizedState!==null&&w(ye,e);var t=k.current,l=kd(t,e.type);t!==l&&(w(le,e),w(k,l))}function tt(e){le.current===e&&(_(k),_(le)),ye.current===e&&(_(ye),Hn._currentValue=G)}var Za,br;function Bl(e){if(Za===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Za=t&&t[1]||"",br=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Za+e+br}var Ni=!1;function Ci(e,t){if(!e||Ni)return"";Ni=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(z){var R=z}Reflect.construct(e,[],L)}else{try{L.call()}catch(z){R=z}e.call(L.prototype)}}else{try{throw Error()}catch(z){R=z}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(z){if(z&&R&&typeof z.stack=="string")return[z.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],h=u[1];if(c&&h){var p=c.split(`
|
|
44
|
-
`),A=h.split(`
|
|
45
|
-
`);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===A.length)for(a=p.length-1,n=A.length-1;1<=a&&0<=n&&p[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==A[n]){var U=`
|
|
46
|
-
`+p[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=n);break}}}finally{Ni=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Bl(l):""}function Em(e,t){switch(e.tag){case 26:case 27:case 5:return Bl(e.type);case 16:return Bl("Lazy");case 13:return e.child!==t&&t!==null?Bl("Suspense Fallback"):Bl("Suspense");case 19:return Bl("SuspenseList");case 0:case 15:return Ci(e.type,!1);case 11:return Ci(e.type.render,!1);case 1:return Ci(e.type,!0);case 31:return Bl("Activity");default:return""}}function Sr(e){try{var t="",l=null;do t+=Em(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Ti=Object.prototype.hasOwnProperty,Ai=i.unstable_scheduleCallback,Ri=i.unstable_cancelCallback,jm=i.unstable_shouldYield,Nm=i.unstable_requestPaint,ot=i.unstable_now,Cm=i.unstable_getCurrentPriorityLevel,xr=i.unstable_ImmediatePriority,Er=i.unstable_UserBlockingPriority,$n=i.unstable_NormalPriority,Tm=i.unstable_LowPriority,jr=i.unstable_IdlePriority,Am=i.log,Rm=i.unstable_setDisableYieldValue,ka=null,ft=null;function dl(e){if(typeof Am=="function"&&Rm(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(ka,e)}catch{}}var dt=Math.clz32?Math.clz32:Dm,zm=Math.log,_m=Math.LN2;function Dm(e){return e>>>=0,e===0?32:31-(zm(e)/_m|0)|0}var Wn=256,Fn=262144,In=4194304;function Ll(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Pn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~u,a!==0?n=Ll(a):(c&=h,c!==0?n=Ll(c):l||(l=h&~e,l!==0&&(n=Ll(l))))):(h=a&~u,h!==0?n=Ll(h):c!==0?n=Ll(c):l||(l=a&~e,l!==0&&(n=Ll(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Om(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Nr(){var e=In;return In<<=1,(In&62914560)===0&&(In=4194304),e}function zi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Mm(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,p=e.expirationTimes,A=e.hiddenUpdates;for(l=c&~l;0<l;){var U=31-dt(l),L=1<<U;h[U]=0,p[U]=-1;var R=A[U];if(R!==null)for(A[U]=null,U=0;U<R.length;U++){var z=R[U];z!==null&&(z.lane&=-536870913)}l&=~L}a!==0&&Cr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function Cr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Tr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ar(e,t){var l=t&-t;return l=(l&42)!==0?1:_i(l),(l&(e.suspendedLanes|t))!==0?0:l}function _i(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Di(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rr(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:vh(e.type))}function zr(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var hl=Math.random().toString(36).slice(2),Ke="__reactFiber$"+hl,at="__reactProps$"+hl,aa="__reactContainer$"+hl,Oi="__reactEvents$"+hl,Um="__reactListeners$"+hl,Hm="__reactHandles$"+hl,_r="__reactResources$"+hl,$a="__reactMarker$"+hl;function Mi(e){delete e[Ke],delete e[at],delete e[Oi],delete e[Um],delete e[Hm]}function na(e){var t=e[Ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[aa]||l[Ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Pd(e);e!==null;){if(l=e[Ke])return l;e=Pd(e)}return t}e=l,l=e.parentNode}return null}function ua(e){if(e=e[Ke]||e[aa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ia(e){var t=e[_r];return t||(t=e[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[$a]=!0}var Dr=new Set,Or={};function ql(e,t){ca(e,t),ca(e+"Capture",t)}function ca(e,t){for(Or[e]=t,e=0;e<t.length;e++)Dr.add(t[e])}var wm=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]*$"),Mr={},Ur={};function Bm(e){return Ti.call(Ur,e)?!0:Ti.call(Mr,e)?!1:wm.test(e)?Ur[e]=!0:(Mr[e]=!0,!1)}function eu(e,t,l){if(Bm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function tu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Vt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){if(!e._valueTracker){var t=Hr(e)?"checked":"value";e._valueTracker=Lm(e,t,""+e[t])}}function wr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Hr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function lu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qm=/[\n"\\]/g;function xt(e){return e.replace(qm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hi(e,t,l,a,n,u,c,h){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?wi(e,c,St(t)):l!=null?wi(e,c,St(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+St(h):e.removeAttribute("name")}function Br(e,t,l,a,n,u,c,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ui(e);return}l=l!=null?""+St(l):"",t=t!=null?""+St(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ui(e)}function wi(e,t,l){t==="number"&&lu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function sa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+St(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Lr(e,t,l){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+St(l):""}function qr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(_e(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=St(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ui(e)}function ra(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Ym=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 Yr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Ym.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Gr(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Yr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Yr(e,u,t[u])}function Bi(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Gm=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"]]),Xm=/^[\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 au(e){return Xm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Li=null;function qi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,fa=null;function Xr(e){var t=ua(e);if(t&&(e=t.stateNode)){var l=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(Hi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[at]||null;if(!n)throw Error(s(90));Hi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&wr(a)}break e;case"textarea":Lr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&sa(e,!!l.multiple,t,!1)}}}var Yi=!1;function Qr(e,t,l){if(Yi)return e(t,l);Yi=!0;try{var a=e(t);return a}finally{if(Yi=!1,(oa!==null||fa!==null)&&(Vu(),oa&&(t=oa,e=fa,fa=oa=null,Xr(t),e)))for(t=0;t<e.length;t++)Xr(e[t])}}function Fa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[at]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gi=!1;if(kt)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{Gi=!1}var ml=null,Xi=null,nu=null;function Vr(){if(nu)return nu;var e,t=Xi,l=t.length,a,n="value"in ml?ml.value:ml.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return nu=n.slice(e,1<a?1-a:void 0)}function uu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function iu(){return!0}function Zr(){return!1}function nt(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?iu:Zr,this.isPropagationStopped=Zr,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=iu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=iu)},persist:function(){},isPersistent:iu}),t}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cu=nt(Yl),Pa=N({},Yl,{view:0,detail:0}),Qm=nt(Pa),Qi,Vi,en,su=N({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ki,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&e.type==="mousemove"?(Qi=e.screenX-en.screenX,Vi=e.screenY-en.screenY):Vi=Qi=0,en=e),Qi)},movementY:function(e){return"movementY"in e?e.movementY:Vi}}),kr=nt(su),Vm=N({},su,{dataTransfer:0}),Zm=nt(Vm),km=N({},Pa,{relatedTarget:0}),Zi=nt(km),Km=N({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),Jm=nt(Km),$m=N({},Yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wm=nt($m),Fm=N({},Yl,{data:0}),Kr=nt(Fm),Im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pm={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"},ev={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ev[e])?!!t[e]:!1}function ki(){return tv}var lv=N({},Pa,{key:function(e){if(e.key){var t=Im[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ki,charCode:function(e){return e.type==="keypress"?uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),av=nt(lv),nv=N({},su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jr=nt(nv),uv=N({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ki}),iv=nt(uv),cv=N({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),sv=nt(cv),rv=N({},su,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ov=nt(rv),fv=N({},Yl,{newState:0,oldState:0}),dv=nt(fv),hv=[9,13,27,32],Ki=kt&&"CompositionEvent"in window,tn=null;kt&&"documentMode"in document&&(tn=document.documentMode);var mv=kt&&"TextEvent"in window&&!tn,$r=kt&&(!Ki||tn&&8<tn&&11>=tn),Wr=" ",Fr=!1;function Ir(e,t){switch(e){case"keyup":return hv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var da=!1;function vv(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==32?null:(Fr=!0,Wr);case"textInput":return e=t.data,e===Wr&&Fr?null:e;default:return null}}function yv(e,t){if(da)return e==="compositionend"||!Ki&&Ir(e,t)?(e=Vr(),nu=Xi=ml=null,da=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $r&&t.locale!=="ko"?null:t.data;default:return null}}var gv={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 eo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gv[e.type]:t==="textarea"}function to(e,t,l,a){oa?fa?fa.push(a):fa=[a]:oa=a,t=Fu(t,"onChange"),0<t.length&&(l=new cu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ln=null,an=null;function pv(e){qd(e,0)}function ru(e){var t=Wa(e);if(wr(t))return e}function lo(e,t){if(e==="change")return t}var ao=!1;if(kt){var Ji;if(kt){var $i="oninput"in document;if(!$i){var no=document.createElement("div");no.setAttribute("oninput","return;"),$i=typeof no.oninput=="function"}Ji=$i}else Ji=!1;ao=Ji&&(!document.documentMode||9<document.documentMode)}function uo(){ln&&(ln.detachEvent("onpropertychange",io),an=ln=null)}function io(e){if(e.propertyName==="value"&&ru(an)){var t=[];to(t,an,e,qi(e)),Qr(pv,t)}}function bv(e,t,l){e==="focusin"?(uo(),ln=t,an=l,ln.attachEvent("onpropertychange",io)):e==="focusout"&&uo()}function Sv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ru(an)}function xv(e,t){if(e==="click")return ru(t)}function Ev(e,t){if(e==="input"||e==="change")return ru(t)}function jv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:jv;function nn(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ti.call(t,n)||!ht(e[n],t[n]))return!1}return!0}function co(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function so(e,t){var l=co(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=co(l)}}function ro(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ro(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=lu(e.document)}return t}function Wi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Nv=kt&&"documentMode"in document&&11>=document.documentMode,ha=null,Fi=null,un=null,Ii=!1;function fo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ii||ha==null||ha!==lu(a)||(a=ha,"selectionStart"in a&&Wi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),un&&nn(un,a)||(un=a,a=Fu(Fi,"onSelect"),0<a.length&&(t=new cu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ha)))}function Gl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ma={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},Pi={},ho={};kt&&(ho=document.createElement("div").style,"AnimationEvent"in window||(delete ma.animationend.animation,delete ma.animationiteration.animation,delete ma.animationstart.animation),"TransitionEvent"in window||delete ma.transitionend.transition);function Xl(e){if(Pi[e])return Pi[e];if(!ma[e])return e;var t=ma[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ho)return Pi[e]=t[l];return e}var mo=Xl("animationend"),vo=Xl("animationiteration"),yo=Xl("animationstart"),Cv=Xl("transitionrun"),Tv=Xl("transitionstart"),Av=Xl("transitioncancel"),go=Xl("transitionend"),po=new Map,ec="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(" ");ec.push("scrollEnd");function Mt(e,t){po.set(e,t),ql(t,[e])}var ou=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Et=[],va=0,tc=0;function fu(){for(var e=va,t=tc=va=0;t<e;){var l=Et[t];Et[t++]=null;var a=Et[t];Et[t++]=null;var n=Et[t];Et[t++]=null;var u=Et[t];if(Et[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&bo(l,n,u)}}function du(e,t,l,a){Et[va++]=e,Et[va++]=t,Et[va++]=l,Et[va++]=a,tc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function lc(e,t,l,a){return du(e,t,l,a),hu(e)}function Ql(e,t){return du(e,null,null,t),hu(e)}function bo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-dt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function hu(e){if(50<Rn)throw Rn=0,fs=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ya={};function Rv(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,l,a){return new Rv(e,t,l,a)}function ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kt(e,t){var l=e.alternate;return l===null?(l=mt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function So(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")ac(e)&&(c=1);else if(typeof e=="string")c=My(e,l,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case be:return e=mt(31,l,t,n),e.elementType=be,e.lanes=u,e;case q:return Vl(l.children,n,u,t);case Q:c=8,n|=24;break;case H:return e=mt(12,l,t,n|2),e.elementType=H,e.lanes=u,e;case $:return e=mt(13,l,t,n),e.elementType=$,e.lanes=u,e;case se:return e=mt(19,l,t,n),e.elementType=se,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:c=10;break e;case O:c=9;break e;case K:c=11;break e;case F:c=14;break e;case I:c=16,a=null;break e}c=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=mt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Vl(e,t,l,a){return e=mt(7,e,a,t),e.lanes=l,e}function nc(e,t,l){return e=mt(6,e,null,t),e.lanes=l,e}function xo(e){var t=mt(18,null,null,0);return t.stateNode=e,t}function uc(e,t,l){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Eo=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=Eo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Sr(t)},Eo.set(e,t),t)}return{value:e,source:t,stack:Sr(t)}}var ga=[],pa=0,vu=null,cn=0,Nt=[],Ct=0,vl=null,Lt=1,qt="";function Jt(e,t){ga[pa++]=cn,ga[pa++]=vu,vu=e,cn=t}function jo(e,t,l){Nt[Ct++]=Lt,Nt[Ct++]=qt,Nt[Ct++]=vl,vl=e;var a=Lt;e=qt;var n=32-dt(a)-1;a&=~(1<<n),l+=1;var u=32-dt(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Lt=1<<32-dt(t)+n|l<<n|a,qt=u+e}else Lt=1<<u|l<<n|a,qt=e}function ic(e){e.return!==null&&(Jt(e,1),jo(e,1,0))}function cc(e){for(;e===vu;)vu=ga[--pa],ga[pa]=null,cn=ga[--pa],ga[pa]=null;for(;e===vl;)vl=Nt[--Ct],Nt[Ct]=null,qt=Nt[--Ct],Nt[Ct]=null,Lt=Nt[--Ct],Nt[Ct]=null}function No(e,t){Nt[Ct++]=Lt,Nt[Ct++]=qt,Nt[Ct++]=vl,Lt=t.id,qt=t.overflow,vl=e}var Je=null,Re=null,ve=!1,yl=null,Tt=!1,sc=Error(s(519));function gl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sn(jt(t,e)),sc}function Co(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ke]=e,t[at]=a,l){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(l=0;l<_n.length;l++)fe(_n[l],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),Br(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),qr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Qd(t.textContent,l)?(a.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),a.onScroll!=null&&fe("scroll",t),a.onScrollEnd!=null&&fe("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||gl(e,!0)}function To(e){for(Je=e.return;Je;)switch(Je.tag){case 5:case 31:case 13:Tt=!1;return;case 27:case 3:Tt=!0;return;default:Je=Je.return}}function ba(e){if(e!==Je)return!1;if(!ve)return To(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ts(e.type,e.memoizedProps)),l=!l),l&&Re&&gl(e),To(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Re=Id(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Re=Id(e)}else t===27?(t=Re,Dl(e.type)?(e=Ds,Ds=null,Re=e):Re=t):Re=Je?Rt(e.stateNode.nextSibling):null;return!0}function Zl(){Re=Je=null,ve=!1}function rc(){var e=yl;return e!==null&&(st===null?st=e:st.push.apply(st,e),yl=null),e}function sn(e){yl===null?yl=[e]:yl.push(e)}var oc=v(null),kl=null,$t=null;function pl(e,t,l){w(oc,t._currentValue),t._currentValue=l}function Wt(e){e._currentValue=oc.current,_(oc)}function fc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function dc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var h=u;u=n;for(var p=0;p<t.length;p++)if(h.context===t[p]){u.lanes|=l,h=u.alternate,h!==null&&(h.lanes|=l),fc(u.return,l,e),a||(c=null);break e}u=h.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(s(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),fc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Sa(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(s(387));if(c=c.memoizedProps,c!==null){var h=n.type;ht(n.pendingProps.value,c.value)||(e!==null?e.push(h):e=[h])}}else if(n===ye.current){if(c=n.alternate,c===null)throw Error(s(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Hn):e=[Hn])}n=n.return}e!==null&&dc(t,e,l,a),t.flags|=262144}function yu(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){kl=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return Ao(kl,e)}function gu(e,t){return kl===null&&Kl(e),Ao(e,t)}function Ao(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},$t===null){if(e===null)throw Error(s(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return l}var zv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},_v=i.unstable_scheduleCallback,Dv=i.unstable_NormalPriority,Le={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new zv,data:new Map,refCount:0}}function rn(e){e.refCount--,e.refCount===0&&_v(Dv,function(){e.controller.abort()})}var on=null,mc=0,xa=0,Ea=null;function Ov(e,t){if(on===null){var l=on=[];mc=0,xa=gs(),Ea={status:"pending",value:void 0,then:function(a){l.push(a)}}}return mc++,t.then(Ro,Ro),t}function Ro(){if(--mc===0&&on!==null){Ea!==null&&(Ea.status="fulfilled");var e=on;on=null,xa=0,Ea=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mv(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var zo=M.S;M.S=function(e,t){hd=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ov(e,t),zo!==null&&zo(e,t)};var Jl=v(null);function vc(){var e=Jl.current;return e!==null?e:Ae.pooledCache}function pu(e,t){t===null?w(Jl,Jl.current):w(Jl,t.pool)}function _o(){var e=vc();return e===null?null:{parent:Le._currentValue,pool:e}}var ja=Error(s(460)),yc=Error(s(474)),bu=Error(s(542)),Su={then:function(){}};function Do(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Oo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uo(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uo(e),e}throw Wl=t,ja}}function $l(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,ja):l}}var Wl=null;function Mo(){if(Wl===null)throw Error(s(459));var e=Wl;return Wl=null,e}function Uo(e){if(e===ja||e===bu)throw Error(s(483))}var Na=null,fn=0;function xu(e){var t=fn;return fn+=1,Na===null&&(Na=[]),Oo(Na,e,t)}function dn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Eu(e,t){throw t.$$typeof===D?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ho(e){function t(E,x){if(e){var T=E.deletions;T===null?(E.deletions=[x],E.flags|=16):T.push(x)}}function l(E,x){if(!e)return null;for(;x!==null;)t(E,x),x=x.sibling;return null}function a(E){for(var x=new Map;E!==null;)E.key!==null?x.set(E.key,E):x.set(E.index,E),E=E.sibling;return x}function n(E,x){return E=Kt(E,x),E.index=0,E.sibling=null,E}function u(E,x,T){return E.index=T,e?(T=E.alternate,T!==null?(T=T.index,T<x?(E.flags|=67108866,x):T):(E.flags|=67108866,x)):(E.flags|=1048576,x)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function h(E,x,T,B){return x===null||x.tag!==6?(x=nc(T,E.mode,B),x.return=E,x):(x=n(x,T),x.return=E,x)}function p(E,x,T,B){var P=T.type;return P===q?U(E,x,T.props.children,B,T.key):x!==null&&(x.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===I&&$l(P)===x.type)?(x=n(x,T.props),dn(x,T),x.return=E,x):(x=mu(T.type,T.key,T.props,null,E.mode,B),dn(x,T),x.return=E,x)}function A(E,x,T,B){return x===null||x.tag!==4||x.stateNode.containerInfo!==T.containerInfo||x.stateNode.implementation!==T.implementation?(x=uc(T,E.mode,B),x.return=E,x):(x=n(x,T.children||[]),x.return=E,x)}function U(E,x,T,B,P){return x===null||x.tag!==7?(x=Vl(T,E.mode,B,P),x.return=E,x):(x=n(x,T),x.return=E,x)}function L(E,x,T){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=nc(""+x,E.mode,T),x.return=E,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:return T=mu(x.type,x.key,x.props,null,E.mode,T),dn(T,x),T.return=E,T;case V:return x=uc(x,E.mode,T),x.return=E,x;case I:return x=$l(x),L(E,x,T)}if(_e(x)||xe(x))return x=Vl(x,E.mode,T,null),x.return=E,x;if(typeof x.then=="function")return L(E,xu(x),T);if(x.$$typeof===X)return L(E,gu(E,x),T);Eu(E,x)}return null}function R(E,x,T,B){var P=x!==null?x.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return P!==null?null:h(E,x,""+T,B);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Y:return T.key===P?p(E,x,T,B):null;case V:return T.key===P?A(E,x,T,B):null;case I:return T=$l(T),R(E,x,T,B)}if(_e(T)||xe(T))return P!==null?null:U(E,x,T,B,null);if(typeof T.then=="function")return R(E,x,xu(T),B);if(T.$$typeof===X)return R(E,x,gu(E,T),B);Eu(E,T)}return null}function z(E,x,T,B,P){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return E=E.get(T)||null,h(x,E,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Y:return E=E.get(B.key===null?T:B.key)||null,p(x,E,B,P);case V:return E=E.get(B.key===null?T:B.key)||null,A(x,E,B,P);case I:return B=$l(B),z(E,x,T,B,P)}if(_e(B)||xe(B))return E=E.get(T)||null,U(x,E,B,P,null);if(typeof B.then=="function")return z(E,x,T,xu(B),P);if(B.$$typeof===X)return z(E,x,T,gu(x,B),P);Eu(x,B)}return null}function J(E,x,T,B){for(var P=null,ge=null,W=x,ie=x=0,me=null;W!==null&&ie<T.length;ie++){W.index>ie?(me=W,W=null):me=W.sibling;var pe=R(E,W,T[ie],B);if(pe===null){W===null&&(W=me);break}e&&W&&pe.alternate===null&&t(E,W),x=u(pe,x,ie),ge===null?P=pe:ge.sibling=pe,ge=pe,W=me}if(ie===T.length)return l(E,W),ve&&Jt(E,ie),P;if(W===null){for(;ie<T.length;ie++)W=L(E,T[ie],B),W!==null&&(x=u(W,x,ie),ge===null?P=W:ge.sibling=W,ge=W);return ve&&Jt(E,ie),P}for(W=a(W);ie<T.length;ie++)me=z(W,E,ie,T[ie],B),me!==null&&(e&&me.alternate!==null&&W.delete(me.key===null?ie:me.key),x=u(me,x,ie),ge===null?P=me:ge.sibling=me,ge=me);return e&&W.forEach(function(wl){return t(E,wl)}),ve&&Jt(E,ie),P}function ee(E,x,T,B){if(T==null)throw Error(s(151));for(var P=null,ge=null,W=x,ie=x=0,me=null,pe=T.next();W!==null&&!pe.done;ie++,pe=T.next()){W.index>ie?(me=W,W=null):me=W.sibling;var wl=R(E,W,pe.value,B);if(wl===null){W===null&&(W=me);break}e&&W&&wl.alternate===null&&t(E,W),x=u(wl,x,ie),ge===null?P=wl:ge.sibling=wl,ge=wl,W=me}if(pe.done)return l(E,W),ve&&Jt(E,ie),P;if(W===null){for(;!pe.done;ie++,pe=T.next())pe=L(E,pe.value,B),pe!==null&&(x=u(pe,x,ie),ge===null?P=pe:ge.sibling=pe,ge=pe);return ve&&Jt(E,ie),P}for(W=a(W);!pe.done;ie++,pe=T.next())pe=z(W,E,ie,pe.value,B),pe!==null&&(e&&pe.alternate!==null&&W.delete(pe.key===null?ie:pe.key),x=u(pe,x,ie),ge===null?P=pe:ge.sibling=pe,ge=pe);return e&&W.forEach(function(Vy){return t(E,Vy)}),ve&&Jt(E,ie),P}function Te(E,x,T,B){if(typeof T=="object"&&T!==null&&T.type===q&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case Y:e:{for(var P=T.key;x!==null;){if(x.key===P){if(P=T.type,P===q){if(x.tag===7){l(E,x.sibling),B=n(x,T.props.children),B.return=E,E=B;break e}}else if(x.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===I&&$l(P)===x.type){l(E,x.sibling),B=n(x,T.props),dn(B,T),B.return=E,E=B;break e}l(E,x);break}else t(E,x);x=x.sibling}T.type===q?(B=Vl(T.props.children,E.mode,B,T.key),B.return=E,E=B):(B=mu(T.type,T.key,T.props,null,E.mode,B),dn(B,T),B.return=E,E=B)}return c(E);case V:e:{for(P=T.key;x!==null;){if(x.key===P)if(x.tag===4&&x.stateNode.containerInfo===T.containerInfo&&x.stateNode.implementation===T.implementation){l(E,x.sibling),B=n(x,T.children||[]),B.return=E,E=B;break e}else{l(E,x);break}else t(E,x);x=x.sibling}B=uc(T,E.mode,B),B.return=E,E=B}return c(E);case I:return T=$l(T),Te(E,x,T,B)}if(_e(T))return J(E,x,T,B);if(xe(T)){if(P=xe(T),typeof P!="function")throw Error(s(150));return T=P.call(T),ee(E,x,T,B)}if(typeof T.then=="function")return Te(E,x,xu(T),B);if(T.$$typeof===X)return Te(E,x,gu(E,T),B);Eu(E,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,x!==null&&x.tag===6?(l(E,x.sibling),B=n(x,T),B.return=E,E=B):(l(E,x),B=nc(T,E.mode,B),B.return=E,E=B),c(E)):l(E,x)}return function(E,x,T,B){try{fn=0;var P=Te(E,x,T,B);return Na=null,P}catch(W){if(W===ja||W===bu)throw W;var ge=mt(29,W,null,E.mode);return ge.lanes=B,ge.return=E,ge}finally{}}}var Fl=Ho(!0),wo=Ho(!1),bl=!1;function gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=hu(e),bo(e,null,l),t}return du(e,a,t,l),hu(e)}function hn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Tr(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Sc=!1;function mn(){if(Sc){var e=Ea;if(e!==null)throw e}}function vn(e,t,l,a){Sc=!1;var n=e.updateQueue;bl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var p=h,A=p.next;p.next=null,c===null?u=A:c.next=A,c=p;var U=e.alternate;U!==null&&(U=U.updateQueue,h=U.lastBaseUpdate,h!==c&&(h===null?U.firstBaseUpdate=A:h.next=A,U.lastBaseUpdate=p))}if(u!==null){var L=n.baseState;c=0,U=A=p=null,h=u;do{var R=h.lane&-536870913,z=R!==h.lane;if(z?(he&R)===R:(a&R)===R){R!==0&&R===xa&&(Sc=!0),U!==null&&(U=U.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var J=e,ee=h;R=t;var Te=l;switch(ee.tag){case 1:if(J=ee.payload,typeof J=="function"){L=J.call(Te,L,R);break e}L=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,R=typeof J=="function"?J.call(Te,L,R):J,R==null)break e;L=N({},L,R);break e;case 2:bl=!0}}R=h.callback,R!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[R]:z.push(R))}else z={lane:R,tag:h.tag,payload:h.payload,callback:h.callback,next:null},U===null?(A=U=z,p=L):U=U.next=z,c|=R;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;z=h,h=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);U===null&&(p=L),n.baseState=p,n.firstBaseUpdate=A,n.lastBaseUpdate=U,u===null&&(n.shared.lanes=0),Tl|=c,e.lanes=c,e.memoizedState=L}}function Bo(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Lo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Bo(l[e],t)}var Ca=v(null),ju=v(0);function qo(e,t){e=ul,w(ju,e),w(Ca,t),ul=e|t.baseLanes}function xc(){w(ju,ul),w(Ca,Ca.current)}function Ec(){ul=ju.current,_(Ca),_(ju)}var vt=v(null),At=null;function El(e){var t=e.alternate;w(we,we.current&1),w(vt,e),At===null&&(t===null||Ca.current!==null||t.memoizedState!==null)&&(At=e)}function jc(e){w(we,we.current),w(vt,e),At===null&&(At=e)}function Yo(e){e.tag===22?(w(we,we.current),w(vt,e),At===null&&(At=e)):jl()}function jl(){w(we,we.current),w(vt,vt.current)}function yt(e){_(vt),At===e&&(At=null),_(we)}var we=v(0);function Nu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||zs(l)||_s(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ft=0,ue=null,Ne=null,qe=null,Cu=!1,Ta=!1,Il=!1,Tu=0,yn=0,Aa=null,Uv=0;function Ue(){throw Error(s(321))}function Nc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ht(e[l],t[l]))return!1;return!0}function Cc(e,t,l,a,n,u){return Ft=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Nf:Yc,Il=!1,u=l(a,n),Il=!1,Ta&&(u=Xo(t,l,a,n)),Go(e),u}function Go(e){M.H=bn;var t=Ne!==null&&Ne.next!==null;if(Ft=0,qe=Ne=ue=null,Cu=!1,yn=0,Aa=null,t)throw Error(s(300));e===null||Ye||(e=e.dependencies,e!==null&&yu(e)&&(Ye=!0))}function Xo(e,t,l,a){ue=e;var n=0;do{if(Ta&&(Aa=null),yn=0,Ta=!1,25<=n)throw Error(s(301));if(n+=1,qe=Ne=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=Cf,u=t(l,a)}while(Ta);return u}function Hv(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?gn(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(ue.flags|=1024),t}function Tc(){var e=Tu!==0;return Tu=0,e}function Ac(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Rc(e){if(Cu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cu=!1}Ft=0,qe=Ne=ue=null,Ta=!1,yn=Tu=0,Aa=null}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?ue.memoizedState=qe=e:qe=qe.next=e,qe}function Be(){if(Ne===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=qe===null?ue.memoizedState:qe.next;if(t!==null)qe=t,Ne=e;else{if(e===null)throw ue.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},qe===null?ue.memoizedState=qe=e:qe=qe.next=e}return qe}function Au(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gn(e){var t=yn;return yn+=1,Aa===null&&(Aa=[]),e=Oo(Aa,e,t),t=ue,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Nf:Yc),e}function Ru(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gn(e);if(e.$$typeof===X)return $e(e)}throw Error(s(438,String(e)))}function zc(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Au(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Me;return t.index++,l}function It(e,t){return typeof t=="function"?t(e):t}function zu(e){var t=Be();return _c(t,Ne,e)}function _c(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var h=c=null,p=null,A=t,U=!1;do{var L=A.lane&-536870913;if(L!==A.lane?(he&L)===L:(Ft&L)===L){var R=A.revertLane;if(R===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),L===xa&&(U=!0);else if((Ft&R)===R){A=A.next,R===xa&&(U=!0);continue}else L={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},p===null?(h=p=L,c=u):p=p.next=L,ue.lanes|=R,Tl|=R;L=A.action,Il&&l(u,L),u=A.hasEagerState?A.eagerState:l(u,L)}else R={lane:L,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},p===null?(h=p=R,c=u):p=p.next=R,ue.lanes|=L,Tl|=L;A=A.next}while(A!==null&&A!==t);if(p===null?c=u:p.next=h,!ht(u,e.memoizedState)&&(Ye=!0,U&&(l=Ea,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Dc(e){var t=Be(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);ht(u,t.memoizedState)||(Ye=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Qo(e,t,l){var a=ue,n=Be(),u=ve;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=t();var c=!ht((Ne||n).memoizedState,l);if(c&&(n.memoizedState=l,Ye=!0),n=n.queue,Uc(ko.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,Ra(9,{destroy:void 0},Zo.bind(null,a,n,l,t),null),Ae===null)throw Error(s(349));u||(Ft&127)!==0||Vo(a,t,l)}return l}function Vo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=Au(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Zo(e,t,l,a){t.value=l,t.getSnapshot=a,Ko(t)&&Jo(e)}function ko(e,t,l){return l(function(){Ko(t)&&Jo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function Jo(e){var t=Ql(e,2);t!==null&&rt(t,e,2)}function Oc(e){var t=lt();if(typeof e=="function"){var l=e;if(e=l(),Il){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:e},t}function $o(e,t,l,a){return e.baseState=l,_c(e,Ne,typeof a=="function"?a:It)}function wv(e,t,l,a,n){if(Ou(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};M.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Wo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Wo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=M.T,c={};M.T=c;try{var h=l(n,a),p=M.S;p!==null&&p(c,h),Fo(e,t,h)}catch(A){Mc(e,t,A)}finally{u!==null&&c.types!==null&&(u.types=c.types),M.T=u}}else try{u=l(n,a),Fo(e,t,u)}catch(A){Mc(e,t,A)}}function Fo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Io(e,t,a)},function(a){return Mc(e,t,a)}):Io(e,t,l)}function Io(e,t,l){t.status="fulfilled",t.value=l,Po(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Wo(e,l)))}function Mc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Po(t),t=t.next;while(t!==a)}e.action=null}function Po(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ef(e,t){return t}function tf(e,t){if(ve){var l=Ae.formState;if(l!==null){e:{var a=ue;if(ve){if(Re){t:{for(var n=Re,u=Tt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Re=Rt(n.nextSibling),a=n.data==="F!";break e}}gl(a)}a=!1}a&&(t=l[0])}}return l=lt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ef,lastRenderedState:t},l.queue=a,l=xf.bind(null,ue,a),a.dispatch=l,a=Oc(!1),u=qc.bind(null,ue,!1,a.queue),a=lt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=wv.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function lf(e){var t=Be();return af(t,Ne,e)}function af(e,t,l){if(t=_c(e,t,ef)[0],e=zu(It)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=gn(t)}catch(c){throw c===ja?bu:c}else a=t;t=Be();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Ra(9,{destroy:void 0},Bv.bind(null,n,l),null)),[a,u,e]}function Bv(e,t){e.action=t}function nf(e){var t=Be(),l=Ne;if(l!==null)return af(t,l,e);Be(),t=t.memoizedState,l=Be();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ra(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=Au(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function uf(){return Be().memoizedState}function _u(e,t,l,a){var n=lt();ue.flags|=e,n.memoizedState=Ra(1|t,{destroy:void 0},l,a===void 0?null:a)}function Du(e,t,l,a){var n=Be();a=a===void 0?null:a;var u=n.memoizedState.inst;Ne!==null&&a!==null&&Nc(a,Ne.memoizedState.deps)?n.memoizedState=Ra(t,u,l,a):(ue.flags|=e,n.memoizedState=Ra(1|t,u,l,a))}function cf(e,t){_u(8390656,8,e,t)}function Uc(e,t){Du(2048,8,e,t)}function Lv(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=Au(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function sf(e){var t=Be().memoizedState;return Lv({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function rf(e,t){return Du(4,2,e,t)}function of(e,t){return Du(4,4,e,t)}function ff(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function df(e,t,l){l=l!=null?l.concat([e]):null,Du(4,4,ff.bind(null,t,e),l)}function Hc(){}function hf(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Nc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function mf(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Nc(t,a[1]))return a[0];if(a=e(),Il){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function wc(e,t,l){return l===void 0||(Ft&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=vd(),ue.lanes|=e,Tl|=e,l)}function vf(e,t,l,a){return ht(l,t)?l:Ca.current!==null?(e=wc(e,l,a),ht(e,t)||(Ye=!0),e):(Ft&42)===0||(Ft&1073741824)!==0&&(he&261930)===0?(Ye=!0,e.memoizedState=l):(e=vd(),ue.lanes|=e,Tl|=e,t)}function yf(e,t,l,a,n){var u=Z.p;Z.p=u!==0&&8>u?u:8;var c=M.T,h={};M.T=h,qc(e,!1,t,l);try{var p=n(),A=M.S;if(A!==null&&A(h,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var U=Mv(p,a);pn(e,t,U,bt(e))}else pn(e,t,a,bt(e))}catch(L){pn(e,t,{then:function(){},status:"rejected",reason:L},bt())}finally{Z.p=u,c!==null&&h.types!==null&&(c.types=h.types),M.T=c}}function qv(){}function Bc(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=gf(e).queue;yf(e,n,t,G,l===null?qv:function(){return pf(e),l(a)})}function gf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:G},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function pf(e){var t=gf(e);t.next===null&&(t=e.alternate.memoizedState),pn(e,t.next.queue,{},bt())}function Lc(){return $e(Hn)}function bf(){return Be().memoizedState}function Sf(){return Be().memoizedState}function Yv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bt();e=Sl(l);var a=xl(t,e,l);a!==null&&(rt(a,t,l),hn(a,t,l)),t={cache:hc()},e.payload=t;return}t=t.return}}function Gv(e,t,l){var a=bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ou(e)?Ef(t,l):(l=lc(e,t,l,a),l!==null&&(rt(l,e,a),jf(l,t,a)))}function xf(e,t,l){var a=bt();pn(e,t,l,a)}function pn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ou(e))Ef(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,h=u(c,l);if(n.hasEagerState=!0,n.eagerState=h,ht(h,c))return du(e,t,n,0),Ae===null&&fu(),!1}catch{}finally{}if(l=lc(e,t,n,a),l!==null)return rt(l,e,a),jf(l,t,a),!0}return!1}function qc(e,t,l,a){if(a={lane:2,revertLane:gs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ou(e)){if(t)throw Error(s(479))}else t=lc(e,l,a,2),t!==null&&rt(t,e,2)}function Ou(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Ef(e,t){Ta=Cu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function jf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Tr(e,l)}}var bn={readContext:$e,use:Ru,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};bn.useEffectEvent=Ue;var Nf={readContext:$e,use:Ru,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:cf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_u(4194308,4,ff.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _u(4194308,4,e,t)},useInsertionEffect:function(e,t){_u(4,2,e,t)},useMemo:function(e,t){var l=lt();t=t===void 0?null:t;var a=e();if(Il){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=lt();if(l!==void 0){var n=l(t);if(Il){dl(!0);try{l(t)}finally{dl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Gv.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:function(e){e=Oc(e);var t=e.queue,l=xf.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Hc,useDeferredValue:function(e,t){var l=lt();return wc(l,e,t)},useTransition:function(){var e=Oc(!1);return e=yf.bind(null,ue,e.queue,!0,!1),lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=lt();if(ve){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Ae===null)throw Error(s(349));(he&127)!==0||Vo(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,cf(ko.bind(null,a,u,e),[e]),a.flags|=2048,Ra(9,{destroy:void 0},Zo.bind(null,a,u,l,t),null),l},useId:function(){var e=lt(),t=Ae.identifierPrefix;if(ve){var l=qt,a=Lt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Tu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Uv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Lc,useFormState:tf,useActionState:tf,useOptimistic:function(e){var t=lt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=qc.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:zc,useCacheRefresh:function(){return lt().memoizedState=Yv.bind(null,ue)},useEffectEvent:function(e){var t=lt(),l={impl:e};return t.memoizedState=l,function(){if((Se&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},Yc={readContext:$e,use:Ru,useCallback:hf,useContext:$e,useEffect:Uc,useImperativeHandle:df,useInsertionEffect:rf,useLayoutEffect:of,useMemo:mf,useReducer:zu,useRef:uf,useState:function(){return zu(It)},useDebugValue:Hc,useDeferredValue:function(e,t){var l=Be();return vf(l,Ne.memoizedState,e,t)},useTransition:function(){var e=zu(It)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:gn(e),t]},useSyncExternalStore:Qo,useId:bf,useHostTransitionStatus:Lc,useFormState:lf,useActionState:lf,useOptimistic:function(e,t){var l=Be();return $o(l,Ne,e,t)},useMemoCache:zc,useCacheRefresh:Sf};Yc.useEffectEvent=sf;var Cf={readContext:$e,use:Ru,useCallback:hf,useContext:$e,useEffect:Uc,useImperativeHandle:df,useInsertionEffect:rf,useLayoutEffect:of,useMemo:mf,useReducer:Dc,useRef:uf,useState:function(){return Dc(It)},useDebugValue:Hc,useDeferredValue:function(e,t){var l=Be();return Ne===null?wc(l,e,t):vf(l,Ne.memoizedState,e,t)},useTransition:function(){var e=Dc(It)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:gn(e),t]},useSyncExternalStore:Qo,useId:bf,useHostTransitionStatus:Lc,useFormState:nf,useActionState:nf,useOptimistic:function(e,t){var l=Be();return Ne!==null?$o(l,Ne,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:zc,useCacheRefresh:Sf};Cf.useEffectEvent=sf;function Gc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:N({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Xc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bt(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(rt(t,e,a),hn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bt(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(rt(t,e,a),hn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(rt(t,e,l),hn(t,e,l))}};function Tf(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!nn(l,a)||!nn(n,u):!0}function Af(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Xc.enqueueReplaceState(t,t.state,null)}function Pl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=N({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Rf(e){ou(e)}function zf(e){console.error(e)}function _f(e){ou(e)}function Mu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Df(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Qc(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Mu(e,t)},l}function Of(e){return e=Sl(e),e.tag=3,e}function Mf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Df(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Df(t,l,a),typeof n!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function Xv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Sa(t,l,n,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return At===null?Zu():l.alternate===null&&He===0&&(He=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Su?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ms(e,a,n)),!1;case 22:return l.flags|=65536,a===Su?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ms(e,a,n)),!1}throw Error(s(435,l.tag))}return ms(e,a,n),Zu(),!1}if(ve)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==sc&&(e=Error(s(422),{cause:a}),sn(jt(e,l)))):(a!==sc&&(t=Error(s(423),{cause:a}),sn(jt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=jt(a,l),n=Qc(e.stateNode,a,n),bc(e,n),He!==4&&(He=2)),!1;var u=Error(s(520),{cause:a});if(u=jt(u,l),An===null?An=[u]:An.push(u),He!==4&&(He=2),t===null)return!0;a=jt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Qc(l.stateNode,a,e),bc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Al===null||!Al.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Of(n),Mf(n,e,l,a),bc(l,n),!1}l=l.return}while(l!==null);return!1}var Vc=Error(s(461)),Ye=!1;function We(e,t,l,a){t.child=e===null?wo(t,null,l,a):Fl(t,e.child,l,a)}function Uf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var h in a)h!=="ref"&&(c[h]=a[h])}else c=a;return Kl(t),a=Cc(e,t,l,c,u,n),h=Tc(),e!==null&&!Ye?(Ac(e,t,n),Pt(e,t,n)):(ve&&h&&ic(t),t.flags|=1,We(e,t,a,n),t.child)}function Hf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!ac(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,wf(e,t,u,a,n)):(e=mu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Ic(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:nn,l(c,a)&&e.ref===t.ref)return Pt(e,t,n)}return t.flags|=1,e=Kt(u,a),e.ref=t.ref,e.return=t,t.child=e}function wf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(nn(u,a)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=a=u,Ic(e,n))(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,Pt(e,t,n)}return Zc(e,t,l,a,n)}function Bf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Lf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pu(t,u!==null?u.cachePool:null),u!==null?qo(t,u):xc(),Yo(t);else return a=t.lanes=536870912,Lf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(pu(t,u.cachePool),qo(t,u),jl(),t.memoizedState=null):(e!==null&&pu(t,null),xc(),jl());return We(e,t,n,l),t.child}function Sn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lf(e,t,l,a,n){var u=vc();return u=u===null?null:{parent:Le._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&pu(t,null),xc(),Yo(t),e!==null&&Sa(e,t,a,!0),t.childLanes=n,null}function Uu(e,t){return t=wu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qf(e,t,l){return Fl(t,e.child,null,l),e=Uu(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function Qv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Uu(t,a),t.lanes=536870912,Sn(null,e);if(jc(t),(e=Re)?(e=Fd(e,Tt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Lt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},l=xo(e),l.return=t,t.child=l,Je=t,Re=null)):e=null,e===null)throw gl(t);return t.lanes=536870912,null}return Uu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(jc(t),n)if(t.flags&256)t.flags&=-257,t=qf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ye||Sa(e,t,l,!1),n=(l&e.childLanes)!==0,Ye||n){if(a=Ae,a!==null&&(c=Ar(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Ql(e,c),rt(a,e,c),Vc;Zu(),t=qf(e,t,l)}else e=u.treeContext,Re=Rt(c.nextSibling),Je=t,ve=!0,yl=null,Tt=!1,e!==null&&No(t,e),t=Uu(t,a),t.flags|=4096;return t}return e=Kt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Zc(e,t,l,a,n){return Kl(t),l=Cc(e,t,l,a,void 0,n),a=Tc(),e!==null&&!Ye?(Ac(e,t,n),Pt(e,t,n)):(ve&&a&&ic(t),t.flags|=1,We(e,t,l,n),t.child)}function Yf(e,t,l,a,n,u){return Kl(t),t.updateQueue=null,l=Xo(t,a,l,n),Go(e),a=Tc(),e!==null&&!Ye?(Ac(e,t,u),Pt(e,t,u)):(ve&&a&&ic(t),t.flags|=1,We(e,t,l,u),t.child)}function Gf(e,t,l,a,n){if(Kl(t),t.stateNode===null){var u=ya,c=l.contextType;typeof c=="object"&&c!==null&&(u=$e(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Xc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},gc(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?$e(c):ya,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Gc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Xc.enqueueReplaceState(u,u.state,null),vn(t,a,u,n),mn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var h=t.memoizedProps,p=Pl(l,h);u.props=p;var A=u.context,U=l.contextType;c=ya,typeof U=="object"&&U!==null&&(c=$e(U));var L=l.getDerivedStateFromProps;U=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||A!==c)&&Af(t,u,a,c),bl=!1;var R=t.memoizedState;u.state=R,vn(t,a,u,n),mn(),A=t.memoizedState,h||R!==A||bl?(typeof L=="function"&&(Gc(t,l,L,a),A=t.memoizedState),(p=bl||Tf(t,l,p,a,R,A,c))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=c,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,pc(e,t),c=t.memoizedProps,U=Pl(l,c),u.props=U,L=t.pendingProps,R=u.context,A=l.contextType,p=ya,typeof A=="object"&&A!==null&&(p=$e(A)),h=l.getDerivedStateFromProps,(A=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==L||R!==p)&&Af(t,u,a,p),bl=!1,R=t.memoizedState,u.state=R,vn(t,a,u,n),mn();var z=t.memoizedState;c!==L||R!==z||bl||e!==null&&e.dependencies!==null&&yu(e.dependencies)?(typeof h=="function"&&(Gc(t,l,h,a),z=t.memoizedState),(U=bl||Tf(t,l,U,a,R,z,p)||e!==null&&e.dependencies!==null&&yu(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,z,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,z,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=p,a=U):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Hu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Fl(t,e.child,null,n),t.child=Fl(t,null,l,n)):We(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Pt(e,t,n),e}function Xf(e,t,l,a){return Zl(),t.flags|=256,We(e,t,l,a),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(e){return{baseLanes:e,cachePool:_o()}}function Jc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=pt),e}function Qf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(we.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?El(t):jl(),(e=Re)?(e=Fd(e,Tt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Lt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},l=xo(e),l.return=t,t.child=l,Je=t,Re=null)):e=null,e===null)throw gl(t);return _s(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(jl(),n=t.mode,h=wu({mode:"hidden",children:h},n),a=Vl(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=Kc(l),a.childLanes=Jc(e,c,l),t.memoizedState=kc,Sn(null,a)):(El(t),$c(t,h))}var p=e.memoizedState;if(p!==null&&(h=p.dehydrated,h!==null)){if(u)t.flags&256?(El(t),t.flags&=-257,t=Wc(e,t,l)):t.memoizedState!==null?(jl(),t.child=e.child,t.flags|=128,t=null):(jl(),h=a.fallback,n=t.mode,a=wu({mode:"visible",children:a.children},n),h=Vl(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Fl(t,e.child,null,l),a=t.child,a.memoizedState=Kc(l),a.childLanes=Jc(e,c,l),t.memoizedState=kc,t=Sn(null,a));else if(El(t),_s(h)){if(c=h.nextSibling&&h.nextSibling.dataset,c)var A=c.dgst;c=A,a=Error(s(419)),a.stack="",a.digest=c,sn({value:a,source:null,stack:null}),t=Wc(e,t,l)}else if(Ye||Sa(e,t,l,!1),c=(l&e.childLanes)!==0,Ye||c){if(c=Ae,c!==null&&(a=Ar(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Ql(e,a),rt(c,e,a),Vc;zs(h)||Zu(),t=Wc(e,t,l)}else zs(h)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Re=Rt(h.nextSibling),Je=t,ve=!0,yl=null,Tt=!1,e!==null&&No(t,e),t=$c(t,a.children),t.flags|=4096);return t}return n?(jl(),h=a.fallback,n=t.mode,p=e.child,A=p.sibling,a=Kt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,A!==null?h=Kt(A,h):(h=Vl(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,Sn(null,a),a=t.child,h=e.child.memoizedState,h===null?h=Kc(l):(n=h.cachePool,n!==null?(p=Le._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=_o(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=Jc(e,c,l),t.memoizedState=kc,Sn(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Kt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function $c(e,t){return t=wu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wu(e,t){return e=mt(22,e,null,t),e.lanes=0,e}function Wc(e,t,l){return Fl(t,e.child,null,l),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),fc(e.return,t,l)}function Fc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Zf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=we.current,h=(c&2)!==0;if(h?(c=c&1|2,t.flags|=128):c&=1,w(we,c),We(e,t,a,l),a=ve?cn:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vf(e,l,t);else if(e.tag===19)Vf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Nu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Fc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Nu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Fc(t,!0,l,null,u,a);break;case"together":Fc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Pt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Sa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Kt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Kt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ic(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yu(e)))}function Vv(e,t,l){switch(t.tag){case 3:Qe(t,t.stateNode.containerInfo),pl(t,Le,e.memoizedState.cache),Zl();break;case 27:case 5:Pe(t);break;case 4:Qe(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Qf(e,t,l):(El(t),e=Pt(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Sa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Zf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),w(we,we.current),a)break;return null;case 22:return t.lanes=0,Bf(e,t,l,t.pendingProps);case 24:pl(t,Le,e.memoizedState.cache)}return Pt(e,t,l)}function kf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!Ic(e,l)&&(t.flags&128)===0)return Ye=!1,Vv(e,t,l);Ye=(e.flags&131072)!==0}else Ye=!1,ve&&(t.flags&1048576)!==0&&jo(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$l(t.elementType),t.type=e,typeof e=="function")ac(e)?(a=Pl(e,a),t.tag=1,t=Gf(null,t,e,a,l)):(t.tag=0,t=Zc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===K){t.tag=11,t=Uf(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=Hf(null,t,e,a,l);break e}}throw t=ke(e)||e,Error(s(306,t,""))}}return t;case 0:return Zc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Pl(a,t.pendingProps),Gf(e,t,a,n,l);case 3:e:{if(Qe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,pc(e,t),vn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,pl(t,Le,a),a!==u.cache&&dc(t,[Le],l,!0),mn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Xf(e,t,a,l);break e}else if(a!==n){n=jt(Error(s(424)),t),sn(n),t=Xf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Re=Rt(e.firstChild),Je=t,ve=!0,yl=null,Tt=!0,l=wo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),a===n){t=Pt(e,t,l);break e}We(e,t,a,l)}t=t.child}return t;case 26:return Hu(e,t),e===null?(l=ah(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=Iu(ce.current).createElement(l),a[Ke]=t,a[at]=e,Fe(a,l,e),Ve(a),t.stateNode=a):t.memoizedState=ah(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pe(t),e===null&&ve&&(a=t.stateNode=eh(t.type,t.pendingProps,ce.current),Je=t,Tt=!0,n=Re,Dl(t.type)?(Ds=n,Re=Rt(a.firstChild)):Re=n),We(e,t,t.pendingProps.children,l),Hu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=Re)&&(a=Sy(a,t.type,t.pendingProps,Tt),a!==null?(t.stateNode=a,Je=t,Re=Rt(a.firstChild),Tt=!1,n=!0):n=!1),n||gl(t)),Pe(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Ts(n,u)?a=null:c!==null&&Ts(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Cc(e,t,Hv,null,null,l),Hn._currentValue=n),Hu(e,t),We(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=Re)&&(l=xy(l,t.pendingProps,Tt),l!==null?(t.stateNode=l,Je=t,Re=null,e=!0):e=!1),e||gl(t)),null;case 13:return Qf(e,t,l);case 4:return Qe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fl(t,null,a,l):We(e,t,a,l),t.child;case 11:return Uf(e,t,t.type,t.pendingProps,l);case 7:return We(e,t,t.pendingProps,l),t.child;case 8:return We(e,t,t.pendingProps.children,l),t.child;case 12:return We(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),We(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Kl(t),n=$e(n),a=a(n),t.flags|=1,We(e,t,a,l),t.child;case 14:return Hf(e,t,t.type,t.pendingProps,l);case 15:return wf(e,t,t.type,t.pendingProps,l);case 19:return Zf(e,t,l);case 31:return Qv(e,t,l);case 22:return Bf(e,t,l,t.pendingProps);case 24:return Kl(t),a=$e(Le),e===null?(n=vc(),n===null&&(n=Ae,u=hc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},gc(t),pl(t,Le,n)):((e.lanes&l)!==0&&(pc(e,t),vn(t,null,null,l),mn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),pl(t,Le,a)):(a=u.cache,pl(t,Le,a),a!==n.cache&&dc(t,[Le],l,!0))),We(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function el(e){e.flags|=4}function Pc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(bd())e.flags|=8192;else throw Wl=Su,yc}else e.flags&=-16777217}function Kf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sh(t))if(bd())e.flags|=8192;else throw Wl=Su,yc}function Bu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nr():536870912,e.lanes|=t,Oa|=t)}function xn(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Zv(e,t,l){var a=t.pendingProps;switch(cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(Le),de(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ba(t)?el(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rc())),ze(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(el(t),u!==null?(ze(t),Kf(t,u)):(ze(t),Pc(t,n,null,a,l))):u?u!==e.memoizedState?(el(t),ze(t),Kf(t,u)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&el(t),ze(t),Pc(t,n,e,a,l)),null;case 27:if(tt(t),l=ce.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}e=k.current,ba(t)?Co(t):(e=eh(n,a,l),t.stateNode=e,el(t))}return ze(t),null;case 5:if(tt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}if(u=k.current,ba(t))Co(t);else{var c=Iu(ce.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Ke]=t,u[at]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Fe(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&el(t)}}return ze(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ce.current,ba(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Je,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Qd(e.nodeValue,l)),e||gl(t,!0)}else e=Iu(e).createTextNode(a),e[Ke]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ba(t),l!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ke]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ba(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Ke]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),n=!1}else n=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Bu(t,t.updateQueue),ze(t),null);case 4:return de(),e===null&&xs(t.stateNode.containerInfo),ze(t),null;case 10:return Wt(t.type),ze(t),null;case 19:if(_(we),a=t.memoizedState,a===null)return ze(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)xn(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Nu(e),u!==null){for(t.flags|=128,xn(a,!1),e=u.updateQueue,t.updateQueue=e,Bu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)So(l,e),l=l.sibling;return w(we,we.current&1|2),ve&&Jt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ot()>Xu&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Nu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Bu(t,e),xn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ve)return ze(t),null}else 2*ot()-a.renderingStartTime>Xu&&l!==536870912&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ot(),e.sibling=null,l=we.current,w(we,n?l&1|2:l&1),ve&&Jt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return yt(t),Ec(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&Bu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&_(Jl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(Le),ze(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function kv(e,t){switch(cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(Le),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return tt(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(s(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(we),null;case 4:return de(),null;case 10:return Wt(t.type),null;case 22:case 23:return yt(t),Ec(),e!==null&&_(Jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(Le),null;case 25:return null;default:return null}}function Jf(e,t){switch(cc(t),t.tag){case 3:Wt(Le),de();break;case 26:case 27:case 5:tt(t);break;case 4:de();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:_(we);break;case 10:Wt(t.type);break;case 22:case 23:yt(t),Ec(),e!==null&&_(Jl);break;case 24:Wt(Le)}}function En(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(h){je(t,t.return,h)}}function Nl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,h=c.destroy;if(h!==void 0){c.destroy=void 0,n=t;var p=l,A=h;try{A()}catch(U){je(n,p,U)}}}a=a.next}while(a!==u)}}catch(U){je(t,t.return,U)}}function $f(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Lo(t,l)}catch(a){je(e,e.return,a)}}}function Wf(e,t,l){l.props=Pl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){je(e,t,a)}}function jn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){je(e,t,n)}}function Yt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){je(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){je(e,t,n)}else l.current=null}function Ff(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){je(e,e.return,n)}}function es(e,t,l){try{var a=e.stateNode;my(a,e.type,l,t),a[at]=t}catch(n){je(e,e.return,n)}}function If(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function ts(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||If(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ls(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Zt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ls(e,t,l),e=e.sibling;e!==null;)ls(e,t,l),e=e.sibling}function Lu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Lu(e,t,l),e=e.sibling;e!==null;)Lu(e,t,l),e=e.sibling}function Pf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Fe(t,a,l),t[Ke]=e,t[at]=l}catch(u){je(e,e.return,u)}}var tl=!1,Ge=!1,as=!1,ed=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Kv(e,t){if(e=e.containerInfo,Ns=ui,e=oo(e),Wi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,h=-1,p=-1,A=0,U=0,L=e,R=null;t:for(;;){for(var z;L!==l||n!==0&&L.nodeType!==3||(h=c+n),L!==u||a!==0&&L.nodeType!==3||(p=c+a),L.nodeType===3&&(c+=L.nodeValue.length),(z=L.firstChild)!==null;)R=L,L=z;for(;;){if(L===e)break t;if(R===l&&++A===n&&(h=c),R===u&&++U===a&&(p=c),(z=L.nextSibling)!==null)break;L=R,R=L.parentNode}L=z}l=h===-1||p===-1?null:{start:h,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cs={focusedElem:e,selectionRange:l},ui=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var J=Pl(l.type,n);e=a.getSnapshotBeforeUpdate(J,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(ee){je(l,l.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Rs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function td(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:al(e,l),a&4&&En(5,l);break;case 1:if(al(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){je(l,l.return,c)}else{var n=Pl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){je(l,l.return,c)}}a&64&&$f(l),a&512&&jn(l,l.return);break;case 3:if(al(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Lo(e,t)}catch(c){je(l,l.return,c)}}break;case 27:t===null&&a&4&&Pf(l);case 26:case 5:al(e,l),t===null&&a&4&&Ff(l),a&512&&jn(l,l.return);break;case 12:al(e,l);break;case 31:al(e,l),a&4&&nd(e,l);break;case 13:al(e,l),a&4&&ud(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ly.bind(null,l),Ey(e,l))));break;case 22:if(a=l.memoizedState!==null||tl,!a){t=t!==null&&t.memoizedState!==null||Ge,n=tl;var u=Ge;tl=a,(Ge=t)&&!u?nl(e,l,(l.subtreeFlags&8772)!==0):al(e,l),tl=n,Ge=u}break;case 30:break;default:al(e,l)}}function ld(e){var t=e.alternate;t!==null&&(e.alternate=null,ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Mi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var De=null,ut=!1;function ll(e,t,l){for(l=l.child;l!==null;)ad(e,t,l),l=l.sibling}function ad(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(ka,l)}catch{}switch(l.tag){case 26:Ge||Yt(l,t),ll(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ge||Yt(l,t);var a=De,n=ut;Dl(l.type)&&(De=l.stateNode,ut=!1),ll(e,t,l),On(l.stateNode),De=a,ut=n;break;case 5:Ge||Yt(l,t);case 6:if(a=De,n=ut,De=null,ll(e,t,l),De=a,ut=n,De!==null)if(ut)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(l.stateNode)}catch(u){je(l,t,u)}else try{De.removeChild(l.stateNode)}catch(u){je(l,t,u)}break;case 18:De!==null&&(ut?(e=De,$d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ya(e)):$d(De,l.stateNode));break;case 4:a=De,n=ut,De=l.stateNode.containerInfo,ut=!0,ll(e,t,l),De=a,ut=n;break;case 0:case 11:case 14:case 15:Nl(2,l,t),Ge||Nl(4,l,t),ll(e,t,l);break;case 1:Ge||(Yt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Wf(l,t,a)),ll(e,t,l);break;case 21:ll(e,t,l);break;case 22:Ge=(a=Ge)||l.memoizedState!==null,ll(e,t,l),Ge=a;break;default:ll(e,t,l)}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ya(e)}catch(l){je(t,t.return,l)}}}function ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ya(e)}catch(l){je(t,t.return,l)}}function Jv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ed),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ed),t;default:throw Error(s(435,e.tag))}}function qu(e,t){var l=Jv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=ay.bind(null,e,a);a.then(n,n)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,h=c;e:for(;h!==null;){switch(h.tag){case 27:if(Dl(h.type)){De=h.stateNode,ut=!1;break e}break;case 5:De=h.stateNode,ut=!1;break e;case 3:case 4:De=h.stateNode.containerInfo,ut=!0;break e}h=h.return}if(De===null)throw Error(s(160));ad(u,c,n),De=null,ut=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)id(t,e),t=t.sibling}var Ut=null;function id(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ct(e),a&4&&(Nl(3,e,e.return),En(3,e),Nl(5,e,e.return));break;case 1:it(t,e),ct(e),a&512&&(Ge||l===null||Yt(l,l.return)),a&64&&tl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ut;if(it(t,e),ct(e),a&512&&(Ge||l===null||Yt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[$a]||u[Ke]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Fe(u,a,l),u[Ke]=e,Ve(u),a=u;break e;case"link":var c=ih("link","href",n).get(a+(l.href||""));if(c){for(var h=0;h<c.length;h++)if(u=c[h],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(h,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;case"meta":if(c=ih("meta","content",n).get(a+(l.content||""))){for(h=0;h<c.length;h++)if(u=c[h],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(h,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;default:throw Error(s(468,a))}u[Ke]=e,Ve(u),a=u}e.stateNode=a}else ch(n,e.type,e.stateNode);else e.stateNode=uh(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?ch(n,e.type,e.stateNode):uh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&es(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ct(e),a&512&&(Ge||l===null||Yt(l,l.return)),l!==null&&a&4&&es(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ct(e),a&512&&(Ge||l===null||Yt(l,l.return)),e.flags&32){n=e.stateNode;try{ra(n,"")}catch(J){je(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,es(e,n,l!==null?l.memoizedProps:n)),a&1024&&(as=!0);break;case 6:if(it(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){je(e,e.return,J)}}break;case 3:if(ti=null,n=Ut,Ut=Pu(t.containerInfo),it(t,e),Ut=n,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ya(t.containerInfo)}catch(J){je(e,e.return,J)}as&&(as=!1,cd(e));break;case 4:a=Ut,Ut=Pu(e.stateNode.containerInfo),it(t,e),ct(e),Ut=a;break;case 12:it(t,e),ct(e);break;case 31:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 13:it(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gu=ot()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,A=tl,U=Ge;if(tl=A||n,Ge=U||p,it(t,e),Ge=U,tl=A,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||tl||Ge||ea(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{h=p.stateNode;var L=p.memoizedProps.style,R=L!=null&&L.hasOwnProperty("display")?L.display:null;h.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(J){je(p,p.return,J)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(J){je(p,p.return,J)}}}else if(t.tag===18){if(l===null){p=t;try{var z=p.stateNode;n?Wd(z,!0):Wd(p.stateNode,!1)}catch(J){je(p,p.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,qu(e,l))));break;case 19:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 30:break;case 21:break;default:it(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(If(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,u=ts(e);Lu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ra(c,""),l.flags&=-33);var h=ts(e);Lu(e,h,c);break;case 3:case 4:var p=l.stateNode.containerInfo,A=ts(e);ls(e,A,p);break;default:throw Error(s(161))}}catch(U){je(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function al(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)td(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nl(4,t,t.return),ea(t);break;case 1:Yt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Wf(t,t.return,l),ea(t);break;case 27:On(t.stateNode);case 26:case 5:Yt(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function nl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:nl(n,u,l),En(4,u);break;case 1:if(nl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){je(a,a.return,A)}if(a=u,n=a.updateQueue,n!==null){var h=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)Bo(p[n],h)}catch(A){je(a,a.return,A)}}l&&c&64&&$f(u),jn(u,u.return);break;case 27:Pf(u);case 26:case 5:nl(n,u,l),l&&a===null&&c&4&&Ff(u),jn(u,u.return);break;case 12:nl(n,u,l);break;case 31:nl(n,u,l),l&&c&4&&nd(n,u);break;case 13:nl(n,u,l),l&&c&4&&ud(n,u);break;case 22:u.memoizedState===null&&nl(n,u,l),jn(u,u.return);break;case 30:break;default:nl(n,u,l)}t=t.sibling}}function ns(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&rn(l))}function us(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rn(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sd(e,t,l,a),t=t.sibling}function sd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),n&2048&&En(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rn(e)));break;case 12:if(n&2048){Ht(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,h=u.onPostCommit;typeof h=="function"&&h(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){je(t,t.return,p)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Ht(e,t,l,a):Nn(e,t):u._visibility&2?Ht(e,t,l,a):(u._visibility|=2,za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ns(c,t);break;case 24:Ht(e,t,l,a),n&2048&&us(t.alternate,t);break;default:Ht(e,t,l,a)}}function za(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,h=l,p=a,A=c.flags;switch(c.tag){case 0:case 11:case 15:za(u,c,h,p,n),En(8,c);break;case 23:break;case 22:var U=c.stateNode;c.memoizedState!==null?U._visibility&2?za(u,c,h,p,n):Nn(u,c):(U._visibility|=2,za(u,c,h,p,n)),n&&A&2048&&ns(c.alternate,c);break;case 24:za(u,c,h,p,n),n&&A&2048&&us(c.alternate,c);break;default:za(u,c,h,p,n)}t=t.sibling}}function Nn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Nn(l,a),n&2048&&ns(a.alternate,a);break;case 24:Nn(l,a),n&2048&&us(a.alternate,a);break;default:Nn(l,a)}t=t.sibling}}var Cn=8192;function _a(e,t,l){if(e.subtreeFlags&Cn)for(e=e.child;e!==null;)rd(e,t,l),e=e.sibling}function rd(e,t,l){switch(e.tag){case 26:_a(e,t,l),e.flags&Cn&&e.memoizedState!==null&&Uy(l,Ut,e.memoizedState,e.memoizedProps);break;case 5:_a(e,t,l);break;case 3:case 4:var a=Ut;Ut=Pu(e.stateNode.containerInfo),_a(e,t,l),Ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Cn,Cn=16777216,_a(e,t,l),Cn=a):_a(e,t,l));break;default:_a(e,t,l)}}function od(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Tn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,dd(a,e)}od(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fd(e),e=e.sibling}function fd(e){switch(e.tag){case 0:case 11:case 15:Tn(e),e.flags&2048&&Nl(9,e,e.return);break;case 3:Tn(e);break;case 12:Tn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):Tn(e);break;default:Tn(e)}}function Yu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ze=a,dd(a,e)}od(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nl(8,t,t.return),Yu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function dd(e,t){for(;Ze!==null;){var l=Ze;switch(l.tag){case 0:case 11:case 15:Nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:rn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ze=a;else e:for(l=e;Ze!==null;){a=Ze;var n=a.sibling,u=a.return;if(ld(a),a===l){Ze=null;break e}if(n!==null){n.return=u,Ze=n;break e}Ze=u}}}var $v={getCacheForType:function(e){var t=$e(Le),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return $e(Le).controller.signal}},Wv=typeof WeakMap=="function"?WeakMap:Map,Se=0,Ae=null,oe=null,he=0,Ee=0,gt=null,Cl=!1,Da=!1,is=!1,ul=0,He=0,Tl=0,ta=0,cs=0,pt=0,Oa=0,An=null,st=null,ss=!1,Gu=0,hd=0,Xu=1/0,Qu=null,Al=null,Xe=0,Rl=null,Ma=null,il=0,rs=0,os=null,md=null,Rn=0,fs=null;function bt(){return(Se&2)!==0&&he!==0?he&-he:M.T!==null?gs():Rr()}function vd(){if(pt===0)if((he&536870912)===0||ve){var e=Fn;Fn<<=1,(Fn&3932160)===0&&(Fn=262144),pt=e}else pt=536870912;return e=vt.current,e!==null&&(e.flags|=32),pt}function rt(e,t,l){(e===Ae&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Ua(e,0),zl(e,he,pt,!1)),Ja(e,l),((Se&2)===0||e!==Ae)&&(e===Ae&&((Se&2)===0&&(ta|=l),He===4&&zl(e,he,pt,!1)),Gt(e))}function yd(e,t,l){if((Se&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ka(e,t),n=a?Pv(e,t):hs(e,t,!0),u=a;do{if(n===0){Da&&!a&&zl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Fv(l)){n=hs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var h=e;n=An;var p=h.current.memoizedState.isDehydrated;if(p&&(Ua(h,c).flags|=256),c=hs(h,c,!1),c!==2){if(is&&!p){h.errorRecoveryDisabledLanes|=u,ta|=u,n=4;break e}u=st,st=n,u!==null&&(st===null?st=u:st.push.apply(st,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ua(e,0),zl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:zl(a,t,pt,!Cl);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=Gu+300-ot(),10<n)){if(zl(a,t,pt,!Cl),Pn(a,0,!0)!==0)break e;il=t,a.timeoutHandle=Kd(gd.bind(null,a,l,st,Qu,ss,t,pt,ta,Oa,Cl,u,"Throttled",-0,0),n);break e}gd(a,l,st,Qu,ss,t,pt,ta,Oa,Cl,u,null,-0,0)}}break}while(!0);Gt(e)}function gd(e,t,l,a,n,u,c,h,p,A,U,L,R,z){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},rd(t,u,L);var J=(u&62914560)===u?Gu-ot():(u&4194048)===u?hd-ot():0;if(J=Hy(L,J),J!==null){il=u,e.cancelPendingCommit=J(Cd.bind(null,e,t,u,l,a,n,c,h,p,U,L,null,R,z)),zl(e,u,c,!A);return}}Cd(e,t,u,l,a,n,c,h,p)}function Fv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!ht(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zl(e,t,l,a){t&=~cs,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-dt(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&Cr(e,l,t)}function Vu(){return(Se&6)===0?(zn(0),!1):!0}function ds(){if(oe!==null){if(Ee===0)var e=oe.return;else e=oe,$t=kl=null,Rc(e),Na=null,fn=0,e=oe;for(;e!==null;)Jf(e.alternate,e),e=e.return;oe=null}}function Ua(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,gy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),il=0,ds(),Ae=e,oe=l=Kt(e.current,null),he=t,Ee=0,gt=null,Cl=!1,Da=Ka(e,t),is=!1,Oa=pt=cs=ta=Tl=He=0,st=An=null,ss=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-dt(a),u=1<<n;t|=e[n],a&=~u}return ul=t,fu(),l}function pd(e,t){ue=null,M.H=bn,t===ja||t===bu?(t=Mo(),Ee=3):t===yc?(t=Mo(),Ee=4):Ee=t===Vc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gt=t,oe===null&&(He=1,Mu(e,jt(t,e.current)))}function bd(){var e=vt.current;return e===null?!0:(he&4194048)===he?At===null:(he&62914560)===he||(he&536870912)!==0?e===At:!1}function Sd(){var e=M.H;return M.H=bn,e===null?bn:e}function xd(){var e=M.A;return M.A=$v,e}function Zu(){He=4,Cl||(he&4194048)!==he&&vt.current!==null||(Da=!0),(Tl&134217727)===0&&(ta&134217727)===0||Ae===null||zl(Ae,he,pt,!1)}function hs(e,t,l){var a=Se;Se|=2;var n=Sd(),u=xd();(Ae!==e||he!==t)&&(Qu=null,Ua(e,t)),t=!1;var c=He;e:do try{if(Ee!==0&&oe!==null){var h=oe,p=gt;switch(Ee){case 8:ds(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var A=Ee;if(Ee=0,gt=null,Ha(e,h,p,A),l&&Da){c=0;break e}break;default:A=Ee,Ee=0,gt=null,Ha(e,h,p,A)}}Iv(),c=He;break}catch(U){pd(e,U)}while(!0);return t&&e.shellSuspendCounter++,$t=kl=null,Se=a,M.H=n,M.A=u,oe===null&&(Ae=null,he=0,fu()),c}function Iv(){for(;oe!==null;)Ed(oe)}function Pv(e,t){var l=Se;Se|=2;var a=Sd(),n=xd();Ae!==e||he!==t?(Qu=null,Xu=ot()+500,Ua(e,t)):Da=Ka(e,t);e:do try{if(Ee!==0&&oe!==null){t=oe;var u=gt;t:switch(Ee){case 1:Ee=0,gt=null,Ha(e,t,u,1);break;case 2:case 9:if(Do(u)){Ee=0,gt=null,jd(t);break}t=function(){Ee!==2&&Ee!==9||Ae!==e||(Ee=7),Gt(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Do(u)?(Ee=0,gt=null,jd(t)):(Ee=0,gt=null,Ha(e,t,u,7));break;case 5:var c=null;switch(oe.tag){case 26:c=oe.memoizedState;case 5:case 27:var h=oe;if(c?sh(c):h.stateNode.complete){Ee=0,gt=null;var p=h.sibling;if(p!==null)oe=p;else{var A=h.return;A!==null?(oe=A,ku(A)):oe=null}break t}}Ee=0,gt=null,Ha(e,t,u,5);break;case 6:Ee=0,gt=null,Ha(e,t,u,6);break;case 8:ds(),He=6;break e;default:throw Error(s(462))}}ey();break}catch(U){pd(e,U)}while(!0);return $t=kl=null,M.H=a,M.A=n,Se=l,oe!==null?0:(Ae=null,he=0,fu(),He)}function ey(){for(;oe!==null&&!jm();)Ed(oe)}function Ed(e){var t=kf(e.alternate,e,ul);e.memoizedProps=e.pendingProps,t===null?ku(e):oe=t}function jd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Yf(l,t,t.pendingProps,t.type,void 0,he);break;case 11:t=Yf(l,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Rc(t);default:Jf(l,t),t=oe=So(t,ul),t=kf(l,t,ul)}e.memoizedProps=e.pendingProps,t===null?ku(e):oe=t}function Ha(e,t,l,a){$t=kl=null,Rc(t),Na=null,fn=0;var n=t.return;try{if(Xv(e,n,t,l,he)){He=1,Mu(e,jt(l,e.current)),oe=null;return}}catch(u){if(n!==null)throw oe=n,u;He=1,Mu(e,jt(l,e.current)),oe=null;return}t.flags&32768?(ve||a===1?e=!0:Da||(he&536870912)!==0?e=!1:(Cl=e=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Nd(t,e)):ku(t)}function ku(e){var t=e;do{if((t.flags&32768)!==0){Nd(t,Cl);return}e=t.return;var l=Zv(t.alternate,t,ul);if(l!==null){oe=l;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);He===0&&(He=5)}function Nd(e,t){do{var l=kv(e.alternate,e);if(l!==null){l.flags&=32767,oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=l}while(e!==null);He=6,oe=null}function Cd(e,t,l,a,n,u,c,h,p){e.cancelPendingCommit=null;do Ku();while(Xe!==0);if((Se&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=tc,Mm(e,l,u,c,h,p),e===Ae&&(oe=Ae=null,he=0),Ma=t,Rl=e,il=l,rs=u,os=n,md=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ny($n,function(){return _d(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=Z.p,Z.p=2,c=Se,Se|=4;try{Kv(e,t,l)}finally{Se=c,Z.p=n,M.T=a}}Xe=1,Td(),Ad(),Rd()}}function Td(){if(Xe===1){Xe=0;var e=Rl,t=Ma,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var a=Z.p;Z.p=2;var n=Se;Se|=4;try{id(t,e);var u=Cs,c=oo(e.containerInfo),h=u.focusedElem,p=u.selectionRange;if(c!==h&&h&&h.ownerDocument&&ro(h.ownerDocument.documentElement,h)){if(p!==null&&Wi(h)){var A=p.start,U=p.end;if(U===void 0&&(U=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(U,h.value.length);else{var L=h.ownerDocument||document,R=L&&L.defaultView||window;if(R.getSelection){var z=R.getSelection(),J=h.textContent.length,ee=Math.min(p.start,J),Te=p.end===void 0?ee:Math.min(p.end,J);!z.extend&&ee>Te&&(c=Te,Te=ee,ee=c);var E=so(h,ee),x=so(h,Te);if(E&&x&&(z.rangeCount!==1||z.anchorNode!==E.node||z.anchorOffset!==E.offset||z.focusNode!==x.node||z.focusOffset!==x.offset)){var T=L.createRange();T.setStart(E.node,E.offset),z.removeAllRanges(),ee>Te?(z.addRange(T),z.extend(x.node,x.offset)):(T.setEnd(x.node,x.offset),z.addRange(T))}}}}for(L=[],z=h;z=z.parentNode;)z.nodeType===1&&L.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<L.length;h++){var B=L[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ui=!!Ns,Cs=Ns=null}finally{Se=n,Z.p=a,M.T=l}}e.current=t,Xe=2}}function Ad(){if(Xe===2){Xe=0;var e=Rl,t=Ma,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Z.p;Z.p=2;var n=Se;Se|=4;try{td(e,t.alternate,t)}finally{Se=n,Z.p=a,M.T=l}}Xe=3}}function Rd(){if(Xe===4||Xe===3){Xe=0,Nm();var e=Rl,t=Ma,l=il,a=md;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,Ma=Rl=null,zd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Al=null),Di(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(ka,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,n=Z.p,Z.p=2,M.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var h=a[c];u(h.value,{componentStack:h.stack})}}finally{M.T=t,Z.p=n}}(il&3)!==0&&Ku(),Gt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===fs?Rn++:(Rn=0,fs=e):Rn=0,zn(0)}}function zd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rn(t)))}function Ku(){return Td(),Ad(),Rd(),_d()}function _d(){if(Xe!==5)return!1;var e=Rl,t=rs;rs=0;var l=Di(il),a=M.T,n=Z.p;try{Z.p=32>l?32:l,M.T=null,l=os,os=null;var u=Rl,c=il;if(Xe=0,Ma=Rl=null,il=0,(Se&6)!==0)throw Error(s(331));var h=Se;if(Se|=4,fd(u.current),sd(u,u.current,c,l),Se=h,zn(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(ka,u)}catch{}return!0}finally{Z.p=n,M.T=a,zd(e,t)}}function Dd(e,t,l){t=jt(l,t),t=Qc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(Ja(e,2),Gt(e))}function je(e,t,l){if(e.tag===3)Dd(e,e,l);else for(;t!==null;){if(t.tag===3){Dd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=jt(l,e),l=Of(2),a=xl(t,l,2),a!==null&&(Mf(l,a,t,e),Ja(a,2),Gt(a));break}}t=t.return}}function ms(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Wv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(is=!0,n.add(l),e=ty.bind(null,e,t,l),t.then(e,e))}function ty(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(he&l)===l&&(He===4||He===3&&(he&62914560)===he&&300>ot()-Gu?(Se&2)===0&&Ua(e,0):cs|=l,Oa===he&&(Oa=0)),Gt(e)}function Od(e,t){t===0&&(t=Nr()),e=Ql(e,t),e!==null&&(Ja(e,t),Gt(e))}function ly(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Od(e,l)}function ay(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Od(e,l)}function ny(e,t){return Ai(e,t)}var Ju=null,wa=null,vs=!1,$u=!1,ys=!1,_l=0;function Gt(e){e!==wa&&e.next===null&&(wa===null?Ju=wa=e:wa=wa.next=e),$u=!0,vs||(vs=!0,iy())}function zn(e,t){if(!ys&&$u){ys=!0;do for(var l=!1,a=Ju;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,h=a.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=n&~(c&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,wd(a,u))}else u=he,u=Pn(a,a===Ae?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ka(a,u)||(l=!0,wd(a,u));a=a.next}while(l);ys=!1}}function uy(){Md()}function Md(){$u=vs=!1;var e=0;_l!==0&&yy()&&(e=_l);for(var t=ot(),l=null,a=Ju;a!==null;){var n=a.next,u=Ud(a,t);u===0?(a.next=null,l===null?Ju=n:l.next=n,n===null&&(wa=l)):(l=a,(e!==0||(u&3)!==0)&&($u=!0)),a=n}Xe!==0&&Xe!==5||zn(e),_l!==0&&(_l=0)}function Ud(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-dt(u),h=1<<c,p=n[c];p===-1?((h&l)===0||(h&a)!==0)&&(n[c]=Om(h,t)):p<=t&&(e.expiredLanes|=h),u&=~h}if(t=Ae,l=he,l=Pn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ri(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ri(a),Di(l)){case 2:case 8:l=Er;break;case 32:l=$n;break;case 268435456:l=jr;break;default:l=$n}return a=Hd.bind(null,e),l=Ai(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ri(a),e.callbackPriority=2,e.callbackNode=null,2}function Hd(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ku()&&e.callbackNode!==l)return null;var a=he;return a=Pn(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(yd(e,a,t),Ud(e,ot()),e.callbackNode!=null&&e.callbackNode===l?Hd.bind(null,e):null)}function wd(e,t){if(Ku())return null;yd(e,t,!0)}function iy(){py(function(){(Se&6)!==0?Ai(xr,uy):Md()})}function gs(){if(_l===0){var e=xa;e===0&&(e=Wn,Wn<<=1,(Wn&261888)===0&&(Wn=256)),_l=e}return _l}function Bd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:au(""+e)}function Ld(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function cy(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Bd((n[at]||null).action),c=a.submitter;c&&(t=(t=c[at]||null)?Bd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var h=new cu("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_l!==0){var p=c?Ld(n,c):new FormData(n);Bc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(h.preventDefault(),p=c?Ld(n,c):new FormData(n),Bc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var ps=0;ps<ec.length;ps++){var bs=ec[ps],sy=bs.toLowerCase(),ry=bs[0].toUpperCase()+bs.slice(1);Mt(sy,"on"+ry)}Mt(mo,"onAnimationEnd"),Mt(vo,"onAnimationIteration"),Mt(yo,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(Cv,"onTransitionRun"),Mt(Tv,"onTransitionStart"),Mt(Av,"onTransitionCancel"),Mt(go,"onTransitionEnd"),ca("onMouseEnter",["mouseout","mouseover"]),ca("onMouseLeave",["mouseout","mouseover"]),ca("onPointerEnter",["pointerout","pointerover"]),ca("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),oy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_n));function qd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var h=a[c],p=h.instance,A=h.currentTarget;if(h=h.listener,p!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=A;try{u(n)}catch(U){ou(U)}n.currentTarget=null,u=p}else for(c=0;c<a.length;c++){if(h=a[c],p=h.instance,A=h.currentTarget,h=h.listener,p!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=A;try{u(n)}catch(U){ou(U)}n.currentTarget=null,u=p}}}}function fe(e,t){var l=t[Oi];l===void 0&&(l=t[Oi]=new Set);var a=e+"__bubble";l.has(a)||(Yd(t,e,2,!1),l.add(a))}function Ss(e,t,l){var a=0;t&&(a|=4),Yd(l,e,a,t)}var Wu="_reactListening"+Math.random().toString(36).slice(2);function xs(e){if(!e[Wu]){e[Wu]=!0,Dr.forEach(function(l){l!=="selectionchange"&&(oy.has(l)||Ss(l,!1,e),Ss(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wu]||(t[Wu]=!0,Ss("selectionchange",!1,t))}}function Yd(e,t,l,a){switch(vh(t)){case 2:var n=Ly;break;case 8:n=qy;break;default:n=ws}l=n.bind(null,t,l,e),n=void 0,!Gi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Es(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var h=a.stateNode.containerInfo;if(h===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;h!==null;){if(c=na(h),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=u=c;continue e}h=h.parentNode}}a=a.return}Qr(function(){var A=u,U=qi(l),L=[];e:{var R=po.get(e);if(R!==void 0){var z=cu,J=e;switch(e){case"keypress":if(uu(l)===0)break e;case"keydown":case"keyup":z=av;break;case"focusin":J="focus",z=Zi;break;case"focusout":J="blur",z=Zi;break;case"beforeblur":case"afterblur":z=Zi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Zm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=iv;break;case mo:case vo:case yo:z=Jm;break;case go:z=sv;break;case"scroll":case"scrollend":z=Qm;break;case"wheel":z=ov;break;case"copy":case"cut":case"paste":z=Wm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Jr;break;case"toggle":case"beforetoggle":z=dv}var ee=(t&4)!==0,Te=!ee&&(e==="scroll"||e==="scrollend"),E=ee?R!==null?R+"Capture":null:R;ee=[];for(var x=A,T;x!==null;){var B=x;if(T=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||T===null||E===null||(B=Fa(x,E),B!=null&&ee.push(Dn(x,B,T))),Te)break;x=x.return}0<ee.length&&(R=new z(R,J,null,l,U),L.push({event:R,listeners:ee}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",R&&l!==Li&&(J=l.relatedTarget||l.fromElement)&&(na(J)||J[aa]))break e;if((z||R)&&(R=U.window===U?U:(R=U.ownerDocument)?R.defaultView||R.parentWindow:window,z?(J=l.relatedTarget||l.toElement,z=A,J=J?na(J):null,J!==null&&(Te=y(J),ee=J.tag,J!==Te||ee!==5&&ee!==27&&ee!==6)&&(J=null)):(z=null,J=A),z!==J)){if(ee=kr,B="onMouseLeave",E="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Jr,B="onPointerLeave",E="onPointerEnter",x="pointer"),Te=z==null?R:Wa(z),T=J==null?R:Wa(J),R=new ee(B,x+"leave",z,l,U),R.target=Te,R.relatedTarget=T,B=null,na(U)===A&&(ee=new ee(E,x+"enter",J,l,U),ee.target=T,ee.relatedTarget=Te,B=ee),Te=B,z&&J)t:{for(ee=fy,E=z,x=J,T=0,B=E;B;B=ee(B))T++;B=0;for(var P=x;P;P=ee(P))B++;for(;0<T-B;)E=ee(E),T--;for(;0<B-T;)x=ee(x),B--;for(;T--;){if(E===x||x!==null&&E===x.alternate){ee=E;break t}E=ee(E),x=ee(x)}ee=null}else ee=null;z!==null&&Gd(L,R,z,ee,!1),J!==null&&Te!==null&&Gd(L,Te,J,ee,!0)}}e:{if(R=A?Wa(A):window,z=R.nodeName&&R.nodeName.toLowerCase(),z==="select"||z==="input"&&R.type==="file")var ge=lo;else if(eo(R))if(ao)ge=Ev;else{ge=Sv;var W=bv}else z=R.nodeName,!z||z.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?A&&Bi(A.elementType)&&(ge=lo):ge=xv;if(ge&&(ge=ge(e,A))){to(L,ge,l,U);break e}W&&W(e,R,A),e==="focusout"&&A&&R.type==="number"&&A.memoizedProps.value!=null&&wi(R,"number",R.value)}switch(W=A?Wa(A):window,e){case"focusin":(eo(W)||W.contentEditable==="true")&&(ha=W,Fi=A,un=null);break;case"focusout":un=Fi=ha=null;break;case"mousedown":Ii=!0;break;case"contextmenu":case"mouseup":case"dragend":Ii=!1,fo(L,l,U);break;case"selectionchange":if(Nv)break;case"keydown":case"keyup":fo(L,l,U)}var ie;if(Ki)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else da?Ir(e,l)&&(me="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(me="onCompositionStart");me&&($r&&l.locale!=="ko"&&(da||me!=="onCompositionStart"?me==="onCompositionEnd"&&da&&(ie=Vr()):(ml=U,Xi="value"in ml?ml.value:ml.textContent,da=!0)),W=Fu(A,me),0<W.length&&(me=new Kr(me,e,null,l,U),L.push({event:me,listeners:W}),ie?me.data=ie:(ie=Pr(l),ie!==null&&(me.data=ie)))),(ie=mv?vv(e,l):yv(e,l))&&(me=Fu(A,"onBeforeInput"),0<me.length&&(W=new Kr("onBeforeInput","beforeinput",null,l,U),L.push({event:W,listeners:me}),W.data=ie)),cy(L,e,A,l,U)}qd(L,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Fu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Fa(e,l),n!=null&&a.unshift(Dn(e,n,u)),n=Fa(e,t),n!=null&&a.push(Dn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function fy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var h=l,p=h.alternate,A=h.stateNode;if(h=h.tag,p!==null&&p===a)break;h!==5&&h!==26&&h!==27||A===null||(p=A,n?(A=Fa(l,u),A!=null&&c.unshift(Dn(l,A,p))):n||(A=Fa(l,u),A!=null&&c.push(Dn(l,A,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var dy=/\r\n?/g,hy=/\u0000|\uFFFD/g;function Xd(e){return(typeof e=="string"?e:""+e).replace(dy,`
|
|
49
|
-
`).replace(hy,"")}function Qd(e,t){return t=Xd(t),Xd(e)===t}function Ce(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ra(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ra(e,""+a);break;case"className":tu(e,"class",a);break;case"tabIndex":tu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tu(e,l,a);break;case"style":Gr(e,a,u);break;case"data":if(t!=="object"){tu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=au(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&Ce(e,t,"name",n.name,n,null),Ce(e,t,"formEncType",n.formEncType,n,null),Ce(e,t,"formMethod",n.formMethod,n,null),Ce(e,t,"formTarget",n.formTarget,n,null)):(Ce(e,t,"encType",n.encType,n,null),Ce(e,t,"method",n.method,n,null),Ce(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=au(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=au(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":fe("beforetoggle",e),fe("toggle",e),eu(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":eu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Gm.get(l)||l,eu(e,l,a))}}function js(e,t,l,a,n,u){switch(l){case"style":Gr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ra(e,a):(typeof a=="number"||typeof a=="bigint")&&ra(e,""+a);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Or.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[at]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):eu(e,l,a)}}}function Fe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,u,c,l,null)}}n&&Ce(e,t,"srcSet",l.srcSet,l,null),a&&Ce(e,t,"src",l.src,l,null);return;case"input":fe("invalid",e);var h=u=c=n=null,p=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var U=l[a];if(U!=null)switch(a){case"name":n=U;break;case"type":c=U;break;case"checked":p=U;break;case"defaultChecked":A=U;break;case"value":u=U;break;case"defaultValue":h=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:Ce(e,t,a,U,l,null)}}Br(e,u,h,p,A,c,n,!1);return;case"select":fe("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":u=h;break;case"defaultValue":c=h;break;case"multiple":a=h;default:Ce(e,t,n,h,l,null)}t=u,l=c,e.multiple=!!a,t!=null?sa(e,!!a,t,!1):l!=null&&sa(e,!!a,l,!0);return;case"textarea":fe("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(h=l[c],h!=null))switch(c){case"value":a=h;break;case"defaultValue":n=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:Ce(e,t,c,h,l,null)}qr(e,a,n,u);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ce(e,t,p,a,l,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(a=0;a<_n.length;a++)fe(_n[a],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,A,a,l,null)}return;default:if(Bi(t)){for(U in l)l.hasOwnProperty(U)&&(a=l[U],a!==void 0&&js(e,t,U,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Ce(e,t,h,a,l,null))}function my(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,h=null,p=null,A=null,U=null;for(z in l){var L=l[z];if(l.hasOwnProperty(z)&&L!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":p=L;default:a.hasOwnProperty(z)||Ce(e,t,z,null,a,L)}}for(var R in a){var z=a[R];if(L=l[R],a.hasOwnProperty(R)&&(z!=null||L!=null))switch(R){case"type":u=z;break;case"name":n=z;break;case"checked":A=z;break;case"defaultChecked":U=z;break;case"value":c=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:z!==L&&Ce(e,t,R,z,a,L)}}Hi(e,c,h,p,A,U,u,n);return;case"select":z=c=h=R=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":z=p;default:a.hasOwnProperty(u)||Ce(e,t,u,null,a,p)}for(n in a)if(u=a[n],p=l[n],a.hasOwnProperty(n)&&(u!=null||p!=null))switch(n){case"value":R=u;break;case"defaultValue":h=u;break;case"multiple":c=u;default:u!==p&&Ce(e,t,n,u,a,p)}t=h,l=c,a=z,R!=null?sa(e,!!l,R,!1):!!a!=!!l&&(t!=null?sa(e,!!l,t,!0):sa(e,!!l,l?[]:"",!1));return;case"textarea":z=R=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ce(e,t,h,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":R=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&Ce(e,t,c,n,a,u)}Lr(e,R,z);return;case"option":for(var J in l)if(R=l[J],l.hasOwnProperty(J)&&R!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Ce(e,t,J,null,a,R)}for(p in a)if(R=a[p],z=l[p],a.hasOwnProperty(p)&&R!==z&&(R!=null||z!=null))switch(p){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Ce(e,t,p,R,a,z)}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 ee in l)R=l[ee],l.hasOwnProperty(ee)&&R!=null&&!a.hasOwnProperty(ee)&&Ce(e,t,ee,null,a,R);for(A in a)if(R=a[A],z=l[A],a.hasOwnProperty(A)&&R!==z&&(R!=null||z!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:Ce(e,t,A,R,a,z)}return;default:if(Bi(t)){for(var Te in l)R=l[Te],l.hasOwnProperty(Te)&&R!==void 0&&!a.hasOwnProperty(Te)&&js(e,t,Te,void 0,a,R);for(U in a)R=a[U],z=l[U],!a.hasOwnProperty(U)||R===z||R===void 0&&z===void 0||js(e,t,U,R,a,z);return}}for(var E in l)R=l[E],l.hasOwnProperty(E)&&R!=null&&!a.hasOwnProperty(E)&&Ce(e,t,E,null,a,R);for(L in a)R=a[L],z=l[L],!a.hasOwnProperty(L)||R===z||R==null&&z==null||Ce(e,t,L,R,a,z)}function Vd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,h=n.duration;if(u&&h&&Vd(c)){for(c=0,h=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],A=p.startTime;if(A>h)break;var U=p.transferSize,L=p.initiatorType;U&&Vd(L)&&(p=p.responseEnd,c+=U*(p<h?1:(h-A)/(p-A)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ns=null,Cs=null;function Iu(e){return e.nodeType===9?e:e.ownerDocument}function Zd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ts(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var As=null;function yy(){var e=window.event;return e&&e.type==="popstate"?e===As?!1:(As=e,!0):(As=null,!1)}var Kd=typeof setTimeout=="function"?setTimeout:void 0,gy=typeof clearTimeout=="function"?clearTimeout:void 0,Jd=typeof Promise=="function"?Promise:void 0,py=typeof queueMicrotask=="function"?queueMicrotask:typeof Jd<"u"?function(e){return Jd.resolve(null).then(e).catch(by)}:Kd;function by(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function $d(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ya(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")On(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,On(l);for(var u=l.firstChild;u;){var c=u.nextSibling,h=u.nodeName;u[$a]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&On(e.ownerDocument.body);l=n}while(l);Ya(t)}function Wd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Rs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Rs(l),Mi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Sy(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[$a])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Rt(e.nextSibling),e===null)break}return null}function xy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Rt(e.nextSibling),e===null))return null;return e}function Fd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rt(e.nextSibling),e===null))return null;return e}function zs(e){return e.data==="$?"||e.data==="$~"}function _s(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ey(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Rt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ds=null;function Id(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Rt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function eh(e,t,l){switch(t=Iu(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Mi(e)}var zt=new Map,th=new Set;function Pu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Z.d;Z.d={f:jy,r:Ny,D:Cy,C:Ty,L:Ay,m:Ry,X:_y,S:zy,M:Dy};function jy(){var e=cl.f(),t=Vu();return e||t}function Ny(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?pf(t):cl.r(e)}var Ba=typeof document>"u"?null:document;function lh(e,t,l){var a=Ba;if(a&&typeof t=="string"&&t){var n=xt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),th.has(n)||(th.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Fe(t,"link",e),Ve(t),a.head.appendChild(t)))}}function Cy(e){cl.D(e),lh("dns-prefetch",e,null)}function Ty(e,t){cl.C(e,t),lh("preconnect",e,t)}function Ay(e,t,l){cl.L(e,t,l);var a=Ba;if(a&&e&&t){var n='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+xt(l.imageSizes)+'"]')):n+='[href="'+xt(e)+'"]';var u=n;switch(t){case"style":u=La(e);break;case"script":u=qa(e)}zt.has(u)||(e=N({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Mn(u))||t==="script"&&a.querySelector(Un(u))||(t=a.createElement("link"),Fe(t,"link",e),Ve(t),a.head.appendChild(t)))}}function Ry(e,t){cl.m(e,t);var l=Ba;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+xt(a)+'"][href="'+xt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=qa(e)}if(!zt.has(u)&&(e=N({rel:"modulepreload",href:e},t),zt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Un(u)))return}a=l.createElement("link"),Fe(a,"link",e),Ve(a),l.head.appendChild(a)}}}function zy(e,t,l){cl.S(e,t,l);var a=Ba;if(a&&e){var n=ia(a).hoistableStyles,u=La(e);t=t||"default";var c=n.get(u);if(!c){var h={loading:0,preload:null};if(c=a.querySelector(Mn(u)))h.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(u))&&Os(e,l);var p=c=a.createElement("link");Ve(p),Fe(p,"link",e),p._p=new Promise(function(A,U){p.onload=A,p.onerror=U}),p.addEventListener("load",function(){h.loading|=1}),p.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ei(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:h},n.set(u,c)}}}function _y(e,t){cl.X(e,t);var l=Ba;if(l&&e){var a=ia(l).hoistableScripts,n=qa(e),u=a.get(n);u||(u=l.querySelector(Un(n)),u||(e=N({src:e,async:!0},t),(t=zt.get(n))&&Ms(e,t),u=l.createElement("script"),Ve(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Dy(e,t){cl.M(e,t);var l=Ba;if(l&&e){var a=ia(l).hoistableScripts,n=qa(e),u=a.get(n);u||(u=l.querySelector(Un(n)),u||(e=N({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&Ms(e,t),u=l.createElement("script"),Ve(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ah(e,t,l,a){var n=(n=ce.current)?Pu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=La(l.href),l=ia(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=La(l.href);var u=ia(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Mn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),u||Oy(n,e,l,c.state))),t&&a===null)throw Error(s(528,""));return c}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(l),l=ia(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function La(e){return'href="'+xt(e)+'"'}function Mn(e){return'link[rel="stylesheet"]['+e+"]"}function nh(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function Oy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Fe(t,"link",l),Ve(t),e.head.appendChild(t))}function qa(e){return'[src="'+xt(e)+'"]'}function Un(e){return"script[async]"+e}function uh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(a)return t.instance=a,Ve(a),a;var n=N({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ve(a),Fe(a,"style",n),ei(a,l.precedence,e),t.instance=a;case"stylesheet":n=La(l.href);var u=e.querySelector(Mn(n));if(u)return t.state.loading|=4,t.instance=u,Ve(u),u;a=nh(l),(n=zt.get(n))&&Os(a,n),u=(e.ownerDocument||e).createElement("link"),Ve(u);var c=u;return c._p=new Promise(function(h,p){c.onload=h,c.onerror=p}),Fe(u,"link",a),t.state.loading|=4,ei(u,l.precedence,e),t.instance=u;case"script":return u=qa(l.src),(n=e.querySelector(Un(u)))?(t.instance=n,Ve(n),n):(a=l,(n=zt.get(u))&&(a=N({},l),Ms(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ve(n),Fe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ei(a,l.precedence,e));return t.instance}function ei(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var h=a[c];if(h.dataset.precedence===t)u=h;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ms(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ti=null;function ih(e,t,l){if(ti===null){var a=new Map,n=ti=new Map;n.set(l,a)}else n=ti,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[$a]||u[Ke]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var h=a.get(c);h?h.push(u):a.set(c,[u])}}return a}function ch(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function My(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Uy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=La(a.href),u=t.querySelector(Mn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=li.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ve(u);return}u=t.ownerDocument||t,a=nh(a),(n=zt.get(n))&&Os(a,n),u=u.createElement("link"),Ve(u);var c=u;c._p=new Promise(function(h,p){c.onload=h,c.onerror=p}),Fe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=li.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Us=0;function Hy(e,t){return e.stylesheets&&e.count===0&&ni(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ni(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Us===0&&(Us=62500*vy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ni(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Us?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function li(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ni(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ai=null;function ni(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ai=new Map,t.forEach(wy,e),ai=null,li.call(e))}function wy(e,t){if(!(t.state.loading&4)){var l=ai.get(e);if(l)var a=l.get(null);else{l=new Map,ai.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=li.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Hn={$$typeof:X,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function By(e,t,l,a,n,u,c,h,p){this.tag=1,this.containerInfo=e,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=zi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zi(0),this.hiddenUpdates=zi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function rh(e,t,l,a,n,u,c,h,p,A,U,L){return e=new By(e,t,l,c,p,A,U,L,h),t=1,u===!0&&(t|=24),u=mt(3,null,null,t),e.current=u,u.stateNode=e,t=hc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},gc(u),e}function oh(e){return e?(e=ya,e):ya}function fh(e,t,l,a,n,u){n=oh(n),a.context===null?a.context=n:a.pendingContext=n,a=Sl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=xl(e,a,t),l!==null&&(rt(l,e,t),hn(l,e,t))}function dh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Hs(e,t){dh(e,t),(e=e.alternate)&&dh(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=Ql(e,67108864);t!==null&&rt(t,e,67108864),Hs(e,67108864)}}function mh(e){if(e.tag===13||e.tag===31){var t=bt();t=_i(t);var l=Ql(e,t);l!==null&&rt(l,e,t),Hs(e,t)}}var ui=!0;function Ly(e,t,l,a){var n=M.T;M.T=null;var u=Z.p;try{Z.p=2,ws(e,t,l,a)}finally{Z.p=u,M.T=n}}function qy(e,t,l,a){var n=M.T;M.T=null;var u=Z.p;try{Z.p=8,ws(e,t,l,a)}finally{Z.p=u,M.T=n}}function ws(e,t,l,a){if(ui){var n=Bs(a);if(n===null)Es(e,t,a,ii,l),yh(e,a);else if(Gy(n,e,t,l,a))a.stopPropagation();else if(yh(e,a),t&4&&-1<Yy.indexOf(e)){for(;n!==null;){var u=ua(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Ll(u.pendingLanes);if(c!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;c;){var p=1<<31-dt(c);h.entanglements[1]|=p,c&=~p}Gt(u),(Se&6)===0&&(Xu=ot()+500,zn(0))}}break;case 31:case 13:h=Ql(u,2),h!==null&&rt(h,u,2),Vu(),Hs(u,2)}if(u=Bs(a),u===null&&Es(e,t,a,ii,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Es(e,t,a,null,l)}}function Bs(e){return e=qi(e),Ls(e)}var ii=null;function Ls(e){if(ii=null,e=na(e),e!==null){var t=y(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=b(t),e!==null)return e;e=null}else if(l===31){if(e=j(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ii=e,null}function vh(e){switch(e){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(Cm()){case xr:return 2;case Er:return 8;case $n:case Tm:return 32;case jr:return 268435456;default:return 32}default:return 32}}var qs=!1,Ol=null,Ml=null,Ul=null,wn=new Map,Bn=new Map,Hl=[],Yy="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 yh(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bn.delete(t.pointerId)}}function Ln(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ua(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Gy(e,t,l,a,n){switch(t){case"focusin":return Ol=Ln(Ol,e,t,l,a,n),!0;case"dragenter":return Ml=Ln(Ml,e,t,l,a,n),!0;case"mouseover":return Ul=Ln(Ul,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return wn.set(u,Ln(wn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Bn.set(u,Ln(Bn.get(u)||null,e,t,l,a,n)),!0}return!1}function gh(e){var t=na(e.target);if(t!==null){var l=y(t);if(l!==null){if(t=l.tag,t===13){if(t=b(l),t!==null){e.blockedOn=t,zr(e.priority,function(){mh(l)});return}}else if(t===31){if(t=j(l),t!==null){e.blockedOn=t,zr(e.priority,function(){mh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Bs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Li=a,l.target.dispatchEvent(a),Li=null}else return t=ua(l),t!==null&&hh(t),e.blockedOn=l,!1;t.shift()}return!0}function ph(e,t,l){ci(e)&&l.delete(t)}function Xy(){qs=!1,Ol!==null&&ci(Ol)&&(Ol=null),Ml!==null&&ci(Ml)&&(Ml=null),Ul!==null&&ci(Ul)&&(Ul=null),wn.forEach(ph),Bn.forEach(ph)}function si(e,t){e.blockedOn===t&&(e.blockedOn=null,qs||(qs=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Xy)))}var ri=null;function bh(e){ri!==e&&(ri=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ri===e&&(ri=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Ls(a||l)===null)continue;break}var u=ua(l);u!==null&&(e.splice(t,3),t-=3,Bc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ya(e){function t(p){return si(p,e)}Ol!==null&&si(Ol,e),Ml!==null&&si(Ml,e),Ul!==null&&si(Ul,e),wn.forEach(t),Bn.forEach(t);for(var l=0;l<Hl.length;l++){var a=Hl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Hl.length&&(l=Hl[0],l.blockedOn===null);)gh(l),l.blockedOn===null&&Hl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[at]||null;if(typeof u=="function")c||bh(l);else if(c){var h=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[at]||null)h=c.formAction;else if(Ls(n)!==null)continue}else h=c.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),bh(l)}}}function Sh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Ys(e){this._internalRoot=e}oi.prototype.render=Ys.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=bt();fh(l,a,e,t,null,null)},oi.prototype.unmount=Ys.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),Vu(),t[aa]=null}};function oi(e){this._internalRoot=e}oi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Hl.length&&t!==0&&t<Hl[l].priority;l++);Hl.splice(l,0,e),l===0&&gh(e)}};var xh=o.version;if(xh!=="19.2.7")throw Error(s(527,xh,"19.2.7"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var Qy={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fi.isDisabled&&fi.supportsFiber)try{ka=fi.inject(Qy),ft=fi}catch{}}return Yn.createRoot=function(e,t){if(!d(e))throw Error(s(299));var l=!1,a="",n=Rf,u=zf,c=_f;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=rh(e,1,!1,null,null,l,a,null,n,u,c,Sh),e[aa]=t.current,xs(e),new Ys(t)},Yn.hydrateRoot=function(e,t,l){if(!d(e))throw Error(s(299));var a=!1,n="",u=Rf,c=zf,h=_f,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=rh(e,1,!0,t,l??null,a,n,p,u,c,h,Sh),t.context=oh(null),l=t.current,a=bt(),a=_i(a),n=Sl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,Ja(t,l),Gt(t),e[aa]=t.current,xs(e),new oi(t)},Yn.version="19.2.7",Yn}var Dh;function Py(){if(Dh)return Qs.exports;Dh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Qs.exports=Iy(),Qs.exports}var eg=Py();/**
|
|
50
|
-
* react-router v7.18.0
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var ar=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Jh=/^[\\/]{2}/;function tg(i,o){return o+i.replace(/\\/g,"/")}var Oh="popstate";function Mh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function lg(i={}){function o(s,d){var m;let y=(m=d.state)==null?void 0:m.masked,{pathname:b,search:j,hash:S}=y||s.location;return Is("",{pathname:b,search:j,hash:S},d.state&&d.state.usr||null,d.state&&d.state.key||"default",y?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function f(s,d){return typeof d=="string"?d:Qn(d)}return ng(o,f,null,i)}function Oe(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Xt(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function ag(){return Math.random().toString(36).substring(2,10)}function Uh(i,o){return{usr:i.state,key:i.key,idx:o,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Is(i,o,f=null,s,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?Ga(o):o,state:f,key:o&&o.key||s||ag(),mask:d}}function Qn({pathname:i="/",search:o="",hash:f=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function Ga(i){let o={};if(i){let f=i.indexOf("#");f>=0&&(o.hash=i.substring(f),i=i.substring(0,f));let s=i.indexOf("?");s>=0&&(o.search=i.substring(s),i=i.substring(0,s)),i&&(o.pathname=i)}return o}function ng(i,o,f,s={}){let{window:d=document.defaultView,v5Compat:y=!1}=s,b=d.history,j="POP",S=null,m=C();m==null&&(m=0,b.replaceState({...b.state,idx:m},""));function C(){return(b.state||{idx:null}).idx}function N(){j="POP";let Q=C(),H=Q==null?null:Q-m;m=Q,S&&S({action:j,location:q.location,delta:H})}function D(Q,H){j="PUSH";let O=Mh(Q)?Q:Is(q.location,Q,H);m=C()+1;let X=Uh(O,m),K=q.createHref(O.mask||O);try{b.pushState(X,"",K)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;d.location.assign(K)}y&&S&&S({action:j,location:q.location,delta:1})}function Y(Q,H){j="REPLACE";let O=Mh(Q)?Q:Is(q.location,Q,H);m=C();let X=Uh(O,m),K=q.createHref(O.mask||O);b.replaceState(X,"",K),y&&S&&S({action:j,location:q.location,delta:0})}function V(Q){return ug(d,Q)}let q={get action(){return j},get location(){return i(d,b)},listen(Q){if(S)throw new Error("A history only accepts one active listener");return d.addEventListener(Oh,N),S=Q,()=>{d.removeEventListener(Oh,N),S=null}},createHref(Q){return o(d,Q)},createURL:V,encodeLocation(Q){let H=V(Q);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:D,replace:Y,go(Q){return b.go(Q)}};return q}function ug(i,o,f=!1){let s="http://localhost";i&&(s=i.location.origin!=="null"?i.location.origin:i.location.href),Oe(s,"No window.location.(origin|href) available to create URL");let d=typeof o=="string"?o:Qn(o);return d=d.replace(/ $/,"%20"),!f&&Jh.test(d)&&(d=s+d),new URL(d,s)}function $h(i,o,f="/"){return ig(i,o,f,!1)}function ig(i,o,f,s,d){let y=typeof o=="string"?Ga(o):o,b=rl(y.pathname||"/",f);if(b==null)return null;let j=cg(i),S=null,m=pg(b);for(let C=0;S==null&&C<j.length;++C)S=gg(j[C],m,s);return S}function cg(i){let o=Wh(i);return sg(o),o}function Wh(i,o=[],f=[],s="",d=!1){let y=(b,j,S=d,m)=>{let C={relativePath:m===void 0?b.path||"":m,caseSensitive:b.caseSensitive===!0,childrenIndex:j,route:b};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(s)&&S)return;Oe(C.relativePath.startsWith(s),`Absolute route path "${C.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(s.length)}let N=wt([s,C.relativePath]),D=f.concat(C);b.children&&b.children.length>0&&(Oe(b.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),Wh(b.children,o,D,N,S)),!(b.path==null&&!b.index)&&o.push({path:N,score:vg(N,b.index),routesMeta:D.map((Y,V)=>{let[q,Q]=Ph(Y.relativePath,Y.caseSensitive,V===D.length-1);return{...Y,matcher:q,compiledParams:Q}})})};return i.forEach((b,j)=>{var S;if(b.path===""||!((S=b.path)!=null&&S.includes("?")))y(b,j);else for(let m of Fh(b.path))y(b,j,!0,m)}),o}function Fh(i){let o=i.split("/");if(o.length===0)return[];let[f,...s]=o,d=f.endsWith("?"),y=f.replace(/\?$/,"");if(s.length===0)return d?[y,""]:[y];let b=Fh(s.join("/")),j=[];return j.push(...b.map(S=>S===""?y:[y,S].join("/"))),d&&j.push(...b),j.map(S=>i.startsWith("/")&&S===""?"/":S)}function sg(i){i.sort((o,f)=>o.score!==f.score?f.score-o.score:yg(o.routesMeta.map(s=>s.childrenIndex),f.routesMeta.map(s=>s.childrenIndex)))}var rg=/^:[\w-]+$/,og=3,fg=2,dg=1,hg=10,mg=-2,Hh=i=>i==="*";function vg(i,o){let f=i.split("/"),s=f.length;return f.some(Hh)&&(s+=mg),o&&(s+=fg),f.filter(d=>!Hh(d)).reduce((d,y)=>d+(rg.test(y)?og:y===""?dg:hg),s)}function yg(i,o){return i.length===o.length&&i.slice(0,-1).every((s,d)=>s===o[d])?i[i.length-1]-o[o.length-1]:0}function gg(i,o,f=!1){let{routesMeta:s}=i,d={},y="/",b=[];for(let j=0;j<s.length;++j){let S=s[j],m=j===s.length-1,C=y==="/"?o:o.slice(y.length)||"/",N={path:S.relativePath,caseSensitive:S.caseSensitive,end:m},D=S.matcher&&S.compiledParams?Ih(N,C,S.matcher,S.compiledParams):yi(N,C),Y=S.route;if(!D&&m&&f&&!s[s.length-1].route.index&&(D=yi({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},C)),!D)return null;Object.assign(d,D.params),b.push({params:d,pathname:wt([y,D.pathname]),pathnameBase:xg(wt([y,D.pathnameBase])),route:Y}),D.pathnameBase!=="/"&&(y=wt([y,D.pathnameBase]))}return b}function yi(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,s]=Ph(i.path,i.caseSensitive,i.end);return Ih(i,o,f,s)}function Ih(i,o,f,s){let d=o.match(f);if(!d)return null;let y=d[0],b=y.replace(/(.)\/+$/,"$1"),j=d.slice(1);return{params:s.reduce((m,{paramName:C,isOptional:N},D)=>{if(C==="*"){let V=j[D]||"";b=y.slice(0,y.length-V.length).replace(/(.)\/+$/,"$1")}const Y=j[D];return N&&!Y?m[C]=void 0:m[C]=(Y||"").replace(/%2F/g,"/"),m},{}),pathname:y,pathnameBase:b,pattern:i}}function Ph(i,o=!1,f=!0){Xt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(b,j,S,m,C)=>{if(s.push({paramName:j,isOptional:S!=null}),S){let N=C.charAt(m+b.length);return N&&N!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),s]}function pg(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Xt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function rl(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,s=i.charAt(f);return s&&s!=="/"?null:i.slice(f)||"/"}function bg(i,o="/"){let{pathname:f,search:s="",hash:d=""}=typeof i=="string"?Ga(i):i,y;return f?(f=tm(f),f.startsWith("/")?y=wh(f.substring(1),"/"):y=wh(f,o)):y=o,{pathname:y,search:Eg(s),hash:jg(d)}}function wh(i,o){let f=gi(o).split("/");return i.split("/").forEach(d=>{d===".."?f.length>1&&f.pop():d!=="."&&f.push(d)}),f.length>1?f.join("/"):"/"}function Ks(i,o,f,s){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Sg(i){return i.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function em(i){let o=Sg(i);return o.map((f,s)=>s===o.length-1?f.pathname:f.pathnameBase)}function nr(i,o,f,s=!1){let d;typeof i=="string"?d=Ga(i):(d={...i},Oe(!d.pathname||!d.pathname.includes("?"),Ks("?","pathname","search",d)),Oe(!d.pathname||!d.pathname.includes("#"),Ks("#","pathname","hash",d)),Oe(!d.search||!d.search.includes("#"),Ks("#","search","hash",d)));let y=i===""||d.pathname==="",b=y?"/":d.pathname,j;if(b==null)j=f;else{let N=o.length-1;if(!s&&b.startsWith("..")){let D=b.split("/");for(;D[0]==="..";)D.shift(),N-=1;d.pathname=D.join("/")}j=N>=0?o[N]:"/"}let S=bg(d,j),m=b&&b!=="/"&&b.endsWith("/"),C=(y||b===".")&&f.endsWith("/");return!S.pathname.endsWith("/")&&(m||C)&&(S.pathname+="/"),S}var tm=i=>i.replace(/[\\/]{2,}/g,"/"),wt=i=>tm(i.join("/")),gi=i=>i.replace(/\/+$/,""),xg=i=>gi(i).replace(/^\/*/,"/"),Eg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,jg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Ng=class{constructor(i,o,f,s=!1){this.status=i,this.statusText=o||"",this.internal=s,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Cg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Tg(i){let o=i.map(f=>f.route.path).filter(Boolean);return wt(o)||"/"}var lm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function am(i,o){let f=i;if(typeof f!="string"||!ar.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let s=f,d=!1;if(lm)try{let y=new URL(window.location.href),b=Jh.test(f)?new URL(tg(f,y.protocol)):new URL(f),j=rl(b.pathname,o);b.origin===y.origin&&j!=null?f=j+b.search+b.hash:d=!0}catch{Xt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nm=["POST","PUT","PATCH","DELETE"];new Set(nm);var Ag=["GET",...nm];new Set(Ag);var Rg=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function zg(i){try{return Rg.includes(new URL(i).protocol)}catch{return!1}}var Xa=g.createContext(null);Xa.displayName="DataRouter";var bi=g.createContext(null);bi.displayName="DataRouterState";var um=g.createContext(!1);function _g(){return g.useContext(um)}var im=g.createContext({isTransitioning:!1});im.displayName="ViewTransition";var Dg=g.createContext(new Map);Dg.displayName="Fetchers";var Og=g.createContext(null);Og.displayName="Await";var Ot=g.createContext(null);Ot.displayName="Navigation";var Zn=g.createContext(null);Zn.displayName="Location";var Qt=g.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var ur=g.createContext(null);ur.displayName="RouteError";var cm="REACT_ROUTER_ERROR",Mg="REDIRECT",Ug="ROUTE_ERROR_RESPONSE";function Hg(i){if(i.startsWith(`${cm}:${Mg}:{`))try{let o=JSON.parse(i.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function wg(i){if(i.startsWith(`${cm}:${Ug}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Ng(o.status,o.statusText,o.data)}catch{}}function Bg(i,{relative:o}={}){Oe(kn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:s}=g.useContext(Ot),{hash:d,pathname:y,search:b}=Kn(i,{relative:o}),j=y;return f!=="/"&&(j=y==="/"?f:wt([f,y])),s.createHref({pathname:j,search:b,hash:d})}function kn(){return g.useContext(Zn)!=null}function Bt(){return Oe(kn(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Zn).location}var sm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rm(i){g.useContext(Ot).static||g.useLayoutEffect(i)}function om(){let{isDataRoute:i}=g.useContext(Qt);return i?Fg():Lg()}function Lg(){Oe(kn(),"useNavigate() may be used only in the context of a <Router> component.");let i=g.useContext(Xa),{basename:o,navigator:f}=g.useContext(Ot),{matches:s}=g.useContext(Qt),{pathname:d}=Bt(),y=JSON.stringify(em(s)),b=g.useRef(!1);return rm(()=>{b.current=!0}),g.useCallback((S,m={})=>{if(Xt(b.current,sm),!b.current)return;if(typeof S=="number"){f.go(S);return}let C=nr(S,JSON.parse(y),d,m.relative==="path");i==null&&o!=="/"&&(C.pathname=C.pathname==="/"?o:wt([o,C.pathname])),(m.replace?f.replace:f.push)(C,m.state,m)},[o,f,y,d,i])}g.createContext(null);function qg(){let{matches:i}=g.useContext(Qt),o=i[i.length-1];return(o==null?void 0:o.params)??{}}function Kn(i,{relative:o}={}){let{matches:f}=g.useContext(Qt),{pathname:s}=Bt(),d=JSON.stringify(em(f));return g.useMemo(()=>nr(i,JSON.parse(d),s,o==="path"),[i,d,s,o])}function Yg(i,o){return fm(i,o)}function fm(i,o,f){var Q;Oe(kn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(Ot),{matches:d}=g.useContext(Qt),y=d[d.length-1],b=y?y.params:{},j=y?y.pathname:"/",S=y?y.pathnameBase:"/",m=y&&y.route;{let H=m&&m.path||"";hm(j,!m||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${j}" (under <Route path="${H}">) 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.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let C=Bt(),N;if(o){let H=typeof o=="string"?Ga(o):o;Oe(S==="/"||((Q=H.pathname)==null?void 0:Q.startsWith(S)),`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 "${S}" but pathname "${H.pathname}" was given in the \`location\` prop.`),N=H}else N=C;let D=N.pathname||"/",Y=D;if(S!=="/"){let H=S.replace(/^\//,"").split("/");Y="/"+D.replace(/^\//,"").split("/").slice(H.length).join("/")}let V=f&&f.state.matches.length?f.state.matches.map(H=>Object.assign(H,{route:f.manifest[H.route.id]||H.route})):$h(i,{pathname:Y});Xt(m||V!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Xt(V==null||V[V.length-1].route.element!==void 0||V[V.length-1].route.Component!==void 0||V[V.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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 q=Zg(V&&V.map(H=>Object.assign({},H,{params:Object.assign({},b,H.params),pathname:wt([S,s.encodeLocation?s.encodeLocation(H.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?S:wt([S,s.encodeLocation?s.encodeLocation(H.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),d,f);return o&&q?g.createElement(Zn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...N},navigationType:"POP"}},q):q}function Gg(){let i=Wg(),o=Cg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},y={padding:"2px 4px",backgroundColor:s},b=null;return console.error("Error handled by React Router default ErrorBoundary:",i),b=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:y},"ErrorBoundary")," or"," ",g.createElement("code",{style:y},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},o),f?g.createElement("pre",{style:d},f):null,b)}var Xg=g.createElement(Gg,null),dm=class extends g.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){this.props.onError?this.props.onError(i,o):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const f=wg(i.digest);f&&(i=f)}let o=i!==void 0?g.createElement(Qt.Provider,{value:this.props.routeContext},g.createElement(ur.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?g.createElement(Qg,{error:i},o):o}};dm.contextType=um;var Js=new WeakMap;function Qg({children:i,error:o}){let{basename:f}=g.useContext(Ot);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=Hg(o.digest);if(s){let d=Js.get(o);if(d)throw d;let y=am(s.location,f),b=y.absoluteURL||y.to;if(zg(b))throw new Error("Invalid redirect location");if(lm&&!Js.get(o))if(y.isExternal||s.reloadDocument)window.location.href=b;else{const j=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(y.to,{replace:s.replace}));throw Js.set(o,j),j}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${b}`})}}return i}function Vg({routeContext:i,match:o,children:f}){let s=g.useContext(Xa);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),g.createElement(Qt.Provider,{value:i},f)}function Zg(i,o=[],f){let s=f==null?void 0:f.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let d=i,y=s==null?void 0:s.errors;if(y!=null){let C=d.findIndex(N=>N.route.id&&(y==null?void 0:y[N.route.id])!==void 0);Oe(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),d=d.slice(0,Math.min(d.length,C+1))}let b=!1,j=-1;if(f&&s){b=s.renderFallback;for(let C=0;C<d.length;C++){let N=d[C];if((N.route.HydrateFallback||N.route.hydrateFallbackElement)&&(j=C),N.route.id){let{loaderData:D,errors:Y}=s,V=N.route.loader&&!D.hasOwnProperty(N.route.id)&&(!Y||Y[N.route.id]===void 0);if(N.route.lazy||V){f.isStatic&&(b=!0),j>=0?d=d.slice(0,j+1):d=[d[0]];break}}}}let S=f==null?void 0:f.onError,m=s&&S?(C,N)=>{var D,Y;S(C,{location:s.location,params:((Y=(D=s.matches)==null?void 0:D[0])==null?void 0:Y.params)??{},pattern:Tg(s.matches),errorInfo:N})}:void 0;return d.reduceRight((C,N,D)=>{let Y,V=!1,q=null,Q=null;s&&(Y=y&&N.route.id?y[N.route.id]:void 0,q=N.route.errorElement||Xg,b&&(j<0&&D===0?(hm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),V=!0,Q=null):j===D&&(V=!0,Q=N.route.hydrateFallbackElement||null)));let H=o.concat(d.slice(0,D+1)),O=()=>{let X;return Y?X=q:V?X=Q:N.route.Component?X=g.createElement(N.route.Component,null):N.route.element?X=N.route.element:X=C,g.createElement(Vg,{match:N,routeContext:{outlet:C,matches:H,isDataRoute:s!=null},children:X})};return s&&(N.route.ErrorBoundary||N.route.errorElement||D===0)?g.createElement(dm,{location:s.location,revalidation:s.revalidation,component:q,error:Y,children:O(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:m}):O()},null)}function ir(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kg(i){let o=g.useContext(Xa);return Oe(o,ir(i)),o}function Kg(i){let o=g.useContext(bi);return Oe(o,ir(i)),o}function Jg(i){let o=g.useContext(Qt);return Oe(o,ir(i)),o}function cr(i){let o=Jg(i),f=o.matches[o.matches.length-1];return Oe(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function $g(){return cr("useRouteId")}function Wg(){var s;let i=g.useContext(ur),o=Kg("useRouteError"),f=cr("useRouteError");return i!==void 0?i:(s=o.errors)==null?void 0:s[f]}function Fg(){let{router:i}=kg("useNavigate"),o=cr("useNavigate"),f=g.useRef(!1);return rm(()=>{f.current=!0}),g.useCallback(async(d,y={})=>{Xt(f.current,sm),f.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:o,...y}))},[i,o])}var Bh={};function hm(i,o,f){!o&&!Bh[i]&&(Bh[i]=!0,Xt(!1,f))}g.memo(Ig);function Ig({routes:i,manifest:o,future:f,state:s,isStatic:d,onError:y}){return fm(i,void 0,{manifest:o,state:s,isStatic:d,onError:y})}function la(i){Oe(!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 Pg({basename:i="/",children:o=null,location:f,navigationType:s="POP",navigator:d,static:y=!1,useTransitions:b}){Oe(!kn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=i.replace(/^\/*/,"/"),S=g.useMemo(()=>({basename:j,navigator:d,static:y,useTransitions:b,future:{}}),[j,d,y,b]);typeof f=="string"&&(f=Ga(f));let{pathname:m="/",search:C="",hash:N="",state:D=null,key:Y="default",mask:V}=f,q=g.useMemo(()=>{let Q=rl(m,j);return Q==null?null:{location:{pathname:Q,search:C,hash:N,state:D,key:Y,mask:V},navigationType:s}},[j,m,C,N,D,Y,s,V]);return Xt(q!=null,`<Router basename="${j}"> is not able to match the URL "${m}${C}${N}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:g.createElement(Ot.Provider,{value:S},g.createElement(Zn.Provider,{children:o,value:q}))}function ep({children:i,location:o}){return Yg(Ps(i),o)}function Ps(i,o=[]){let f=[];return g.Children.forEach(i,(s,d)=>{if(!g.isValidElement(s))return;let y=[...o,d];if(s.type===g.Fragment){f.push.apply(f,Ps(s.props.children,y));return}Oe(s.type===la,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Oe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let b={id:s.props.id||y.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(b.children=Ps(s.props.children,y)),f.push(b)}),f}var mi="get",vi="application/x-www-form-urlencoded";function Si(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function tp(i){return Si(i)&&i.tagName.toLowerCase()==="button"}function lp(i){return Si(i)&&i.tagName.toLowerCase()==="form"}function ap(i){return Si(i)&&i.tagName.toLowerCase()==="input"}function np(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function up(i,o){return i.button===0&&(!o||o==="_self")&&!np(i)}var di=null;function ip(){if(di===null)try{new FormData(document.createElement("form"),0),di=!1}catch{di=!0}return di}var cp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $s(i){return i!=null&&!cp.has(i)?(Xt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vi}"`),null):i}function sp(i,o){let f,s,d,y,b;if(lp(i)){let j=i.getAttribute("action");s=j?rl(j,o):null,f=i.getAttribute("method")||mi,d=$s(i.getAttribute("enctype"))||vi,y=new FormData(i)}else if(tp(i)||ap(i)&&(i.type==="submit"||i.type==="image")){let j=i.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||j.getAttribute("action");if(s=S?rl(S,o):null,f=i.getAttribute("formmethod")||j.getAttribute("method")||mi,d=$s(i.getAttribute("formenctype"))||$s(j.getAttribute("enctype"))||vi,y=new FormData(j,i),!ip()){let{name:m,type:C,value:N}=i;if(C==="image"){let D=m?`${m}.`:"";y.append(`${D}x`,"0"),y.append(`${D}y`,"0")}else m&&y.append(m,N)}}else{if(Si(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=mi,s=null,d=vi,b=i}return y&&d==="text/plain"&&(b=y,y=void 0),{action:s,method:f.toLowerCase(),encType:d,formData:y,body:b}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sr(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function mm(i,o,f,s){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return f?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:o&&rl(d.pathname,o)==="/"?d.pathname=`${gi(o)}/_root.${s}`:d.pathname=`${gi(d.pathname)}.${s}`,d}async function rp(i,o){if(i.id in o)return o[i.id];try{let f=await import(i.module);return o[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function op(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function fp(i,o,f){let s=await Promise.all(i.map(async d=>{let y=o.routes[d.route.id];if(y){let b=await rp(y,f);return b.links?b.links():[]}return[]}));return vp(s.flat(1).filter(op).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Lh(i,o,f,s,d,y){let b=(S,m)=>f[m]?S.route.id!==f[m].route.id:!0,j=(S,m)=>{var C;return f[m].pathname!==S.pathname||((C=f[m].route.path)==null?void 0:C.endsWith("*"))&&f[m].params["*"]!==S.params["*"]};return y==="assets"?o.filter((S,m)=>b(S,m)||j(S,m)):y==="data"?o.filter((S,m)=>{var N;let C=s.routes[S.route.id];if(!C||!C.hasLoader)return!1;if(b(S,m)||j(S,m))return!0;if(S.route.shouldRevalidate){let D=S.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((N=f[0])==null?void 0:N.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof D=="boolean")return D}return!0}):[]}function dp(i,o,{includeHydrateFallback:f}={}){return hp(i.map(s=>{let d=o.routes[s.route.id];if(!d)return[];let y=[d.module];return d.clientActionModule&&(y=y.concat(d.clientActionModule)),d.clientLoaderModule&&(y=y.concat(d.clientLoaderModule)),f&&d.hydrateFallbackModule&&(y=y.concat(d.hydrateFallbackModule)),d.imports&&(y=y.concat(d.imports)),y}).flat(1))}function hp(i){return[...new Set(i)]}function mp(i){let o={},f=Object.keys(i).sort();for(let s of f)o[s]=i[s];return o}function vp(i,o){let f=new Set;return new Set(o),i.reduce((s,d)=>{let y=JSON.stringify(mp(d));return f.has(y)||(f.add(y),s.push({key:y,link:d})),s},[])}function rr(){let i=g.useContext(Xa);return sr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function yp(){let i=g.useContext(bi);return sr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var or=g.createContext(void 0);or.displayName="FrameworkContext";function xi(){let i=g.useContext(or);return sr(i,"You must render this element inside a <HydratedRouter> element"),i}function gp(i,o){let f=g.useContext(or),[s,d]=g.useState(!1),[y,b]=g.useState(!1),{onFocus:j,onBlur:S,onMouseEnter:m,onMouseLeave:C,onTouchStart:N}=o,D=g.useRef(null);g.useEffect(()=>{if(i==="render"&&b(!0),i==="viewport"){let q=H=>{H.forEach(O=>{b(O.isIntersecting)})},Q=new IntersectionObserver(q,{threshold:.5});return D.current&&Q.observe(D.current),()=>{Q.disconnect()}}},[i]),g.useEffect(()=>{if(s){let q=setTimeout(()=>{b(!0)},100);return()=>{clearTimeout(q)}}},[s]);let Y=()=>{d(!0)},V=()=>{d(!1),b(!1)};return f?i!=="intent"?[y,D,{}]:[y,D,{onFocus:Gn(j,Y),onBlur:Gn(S,V),onMouseEnter:Gn(m,Y),onMouseLeave:Gn(C,V),onTouchStart:Gn(N,Y)}]:[!1,D,{}]}function Gn(i,o){return f=>{i&&i(f),f.defaultPrevented||o(f)}}function pp({page:i,...o}){let f=_g(),{nonce:s}=xi(),{router:d}=rr(),y=g.useMemo(()=>$h(d.routes,i,d.basename),[d.routes,i,d.basename]);return y?(o.nonce==null&&s&&(o={...o,nonce:s}),f?g.createElement(Sp,{page:i,matches:y,...o}):g.createElement(xp,{page:i,matches:y,...o})):null}function bp(i){let{manifest:o,routeModules:f}=xi(),[s,d]=g.useState([]);return g.useEffect(()=>{let y=!1;return fp(i,o,f).then(b=>{y||d(b)}),()=>{y=!0}},[i,o,f]),s}function Sp({page:i,matches:o,...f}){let s=Bt(),{future:d}=xi(),{basename:y}=rr(),b=g.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let j=mm(i,y,d.v8_trailingSlashAwareDataRequests,"rsc"),S=!1,m=[];for(let C of o)typeof C.route.shouldRevalidate=="function"?S=!0:m.push(C.route.id);return S&&m.length>0&&j.searchParams.set("_routes",m.join(",")),[j.pathname+j.search]},[y,d.v8_trailingSlashAwareDataRequests,i,s,o]);return g.createElement(g.Fragment,null,b.map(j=>g.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...f})))}function xp({page:i,matches:o,...f}){let s=Bt(),{future:d,manifest:y,routeModules:b}=xi(),{basename:j}=rr(),{loaderData:S,matches:m}=yp(),C=g.useMemo(()=>Lh(i,o,m,y,s,"data"),[i,o,m,y,s]),N=g.useMemo(()=>Lh(i,o,m,y,s,"assets"),[i,o,m,y,s]),D=g.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let q=new Set,Q=!1;if(o.forEach(O=>{var K;let X=y.routes[O.route.id];!X||!X.hasLoader||(!C.some($=>$.route.id===O.route.id)&&O.route.id in S&&((K=b[O.route.id])!=null&&K.shouldRevalidate)||X.hasClientLoader?Q=!0:q.add(O.route.id))}),q.size===0)return[];let H=mm(i,j,d.v8_trailingSlashAwareDataRequests,"data");return Q&&q.size>0&&H.searchParams.set("_routes",o.filter(O=>q.has(O.route.id)).map(O=>O.route.id).join(",")),[H.pathname+H.search]},[j,d.v8_trailingSlashAwareDataRequests,S,s,y,C,o,i,b]),Y=g.useMemo(()=>dp(N,y),[N,y]),V=bp(N);return g.createElement(g.Fragment,null,D.map(q=>g.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...f})),Y.map(q=>g.createElement("link",{key:q,rel:"modulepreload",href:q,...f})),V.map(({key:q,link:Q})=>g.createElement("link",{key:q,nonce:f.nonce,...Q,crossOrigin:Q.crossOrigin??f.crossOrigin})))}function Ep(...i){return o=>{i.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var jp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jp&&(window.__reactRouterVersion="7.18.0")}catch{}function Np({basename:i,children:o,useTransitions:f,window:s}){let d=g.useRef();d.current==null&&(d.current=lg({window:s,v5Compat:!0}));let y=d.current,[b,j]=g.useState({action:y.action,location:y.location}),S=g.useCallback(m=>{f===!1?j(m):g.startTransition(()=>j(m))},[f]);return g.useLayoutEffect(()=>y.listen(S),[y,S]),g.createElement(Pg,{basename:i,children:o,location:b.location,navigationType:b.action,navigator:y,useTransitions:f})}var ol=g.forwardRef(function({onClick:o,discover:f="render",prefetch:s="none",relative:d,reloadDocument:y,replace:b,mask:j,state:S,target:m,to:C,preventScrollReset:N,viewTransition:D,defaultShouldRevalidate:Y,...V},q){let{basename:Q,navigator:H,useTransitions:O}=g.useContext(Ot),X=typeof C=="string"&&ar.test(C),K=am(C,Q);C=K.to;let $=Bg(C,{relative:d}),se=Bt(),F=null;if(j){let _e=nr(j,[],se.mask?se.mask.pathname:"/",!0);Q!=="/"&&(_e.pathname=_e.pathname==="/"?Q:wt([Q,_e.pathname])),F=H.createHref(_e)}let[I,be,Me]=gp(s,V),te=Rp(C,{replace:b,mask:j,state:S,target:m,preventScrollReset:N,relative:d,viewTransition:D,defaultShouldRevalidate:Y,useTransitions:O});function xe(_e){o&&o(_e),_e.defaultPrevented||te(_e)}let Ie=!(K.isExternal||y),ke=g.createElement("a",{...V,...Me,href:(Ie?F:void 0)||K.absoluteURL||$,onClick:Ie?xe:o,ref:Ep(q,be),target:m,"data-discover":!X&&f==="render"?"true":void 0});return I&&!X?g.createElement(g.Fragment,null,ke,g.createElement(pp,{page:$})):ke});ol.displayName="Link";var Cp=g.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:s="",end:d=!1,style:y,to:b,viewTransition:j,children:S,...m},C){let N=Kn(b,{relative:m.relative}),D=Bt(),Y=g.useContext(bi),{navigator:V,basename:q}=g.useContext(Ot),Q=Y!=null&&Mp(N)&&j===!0,H=V.encodeLocation?V.encodeLocation(N).pathname:N.pathname,O=D.pathname,X=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;f||(O=O.toLowerCase(),X=X?X.toLowerCase():null,H=H.toLowerCase()),X&&q&&(X=rl(X,q)||X);const K=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let $=O===H||!d&&O.startsWith(H)&&O.charAt(K)==="/",se=X!=null&&(X===H||!d&&X.startsWith(H)&&X.charAt(H.length)==="/"),F={isActive:$,isPending:se,isTransitioning:Q},I=$?o:void 0,be;typeof s=="function"?be=s(F):be=[s,$?"active":null,se?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let Me=typeof y=="function"?y(F):y;return g.createElement(ol,{...m,"aria-current":I,className:be,ref:C,style:Me,to:b,viewTransition:j},typeof S=="function"?S(F):S)});Cp.displayName="NavLink";var Tp=g.forwardRef(({discover:i="render",fetcherKey:o,navigate:f,reloadDocument:s,replace:d,state:y,method:b=mi,action:j,onSubmit:S,relative:m,preventScrollReset:C,viewTransition:N,defaultShouldRevalidate:D,...Y},V)=>{let{useTransitions:q}=g.useContext(Ot),Q=Dp(),H=Op(j,{relative:m}),O=b.toLowerCase()==="get"?"get":"post",X=typeof j=="string"&&ar.test(j),K=$=>{if(S&&S($),$.defaultPrevented)return;$.preventDefault();let se=$.nativeEvent.submitter,F=(se==null?void 0:se.getAttribute("formmethod"))||b,I=()=>Q(se||$.currentTarget,{fetcherKey:o,method:F,navigate:f,replace:d,state:y,relative:m,preventScrollReset:C,viewTransition:N,defaultShouldRevalidate:D});q&&f!==!1?g.startTransition(()=>I()):I()};return g.createElement("form",{ref:V,method:O,action:H,onSubmit:s?S:K,...Y,"data-discover":!X&&i==="render"?"true":void 0})});Tp.displayName="Form";function Ap(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vm(i){let o=g.useContext(Xa);return Oe(o,Ap(i)),o}function Rp(i,{target:o,replace:f,mask:s,state:d,preventScrollReset:y,relative:b,viewTransition:j,defaultShouldRevalidate:S,useTransitions:m}={}){let C=om(),N=Bt(),D=Kn(i,{relative:b});return g.useCallback(Y=>{if(up(Y,o)){Y.preventDefault();let V=f!==void 0?f:Qn(N)===Qn(D),q=()=>C(i,{replace:V,mask:s,state:d,preventScrollReset:y,relative:b,viewTransition:j,defaultShouldRevalidate:S});m?g.startTransition(()=>q()):q()}},[N,C,D,f,s,d,o,i,y,b,j,S,m])}var zp=0,_p=()=>`__${String(++zp)}__`;function Dp(){let{router:i}=vm("useSubmit"),{basename:o}=g.useContext(Ot),f=$g(),s=i.fetch,d=i.navigate;return g.useCallback(async(y,b={})=>{let{action:j,method:S,encType:m,formData:C,body:N}=sp(y,o);if(b.navigate===!1){let D=b.fetcherKey||_p();await s(D,f,b.action||j,{defaultShouldRevalidate:b.defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:C,body:N,formMethod:b.method||S,formEncType:b.encType||m,flushSync:b.flushSync})}else await d(b.action||j,{defaultShouldRevalidate:b.defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:C,body:N,formMethod:b.method||S,formEncType:b.encType||m,replace:b.replace,state:b.state,fromRouteId:f,flushSync:b.flushSync,viewTransition:b.viewTransition})},[s,d,o,f])}function Op(i,{relative:o}={}){let{basename:f}=g.useContext(Ot),s=g.useContext(Qt);Oe(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),y={...Kn(i||".",{relative:o})},b=Bt();if(i==null){y.search=b.search;let j=new URLSearchParams(y.search),S=j.getAll("index");if(S.some(C=>C==="")){j.delete("index"),S.filter(N=>N).forEach(N=>j.append("index",N));let C=j.toString();y.search=C?`?${C}`:""}}return(!i||i===".")&&d.route.index&&(y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(y.pathname=y.pathname==="/"?f:wt([f,y.pathname])),Qn(y)}function Mp(i,{relative:o}={}){let f=g.useContext(im);Oe(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=vm("useViewTransitionState"),d=Kn(i,{relative:o});if(!f.isTransitioning)return!1;let y=rl(f.currentLocation.pathname,s)||f.currentLocation.pathname,b=rl(f.nextLocation.pathname,s)||f.nextLocation.pathname;return yi(d.pathname,b)!=null||yi(d.pathname,y)!=null}let sl=null,Xn=null;const Up=3e4,Hp=600*1e3;function wp(){return`${typeof window<"u"?window.location.origin:""}/admin/agent-token`}async function er(){const i=Date.now();return sl&&sl.expiresAt-i>Up?sl.token:Xn||(Xn=Bp().finally(()=>{Xn=null}),Xn)}async function Bp(){let i;try{i=await fetch(wp(),{method:"GET",headers:{accept:"application/json"},credentials:"include"})}catch{return sl=null,null}if(!i.ok)return sl=null,null;let o;try{o=await i.json()}catch{return sl=null,null}if(!o.token)return sl=null,null;const f=o.expires_at?new Date(o.expires_at).getTime():Date.now()+Hp;return sl={token:o.token,expiresAt:f},o.token}function ym(){sl=null}class Dt extends Error{constructor(o,f){super(f),this.status=o,this.name="HttpError"}}function Qa(){const o="/agent/app/".match(/^(.*\/)app\/?$/);return o?`${o[1]}api`:"/agent/api"}async function fr(i,o={}){const f=await er(),s=new Headers(o.headers);s.set("accept","application/json"),f&&s.set("authorization",`Bearer ${f}`);const d=await fetch(i,{...o,headers:s});if(d.status!==401)return d;ym();const y=await er();if(!y)return d;const b=new Headers(o.headers);return b.set("accept","application/json"),b.set("authorization",`Bearer ${y}`),fetch(i,{...o,headers:b})}async function dr(i){try{return(await i.json()).error??""}catch{return await i.text().catch(()=>"")}}async function fl(i){const o=await fr(`${Qa()}${i}`);if(!o.ok)throw new Dt(o.status,await dr(o)||`${i} failed: ${o.status}`);return await o.json()}async function Va(i,o){return mr("POST",i,o)}async function Lp(i,o){return mr("PATCH",i,o)}async function hr(i){const o=await fr(`${Qa()}${i}`,{method:"DELETE"});if(!o.ok)throw new Dt(o.status,await dr(o)||`${i} failed: ${o.status}`);return await o.json()}async function mr(i,o,f){const s=await fr(`${Qa()}${o}`,{method:i,headers:{"content-type":"application/json"},body:JSON.stringify(f)});if(!s.ok)throw new Dt(s.status,await dr(s)||`${o} failed: ${s.status}`);return await s.json()}function qp(i,o){return mr("DELETE",i,o)}function Yp(){return fl("/agents")}function Gp(){return fl("/agent-defs")}function gm(){return fl("/agent-vaults")}function Xp(i){return Va("/agent-defs",i)}function Qp(i){return fl(`/agent-defs/${encodeURIComponent(i)}`)}function pm(i,o){return Lp(`/agent-defs/${encodeURIComponent(i)}`,o)}function Vp(i){return hr(`/agent-defs/${encodeURIComponent(i)}`)}function Zp(i){return Va("/agent-vaults",i)}function kp(i){return hr(`/agent-vaults/${encodeURIComponent(i)}`)}const Kp=new Set(["ANTHROPIC_API_KEY","CLAUDE_API_KEY","CLAUDE_CODE_OAUTH_TOKEN"]),Jp=/^[A-Za-z_][A-Za-z0-9_]*$/;function $p(){return fl("/credentials/env")}function Wp(i){return Va("/credentials/env",i)}function Fp(i){return qp("/credentials/env",i)}function Ip(i){return fl(`/agents/${encodeURIComponent(i)}/env`)}function Pp(){return fl("/jobs")}function e0(i){return Va("/jobs",i)}function t0(i){return Va(`/jobs/${encodeURIComponent(i)}/run`,{})}function l0(i){return hr(`/jobs/${encodeURIComponent(i)}`)}function a0(i,o){const f=Qa().replace(/\/api$/,"");return`claude mcp add --transport http --scope user agent-${i} ${o}${f}/mcp/${i}`}function n0(){return fl("/channels")}function qh(i){return fl(`/channels/${encodeURIComponent(i)}/messages`)}function u0(i,o){return Va(`/channels/${encodeURIComponent(i)}/send`,{text:o})}function i0(i,o){let s=`${Qa().replace(/\/api$/,"")}/ui/events?channel=${encodeURIComponent(i)}`;return o&&(s+=`&token=${encodeURIComponent(o)}`),s}function c0(i,o){let s=`${Qa().replace(/\/api$/,"")}/api/channels/${encodeURIComponent(i)}/turn-events`;return o&&(s+=`?token=${encodeURIComponent(o)}`),s}class Jn extends Error{constructor(o,f){super(f),this.status=o,this.name="HubError"}}function s0(){return typeof window<"u"?window.location.origin:""}function r0(){if(typeof window>"u")return!1;const{hostname:i,port:o}=window.location;return(i==="127.0.0.1"||i==="localhost"||i==="[::1]")&&o==="1941"}const vr="definition.reload",yr="note.created",gr="note.updated",o0="#agent/definition";function tr(i,o){return`agentdefs-${o}-${i}`}function f0(i,o){return{id:tr(i,o),requestedBy:"agent",source:{module:"vault",vault:i,event:o==="create"?yr:gr,filter:{tags:[o0]}},sink:{module:"agent",action:vr}}}async function Ei(i,o={}){const f=new Headers(o.headers);return f.set("accept","application/json"),fetch(`${s0()}${i}`,{...o,credentials:"include",headers:f})}function Vn(i,o){return i===401?"Not signed in to the hub portal — sign in, then retry.":i===403?"Not authorized — reactive reload needs host-admin access.":i===404?"Reactive reload needs the hub-proxied URL — open the agent app via your hub origin, not the loopback daemon.":o||`hub request failed (${i})`}async function ji(i){try{const o=await i.json();return o.error_description??o.error??""}catch{return await i.text().catch(()=>"")}}async function Yh(){const i=await Ei("/admin/connections");if(!i.ok)throw new Jn(i.status,Vn(i.status,await ji(i)));return(await i.json()).connections??[]}function d0(i,o){const f=y=>o.some(b=>b.source.module==="vault"&&b.source.vault===i&&b.source.event===y&&b.sink.module==="agent"&&b.sink.action===vr),s=f(yr),d=f(gr);return{create:s,edit:d,active:s&&d}}async function Gh(i){const o=["create","edit"],f=[];let s=0,d="";for(const y of o){const b=await Ei("/admin/connections",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(f0(i,y))});if(!b.ok){const j=await ji(b);s===0&&(s=b.status,d=j),f.push(`${y}: ${Vn(b.status,j)}`)}}if(f.length===o.length)throw new Jn(s,Vn(s,d||"provisioning failed"));return{ok:f.length===0,failures:f}}async function Xh(i,o,f){const s={};o!==void 0&&(s.token=o),f&&(s.returnTo=f);const d=await Ei(`/admin/grants/${encodeURIComponent(i)}/approve`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!d.ok)throw new Jn(d.status,Vn(d.status,await ji(d)));return await d.json()}async function Qh(i,o=[]){const f=new Set([tr(i,"create"),tr(i,"edit")]);for(const s of o)s.source.module==="vault"&&s.source.vault===i&&(s.source.event===yr||s.source.event===gr)&&s.sink.module==="agent"&&s.sink.action===vr&&f.add(s.id);for(const s of f){const d=await Ei(`/admin/connections/${encodeURIComponent(s)}`,{method:"DELETE"});if(!d.ok&&d.status!==404)throw new Jn(d.status,Vn(d.status,await ji(d)))}}const pr=[{value:"",label:"Default (Claude Code's default)"},{value:"opus",label:"Opus — most capable"},{value:"sonnet",label:"Sonnet — balanced"},{value:"haiku",label:"Haiku — fastest"}];function h0(i){var o;return i?((o=pr.find(f=>f.value===i))==null?void 0:o.label)??i:"Default"}function m0(i,o){const f=new Map;for(const s of i)f.set(s.name,{name:s.name,backend:s.backend,...s.channel?{channel:s.channel}:{},...s.vault?{vault:s.vault}:{},...s.status?{status:s.status}:{},live:!0});for(const s of o){const d=f.get(s.name);d?(d.def=s,d.mode=s.mode,!d.channel&&s.channel&&(d.channel=s.channel),!d.vault&&s.vault&&(d.vault=s.vault)):f.set(s.name,{name:s.name,backend:s.backend,channel:s.channel,vault:s.vault,status:s.status,mode:s.mode,live:!1,def:s})}return[...f.values()].sort((s,d)=>s.name.localeCompare(d.name))}function bm(i){return i==="programmatic"?"pill backend-programmatic":i==="channel"?"pill backend-channel":"pill backend-interactive"}function Sm(i){return i==="enabled"||i==="idle"?"pill status-enabled":i==="working"?"pill status-working":i==="pending"||i.startsWith("queued")?"pill status-queued":i==="error"?"pill status-error":"pill"}function Vh(){const[i,o]=g.useState({kind:"loading"}),[f,s]=g.useState(null),[d,y]=g.useState(!1),b=g.useCallback(async()=>{o({kind:"loading"});try{const[m,C,N]=await Promise.all([Yp(),Gp(),gm()]);o({kind:"ok",agents:m.agents,defs:C.defs,vaults:N.vaults})}catch(m){const C=m instanceof Dt?m.status===401?"Not signed in to the hub — sign in to the portal, then reload.":`Failed to load agents: ${m.message}`:`Failed to load agents: ${m.message}`;o({kind:"error",message:C})}},[]);g.useEffect(()=>{b()},[b]),g.useEffect(()=>{const m=new URLSearchParams(window.location.search);if(m.get("mcp_connected")!=="1")return;y(!0),m.delete("mcp_connected");const C=m.toString();window.history.replaceState(null,"",window.location.pathname+(C?`?${C}`:"")+window.location.hash)},[]);const j=g.useMemo(()=>i.kind==="ok"?m0(i.agents,i.defs):[],[i]),S=g.useMemo(()=>j.find(m=>m.name===f)??null,[j,f]);return r.jsxs("div",{children:[r.jsx("h1",{children:"Agents"}),r.jsx("p",{className:"lede",children:"Every agent across all backends, in one place — programmatic, channel, and interactive. Read-only for now; the create flow and def-vault editor land in later phases."}),i.kind==="error"?r.jsxs("div",{className:"error-banner",role:"alert",children:[i.message," ",r.jsx("button",{type:"button",className:"secondary",onClick:()=>void b(),children:"Retry"})]}):null,d?r.jsxs("div",{className:"success-banner",role:"status",children:["✓ MCP server connected — it'll be available to the agent on its next run."," ",r.jsx("button",{type:"button",className:"link",onClick:()=>y(!1),children:"Dismiss"})]}):null,i.kind==="loading"?r.jsx("div",{className:"loading",children:"Loading agents…"}):null,i.kind==="ok"?r.jsxs(r.Fragment,{children:[S?r.jsx(v0,{agent:S,onClose:()=>s(null),onChanged:()=>void b(),onDeleted:()=>{s(null),b()}}):null,r.jsxs("section",{className:"card","aria-label":"Agents",children:[r.jsxs("div",{className:"section-head",children:[r.jsx("h2",{children:"All agents"}),r.jsxs("span",{className:"section-head-actions",children:[r.jsxs("span",{className:"count","data-testid":"agents-count",children:[j.length," ",j.length===1?"agent":"agents"]}),r.jsx(ol,{to:"/create",className:"button-link","data-testid":"new-agent-link",children:"New agent"})]})]}),j.length===0?r.jsxs("div",{className:"empty",children:["No agents yet. Define one in a vault as an"," ",r.jsx("code",{children:"#agent/definition"})," note, or spawn one from the create flow (coming in a later phase)."]}):r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Name"}),r.jsx("th",{children:"Backend"}),r.jsx("th",{children:"Channel"}),r.jsx("th",{children:"Status"}),r.jsx("th",{children:"Vault"})]})}),r.jsx("tbody",{children:j.map(m=>r.jsxs("tr",{className:`agent-row${f===m.name?" selected":""}`,"data-testid":`agent-row-${m.name}`,onClick:()=>s(f===m.name?null:m.name),children:[r.jsx("td",{className:"cell-name",children:m.name}),r.jsx("td",{children:r.jsx("span",{className:bm(m.backend),children:m.backend})}),r.jsx("td",{className:m.channel?"":"cell-dim",children:m.channel??"—"}),r.jsx("td",{children:m.status?r.jsx("span",{className:Sm(m.status),children:m.status}):m.live?r.jsx("span",{className:"cell-dim",children:"live"}):r.jsx("span",{className:"cell-dim",children:"not running"})}),r.jsx("td",{className:m.vault?"":"cell-dim",children:m.vault??"—"})]},m.name))})]})]}),r.jsx(_0,{vaults:i.vaults,onChanged:()=>void b()})]}):null]})}function v0({agent:i,onClose:o,onChanged:f,onDeleted:s}){const d=i.def,y=d==null?void 0:d.noteId,[b,j]=g.useState("view");return g.useEffect(()=>{j("view")},[i.name]),b==="edit"&&y?r.jsx(g0,{noteId:y,name:i.name,onCancel:()=>j("view"),onSaved:()=>{j("view"),f()}}):r.jsxs("div",{className:"detail","data-testid":"agent-detail",children:[r.jsxs("div",{className:"detail-head",children:[r.jsx("h2",{children:i.name}),r.jsx("span",{className:bm(i.backend),children:i.backend}),i.status?r.jsx("span",{className:Sm(i.status),children:i.status}):null,r.jsx("button",{type:"button",className:"detail-close",onClick:o,children:"Close"})]}),r.jsxs("dl",{className:"detail-grid",children:[r.jsx("dt",{children:"Backend"}),r.jsx("dd",{children:i.backend}),r.jsx("dt",{children:"Mode"}),r.jsx("dd",{"data-testid":"detail-mode",children:i.mode?y0(i.mode):"—"}),r.jsx("dt",{children:"Channel"}),r.jsx("dd",{children:i.channel??"—"}),r.jsx("dt",{children:"Vault"}),r.jsx("dd",{children:i.vault??"—"}),r.jsx("dt",{children:"Running"}),r.jsx("dd",{children:i.live?"yes":"no (defined, not instantiated)"}),d?r.jsxs(r.Fragment,{children:[r.jsx("dt",{children:"Model"}),r.jsx("dd",{"data-testid":"detail-model",children:h0(d.model)}),r.jsx("dt",{children:"Def status"}),r.jsx("dd",{children:d.status})]}):null]}),d?r.jsxs(r.Fragment,{children:[r.jsx("h3",{children:"System prompt"}),d.systemPromptPreview?r.jsx("p",{className:"detail-prompt","data-testid":"detail-prompt",children:d.systemPromptPreview}):r.jsx("p",{className:"dim",children:"No system prompt set (Claude Code's default)."}),r.jsx("h3",{children:"Wants"}),d.wants.length>0?r.jsx("div",{className:"tag-list",children:d.wants.map(S=>r.jsx("span",{className:"tag",children:S},S))}):r.jsx("p",{className:"dim",children:"Own-vault only — no extra connections requested."}),d.pending.length>0?r.jsxs(r.Fragment,{children:[r.jsx("h3",{children:"Pending approval"}),r.jsx("div",{className:"tag-list",children:d.pending.map(S=>r.jsx("span",{className:"tag",children:S},S))})]}):null,y?r.jsx(x0,{noteId:y,def:d,onChanged:f}):null]}):r.jsxs("p",{className:"dim","data-testid":"detail-no-def",children:["This agent isn't backed by a vault-native ",r.jsx("code",{children:"#agent/definition"})," note, so there's no system prompt or wants to show."]}),i.backend==="channel"?r.jsx("p",{className:"detail-note","data-testid":"detail-channel-note",children:'Channel backend — the queue depth and the "connect your Claude Code session" affordance arrive in a later phase.'}):null,i.channel?r.jsx(N0,{channel:i.channel}):null,i.channel?r.jsx(z0,{channel:i.channel,backend:i.backend}):null,i.channel?r.jsx(R0,{name:i.name}):null,y?b==="delete"?r.jsx(p0,{noteId:y,name:i.name,onCancel:()=>j("view"),onDeleted:s}):r.jsxs("div",{className:"detail-actions","data-testid":"detail-actions",children:[r.jsx("button",{type:"button",className:"secondary","data-testid":"edit-agent",onClick:()=>j("edit"),children:"Edit"}),r.jsx("button",{type:"button",className:"button-danger","data-testid":"delete-agent",onClick:()=>j("delete"),children:"Delete"})]}):null]})}function y0(i){return i==="single-threaded"?"Single-threaded":"Multi-threaded"}function g0({noteId:i,name:o,onCancel:f,onSaved:s}){const[d,y]=g.useState({kind:"loading"}),[b,j]=g.useState(""),[S,m]=g.useState("single-threaded"),[C,N]=g.useState(""),[D,Y]=g.useState(""),[V,q]=g.useState(!1),[Q,H]=g.useState(null),O=g.useCallback(async()=>{y({kind:"loading"});try{const $=(await Qp(i)).def;j($.systemPrompt),m($.mode),N($.model??""),Y($.wants.join(", ")),y({kind:"ready",systemPrompt:$.systemPrompt,mode:$.mode,wants:$.wants.join(", ")})}catch(K){const $=K instanceof Dt?K.status===401?"Not signed in to the hub — sign in to the portal, then reload.":`Failed to load the def: ${K.message}`:`Failed to load the def: ${K.message}`;y({kind:"error",message:$})}},[i]);g.useEffect(()=>{O()},[O]);async function X(K){if(K.preventDefault(),!V){q(!0),H(null);try{await pm(i,{systemPrompt:b,metadata:{mode:S,model:C},wants:D.trim()}),s()}catch($){const se=$ instanceof Dt&&$.status===401?"Not signed in to the hub — sign in to the portal, then reload.":$.message;H(se)}finally{q(!1)}}}return r.jsxs("div",{className:"detail","data-testid":"edit-agent-form",children:[r.jsxs("div",{className:"detail-head",children:[r.jsxs("h2",{children:["Edit ",o]}),r.jsx("button",{type:"button",className:"detail-close",onClick:f,children:"Close"})]}),d.kind==="loading"?r.jsx("div",{className:"loading",children:"Loading def…"}):null,d.kind==="error"?r.jsxs("div",{className:"error-banner",role:"alert","data-testid":"edit-load-error",children:[d.message," ",r.jsx("button",{type:"button",className:"secondary",onClick:()=>void O(),children:"Retry"})]}):null,d.kind==="ready"?r.jsxs("form",{className:"card",onSubmit:X,"aria-label":"Edit agent",children:[Q?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"edit-error",children:Q}):null,r.jsxs("fieldset",{className:"field",children:[r.jsx("legend",{children:"Mode"}),r.jsx(pi,{name:"edit-mode",value:"single-threaded",checked:S==="single-threaded",onChange:()=>m("single-threaded"),label:"Single-threaded",help:"One continuous conversation — remembers everything on this channel.",testid:"edit-mode-single-threaded"}),r.jsx(pi,{name:"edit-mode",value:"multi-threaded",checked:S==="multi-threaded",onChange:()=>m("multi-threaded"),label:"Multi-threaded",help:"Each run is its own thread — good for scheduled or stateless tasks.",testid:"edit-mode-multi-threaded"})]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"edit-model",children:"Model"}),r.jsx("select",{id:"edit-model",value:C,"data-testid":"edit-model",onChange:K=>N(K.target.value),children:pr.map(K=>r.jsx("option",{value:K.value,children:K.label},K.value))}),r.jsx("p",{className:"field-hint",children:"Which model Parachute runs this agent on (programmatic backend). A channel-backend agent uses whatever model your own session runs."})]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"edit-prompt",children:"System prompt"}),r.jsx("textarea",{id:"edit-prompt",rows:8,value:b,placeholder:"You are…",onChange:K=>j(K.target.value)}),r.jsx("p",{className:"field-hint",children:"The agent's persona + instructions (the note body). Leave blank for Claude Code's default."})]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"edit-wants",children:"Wants (connections)"}),r.jsx("input",{id:"edit-wants",type:"text",value:D,placeholder:"vault:other, service:github",autoComplete:"off",onChange:K=>Y(K.target.value)}),r.jsx("p",{className:"field-hint",children:"Comma-separated connection keys the agent requests beyond its own vault. Each needs approval before it's granted."})]}),r.jsxs("div",{className:"form-actions",children:[r.jsx("button",{type:"submit",disabled:V,children:V?"Saving…":"Save changes"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:f,children:"Cancel"})]})]}):null]})}function p0({noteId:i,name:o,onCancel:f,onDeleted:s}){const[d,y]=g.useState(""),[b,j]=g.useState(!1),[S,m]=g.useState(null),C=d===o&&!b;async function N(){if(C){j(!0),m(null);try{await Vp(i),s()}catch(D){const Y=D instanceof Dt&&D.status===401?"Not signed in to the hub — sign in to the portal, then reload.":D.message;m(Y),j(!1)}}}return r.jsxs("div",{className:"confirm-box","data-testid":"delete-confirm",children:[r.jsxs("p",{className:"confirm-prompt",children:["Delete ",r.jsx("strong",{children:o}),"? This removes the definition note and deregisters the agent. Type the agent name to confirm."]}),S?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"delete-error",children:S}):null,r.jsx("div",{className:"field",children:r.jsx("input",{type:"text",value:d,placeholder:o,autoComplete:"off","aria-label":"Type the agent name to confirm deletion","data-testid":"delete-confirm-input",onChange:D=>y(D.target.value)})}),r.jsxs("div",{className:"form-actions",children:[r.jsx("button",{type:"button",className:"button-danger","data-testid":"delete-confirm-button",disabled:!C,onClick:()=>void N(),children:b?"Deleting…":"Delete agent"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:f,children:"Cancel"})]})]})}function b0({status:i}){return i==="approved"?r.jsx("span",{className:"pill status-enabled","data-testid":"conn-status-approved",children:"Connected"}):i==="needs_consent"?r.jsx("span",{className:"pill status-error","data-testid":"conn-status-needs_consent",children:"Needs reconnect"}):i==="revoked"?r.jsx("span",{className:"pill status-error","data-testid":"conn-status-revoked",children:"Revoked"}):r.jsx("span",{className:"pill status-pending","data-testid":"conn-status-pending",children:"Pending"})}function S0(i){if(i.connections&&i.connections.length>0)return i.connections.filter(f=>f.kind==="mcp");const o=new Set(i.pending);return i.wants.filter(f=>f.startsWith("mcp:")&&/^mcp:https?:\/\//i.test(f)).map(f=>({key:f,kind:"mcp",target:f.slice(4),status:o.has(f)?"pending":"approved"}))}function x0({noteId:i,def:o,onChanged:f}){const[s,d]=g.useState(!1),[y,b]=g.useState(null),[j,S]=g.useState(null),[m,C]=g.useState(""),[N,D]=g.useState(null),Y=S0(o),V=r0();async function q(H){b(H),D(null);try{const O=window.location.pathname+window.location.search+window.location.hash,X=await Xh(H,void 0,O);if(X.authorizeUrl){window.location.assign(X.authorizeUrl);return}f()}catch(O){D(Zh(O))}finally{b(null)}}async function Q(H){const O=m.trim();if(O.length!==0){b(H),D(null);try{await Xh(H,O),S(null),C(""),f()}catch(X){D(Zh(X))}finally{b(null)}}}return r.jsxs("section",{className:"detail-section","aria-label":"Connections","data-testid":"connections-section",children:[r.jsxs("div",{className:"section-head",children:[r.jsx("h3",{children:"Connections / MCP servers"}),r.jsx("button",{type:"button",className:"secondary","data-testid":"add-mcp-toggle",onClick:()=>{d(H=>!H),D(null)},children:s?"Cancel":"Add MCP server"})]}),r.jsx("p",{className:"muted",children:"Remote MCP servers this agent can reach. Add one, then connect it via OAuth (or paste a static bearer). Each connection is operator-approved before it's granted."}),V?r.jsx("div",{className:"info-banner",role:"status","data-testid":"connections-daemon-direct",children:"Open this surface via your hub to connect MCP servers — the OAuth/approve step needs the hub origin (you're on the loopback daemon)."}):null,s?r.jsx(E0,{noteId:i,def:o,onCancel:()=>d(!1),onAdded:()=>{d(!1),f()}}):null,N?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"connections-row-error",children:N}):null,Y.length===0?r.jsx("div",{className:"empty","data-testid":"connections-empty",children:"No MCP servers connected to this agent yet."}):r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"MCP server"}),r.jsx("th",{children:"Status"}),r.jsx("th",{})]})}),r.jsx("tbody",{children:Y.map(H=>{const O=H.status!=="approved",X=O&&!!H.grantId&&!V;return r.jsxs("tr",{"data-testid":`connection-row-${H.target}`,children:[r.jsx("td",{className:"cell-name",children:r.jsx("code",{children:H.target})}),r.jsx("td",{children:r.jsx(b0,{status:H.status})}),r.jsx("td",{children:O?j===H.grantId?r.jsxs("span",{className:"confirm-inline",children:[r.jsx("input",{type:"password",value:m,placeholder:"bearer token",autoComplete:"off",spellCheck:!1,"aria-label":"Static bearer token","data-testid":`paste-token-input-${H.target}`,onChange:K=>C(K.target.value)}),r.jsx("button",{type:"button",disabled:y===H.grantId||m.trim().length===0,"data-testid":`paste-token-save-${H.target}`,onClick:()=>void Q(H.grantId),children:y===H.grantId?"Saving…":"Save"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:()=>{S(null),C("")},children:"Cancel"})]}):r.jsxs("span",{className:"schedule-row-actions",children:[r.jsx("button",{type:"button",disabled:!X||y===H.grantId,"data-testid":`connect-${H.target}`,title:V?"Open the agent app via your hub origin to connect.":H.grantId?void 0:"No grant registered yet — reload after the daemon registers it.",onClick:()=>void q(H.grantId),children:y===H.grantId?"Connecting…":H.status==="needs_consent"?"Reconnect":"Connect"}),H.grantId&&!V?r.jsx("button",{type:"button",className:"cancel-link","data-testid":`paste-token-${H.target}`,onClick:()=>{D(null),C(""),S(H.grantId)},children:"Paste token"}):null]}):r.jsx("span",{className:"cell-dim",children:"—"})})]},H.key)})})]})]})}function Zh(i){return i instanceof Jn,i.message}function E0({noteId:i,def:o,onCancel:f,onAdded:s}){const[d,y]=g.useState(""),[b,j]=g.useState("oauth"),[S,m]=g.useState(!1),[C,N]=g.useState(null),D=d.trim(),Y=/^https?:\/\/.+/i.test(D)&&j0(D),V=o.wants.includes(`mcp:${D}`),q=Y&&!V&&!S;async function Q(H){if(H.preventDefault(),!!q){m(!0),N(null);try{const O=[...o.wants,`mcp:${D}`].join(", ");await pm(i,{wants:O}),s()}catch(O){const X=O instanceof Dt&&O.status===401?"Not signed in to the hub — sign in to the portal, then reload.":O.message;N(X)}finally{m(!1)}}}return r.jsxs("form",{className:"inline-form",onSubmit:Q,"aria-label":"Add MCP server","data-testid":"add-mcp-form",children:[C?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"add-mcp-error",children:C}):null,r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"mcp-url",children:"MCP server URL"}),r.jsx("input",{id:"mcp-url",type:"text",value:d,placeholder:"https://mcp.example.com/mcp",autoComplete:"off",spellCheck:!1,onChange:H=>y(H.target.value)}),D.length>0&&!Y?r.jsx("p",{className:"field-error","data-testid":"mcp-url-invalid",children:"Must be a full http(s) URL."}):null,V?r.jsx("p",{className:"field-error","data-testid":"mcp-url-duplicate",children:"This MCP server is already connected to the agent."}):null]}),r.jsxs("fieldset",{className:"field",children:[r.jsx("legend",{children:"Authentication"}),r.jsx("p",{className:"muted",children:"You'll enter credentials in the next step — on the connection's row after it's added."}),r.jsx(pi,{name:"mcp-auth",value:"oauth",checked:b==="oauth",onChange:()=>j("oauth"),label:"OAuth",help:"Sign in to the MCP server in your browser (recommended). Connect on the row after adding.",testid:"mcp-auth-oauth"}),r.jsx(pi,{name:"mcp-auth",value:"token",checked:b==="token",onChange:()=>j("token"),label:"Paste a token",help:"For an MCP server with a static bearer token. Paste it on the row's “Paste token” after adding.",testid:"mcp-auth-token"})]}),r.jsxs("div",{className:"form-actions",children:[r.jsx("button",{type:"submit",disabled:!q,"data-testid":"add-mcp-submit",children:S?"Adding…":"Add MCP server"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:f,children:"Cancel"})]})]})}function j0(i){try{return new URL(i),!0}catch{return!1}}function N0({channel:i}){const[o,f]=g.useState({kind:"loading"}),[s,d]=g.useState(!1),[y,b]=g.useState(null),[j,S]=g.useState(null),[m,C]=g.useState(null),[N,D]=g.useState(null),[Y,V]=g.useState(null),q=g.useCallback(async()=>{f({kind:"loading"});try{const X=(await Pp()).jobs.filter(K=>K.channel===i);f({kind:"ok",jobs:X})}catch(O){f({kind:"error",message:_t(O)})}},[i]);g.useEffect(()=>{q()},[q]);async function Q(O){b(O),D(null),V(null);try{const X=await t0(O);V(`Ran ${O} (${X.status}).`),await q()}catch(X){D(`Run failed: ${_t(X)}`)}finally{b(null)}}async function H(O){C(O),D(null);try{await l0(O),S(null),await q()}catch(X){D(_t(X))}finally{C(null)}}return r.jsxs("section",{className:"schedules","aria-label":"Schedules","data-testid":"schedules-section",children:[r.jsxs("div",{className:"section-head",children:[r.jsx("h3",{children:"Schedules"}),r.jsx("span",{className:"section-head-actions",children:r.jsx("button",{type:"button",className:"secondary","data-testid":"add-schedule-toggle",onClick:()=>d(O=>!O),children:s?"Cancel":"New schedule"})})]}),r.jsx("p",{className:"muted",children:"Send this agent a message on a cron schedule. The runner writes the message as an inbound note; the agent runs its turn as if you typed it."}),s?r.jsx(T0,{channel:i,onCancel:()=>d(!1),onCreated:()=>{d(!1),q()}}):null,Y?r.jsx("p",{className:"schedule-status","data-testid":"schedule-row-status",children:Y}):null,N?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"schedule-row-error",children:N}):null,o.kind==="loading"?r.jsx("div",{className:"loading",children:"Loading schedules…"}):null,o.kind==="error"?r.jsxs("div",{className:"error-banner",role:"alert","data-testid":"schedules-error",children:[o.message," ",r.jsx("button",{type:"button",className:"secondary",onClick:()=>void q(),children:"Retry"})]}):null,o.kind==="ok"?o.jobs.length===0?r.jsx("div",{className:"empty","data-testid":"schedules-empty",children:"No schedules yet for this agent."}):r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Id"}),r.jsx("th",{children:"Cron"}),r.jsx("th",{children:"Next run"}),r.jsx("th",{children:"Last status"}),r.jsx("th",{})]})}),r.jsx("tbody",{children:o.jobs.map(O=>r.jsxs("tr",{"data-testid":`schedule-row-${O.id}`,children:[r.jsxs("td",{className:"cell-name",children:[r.jsx("code",{children:O.id}),O.enabled?null:r.jsx("span",{className:"cell-dim",children:" (disabled)"})]}),r.jsxs("td",{children:[r.jsx("code",{children:O.schedule.cron}),O.schedule.tz?r.jsxs("span",{className:"cell-dim",children:[" ",O.schedule.tz]}):null]}),r.jsx("td",{className:O.nextRunAt?"":"cell-dim",children:kh(O.nextRunAt)}),r.jsxs("td",{children:[O.lastStatus?r.jsx("span",{className:O.lastStatus.startsWith("error")?"pill status-error":"pill status-enabled",children:O.lastStatus}):r.jsx("span",{className:"cell-dim",children:"—"}),O.lastRunAt?r.jsxs("span",{className:"cell-dim",children:[" ",kh(O.lastRunAt)]}):null]}),r.jsx("td",{children:j===O.id?r.jsxs("span",{className:"confirm-inline",children:[r.jsx("button",{type:"button",className:"button-danger","data-testid":`schedule-delete-confirm-${O.id}`,disabled:m===O.id,onClick:()=>void H(O.id),children:m===O.id?"Deleting…":"Confirm delete"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:()=>S(null),children:"Cancel"})]}):r.jsxs("span",{className:"schedule-row-actions",children:[r.jsx("button",{type:"button",className:"secondary","data-testid":`schedule-run-${O.id}`,disabled:y===O.id,onClick:()=>void Q(O.id),children:y===O.id?"Running…":"Run now"}),r.jsx("button",{type:"button",className:"button-danger","data-testid":`schedule-delete-${O.id}`,onClick:()=>{D(null),S(O.id)},children:"Delete"})]})})]},O.id))})]}):null]})}const C0=[{label:"daily 8am",cron:"0 8 * * *"},{label:"hourly",cron:"0 * * * *"},{label:"every 15m",cron:"*/15 * * * *"},{label:"weekdays 9am",cron:"0 9 * * 1-5"},{label:"weekly Mon 8am",cron:"0 8 * * 1"}];function T0({channel:i,onCancel:o,onCreated:f}){const[s,d]=g.useState(""),[y,b]=g.useState(""),[j,S]=g.useState(""),[m,C]=g.useState(""),[N,D]=g.useState(!1),[Y,V]=g.useState(null),q=/^[a-zA-Z0-9_-]+$/.test(s),Q=q&&y.trim().length>0&&j.trim().length>0&&!N;async function H(O){if(O.preventDefault(),!!Q){D(!0),V(null);try{await e0({id:s,channel:i,message:y.trim(),schedule:{cron:j.trim(),...m.trim()?{tz:m.trim()}:{}},enabled:!0}),f()}catch(X){V(_t(X))}finally{D(!1)}}}return r.jsxs("form",{className:"inline-form",onSubmit:H,"aria-label":"New schedule","data-testid":"schedule-form",children:[Y?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"schedule-form-error",children:Y}):null,r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"schedule-id",children:"Job id (slug)"}),r.jsx("input",{id:"schedule-id",type:"text",value:s,placeholder:"morning-standup",autoComplete:"off",onChange:O=>d(O.target.value)}),s.length>0&&!q?r.jsx("p",{className:"field-error","data-testid":"schedule-id-invalid",children:"Must be a slug — letters, numbers, dash, underscore only."}):null]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"schedule-message",children:"Message to send"}),r.jsx("textarea",{id:"schedule-message",rows:3,value:y,placeholder:"Run the morning weave…",onChange:O=>b(O.target.value)})]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"schedule-cron",children:"Cron (min hour dom mon dow)"}),r.jsx("input",{id:"schedule-cron",type:"text",value:j,placeholder:"0 8 * * *",autoComplete:"off",onChange:O=>S(O.target.value)}),r.jsx("div",{className:"schedule-presets",children:C0.map(O=>r.jsx("button",{type:"button",className:"secondary",onClick:()=>S(O.cron),children:O.label},O.cron))})]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"schedule-tz",children:"Timezone (IANA, optional)"}),r.jsx("input",{id:"schedule-tz",type:"text",value:m,placeholder:"America/Los_Angeles",autoComplete:"off",onChange:O=>C(O.target.value)}),r.jsx("p",{className:"field-hint",children:"Leave blank to use the daemon's local timezone."})]}),r.jsxs("div",{className:"form-actions",children:[r.jsx("button",{type:"submit",disabled:!Q,children:N?"Scheduling…":"Create schedule"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:o,children:"Cancel"})]})]})}function kh(i){if(!i)return"—";try{return new Date(i).toLocaleString()}catch{return i}}function pi(i){return r.jsxs("label",{className:`radio-row${i.checked?" selected":""}`,"data-testid":i.testid,children:[r.jsx("input",{type:"radio",name:i.name,value:i.value,checked:i.checked,onChange:i.onChange}),r.jsxs("span",{className:"radio-body",children:[r.jsx("span",{className:"radio-label",children:i.label}),r.jsx("span",{className:"radio-help",children:i.help})]})]})}function A0(i){return i==="channel"?"pill backend-channel":i.startsWith("grant:")?"pill backend-programmatic":"pill"}function R0({name:i}){const[o,f]=g.useState({kind:"loading"}),s=g.useCallback(async()=>{f({kind:"loading"});try{const d=await Ip(i);f({kind:"ok",env:d.env,...d.note?{note:d.note}:{}})}catch(d){f({kind:"error",message:_t(d)})}},[i]);return g.useEffect(()=>{s()},[s]),r.jsxs("section",{className:"detail-section","aria-label":"Effective env","data-testid":"effective-env-section",children:[r.jsxs("div",{className:"section-head",children:[r.jsx("h3",{children:"Effective env"}),r.jsx("button",{type:"button",className:"secondary","data-testid":"effective-env-refresh",onClick:()=>void s(),children:"Refresh"})]}),r.jsxs("p",{className:"muted",children:["The env-var ",r.jsx("strong",{children:"names"})," this agent's sandboxed turn runs with, resolved across the operator default, this agent's override, and approved-grant service env."," ",r.jsx("strong",{children:"Names only"})," — values are never shown. Precedence: channel > default > grant."]}),o.kind==="loading"?r.jsx("div",{className:"loading",children:"Loading effective env…"}):null,o.kind==="error"?r.jsxs("div",{className:"error-banner",role:"alert","data-testid":"effective-env-error",children:[o.message," ",r.jsx("button",{type:"button",className:"secondary",onClick:()=>void s(),children:"Retry"})]}):null,o.kind==="ok"?r.jsxs(r.Fragment,{children:[o.note?r.jsx("p",{className:"muted","data-testid":"effective-env-note",children:o.note}):null,o.env.length===0?r.jsx("div",{className:"empty","data-testid":"effective-env-empty",children:"No env vars resolved for this agent."}):r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Name"}),r.jsx("th",{children:"Source"}),r.jsx("th",{})]})}),r.jsx("tbody",{children:o.env.map((d,y)=>r.jsxs("tr",{className:d.overridden?"cell-dim":"","data-testid":`effective-env-${d.name}-${d.source}`,children:[r.jsx("td",{className:"cell-name",children:d.name}),r.jsx("td",{children:r.jsx("span",{className:A0(d.source),children:d.source})}),r.jsx("td",{children:d.overridden?r.jsx("span",{className:"cell-dim","data-testid":`effective-env-overridden-${d.name}-${d.source}`,children:"overridden"}):null})]},`${d.name}-${d.source}-${y}`))})]})]}):null]})}function z0({channel:i,backend:o}){const[f,s]=g.useState({kind:"loading"}),[d,y]=g.useState(!1),[b,j]=g.useState(""),[S,m]=g.useState(""),[C,N]=g.useState(!1),[D,Y]=g.useState(null),[V,q]=g.useState(null),[Q,H]=g.useState(null),[O,X]=g.useState(null),K=g.useCallback(async()=>{s({kind:"loading"});try{const te=await $p();s({kind:"ok",names:(te.channels[i]??[]).slice().sort()})}catch(te){s({kind:"error",message:_t(te)})}},[i]);g.useEffect(()=>{K()},[K]);const $=b.trim(),se=Kp.has($),F=$.length===0||Jp.test($),I=$.length>0&&F&&!se&&S.length>0&&!C;async function be(te){if(te.preventDefault(),!!I){N(!0),Y(null);try{await Wp({channel:i,name:$,value:S}),j(""),m(""),y(!1),await K()}catch(xe){Y(_t(xe))}finally{N(!1)}}}async function Me(te){H(te),X(null);try{await Fp({channel:i,name:te}),q(null),await K()}catch(xe){X(_t(xe))}finally{H(null)}}return r.jsxs("section",{className:"detail-section","aria-label":"Secrets","data-testid":"secrets-section",children:[r.jsxs("div",{className:"section-head",children:[r.jsx("h3",{children:"Secrets (env vars)"}),r.jsx("button",{type:"button",className:"secondary","data-testid":"add-secret-toggle",onClick:()=>{y(te=>!te),Y(null)},children:d?"Cancel":"Add secret"})]}),r.jsxs("p",{className:"muted",children:["Local env vars (e.g. ",r.jsx("code",{children:"GH_TOKEN"}),") injected into this agent's sandboxed turns — stored 0600 on this machine, ",r.jsx("strong",{children:"never in the vault"}),". Values are write-only: they're never shown again.",o==="channel"?r.jsxs(r.Fragment,{children:[" ","This agent uses the ",r.jsx("strong",{children:"channel"})," backend, so it runs in your own Claude Code session with your own environment — these vars apply only to programmatic turns."]}):null]}),d?r.jsxs("form",{className:"inline-form",onSubmit:be,"aria-label":"Add secret","aria-busy":C,"data-testid":"add-secret-form",children:[D?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"add-secret-error",children:D}):null,r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"secret-name",children:"Name"}),r.jsx("input",{id:"secret-name",type:"text",value:b,placeholder:"GH_TOKEN",autoComplete:"off",autoCapitalize:"off",spellCheck:!1,onChange:te=>j(te.target.value)}),$.length>0&&!F?r.jsx("p",{className:"field-error","data-testid":"secret-name-invalid",children:"A valid env var name — letters, numbers, underscore; not starting with a digit."}):null,se?r.jsxs("p",{className:"field-error","data-testid":"secret-name-denylisted",children:["Reserved — ",$," would hijack the agent's managed billing/auth."]}):null]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"secret-value",children:"Value"}),r.jsx("input",{id:"secret-value",type:"password",value:S,placeholder:"ghp_…",autoComplete:"off",spellCheck:!1,onChange:te=>m(te.target.value)}),r.jsx("p",{className:"field-hint",children:"Stored 0600 on disk (access-controlled, not encrypted). Write-only — never re-displayed."})]}),r.jsx("div",{className:"form-actions",children:r.jsx("button",{type:"submit",disabled:!I,children:C?"Saving…":"Save secret"})})]}):null,O?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"secret-row-error",children:O}):null,f.kind==="loading"?r.jsx("div",{className:"loading",children:"Loading secrets…"}):null,f.kind==="error"?r.jsxs("div",{className:"error-banner",role:"alert","data-testid":"secrets-load-error",children:[f.message," ",r.jsx("button",{type:"button",className:"secondary",onClick:()=>void K(),children:"Retry"})]}):null,f.kind==="ok"?f.names.length===0?r.jsx("div",{className:"empty","data-testid":"secrets-empty",children:"No secrets set for this agent."}):r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Name"}),r.jsx("th",{children:"Value"}),r.jsx("th",{})]})}),r.jsx("tbody",{children:f.names.map(te=>r.jsxs("tr",{"data-testid":`secret-${te}`,children:[r.jsx("td",{className:"cell-name",children:te}),r.jsx("td",{className:"cell-dim",children:"••••••••"}),r.jsx("td",{children:V===te?r.jsxs("span",{className:"confirm-inline",children:[r.jsx("button",{type:"button",className:"button-danger","data-testid":`secret-remove-confirm-${te}`,disabled:Q===te,onClick:()=>void Me(te),children:Q===te?"Removing…":"Confirm remove"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:()=>q(null),children:"Cancel"})]}):r.jsx("button",{type:"button",className:"button-danger","data-testid":`secret-remove-${te}`,onClick:()=>{X(null),q(te)},children:"Remove"})})]},te))})]}):null]})}function _0({vaults:i,onChanged:o}){const[f,s]=g.useState(!1),[d,y]=g.useState(""),[b,j]=g.useState(""),[S,m]=g.useState(!1),[C,N]=g.useState(null),[D,Y]=g.useState(null),[V,q]=g.useState(null),[Q,H]=g.useState(null),[O,X]=g.useState(null),[K,$]=g.useState([]),[se,F]=g.useState(!1),[I,be]=g.useState(null),[Me,te]=g.useState(null),xe=g.useCallback(async()=>{try{const G=await Yh();$(G),F(!0)}catch{F(!1)}},[]);g.useEffect(()=>{xe()},[xe]);const Ie=/^[a-zA-Z0-9_-]+$/.test(d),ke=Ie&&!S;async function _e(G){if(G.preventDefault(),!ke)return;m(!0),N(null),Y(null);const ae=d;try{await Zp({vault:ae,...b.trim().length>0?{url:b.trim()}:{}}),y(""),j(""),s(!1),o();try{const{ok:re}=await Gh(ae);Y(re?`Added "${ae}" — reactive reload is on (def changes apply instantly).`:`Added "${ae}" — reactive reload partially wired; defs still converge within 60s.`)}catch(re){Y(`Added "${ae}". Reactive reload couldn't be enabled (${_t(re)}) — def changes converge within 60s; you can enable it below.`)}await xe()}catch(re){N(_t(re))}finally{m(!1)}}async function M(G){H(G),X(null);try{await kp(G);try{const ae=await Yh().catch(()=>K);await Qh(G,ae)}catch{}q(null),o(),await xe()}catch(ae){X(_t(ae))}finally{H(null)}}async function Z(G,ae){be(G),te(null);try{ae?await Qh(G,K):await Gh(G),await xe()}catch(re){te(_t(re))}finally{be(null)}}return r.jsxs("section",{className:"card","aria-label":"Def-vaults",children:[r.jsxs("div",{className:"section-head",children:[r.jsx("h2",{children:"Def-vaults"}),r.jsxs("span",{className:"section-head-actions",children:[r.jsx("span",{className:"count",children:i.length}),r.jsx("button",{type:"button",className:"secondary","data-testid":"add-def-vault-toggle",onClick:()=>s(G=>!G),children:f?"Cancel":"Add def-vault"})]})]}),r.jsxs("p",{className:"muted",children:["Vaults this module reads ",r.jsx("code",{children:"#agent/definition"})," notes from. Removing one deregisters every agent defined in it. ",r.jsx("strong",{children:"Reactive reload"})," wires a vault trigger so def changes apply instantly instead of waiting up to 60s."]}),D?r.jsx("div",{className:"info-banner",role:"status","data-testid":"add-def-vault-notice",children:D}):null,Me?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"reactive-reload-error",children:Me}):null,f?r.jsxs("form",{className:"inline-form",onSubmit:_e,"aria-label":"Add def-vault","data-testid":"add-def-vault-form",children:[C?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"add-def-vault-error",children:C}):null,r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"new-vault-name",children:"Vault name"}),r.jsx("input",{id:"new-vault-name",type:"text",value:d,placeholder:"research",autoComplete:"off",onChange:G=>y(G.target.value)}),d.length>0&&!Ie?r.jsx("p",{className:"field-error","data-testid":"new-vault-invalid",children:"Must be a slug — letters, numbers, dash, underscore only."}):null]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"new-vault-url",children:"Vault URL (optional)"}),r.jsx("input",{id:"new-vault-url",type:"text",value:b,placeholder:"http://127.0.0.1:1940",autoComplete:"off",onChange:G=>j(G.target.value)}),r.jsx("p",{className:"field-hint",children:"The vault REST origin. Defaults to the loopback vault."})]}),r.jsx("div",{className:"form-actions",children:r.jsx("button",{type:"submit",disabled:!ke,children:S?"Adding…":"Add def-vault"})})]}):null,O?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"remove-def-vault-error",children:O}):null,i.length===0?r.jsx("div",{className:"empty","data-testid":"def-vaults-empty",children:"No def-vaults configured yet."}):r.jsxs("table",{children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Vault"}),r.jsx("th",{children:"URL"}),r.jsx("th",{children:"Token"}),r.jsx("th",{children:"Reactive reload"}),r.jsx("th",{})]})}),r.jsx("tbody",{children:i.map(G=>{const ae=d0(G.vault,K);return r.jsxs("tr",{"data-testid":`def-vault-${G.vault}`,children:[r.jsx("td",{className:"cell-name",children:G.vault}),r.jsx("td",{className:"cell-dim",children:G.url}),r.jsx("td",{children:G.tokenPresent?r.jsx("span",{className:"pill status-enabled",children:"present"}):r.jsx("span",{className:"pill status-error",children:"missing"})}),r.jsx("td",{"data-testid":`reactive-reload-cell-${G.vault}`,children:se?r.jsxs("span",{className:"confirm-inline",children:[ae.active?r.jsx("span",{className:"pill status-enabled","data-testid":`reactive-on-${G.vault}`,children:"on"}):r.jsx("span",{className:"pill","data-testid":`reactive-off-${G.vault}`,children:"off"}),r.jsx("button",{type:"button",className:"cancel-link","data-testid":`reactive-toggle-${G.vault}`,disabled:I===G.vault,onClick:()=>void Z(G.vault,ae.active),children:I===G.vault?"Working…":ae.active?"Disable":"Enable"})]}):r.jsx("span",{className:"cell-dim",title:"Open the agent app via your hub origin to manage reactive reload.",children:"—"})}),r.jsx("td",{children:V===G.vault?r.jsxs("span",{className:"confirm-inline",children:[r.jsx("button",{type:"button",className:"button-danger","data-testid":`remove-def-vault-confirm-${G.vault}`,disabled:Q===G.vault,onClick:()=>void M(G.vault),children:Q===G.vault?"Removing…":"Confirm remove"}),r.jsx("button",{type:"button",className:"cancel-link",onClick:()=>q(null),children:"Cancel"})]}):r.jsx("button",{type:"button",className:"button-danger","data-testid":`remove-def-vault-${G.vault}`,onClick:()=>{X(null),q(G.vault)},children:"Remove"})})]},G.vault)})})]})]})}function _t(i){return i instanceof Dt&&i.status===401?"Not signed in to the hub — sign in to the portal, then reload.":i.message}function D0(i){return{key:i.id,kind:i.direction==="outbound"?"them":"you",text:i.text}}function Kh(){const i=qg(),o=om(),[f,s]=g.useState(null),[d,y]=g.useState(null),[b,j]=g.useState(i.channel??null),[S,m]=g.useState([]),[C,N]=g.useState(null),[D,Y]=g.useState({text:"",kind:""}),[V,q]=g.useState(""),[Q,H]=g.useState(!1),O=g.useRef(new Set),X=g.useRef(null),K=g.useRef(null),$=g.useRef(!1),se=g.useRef(0),F=g.useRef(null),I=g.useCallback(v=>{var _;return((_=f==null?void 0:f.find(w=>w.name===v))==null?void 0:_.transport)??""},[f]),be=g.useCallback(v=>I(v)==="vault",[I]),Me=g.useCallback(v=>{m(_=>[..._,{key:crypto.randomUUID(),kind:"sys",text:v}])},[]),te=g.useCallback(v=>{!v.id||O.current.has(v.id)||(O.current.add(v.id),m(_=>[..._,D0(v)]))},[]);g.useEffect(()=>{const v=F.current;v&&(v.scrollTop=v.scrollHeight)},[S,C]);const xe=g.useCallback(async v=>{var ye,Qe;const _=se.current;(ye=X.current)==null||ye.close(),X.current=null,(Qe=K.current)==null||Qe.close(),K.current=null;const w=await er();if(_!==se.current)return;const k=I(v),le=()=>{$.current=!1,Y({text:`live - ${v}`,kind:"live"})},ce=()=>{var de,Pe;if(!$.current&&w){$.current=!0,Y({text:"re-authenticating...",kind:""}),(de=X.current)==null||de.close(),X.current=null,(Pe=K.current)==null||Pe.close(),K.current=null,ym(),xe(v);return}Y({text:"reconnecting...",kind:""})};if(k==="http-ui"){const de=new EventSource(i0(v,w));de.onopen=le,de.addEventListener("reply",Pe=>{try{const tt=JSON.parse(Pe.data);tt.id?te({id:tt.id,text:tt.text??"",direction:"outbound",sender:"session",ts:""}):m(Za=>[...Za,{key:crypto.randomUUID(),kind:"them",text:tt.text??""}])}catch{}}),de.addEventListener("edit",Pe=>{try{const tt=JSON.parse(Pe.data);Me(`(edited) ${tt.text??""}`)}catch{}}),de.addEventListener("permission",Pe=>{try{const tt=JSON.parse(Pe.data);Me(`permission: ${tt.tool_name??""}${tt.description?` - ${tt.description}`:""} (respond in the session terminal)`)}catch{}}),de.onerror=ce,X.current=de}if(be(v)){const de=new EventSource(c0(v,w));de.onopen=le,de.addEventListener("turn",Pe=>{try{ke(JSON.parse(Pe.data),v)}catch{}}),de.onerror=ce,K.current=de}},[te,Me,be,I]),Ie=g.useCallback(async v=>{try{(await qh(v)).messages.forEach(te)}catch{}},[te]),ke=g.useCallback((v,_)=>{switch(v.kind){case"init":N({text:"",tools:[]});return;case"text":N(w=>({text:((w==null?void 0:w.text)??"")+v.text,tools:(w==null?void 0:w.tools)??[],...w!=null&&w.error?{error:w.error}:{}}));return;case"tool":N(w=>{const k=(w==null?void 0:w.tools)??[];return{text:(w==null?void 0:w.text)??"",tools:k.includes(v.tool)?k:[...k,v.tool]}});return;case"done":N(null),Ie(_);return;case"error":N(w=>({text:(w==null?void 0:w.text)??"",tools:(w==null?void 0:w.tools)??[],error:v.error}));return}},[Ie]);g.useEffect(()=>{let v=!1;return(async()=>{try{const _=await n0();if(v)return;s(_.channels),j(w=>{var k;return w&&_.channels.some(le=>le.name===w)?w:((k=_.channels[0])==null?void 0:k.name)??null})}catch(_){v||y(Ws(_))}})(),()=>{v=!0}},[]),g.useEffect(()=>{const v=b;if(!v){Y({text:"no channel",kind:""});return}let _=!1;return se.current+=1,O.current=new Set,$.current=!1,m([]),N(null),Y({text:"loading history...",kind:""}),(async()=>{try{const w=await qh(v);if(_)return;w.messages.forEach(te),Y({text:`live - ${v}`,kind:"live"})}catch(w){if(_)return;Y({text:`history error: ${Ws(w)}`,kind:"err"})}_||await xe(v)})(),()=>{var w,k;_=!0,se.current+=1,(w=X.current)==null||w.close(),X.current=null,(k=K.current)==null||k.close(),K.current=null}},[b]);function _e(v){j(v),o(`/chat/${encodeURIComponent(v)}`,{replace:!0})}async function M(){const v=V.trim(),_=b;if(!(!v||!_||Q)){H(!0),m(w=>[...w,{key:crypto.randomUUID(),kind:"you",text:v}]),q("");try{const w=await u0(_,v);w.id&&O.current.add(w.id)}catch(w){Me(`send failed: ${Ws(w)}`)}finally{H(!1)}}}function Z(v){v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),M())}const G=((f==null?void 0:f.length)??0)>0,ae=!!b&&V.trim().length>0&&!Q,re=g.useMemo(()=>D.kind==="live"?"chat-status status-live":D.kind==="err"?"chat-status status-err":"chat-status",[D.kind]);return r.jsxs("div",{className:"chat","data-testid":"chat-view",children:[r.jsxs("div",{className:"chat-head",children:[r.jsx("h1",{children:"Chat"}),f&&G?r.jsxs("label",{className:"chat-picker",children:[r.jsx("span",{className:"chat-picker-label",children:"Channel"}),r.jsx("select",{"data-testid":"chat-channel-select",value:b??"",onChange:v=>_e(v.target.value),children:f.map(v=>r.jsxs("option",{value:v.name,children:[v.name," (",v.transport,")"]},v.name))})]}):null,D.text?r.jsx("span",{className:re,"data-testid":"chat-status",children:D.text}):null]}),d?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"chat-channels-error",children:d}):null,f&&!G&&!d?r.jsx("div",{className:"empty","data-testid":"chat-no-channels",children:"No channels yet. Create a channel-backed agent in the create flow, then chat with it here."}):null,G?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"transcript",ref:F,"data-testid":"chat-transcript",children:[S.map(v=>r.jsx("div",{className:`msg ${v.kind}`,"data-testid":`chat-msg-${v.kind}`,children:v.text},v.key)),C?r.jsx(O0,{turn:C}):null]}),r.jsxs("form",{className:"composer","data-testid":"chat-composer",onSubmit:v=>{v.preventDefault(),M()},children:[r.jsx("textarea",{className:"chat-input","data-testid":"chat-input",rows:1,value:V,placeholder:"Type a message... (Enter to send, Shift+Enter for newline)",autoComplete:"off",onChange:v=>q(v.target.value),onKeyDown:Z}),r.jsx("button",{type:"submit","data-testid":"chat-send",disabled:!ae,children:Q?"Sending...":"Send"})]})]}):null]})}function O0({turn:i}){return r.jsxs("div",{className:`msg them live${i.error?" errored":""}`,"data-testid":"chat-live-turn",children:[i.text?r.jsx("div",{className:"live-text",children:i.text}):null,i.tools.length>0?r.jsx("div",{className:"live-tools",children:i.tools.map(o=>r.jsx("span",{className:"tool-chip","data-testid":`chat-tool-${o}`,children:o},o))}):null,r.jsx("div",{className:"live-working","data-testid":"chat-live-status",children:i.error?`turn failed: ${i.error}`:"working..."})]})}function Ws(i){return i instanceof Dt&&i.status===401?"Not signed in to the hub - sign in to the portal, then reload.":i.message}const M0=/^[a-zA-Z0-9_-]+$/;function U0({vaults:i}){var F;const o=i.length>0,[f,s]=g.useState(""),[d,y]=g.useState(((F=i[0])==null?void 0:F.vault)??""),[b,j]=g.useState("single-threaded"),[S,m]=g.useState("programmatic"),[C,N]=g.useState(""),[D,Y]=g.useState(""),[V,q]=g.useState(""),[Q,H]=g.useState(!1),[O,X]=g.useState({kind:"idle"}),K=M0.test(f),$=o&&K&&d.length>0&&O.kind!=="submitting";async function se(I){if(I.preventDefault(),!!$){X({kind:"submitting"});try{const be=await Xp({vault:d,name:f,backend:S,systemPrompt:D,metadata:{mode:b,...C?{model:C}:{}},...V.trim().length>0?{wants:V.trim()}:{}});X({kind:"ok",result:be,mode:b})}catch(be){const Me=be instanceof Dt&&be.status===401?"Not signed in to the hub — sign in to the portal, then reload.":be.message;X({kind:"error",message:Me})}}}return O.kind==="ok"?r.jsx(w0,{result:O.result,mode:O.mode}):r.jsxs("div",{children:[r.jsx("h1",{children:"New agent"}),r.jsxs("p",{className:"lede",children:["A ",r.jsx("code",{children:"#agent/definition"})," note IS the agent — writing it instantiates the agent and its channel routing in one step. The def-vault editor, schedules, and editing land in a later phase."]}),o?null:r.jsxs("div",{className:"error-banner",role:"alert","data-testid":"no-def-vaults",children:["No def-vault is configured, and one is required to create an agent. The add / remove def-vault editor arrives in a later phase; until then, configure a def-vault out-of-band. Submitting anyway will return the daemon's"," ",r.jsx("code",{children:"no def-vaults configured"})," error."]}),O.kind==="error"?r.jsx("div",{className:"error-banner",role:"alert","data-testid":"create-error",children:O.message}):null,r.jsxs("form",{className:"card",onSubmit:se,"aria-label":"Create agent",children:[r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"agent-name",children:"Name"}),r.jsx("input",{id:"agent-name",type:"text",value:f,placeholder:"my-agent",autoComplete:"off",onChange:I=>s(I.target.value)}),r.jsx("p",{className:"field-hint",children:"A slug (letters, numbers, dash, underscore). This is also the agent's channel."}),f.length>0&&!K?r.jsx("p",{className:"field-error","data-testid":"name-invalid",children:"Must be a slug — letters, numbers, dash, underscore only."}):null]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"agent-vault",children:"Def-vault"}),r.jsx("select",{id:"agent-vault",value:d,disabled:!o,onChange:I=>y(I.target.value),children:o?i.map(I=>r.jsxs("option",{value:I.vault,children:[I.vault,I.tokenPresent?"":" (token missing)"]},I.vault)):r.jsx("option",{value:"",children:"No def-vaults configured"})}),r.jsx("p",{className:"field-hint",children:"The vault this agent's definition note is written to."})]}),r.jsxs("fieldset",{className:"field",children:[r.jsx("legend",{children:"Mode"}),r.jsx(hi,{name:"mode",value:"single-threaded",checked:b==="single-threaded",onChange:()=>j("single-threaded"),label:"Single-threaded",help:"One continuous conversation — remembers everything on this channel.",testid:"mode-single-threaded"}),r.jsx(hi,{name:"mode",value:"multi-threaded",checked:b==="multi-threaded",onChange:()=>j("multi-threaded"),label:"Multi-threaded",help:"Each run is its own thread; today every run starts fresh (per-conversation continuation is coming) — good for scheduled or stateless tasks.",testid:"mode-multi-threaded"})]}),r.jsxs("fieldset",{className:"field",children:[r.jsx("legend",{children:"Backend"}),r.jsx(hi,{name:"backend",value:"programmatic",checked:S==="programmatic",onChange:()=>m("programmatic"),label:"Programmatic",help:"Parachute runs it headless — always on, sandboxed.",testid:"backend-programmatic"}),r.jsx(hi,{name:"backend",value:"channel",checked:S==="channel",onChange:()=>m("channel"),label:"Channel",help:"You run a Claude Code session on your own machine and connect it — your env, unsandboxed.",testid:"backend-channel"})]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"agent-model",children:"Model"}),r.jsx("select",{id:"agent-model",value:C,"data-testid":"agent-model",onChange:I=>N(I.target.value),children:pr.map(I=>r.jsx("option",{value:I.value,children:I.label},I.value))}),r.jsx("p",{className:"field-hint",children:"Which model Parachute runs this agent on (programmatic backend). A channel-backend agent uses whatever model your own session runs."})]}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"agent-prompt",children:"System prompt"}),r.jsx("textarea",{id:"agent-prompt",rows:6,value:D,placeholder:"You are…",onChange:I=>Y(I.target.value)}),r.jsx("p",{className:"field-hint",children:"The agent's persona + instructions (the note body). Leave blank for Claude Code's default."})]}),r.jsxs("details",{className:"advanced",open:Q,onToggle:I=>H(I.target.open),children:[r.jsx("summary",{children:"Advanced"}),r.jsxs("div",{className:"field",children:[r.jsx("label",{htmlFor:"agent-wants",children:"Wants (connections)"}),r.jsx("input",{id:"agent-wants",type:"text",value:V,placeholder:"vault:other, service:github",autoComplete:"off",onChange:I=>q(I.target.value)}),r.jsx("p",{className:"field-hint",children:"Comma-separated connection keys the agent requests beyond its own vault. Each needs approval before it's granted."})]})]}),r.jsxs("div",{className:"form-actions",children:[r.jsx("button",{type:"submit",disabled:!$,children:O.kind==="submitting"?"Creating…":"Create agent"}),r.jsx(ol,{to:"/",className:"cancel-link",children:"Cancel"})]})]})]})}function H0(){const[i,o]=g.useState({kind:"loading"}),f=g.useCallback(async()=>{o({kind:"loading"});try{const s=await gm();o({kind:"ok",vaults:s.vaults})}catch(s){const d=s instanceof Dt?s.status===401?"Not signed in to the hub — sign in to the portal, then reload.":`Failed to load def-vaults: ${s.message}`:`Failed to load def-vaults: ${s.message}`;o({kind:"error",message:d})}},[]);return g.useEffect(()=>{f()},[f]),i.kind==="loading"?r.jsx("div",{className:"loading",children:"Loading…"}):i.kind==="error"?r.jsxs("div",{className:"error-banner",role:"alert",children:[i.message," ",r.jsx("button",{type:"button",className:"secondary",onClick:()=>void f(),children:"Retry"})]}):r.jsx(U0,{vaults:i.vaults},i.vaults.map(s=>s.vault).join(","))}function hi(i){return r.jsxs("label",{className:`radio-row${i.checked?" selected":""}`,"data-testid":i.testid,children:[r.jsx("input",{type:"radio",name:i.name,value:i.value,checked:i.checked,onChange:i.onChange}),r.jsxs("span",{className:"radio-body",children:[r.jsx("span",{className:"radio-label",children:i.label}),r.jsx("span",{className:"radio-help",children:i.help})]})]})}function w0({result:i,mode:o}){const f=i.def;return r.jsxs("div",{"data-testid":"create-success",children:[r.jsx("h1",{children:"Agent created"}),r.jsxs("div",{className:"success-banner",role:"status",children:[r.jsx("strong",{children:f.name})," · ",o," · ",f.backend]}),r.jsxs("p",{className:"lede",children:["The definition was written to ",r.jsx("code",{children:f.vault})," and instantiated. It now appears in the ",r.jsx(ol,{to:"/",children:"Agents list"}),"."]}),f.backend==="channel"?r.jsx(B0,{name:f.name}):null,r.jsx("p",{children:r.jsx(ol,{to:"/",children:"← Back to agents"})})]})}function B0({name:i}){const[o,f]=g.useState(!1),s=typeof window<"u"?window.location.origin:"",d=g.useMemo(()=>a0(i,s),[i,s]);async function y(){var b;try{await((b=navigator.clipboard)==null?void 0:b.writeText(d)),f(!0),setTimeout(()=>f(!1),2e3)}catch{}}return r.jsxs("section",{className:"card","aria-label":"Connect a session","data-testid":"connect-session",children:[r.jsx("h2",{children:"Connect your Claude Code session"}),r.jsx("p",{className:"muted",children:"Run this on your own machine to make a Claude Code session a responder for this channel:"}),r.jsxs("div",{className:"snippet-row",children:[r.jsx("code",{className:"snippet","data-testid":"connect-command",children:d}),r.jsx("button",{type:"button",className:"secondary",onClick:()=>void y(),children:o?"Copied":"Copy"})]}),r.jsx("p",{className:"field-hint",children:"Your Claude Code session pulls messages from this channel; until you connect, inbound messages queue durably in the vault."})]})}const L0="Parachute Agent";function q0(i){return i==="/create"||i.startsWith("/create/")?"new agent":i==="/chat"||i.startsWith("/chat/")?"chat":"agents"}function Y0(){const{pathname:i}=Bt(),o=q0(i);return r.jsxs("div",{className:"page",children:[r.jsxs("nav",{className:"nav",children:[r.jsxs(ol,{to:"/",className:"brand",children:[r.jsx("span",{className:"brand-wordmark",children:L0}),r.jsx("span",{className:"sub",children:o})]}),r.jsx(Fs,{to:"/",label:"Agents",exact:!0}),r.jsx(Fs,{to:"/create",label:"New agent"}),r.jsx(Fs,{to:"/chat",label:"Chat"})]}),r.jsxs(ep,{children:[r.jsx(la,{path:"/",element:r.jsx(Vh,{})}),r.jsx(la,{path:"/agents",element:r.jsx(Vh,{})}),r.jsx(la,{path:"/create",element:r.jsx(H0,{})}),r.jsx(la,{path:"/chat",element:r.jsx(Kh,{})}),r.jsx(la,{path:"/chat/:channel",element:r.jsx(Kh,{})}),r.jsx(la,{path:"*",element:r.jsxs("div",{className:"empty",children:["404 — back to ",r.jsx(ol,{to:"/",children:"Agents"}),"."]})})]})]})}function Fs({to:i,label:o,exact:f}){const{pathname:s}=Bt(),d=f?s===i||s==="/agents":s===i||s.startsWith(`${i}/`);return r.jsx(ol,{to:i,className:d?"nav-link nav-link-active":"nav-link","aria-current":d?"page":void 0,children:o})}function G0(i){return i==="/agent/app"||i.startsWith("/agent/app/")?"/agent/app":i==="/app"||i.startsWith("/app/")?"/app":""}const xm=document.getElementById("root");if(!xm)throw new Error("#root not found");eg.createRoot(xm).render(r.jsx(g.StrictMode,{children:r.jsx(Np,{basename:G0(window.location.pathname),children:r.jsx(Y0,{})})}));
|