@coralai/sps-cli 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/console-assets/assets/index-COKveGOw.js +231 -0
- package/dist/console-assets/assets/index-DTOYQgOY.css +1 -0
- package/dist/console-assets/index.html +2 -2
- package/dist/console-server/index.d.ts.map +1 -1
- package/dist/console-server/index.js +25 -5
- package/dist/console-server/index.js.map +1 -1
- package/dist/console-server/lib/cardReader.d.ts +27 -0
- package/dist/console-server/lib/cardReader.d.ts.map +1 -0
- package/dist/console-server/lib/cardReader.js +131 -0
- package/dist/console-server/lib/cardReader.js.map +1 -0
- package/dist/console-server/lib/spawnCli.d.ts +31 -0
- package/dist/console-server/lib/spawnCli.d.ts.map +1 -0
- package/dist/console-server/lib/spawnCli.js +64 -0
- package/dist/console-server/lib/spawnCli.js.map +1 -0
- package/dist/console-server/routes/cards.d.ts +7 -0
- package/dist/console-server/routes/cards.d.ts.map +1 -0
- package/dist/console-server/routes/cards.js +81 -0
- package/dist/console-server/routes/cards.js.map +1 -0
- package/dist/console-server/routes/chat.d.ts +21 -0
- package/dist/console-server/routes/chat.d.ts.map +1 -0
- package/dist/console-server/routes/chat.js +233 -0
- package/dist/console-server/routes/chat.js.map +1 -0
- package/dist/console-server/routes/logs.d.ts +14 -0
- package/dist/console-server/routes/logs.d.ts.map +1 -0
- package/dist/console-server/routes/logs.js +215 -0
- package/dist/console-server/routes/logs.js.map +1 -0
- package/dist/console-server/routes/pipeline.d.ts +8 -0
- package/dist/console-server/routes/pipeline.d.ts.map +1 -0
- package/dist/console-server/routes/pipeline.js +96 -0
- package/dist/console-server/routes/pipeline.js.map +1 -0
- package/dist/console-server/routes/skills.d.ts +7 -0
- package/dist/console-server/routes/skills.d.ts.map +1 -0
- package/dist/console-server/routes/skills.js +242 -0
- package/dist/console-server/routes/skills.js.map +1 -0
- package/dist/console-server/routes/system.d.ts +1 -1
- package/dist/console-server/routes/system.d.ts.map +1 -1
- package/dist/console-server/routes/system.js +78 -1
- package/dist/console-server/routes/system.js.map +1 -1
- package/dist/console-server/routes/workers.d.ts +7 -0
- package/dist/console-server/routes/workers.d.ts.map +1 -0
- package/dist/console-server/routes/workers.js +133 -0
- package/dist/console-server/routes/workers.js.map +1 -0
- package/dist/console-server/sse/projectStream.d.ts +10 -0
- package/dist/console-server/sse/projectStream.d.ts.map +1 -0
- package/dist/console-server/sse/projectStream.js +86 -0
- package/dist/console-server/sse/projectStream.js.map +1 -0
- package/dist/console-server/watchers/cardWatcher.d.ts +1 -3
- package/dist/console-server/watchers/cardWatcher.d.ts.map +1 -1
- package/dist/console-server/watchers/cardWatcher.js +28 -22
- package/dist/console-server/watchers/cardWatcher.js.map +1 -1
- package/dist/console-server/watchers/markerWatcher.d.ts +7 -0
- package/dist/console-server/watchers/markerWatcher.d.ts.map +1 -0
- package/dist/console-server/watchers/markerWatcher.js +53 -0
- package/dist/console-server/watchers/markerWatcher.js.map +1 -0
- package/dist/console-server/watchers/pipelinePoller.d.ts +2 -0
- package/dist/console-server/watchers/pipelinePoller.d.ts.map +1 -0
- package/dist/console-server/watchers/pipelinePoller.js +52 -0
- package/dist/console-server/watchers/pipelinePoller.js.map +1 -0
- package/package.json +1 -1
- package/dist/console-assets/assets/index-Bhd2f9AP.js +0 -125
- package/dist/console-assets/assets/index-bsAN2a12.css +0 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
var Jg=Object.defineProperty;var Jm=n=>{throw TypeError(n)};var $g=(n,u,r)=>u in n?Jg(n,u,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[u]=r;var $m=(n,u,r)=>$g(n,typeof u!="symbol"?u+"":u,r),Pc=(n,u,r)=>u.has(n)||Jm("Cannot "+r);var S=(n,u,r)=>(Pc(n,u,"read from private field"),r?r.call(n):u.get(n)),ae=(n,u,r)=>u.has(n)?Jm("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(n):u.set(n,r),J=(n,u,r,c)=>(Pc(n,u,"write to private field"),c?c.call(n,r):u.set(n,r),r),me=(n,u,r)=>(Pc(n,u,"access private method"),r);var bs=(n,u,r,c)=>({set _(f){J(n,u,f,r)},get _(){return S(n,u,c)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&c(v)}).observe(document,{childList:!0,subtree:!0});function r(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(f){if(f.ep)return;f.ep=!0;const m=r(f);fetch(f.href,m)}})();var Ic={exports:{}},Bi={};/**
|
|
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 Fm;function Fg(){if(Fm)return Bi;Fm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,f,m){var v=null;if(m!==void 0&&(v=""+m),f.key!==void 0&&(v=""+f.key),"key"in f){m={};for(var g in f)g!=="key"&&(m[g]=f[g])}else m=f;return f=m.ref,{$$typeof:n,type:c,key:v,ref:f!==void 0?f:null,props:m}}return Bi.Fragment=u,Bi.jsx=r,Bi.jsxs=r,Bi}var Wm;function Wg(){return Wm||(Wm=1,Ic.exports=Fg()),Ic.exports}var d=Wg(),eo={exports:{}},ie={};/**
|
|
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 Pm;function Pg(){if(Pm)return ie;Pm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=D&&j[D]||j["@@iterator"],typeof j=="function"?j:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,Y={};function O(j,k,V){this.props=j,this.context=k,this.refs=Y,this.updater=V||M}O.prototype.isReactComponent={},O.prototype.setState=function(j,k){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,k,"setState")},O.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function X(){}X.prototype=O.prototype;function G(j,k,V){this.props=j,this.context=k,this.refs=Y,this.updater=V||M}var L=G.prototype=new X;L.constructor=G,q(L,O.prototype),L.isPureReactComponent=!0;var K=Array.isArray;function P(){}var ee={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function ye(j,k,V){var F=V.ref;return{$$typeof:n,type:j,key:k,ref:F!==void 0?F:null,props:V}}function Me(j,k){return ye(j.type,k,j.props)}function ke(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function Ye(j){var k={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(V){return k[V]})}var Et=/\/+/g;function et(j,k){return typeof j=="object"&&j!==null&&j.key!=null?Ye(""+j.key):k.toString(36)}function we(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(P,P):(j.status="pending",j.then(function(k){j.status==="pending"&&(j.status="fulfilled",j.value=k)},function(k){j.status==="pending"&&(j.status="rejected",j.reason=k)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function H(j,k,V,F,ue){var ce=typeof j;(ce==="undefined"||ce==="boolean")&&(j=null);var Se=!1;if(j===null)Se=!0;else switch(ce){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(j.$$typeof){case n:case u:Se=!0;break;case C:return Se=j._init,H(Se(j._payload),k,V,F,ue)}}if(Se)return ue=ue(j),Se=F===""?"."+et(j,0):F,K(ue)?(V="",Se!=null&&(V=Se.replace(Et,"$&/")+"/"),H(ue,k,V,"",function(Zn){return Zn})):ue!=null&&(ke(ue)&&(ue=Me(ue,V+(ue.key==null||j&&j.key===ue.key?"":(""+ue.key).replace(Et,"$&/")+"/")+Se)),k.push(ue)),1;Se=0;var ot=F===""?".":F+":";if(K(j))for(var Ge=0;Ge<j.length;Ge++)F=j[Ge],ce=ot+et(F,Ge),Se+=H(F,k,V,ce,ue);else if(Ge=w(j),typeof Ge=="function")for(j=Ge.call(j),Ge=0;!(F=j.next()).done;)F=F.value,ce=ot+et(F,Ge++),Se+=H(F,k,V,ce,ue);else if(ce==="object"){if(typeof j.then=="function")return H(we(j),k,V,F,ue);throw k=String(j),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return Se}function Z(j,k,V){if(j==null)return j;var F=[],ue=0;return H(j,F,"","",function(ce){return k.call(V,ce,ue++)}),F}function ne(j){if(j._status===-1){var k=j._result;k=k(),k.then(function(V){(j._status===0||j._status===-1)&&(j._status=1,j._result=V)},function(V){(j._status===0||j._status===-1)&&(j._status=2,j._result=V)}),j._status===-1&&(j._status=0,j._result=k)}if(j._status===1)return j._result.default;throw j._result}var Ce=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},_e={map:Z,forEach:function(j,k,V){Z(j,function(){k.apply(this,arguments)},V)},count:function(j){var k=0;return Z(j,function(){k++}),k},toArray:function(j){return Z(j,function(k){return k})||[]},only:function(j){if(!ke(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ie.Activity=E,ie.Children=_e,ie.Component=O,ie.Fragment=r,ie.Profiler=f,ie.PureComponent=G,ie.StrictMode=c,ie.Suspense=p,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,ie.__COMPILER_RUNTIME={__proto__:null,c:function(j){return ee.H.useMemoCache(j)}},ie.cache=function(j){return function(){return j.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(j,k,V){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var F=q({},j.props),ue=j.key;if(k!=null)for(ce in k.key!==void 0&&(ue=""+k.key),k)!le.call(k,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&k.ref===void 0||(F[ce]=k[ce]);var ce=arguments.length-2;if(ce===1)F.children=V;else if(1<ce){for(var Se=Array(ce),ot=0;ot<ce;ot++)Se[ot]=arguments[ot+2];F.children=Se}return ye(j.type,ue,F)},ie.createContext=function(j){return j={$$typeof:v,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:m,_context:j},j},ie.createElement=function(j,k,V){var F,ue={},ce=null;if(k!=null)for(F in k.key!==void 0&&(ce=""+k.key),k)le.call(k,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ue[F]=k[F]);var Se=arguments.length-2;if(Se===1)ue.children=V;else if(1<Se){for(var ot=Array(Se),Ge=0;Ge<Se;Ge++)ot[Ge]=arguments[Ge+2];ue.children=ot}if(j&&j.defaultProps)for(F in Se=j.defaultProps,Se)ue[F]===void 0&&(ue[F]=Se[F]);return ye(j,ce,ue)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(j){return{$$typeof:g,render:j}},ie.isValidElement=ke,ie.lazy=function(j){return{$$typeof:C,_payload:{_status:-1,_result:j},_init:ne}},ie.memo=function(j,k){return{$$typeof:y,type:j,compare:k===void 0?null:k}},ie.startTransition=function(j){var k=ee.T,V={};ee.T=V;try{var F=j(),ue=ee.S;ue!==null&&ue(V,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(P,Ce)}catch(ce){Ce(ce)}finally{k!==null&&V.types!==null&&(k.types=V.types),ee.T=k}},ie.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},ie.use=function(j){return ee.H.use(j)},ie.useActionState=function(j,k,V){return ee.H.useActionState(j,k,V)},ie.useCallback=function(j,k){return ee.H.useCallback(j,k)},ie.useContext=function(j){return ee.H.useContext(j)},ie.useDebugValue=function(){},ie.useDeferredValue=function(j,k){return ee.H.useDeferredValue(j,k)},ie.useEffect=function(j,k){return ee.H.useEffect(j,k)},ie.useEffectEvent=function(j){return ee.H.useEffectEvent(j)},ie.useId=function(){return ee.H.useId()},ie.useImperativeHandle=function(j,k,V){return ee.H.useImperativeHandle(j,k,V)},ie.useInsertionEffect=function(j,k){return ee.H.useInsertionEffect(j,k)},ie.useLayoutEffect=function(j,k){return ee.H.useLayoutEffect(j,k)},ie.useMemo=function(j,k){return ee.H.useMemo(j,k)},ie.useOptimistic=function(j,k){return ee.H.useOptimistic(j,k)},ie.useReducer=function(j,k,V){return ee.H.useReducer(j,k,V)},ie.useRef=function(j){return ee.H.useRef(j)},ie.useState=function(j){return ee.H.useState(j)},ie.useSyncExternalStore=function(j,k,V){return ee.H.useSyncExternalStore(j,k,V)},ie.useTransition=function(){return ee.H.useTransition()},ie.version="19.2.5",ie}var Im;function zo(){return Im||(Im=1,eo.exports=Pg()),eo.exports}var N=zo(),to={exports:{}},Qi={},ao={exports:{}},lo={};/**
|
|
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 ey;function Ig(){return ey||(ey=1,(function(n){function u(H,Z){var ne=H.length;H.push(Z);e:for(;0<ne;){var Ce=ne-1>>>1,_e=H[Ce];if(0<f(_e,Z))H[Ce]=Z,H[ne]=_e,ne=Ce;else break e}}function r(H){return H.length===0?null:H[0]}function c(H){if(H.length===0)return null;var Z=H[0],ne=H.pop();if(ne!==Z){H[0]=ne;e:for(var Ce=0,_e=H.length,j=_e>>>1;Ce<j;){var k=2*(Ce+1)-1,V=H[k],F=k+1,ue=H[F];if(0>f(V,ne))F<_e&&0>f(ue,V)?(H[Ce]=ue,H[F]=ne,Ce=F):(H[Ce]=V,H[k]=ne,Ce=k);else if(F<_e&&0>f(ue,ne))H[Ce]=ue,H[F]=ne,Ce=F;else break e}}return Z}function f(H,Z){var ne=H.sortIndex-Z.sortIndex;return ne!==0?ne:H.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();n.unstable_now=function(){return v.now()-g}}var p=[],y=[],C=1,E=null,D=3,w=!1,M=!1,q=!1,Y=!1,O=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function L(H){for(var Z=r(y);Z!==null;){if(Z.callback===null)c(y);else if(Z.startTime<=H)c(y),Z.sortIndex=Z.expirationTime,u(p,Z);else break;Z=r(y)}}function K(H){if(q=!1,L(H),!M)if(r(p)!==null)M=!0,P||(P=!0,Ye());else{var Z=r(y);Z!==null&&we(K,Z.startTime-H)}}var P=!1,ee=-1,le=5,ye=-1;function Me(){return Y?!0:!(n.unstable_now()-ye<le)}function ke(){if(Y=!1,P){var H=n.unstable_now();ye=H;var Z=!0;try{e:{M=!1,q&&(q=!1,X(ee),ee=-1),w=!0;var ne=D;try{t:{for(L(H),E=r(p);E!==null&&!(E.expirationTime>H&&Me());){var Ce=E.callback;if(typeof Ce=="function"){E.callback=null,D=E.priorityLevel;var _e=Ce(E.expirationTime<=H);if(H=n.unstable_now(),typeof _e=="function"){E.callback=_e,L(H),Z=!0;break t}E===r(p)&&c(p),L(H)}else c(p);E=r(p)}if(E!==null)Z=!0;else{var j=r(y);j!==null&&we(K,j.startTime-H),Z=!1}}break e}finally{E=null,D=ne,w=!1}Z=void 0}}finally{Z?Ye():P=!1}}}var Ye;if(typeof G=="function")Ye=function(){G(ke)};else if(typeof MessageChannel<"u"){var Et=new MessageChannel,et=Et.port2;Et.port1.onmessage=ke,Ye=function(){et.postMessage(null)}}else Ye=function(){O(ke,0)};function we(H,Z){ee=O(function(){H(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return D},n.unstable_next=function(H){switch(D){case 1:case 2:case 3:var Z=3;break;default:Z=D}var ne=D;D=Z;try{return H()}finally{D=ne}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ne=D;D=H;try{return Z()}finally{D=ne}},n.unstable_scheduleCallback=function(H,Z,ne){var Ce=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ce+ne:Ce):ne=Ce,H){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ne+_e,H={id:C++,callback:Z,priorityLevel:H,startTime:ne,expirationTime:_e,sortIndex:-1},ne>Ce?(H.sortIndex=ne,u(y,H),r(p)===null&&H===r(y)&&(q?(X(ee),ee=-1):q=!0,we(K,ne-Ce))):(H.sortIndex=_e,u(p,H),M||w||(M=!0,P||(P=!0,Ye()))),H},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(H){var Z=D;return function(){var ne=D;D=Z;try{return H.apply(this,arguments)}finally{D=ne}}}})(lo)),lo}var ty;function e0(){return ty||(ty=1,ao.exports=Ig()),ao.exports}var no={exports:{}},st={};/**
|
|
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 ay;function t0(){if(ay)return st;ay=1;var n=zo();function u(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)y+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(u(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(p,y,C){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:E==null?null:""+E,children:p,containerInfo:y,implementation:C}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,st.createPortal=function(p,y){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(p,y,null,C)},st.flushSync=function(p){var y=v.T,C=c.p;try{if(v.T=null,c.p=2,p)return p()}finally{v.T=y,c.p=C,c.d.f()}},st.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(p,y))},st.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},st.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var C=y.as,E=g(C,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,w=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;C==="style"?c.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:D,fetchPriority:w}):C==="script"&&c.d.X(p,{crossOrigin:E,integrity:D,fetchPriority:w,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},st.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var C=g(y.as,y.crossOrigin);c.d.M(p,{crossOrigin:C,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(p)},st.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var C=y.as,E=g(C,y.crossOrigin);c.d.L(p,C,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},st.preloadModule=function(p,y){if(typeof p=="string")if(y){var C=g(y.as,y.crossOrigin);c.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:C,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(p)},st.requestFormReset=function(p){c.d.r(p)},st.unstable_batchedUpdates=function(p,y){return p(y)},st.useFormState=function(p,y,C){return v.H.useFormState(p,y,C)},st.useFormStatus=function(){return v.H.useHostTransitionStatus()},st.version="19.2.5",st}var ly;function a0(){if(ly)return no.exports;ly=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),no.exports=t0(),no.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 ny;function l0(){if(ny)return Qi;ny=1;var n=e0(),u=zo(),r=a0();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(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 g(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 p(e){if(m(e)!==e)throw Error(c(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var s=i.alternate;if(s===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===a)return p(i),e;if(s===l)return p(i),t;s=s.sibling}throw Error(c(188))}if(a.return!==l.return)a=i,l=s;else{for(var o=!1,h=i.child;h;){if(h===a){o=!0,a=i,l=s;break}if(h===l){o=!0,l=i,a=s;break}h=h.sibling}if(!o){for(h=s.child;h;){if(h===a){o=!0,a=s,l=i;break}if(h===l){o=!0,l=s,a=i;break}h=h.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?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 E=Object.assign,D=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),G=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Ye(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Et=Symbol.for("react.client.reference");function et(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Et?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case O:return"Profiler";case Y:return"StrictMode";case K:return"Suspense";case P:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case G:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:et(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return et(e(t))}catch{}}return null}var we=Array.isArray,H=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ce=[],_e=-1;function j(e){return{current:e}}function k(e){0>_e||(e.current=Ce[_e],Ce[_e]=null,_e--)}function V(e,t){_e++,Ce[_e]=e.current,e.current=t}var F=j(null),ue=j(null),ce=j(null),Se=j(null);function ot(e,t){switch(V(ce,t),V(ue,e),V(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pm(t),e=gm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(F),V(F,e)}function Ge(){k(F),k(ue),k(ce)}function Zn(e){e.memoizedState!==null&&V(Se,e);var t=F.current,a=gm(t,e.type);t!==a&&(V(ue,e),V(F,a))}function tu(e){ue.current===e&&(k(F),k(ue)),Se.current===e&&(k(Se),Ui._currentValue=ne)}var Ds,Zo;function hl(e){if(Ds===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ds=t&&t[1]||"",Zo=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ds+e+Zo}var Us=!1;function qs(e,t){if(!e||Us)return"";Us=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(_){var A=_}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(_){A=_}e.call(Q.prototype)}}else{try{throw Error()}catch(_){A=_}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(_){if(_&&A&&typeof _.stack=="string")return[_.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),o=s[0],h=s[1];if(o&&h){var b=o.split(`
|
|
44
|
+
`),z=h.split(`
|
|
45
|
+
`);for(i=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(l===b.length||i===z.length)for(l=b.length-1,i=z.length-1;1<=l&&0<=i&&b[l]!==z[i];)i--;for(;1<=l&&0<=i;l--,i--)if(b[l]!==z[i]){if(l!==1||i!==1)do if(l--,i--,0>i||b[l]!==z[i]){var U=`
|
|
46
|
+
`+b[l].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=l&&0<=i);break}}}finally{Us=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?hl(a):""}function Tv(e,t){switch(e.tag){case 26:case 27:case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return e.child!==t&&t!==null?hl("Suspense Fallback"):hl("Suspense");case 19:return hl("SuspenseList");case 0:case 15:return qs(e.type,!1);case 11:return qs(e.type.render,!1);case 1:return qs(e.type,!0);case 31:return hl("Activity");default:return""}}function Vo(e){try{var t="",a=null;do t+=Tv(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Hs=Object.prototype.hasOwnProperty,Ls=n.unstable_scheduleCallback,Bs=n.unstable_cancelCallback,Cv=n.unstable_shouldYield,Rv=n.unstable_requestPaint,jt=n.unstable_now,zv=n.unstable_getCurrentPriorityLevel,Jo=n.unstable_ImmediatePriority,$o=n.unstable_UserBlockingPriority,au=n.unstable_NormalPriority,Av=n.unstable_LowPriority,Fo=n.unstable_IdlePriority,_v=n.log,Ov=n.unstable_setDisableYieldValue,Vn=null,Nt=null;function Ma(e){if(typeof _v=="function"&&Ov(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Vn,e)}catch{}}var Tt=Math.clz32?Math.clz32:Dv,Mv=Math.log,wv=Math.LN2;function Dv(e){return e>>>=0,e===0?32:31-(Mv(e)/wv|0)|0}var lu=256,nu=262144,iu=4194304;function ml(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 uu(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~s,l!==0?i=ml(l):(o&=h,o!==0?i=ml(o):a||(a=h&~e,a!==0&&(i=ml(a))))):(h=l&~s,h!==0?i=ml(h):o!==0?i=ml(o):a||(a=l&~e,a!==0&&(i=ml(a)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:i}function Jn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Uv(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 Wo(){var e=iu;return iu<<=1,(iu&62914560)===0&&(iu=4194304),e}function Qs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function $n(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qv(e,t,a,l,i,s){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var h=e.entanglements,b=e.expirationTimes,z=e.hiddenUpdates;for(a=o&~a;0<a;){var U=31-Tt(a),Q=1<<U;h[U]=0,b[U]=-1;var A=z[U];if(A!==null)for(z[U]=null,U=0;U<A.length;U++){var _=A[U];_!==null&&(_.lane&=-536870913)}a&=~Q}l!==0&&Po(e,l,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function Po(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Tt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Io(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Tt(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function ef(e,t){var a=t&-t;return a=(a&42)!==0?1:ks(a),(a&(e.suspendedLanes|t))!==0?0:a}function ks(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 Ys(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function tf(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function af(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var wa=Math.random().toString(36).slice(2),tt="__reactFiber$"+wa,ht="__reactProps$"+wa,Gl="__reactContainer$"+wa,Gs="__reactEvents$"+wa,Hv="__reactListeners$"+wa,Lv="__reactHandles$"+wa,lf="__reactResources$"+wa,Fn="__reactMarker$"+wa;function Xs(e){delete e[tt],delete e[ht],delete e[Gs],delete e[Hv],delete e[Lv]}function Xl(e){var t=e[tt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Gl]||a[tt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Tm(e);e!==null;){if(a=e[tt])return a;e=Tm(e)}return t}e=a,a=e.parentNode}return null}function Kl(e){if(e=e[tt]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Zl(e){var t=e[lf];return t||(t=e[lf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[Fn]=!0}var nf=new Set,uf={};function yl(e,t){Vl(e,t),Vl(e+"Capture",t)}function Vl(e,t){for(uf[e]=t,e=0;e<t.length;e++)nf.add(t[e])}var Bv=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]*$"),sf={},rf={};function Qv(e){return Hs.call(rf,e)?!0:Hs.call(sf,e)?!1:Bv.test(e)?rf[e]=!0:(sf[e]=!0,!1)}function su(e,t,a){if(Qv(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ru(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function oa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kv(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){if(!e._valueTracker){var t=cf(e)?"checked":"value";e._valueTracker=kv(e,t,""+e[t])}}function of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=cf(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function cu(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 Yv=/[\n"\\]/g;function qt(e){return e.replace(Yv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zs(e,t,a,l,i,s,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Vs(e,o,Ut(t)):a!=null?Vs(e,o,Ut(a)):l!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Ut(h):e.removeAttribute("name")}function ff(e,t,a,l,i,s,o,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Ks(e);return}a=a!=null?""+Ut(a):"",t=t!=null?""+Ut(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ks(e)}function Vs(e,t,a){t==="number"&&cu(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Jl(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ut(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function df(e,t,a){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ut(a):""}function hf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(c(92));if(we(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Ut(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ks(e)}function $l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Gv=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 mf(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Gv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function yf(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&mf(e,i,l)}else for(var s in t)t.hasOwnProperty(s)&&mf(e,s,t[s])}function Js(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 Xv=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"]]),Kv=/^[\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 ou(e){return Kv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fa(){}var $s=null;function Fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,Wl=null;function vf(e){var t=Kl(e);if(t&&(e=t.stateNode)){var a=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[ht]||null;if(!i)throw Error(c(90));Zs(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&of(l)}break e;case"textarea":df(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Jl(e,!!a.multiple,t,!1)}}}var Ws=!1;function pf(e,t,a){if(Ws)return e(t,a);Ws=!0;try{var l=e(t);return l}finally{if(Ws=!1,(Fl!==null||Wl!==null)&&(Wu(),Fl&&(t=Fl,e=Wl,Wl=Fl=null,vf(t),e)))for(t=0;t<e.length;t++)vf(e[t])}}function Pn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ht]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ps=!1;if(da)try{var In={};Object.defineProperty(In,"passive",{get:function(){Ps=!0}}),window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{Ps=!1}var Da=null,Is=null,fu=null;function gf(){if(fu)return fu;var e,t=Is,a=t.length,l,i="value"in Da?Da.value:Da.textContent,s=i.length;for(e=0;e<a&&t[e]===i[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===i[s-l];l++);return fu=i.slice(e,1<l?1-l:void 0)}function du(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 hu(){return!0}function bf(){return!1}function mt(e){function t(a,l,i,s,o){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?hu:bf,this.isPropagationStopped=bf,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hu)},persist:function(){},isPersistent:hu}),t}var vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mu=mt(vl),ei=E({},vl,{view:0,detail:0}),Zv=mt(ei),er,tr,ti,yu=E({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,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!==ti&&(ti&&e.type==="mousemove"?(er=e.screenX-ti.screenX,tr=e.screenY-ti.screenY):tr=er=0,ti=e),er)},movementY:function(e){return"movementY"in e?e.movementY:tr}}),xf=mt(yu),Vv=E({},yu,{dataTransfer:0}),Jv=mt(Vv),$v=E({},ei,{relatedTarget:0}),ar=mt($v),Fv=E({},vl,{animationName:0,elapsedTime:0,pseudoElement:0}),Wv=mt(Fv),Pv=E({},vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Iv=mt(Pv),ep=E({},vl,{data:0}),Sf=mt(ep),tp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ap={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"},lp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function np(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lp[e])?!!t[e]:!1}function lr(){return np}var ip=E({},ei,{key:function(e){if(e.key){var t=tp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=du(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ap[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(e){return e.type==="keypress"?du(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?du(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),up=mt(ip),sp=E({},yu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=mt(sp),rp=E({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr}),cp=mt(rp),op=E({},vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),fp=mt(op),dp=E({},yu,{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}),hp=mt(dp),mp=E({},vl,{newState:0,oldState:0}),yp=mt(mp),vp=[9,13,27,32],nr=da&&"CompositionEvent"in window,ai=null;da&&"documentMode"in document&&(ai=document.documentMode);var pp=da&&"TextEvent"in window&&!ai,jf=da&&(!nr||ai&&8<ai&&11>=ai),Nf=" ",Tf=!1;function Cf(e,t){switch(e){case"keyup":return vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function gp(e,t){switch(e){case"compositionend":return Rf(t);case"keypress":return t.which!==32?null:(Tf=!0,Nf);case"textInput":return e=t.data,e===Nf&&Tf?null:e;default:return null}}function bp(e,t){if(Pl)return e==="compositionend"||!nr&&Cf(e,t)?(e=gf(),fu=Is=Da=null,Pl=!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 jf&&t.locale!=="ko"?null:t.data;default:return null}}var xp={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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xp[e.type]:t==="textarea"}function Af(e,t,a,l){Fl?Wl?Wl.push(l):Wl=[l]:Fl=l,t=ns(t,"onChange"),0<t.length&&(a=new mu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var li=null,ni=null;function Sp(e){fm(e,0)}function vu(e){var t=Wn(e);if(of(t))return e}function _f(e,t){if(e==="change")return t}var Of=!1;if(da){var ir;if(da){var ur="oninput"in document;if(!ur){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),ur=typeof Mf.oninput=="function"}ir=ur}else ir=!1;Of=ir&&(!document.documentMode||9<document.documentMode)}function wf(){li&&(li.detachEvent("onpropertychange",Df),ni=li=null)}function Df(e){if(e.propertyName==="value"&&vu(ni)){var t=[];Af(t,ni,e,Fs(e)),pf(Sp,t)}}function Ep(e,t,a){e==="focusin"?(wf(),li=t,ni=a,li.attachEvent("onpropertychange",Df)):e==="focusout"&&wf()}function jp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vu(ni)}function Np(e,t){if(e==="click")return vu(t)}function Tp(e,t){if(e==="input"||e==="change")return vu(t)}function Cp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Cp;function ii(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Hs.call(t,i)||!Ct(e[i],t[i]))return!1}return!0}function Uf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qf(e,t){var a=Uf(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Uf(a)}}function Hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=cu(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=cu(e.document)}return t}function sr(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 Rp=da&&"documentMode"in document&&11>=document.documentMode,Il=null,rr=null,ui=null,cr=!1;function Bf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cr||Il==null||Il!==cu(l)||(l=Il,"selectionStart"in l&&sr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ui&&ii(ui,l)||(ui=l,l=ns(rr,"onSelect"),0<l.length&&(t=new mu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Il)))}function pl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var en={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},or={},Qf={};da&&(Qf=document.createElement("div").style,"AnimationEvent"in window||(delete en.animationend.animation,delete en.animationiteration.animation,delete en.animationstart.animation),"TransitionEvent"in window||delete en.transitionend.transition);function gl(e){if(or[e])return or[e];if(!en[e])return e;var t=en[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Qf)return or[e]=t[a];return e}var kf=gl("animationend"),Yf=gl("animationiteration"),Gf=gl("animationstart"),zp=gl("transitionrun"),Ap=gl("transitionstart"),_p=gl("transitioncancel"),Xf=gl("transitionend"),Kf=new Map,fr="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(" ");fr.push("scrollEnd");function Wt(e,t){Kf.set(e,t),yl(t,[e])}var pu=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)},Ht=[],tn=0,dr=0;function gu(){for(var e=tn,t=dr=tn=0;t<e;){var a=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var s=Ht[t];if(Ht[t++]=null,l!==null&&i!==null){var o=l.pending;o===null?i.next=i:(i.next=o.next,o.next=i),l.pending=i}s!==0&&Zf(a,i,s)}}function bu(e,t,a,l){Ht[tn++]=e,Ht[tn++]=t,Ht[tn++]=a,Ht[tn++]=l,dr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function hr(e,t,a,l){return bu(e,t,a,l),xu(e)}function bl(e,t){return bu(e,null,null,t),xu(e)}function Zf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-Tt(a),e=s.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),s):null}function xu(e){if(50<zi)throw zi=0,Ec=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var an={};function Op(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,a,l){return new Op(e,t,a,l)}function mr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ha(e,t){var a=e.alternate;return a===null?(a=Rt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Vf(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Su(e,t,a,l,i,s){var o=0;if(l=e,typeof e=="function")mr(e)&&(o=1);else if(typeof e=="string")o=qg(e,a,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Rt(31,a,t,i),e.elementType=ye,e.lanes=s,e;case q:return xl(a.children,i,s,t);case Y:o=8,i|=24;break;case O:return e=Rt(12,a,t,i|2),e.elementType=O,e.lanes=s,e;case K:return e=Rt(13,a,t,i),e.elementType=K,e.lanes=s,e;case P:return e=Rt(19,a,t,i),e.elementType=P,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:o=10;break e;case X:o=9;break e;case L:o=11;break e;case ee:o=14;break e;case le:o=16,l=null;break e}o=29,a=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=Rt(o,a,t,i),t.elementType=e,t.type=l,t.lanes=s,t}function xl(e,t,a,l){return e=Rt(7,e,l,t),e.lanes=a,e}function yr(e,t,a){return e=Rt(6,e,null,t),e.lanes=a,e}function Jf(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function vr(e,t,a){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $f=new WeakMap;function Lt(e,t){if(typeof e=="object"&&e!==null){var a=$f.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Vo(t)},$f.set(e,t),t)}return{value:e,source:t,stack:Vo(t)}}var ln=[],nn=0,Eu=null,si=0,Bt=[],Qt=0,Ua=null,la=1,na="";function ma(e,t){ln[nn++]=si,ln[nn++]=Eu,Eu=e,si=t}function Ff(e,t,a){Bt[Qt++]=la,Bt[Qt++]=na,Bt[Qt++]=Ua,Ua=e;var l=la;e=na;var i=32-Tt(l)-1;l&=~(1<<i),a+=1;var s=32-Tt(t)+i;if(30<s){var o=i-i%5;s=(l&(1<<o)-1).toString(32),l>>=o,i-=o,la=1<<32-Tt(t)+i|a<<i|l,na=s+e}else la=1<<s|a<<i|l,na=e}function pr(e){e.return!==null&&(ma(e,1),Ff(e,1,0))}function gr(e){for(;e===Eu;)Eu=ln[--nn],ln[nn]=null,si=ln[--nn],ln[nn]=null;for(;e===Ua;)Ua=Bt[--Qt],Bt[Qt]=null,na=Bt[--Qt],Bt[Qt]=null,la=Bt[--Qt],Bt[Qt]=null}function Wf(e,t){Bt[Qt++]=la,Bt[Qt++]=na,Bt[Qt++]=Ua,la=t.id,na=t.overflow,Ua=e}var at=null,De=null,ve=!1,qa=null,kt=!1,br=Error(c(519));function Ha(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ri(Lt(t,e)),br}function Pf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ht]=l,a){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(a=0;a<_i.length;a++)fe(_i[a],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),ff(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),hf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||ym(t.textContent,a)?(l.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),l.onScroll!=null&&fe("scroll",t),l.onScrollEnd!=null&&fe("scrollend",t),l.onClick!=null&&(t.onclick=fa),t=!0):t=!1,t||Ha(e,!0)}function If(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:kt=!1;return;case 27:case 3:kt=!0;return;default:at=at.return}}function un(e){if(e!==at)return!1;if(!ve)return If(e),ve=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Hc(e.type,e.memoizedProps)),a=!a),a&&De&&Ha(e),If(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));De=Nm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));De=Nm(e)}else t===27?(t=De,Wa(e.type)?(e=Yc,Yc=null,De=e):De=t):De=at?Gt(e.stateNode.nextSibling):null;return!0}function Sl(){De=at=null,ve=!1}function xr(){var e=qa;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),qa=null),e}function ri(e){qa===null?qa=[e]:qa.push(e)}var Sr=j(null),El=null,ya=null;function La(e,t,a){V(Sr,t._currentValue),t._currentValue=a}function va(e){e._currentValue=Sr.current,k(Sr)}function Er(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function jr(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=i;for(var b=0;b<t.length;b++)if(h.context===t[b]){s.lanes|=a,h=s.alternate,h!==null&&(h.lanes|=a),Er(s.return,a,e),l||(o=null);break e}s=h.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(c(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),Er(o,a,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function sn(e,t,a,l){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=i.type;Ct(i.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(i===Se.current){if(o=i.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ui):e=[Ui])}i=i.return}e!==null&&jr(t,e,a,l),t.flags|=262144}function ju(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jl(e){El=e,ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return ed(El,e)}function Nu(e,t){return El===null&&jl(e),ed(e,t)}function ed(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ya===null){if(e===null)throw Error(c(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return a}var Mp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},wp=n.unstable_scheduleCallback,Dp=n.unstable_NormalPriority,Ze={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nr(){return{controller:new Mp,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&wp(Dp,function(){e.controller.abort()})}var oi=null,Tr=0,rn=0,cn=null;function Up(e,t){if(oi===null){var a=oi=[];Tr=0,rn=zc(),cn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Tr++,t.then(td,td),t}function td(){if(--Tr===0&&oi!==null){cn!==null&&(cn.status="fulfilled");var e=oi;oi=null,rn=0,cn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qp(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var ad=H.S;H.S=function(e,t){Bh=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Up(e,t),ad!==null&&ad(e,t)};var Nl=j(null);function Cr(){var e=Nl.current;return e!==null?e:Oe.pooledCache}function Tu(e,t){t===null?V(Nl,Nl.current):V(Nl,t.pool)}function ld(){var e=Cr();return e===null?null:{parent:Ze._currentValue,pool:e}}var on=Error(c(460)),Rr=Error(c(474)),Cu=Error(c(542)),Ru={then:function(){}};function nd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function id(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(fa,fa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sd(e),e;default:if(typeof t.status=="string")t.then(fa,fa);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sd(e),e}throw Cl=t,on}}function Tl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Cl=a,on):a}}var Cl=null;function ud(){if(Cl===null)throw Error(c(459));var e=Cl;return Cl=null,e}function sd(e){if(e===on||e===Cu)throw Error(c(483))}var fn=null,fi=0;function zu(e){var t=fi;return fi+=1,fn===null&&(fn=[]),id(fn,e,t)}function di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Au(e,t){throw t.$$typeof===D?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rd(e){function t(T,x){if(e){var R=T.deletions;R===null?(T.deletions=[x],T.flags|=16):R.push(x)}}function a(T,x){if(!e)return null;for(;x!==null;)t(T,x),x=x.sibling;return null}function l(T){for(var x=new Map;T!==null;)T.key!==null?x.set(T.key,T):x.set(T.index,T),T=T.sibling;return x}function i(T,x){return T=ha(T,x),T.index=0,T.sibling=null,T}function s(T,x,R){return T.index=R,e?(R=T.alternate,R!==null?(R=R.index,R<x?(T.flags|=67108866,x):R):(T.flags|=67108866,x)):(T.flags|=1048576,x)}function o(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function h(T,x,R,B){return x===null||x.tag!==6?(x=yr(R,T.mode,B),x.return=T,x):(x=i(x,R),x.return=T,x)}function b(T,x,R,B){var I=R.type;return I===q?U(T,x,R.props.children,B,R.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===le&&Tl(I)===x.type)?(x=i(x,R.props),di(x,R),x.return=T,x):(x=Su(R.type,R.key,R.props,null,T.mode,B),di(x,R),x.return=T,x)}function z(T,x,R,B){return x===null||x.tag!==4||x.stateNode.containerInfo!==R.containerInfo||x.stateNode.implementation!==R.implementation?(x=vr(R,T.mode,B),x.return=T,x):(x=i(x,R.children||[]),x.return=T,x)}function U(T,x,R,B,I){return x===null||x.tag!==7?(x=xl(R,T.mode,B,I),x.return=T,x):(x=i(x,R),x.return=T,x)}function Q(T,x,R){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=yr(""+x,T.mode,R),x.return=T,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case w:return R=Su(x.type,x.key,x.props,null,T.mode,R),di(R,x),R.return=T,R;case M:return x=vr(x,T.mode,R),x.return=T,x;case le:return x=Tl(x),Q(T,x,R)}if(we(x)||Ye(x))return x=xl(x,T.mode,R,null),x.return=T,x;if(typeof x.then=="function")return Q(T,zu(x),R);if(x.$$typeof===G)return Q(T,Nu(T,x),R);Au(T,x)}return null}function A(T,x,R,B){var I=x!==null?x.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return I!==null?null:h(T,x,""+R,B);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case w:return R.key===I?b(T,x,R,B):null;case M:return R.key===I?z(T,x,R,B):null;case le:return R=Tl(R),A(T,x,R,B)}if(we(R)||Ye(R))return I!==null?null:U(T,x,R,B,null);if(typeof R.then=="function")return A(T,x,zu(R),B);if(R.$$typeof===G)return A(T,x,Nu(T,R),B);Au(T,R)}return null}function _(T,x,R,B,I){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return T=T.get(R)||null,h(x,T,""+B,I);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case w:return T=T.get(B.key===null?R:B.key)||null,b(x,T,B,I);case M:return T=T.get(B.key===null?R:B.key)||null,z(x,T,B,I);case le:return B=Tl(B),_(T,x,R,B,I)}if(we(B)||Ye(B))return T=T.get(R)||null,U(x,T,B,I,null);if(typeof B.then=="function")return _(T,x,R,zu(B),I);if(B.$$typeof===G)return _(T,x,R,Nu(x,B),I);Au(x,B)}return null}function $(T,x,R,B){for(var I=null,ge=null,W=x,re=x=0,he=null;W!==null&&re<R.length;re++){W.index>re?(he=W,W=null):he=W.sibling;var be=A(T,W,R[re],B);if(be===null){W===null&&(W=he);break}e&&W&&be.alternate===null&&t(T,W),x=s(be,x,re),ge===null?I=be:ge.sibling=be,ge=be,W=he}if(re===R.length)return a(T,W),ve&&ma(T,re),I;if(W===null){for(;re<R.length;re++)W=Q(T,R[re],B),W!==null&&(x=s(W,x,re),ge===null?I=W:ge.sibling=W,ge=W);return ve&&ma(T,re),I}for(W=l(W);re<R.length;re++)he=_(W,T,re,R[re],B),he!==null&&(e&&he.alternate!==null&&W.delete(he.key===null?re:he.key),x=s(he,x,re),ge===null?I=he:ge.sibling=he,ge=he);return e&&W.forEach(function(al){return t(T,al)}),ve&&ma(T,re),I}function te(T,x,R,B){if(R==null)throw Error(c(151));for(var I=null,ge=null,W=x,re=x=0,he=null,be=R.next();W!==null&&!be.done;re++,be=R.next()){W.index>re?(he=W,W=null):he=W.sibling;var al=A(T,W,be.value,B);if(al===null){W===null&&(W=he);break}e&&W&&al.alternate===null&&t(T,W),x=s(al,x,re),ge===null?I=al:ge.sibling=al,ge=al,W=he}if(be.done)return a(T,W),ve&&ma(T,re),I;if(W===null){for(;!be.done;re++,be=R.next())be=Q(T,be.value,B),be!==null&&(x=s(be,x,re),ge===null?I=be:ge.sibling=be,ge=be);return ve&&ma(T,re),I}for(W=l(W);!be.done;re++,be=R.next())be=_(W,T,re,be.value,B),be!==null&&(e&&be.alternate!==null&&W.delete(be.key===null?re:be.key),x=s(be,x,re),ge===null?I=be:ge.sibling=be,ge=be);return e&&W.forEach(function(Vg){return t(T,Vg)}),ve&&ma(T,re),I}function Ae(T,x,R,B){if(typeof R=="object"&&R!==null&&R.type===q&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case w:e:{for(var I=R.key;x!==null;){if(x.key===I){if(I=R.type,I===q){if(x.tag===7){a(T,x.sibling),B=i(x,R.props.children),B.return=T,T=B;break e}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===le&&Tl(I)===x.type){a(T,x.sibling),B=i(x,R.props),di(B,R),B.return=T,T=B;break e}a(T,x);break}else t(T,x);x=x.sibling}R.type===q?(B=xl(R.props.children,T.mode,B,R.key),B.return=T,T=B):(B=Su(R.type,R.key,R.props,null,T.mode,B),di(B,R),B.return=T,T=B)}return o(T);case M:e:{for(I=R.key;x!==null;){if(x.key===I)if(x.tag===4&&x.stateNode.containerInfo===R.containerInfo&&x.stateNode.implementation===R.implementation){a(T,x.sibling),B=i(x,R.children||[]),B.return=T,T=B;break e}else{a(T,x);break}else t(T,x);x=x.sibling}B=vr(R,T.mode,B),B.return=T,T=B}return o(T);case le:return R=Tl(R),Ae(T,x,R,B)}if(we(R))return $(T,x,R,B);if(Ye(R)){if(I=Ye(R),typeof I!="function")throw Error(c(150));return R=I.call(R),te(T,x,R,B)}if(typeof R.then=="function")return Ae(T,x,zu(R),B);if(R.$$typeof===G)return Ae(T,x,Nu(T,R),B);Au(T,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,x!==null&&x.tag===6?(a(T,x.sibling),B=i(x,R),B.return=T,T=B):(a(T,x),B=yr(R,T.mode,B),B.return=T,T=B),o(T)):a(T,x)}return function(T,x,R,B){try{fi=0;var I=Ae(T,x,R,B);return fn=null,I}catch(W){if(W===on||W===Cu)throw W;var ge=Rt(29,W,null,T.mode);return ge.lanes=B,ge.return=T,ge}finally{}}}var Rl=rd(!0),cd=rd(!1),Ba=!1;function zr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ar(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 Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ka(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(xe&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=xu(e),Zf(e,null,a),t}return bu(e,l,t,a),xu(e)}function hi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Io(e,a)}}function _r(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?i=s=t:s=s.next=t}else i=s=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Or=!1;function mi(){if(Or){var e=cn;if(e!==null)throw e}}function yi(e,t,a,l){Or=!1;var i=e.updateQueue;Ba=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var b=h,z=b.next;b.next=null,o===null?s=z:o.next=z,o=b;var U=e.alternate;U!==null&&(U=U.updateQueue,h=U.lastBaseUpdate,h!==o&&(h===null?U.firstBaseUpdate=z:h.next=z,U.lastBaseUpdate=b))}if(s!==null){var Q=i.baseState;o=0,U=z=b=null,h=s;do{var A=h.lane&-536870913,_=A!==h.lane;if(_?(de&A)===A:(l&A)===A){A!==0&&A===rn&&(Or=!0),U!==null&&(U=U.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var $=e,te=h;A=t;var Ae=a;switch(te.tag){case 1:if($=te.payload,typeof $=="function"){Q=$.call(Ae,Q,A);break e}Q=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=te.payload,A=typeof $=="function"?$.call(Ae,Q,A):$,A==null)break e;Q=E({},Q,A);break e;case 2:Ba=!0}}A=h.callback,A!==null&&(e.flags|=64,_&&(e.flags|=8192),_=i.callbacks,_===null?i.callbacks=[A]:_.push(A))}else _={lane:A,tag:h.tag,payload:h.payload,callback:h.callback,next:null},U===null?(z=U=_,b=Q):U=U.next=_,o|=A;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;_=h,h=_.next,_.next=null,i.lastBaseUpdate=_,i.shared.pending=null}}while(!0);U===null&&(b=Q),i.baseState=b,i.firstBaseUpdate=z,i.lastBaseUpdate=U,s===null&&(i.shared.lanes=0),Za|=o,e.lanes=o,e.memoizedState=Q}}function od(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function fd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)od(a[e],t)}var dn=j(null),_u=j(0);function dd(e,t){e=Ta,V(_u,e),V(dn,t),Ta=e|t.baseLanes}function Mr(){V(_u,Ta),V(dn,dn.current)}function wr(){Ta=_u.current,k(dn),k(_u)}var zt=j(null),Yt=null;function Ya(e){var t=e.alternate;V(Xe,Xe.current&1),V(zt,e),Yt===null&&(t===null||dn.current!==null||t.memoizedState!==null)&&(Yt=e)}function Dr(e){V(Xe,Xe.current),V(zt,e),Yt===null&&(Yt=e)}function hd(e){e.tag===22?(V(Xe,Xe.current),V(zt,e),Yt===null&&(Yt=e)):Ga()}function Ga(){V(Xe,Xe.current),V(zt,zt.current)}function At(e){k(zt),Yt===e&&(Yt=null),k(Xe)}var Xe=j(0);function Ou(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Qc(a)||kc(a)))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 pa=0,se=null,Re=null,Ve=null,Mu=!1,hn=!1,zl=!1,wu=0,vi=0,mn=null,Hp=0;function Le(){throw Error(c(321))}function Ur(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function qr(e,t,a,l,i,s){return pa=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?Fd:Wr,zl=!1,s=a(l,i),zl=!1,hn&&(s=yd(t,a,l,i)),md(e),s}function md(e){H.H=bi;var t=Re!==null&&Re.next!==null;if(pa=0,Ve=Re=se=null,Mu=!1,vi=0,mn=null,t)throw Error(c(300));e===null||Je||(e=e.dependencies,e!==null&&ju(e)&&(Je=!0))}function yd(e,t,a,l){se=e;var i=0;do{if(hn&&(mn=null),vi=0,hn=!1,25<=i)throw Error(c(301));if(i+=1,Ve=Re=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}H.H=Wd,s=t(a,l)}while(hn);return s}function Lp(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?pi(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(se.flags|=1024),t}function Hr(){var e=wu!==0;return wu=0,e}function Lr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Br(e){if(Mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mu=!1}pa=0,Ve=Re=se=null,hn=!1,vi=wu=0,mn=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?se.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ke(){if(Re===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ve===null?se.memoizedState:Ve.next;if(t!==null)Ve=t,Re=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ve===null?se.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pi(e){var t=vi;return vi+=1,mn===null&&(mn=[]),e=id(mn,e,t),t=se,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?Fd:Wr),e}function Uu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pi(e);if(e.$$typeof===G)return lt(e)}throw Error(c(438,String(e)))}function Qr(e){var t=null,a=se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=se.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Du(),se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Me;return t.index++,a}function ga(e,t){return typeof t=="function"?t(e):t}function qu(e){var t=Ke();return kr(t,Re,e)}function kr(e,t,a){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var i=e.baseQueue,s=l.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}t.baseQueue=i=s,l.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var h=o=null,b=null,z=t,U=!1;do{var Q=z.lane&-536870913;if(Q!==z.lane?(de&Q)===Q:(pa&Q)===Q){var A=z.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Q===rn&&(U=!0);else if((pa&A)===A){z=z.next,A===rn&&(U=!0);continue}else Q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(h=b=Q,o=s):b=b.next=Q,se.lanes|=A,Za|=A;Q=z.action,zl&&a(s,Q),s=z.hasEagerState?z.eagerState:a(s,Q)}else A={lane:Q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(h=b=A,o=s):b=b.next=A,se.lanes|=Q,Za|=Q;z=z.next}while(z!==null&&z!==t);if(b===null?o=s:b.next=h,!Ct(s,e.memoizedState)&&(Je=!0,U&&(a=cn,a!==null)))throw a;e.memoizedState=s,e.baseState=o,e.baseQueue=b,l.lastRenderedState=s}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Yr(e){var t=Ke(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,s=t.memoizedState;if(i!==null){a.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Ct(s,t.memoizedState)||(Je=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function vd(e,t,a){var l=se,i=Ke(),s=ve;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=t();var o=!Ct((Re||i).memoizedState,a);if(o&&(i.memoizedState=a,Je=!0),i=i.queue,Kr(bd.bind(null,l,i,e),[e]),i.getSnapshot!==t||o||Ve!==null&&Ve.memoizedState.tag&1){if(l.flags|=2048,yn(9,{destroy:void 0},gd.bind(null,l,i,a,t),null),Oe===null)throw Error(c(349));s||(pa&127)!==0||pd(l,t,a)}return a}function pd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=se.updateQueue,t===null?(t=Du(),se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function gd(e,t,a,l){t.value=a,t.getSnapshot=l,xd(t)&&Sd(e)}function bd(e,t,a){return a(function(){xd(t)&&Sd(e)})}function xd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Sd(e){var t=bl(e,2);t!==null&&bt(t,e,2)}function Gr(e){var t=ft();if(typeof e=="function"){var a=e;if(e=a(),zl){Ma(!0);try{a()}finally{Ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function Ed(e,t,a,l){return e.baseState=a,kr(e,Re,typeof l=="function"?l:ga)}function Bp(e,t,a,l,i){if(Bu(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};H.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,jd(t,s)):(s.next=a.next,t.pending=a.next=s)}}function jd(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var s=H.T,o={};H.T=o;try{var h=a(i,l),b=H.S;b!==null&&b(o,h),Nd(e,t,h)}catch(z){Xr(e,t,z)}finally{s!==null&&o.types!==null&&(s.types=o.types),H.T=s}}else try{s=a(i,l),Nd(e,t,s)}catch(z){Xr(e,t,z)}}function Nd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Td(e,t,l)},function(l){return Xr(e,t,l)}):Td(e,t,a)}function Td(e,t,a){t.status="fulfilled",t.value=a,Cd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,jd(e,a)))}function Xr(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Cd(t),t=t.next;while(t!==l)}e.action=null}function Cd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rd(e,t){return t}function zd(e,t){if(ve){var a=Oe.formState;if(a!==null){e:{var l=se;if(ve){if(De){t:{for(var i=De,s=kt;i.nodeType!==8;){if(!s){i=null;break t}if(i=Gt(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){De=Gt(i.nextSibling),l=i.data==="F!";break e}}Ha(l)}l=!1}l&&(t=a[0])}}return a=ft(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rd,lastRenderedState:t},a.queue=l,a=Vd.bind(null,se,l),l.dispatch=a,l=Gr(!1),s=Fr.bind(null,se,!1,l.queue),l=ft(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=Bp.bind(null,se,i,s,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Ad(e){var t=Ke();return _d(t,Re,e)}function _d(e,t,a){if(t=kr(e,t,Rd)[0],e=qu(ga)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=pi(t)}catch(o){throw o===on?Cu:o}else l=t;t=Ke();var i=t.queue,s=i.dispatch;return a!==t.memoizedState&&(se.flags|=2048,yn(9,{destroy:void 0},Qp.bind(null,i,a),null)),[l,s,e]}function Qp(e,t){e.action=t}function Od(e){var t=Ke(),a=Re;if(a!==null)return _d(t,a,e);Ke(),t=t.memoizedState,a=Ke();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function yn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=se.updateQueue,t===null&&(t=Du(),se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Md(){return Ke().memoizedState}function Hu(e,t,a,l){var i=ft();se.flags|=e,i.memoizedState=yn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Lu(e,t,a,l){var i=Ke();l=l===void 0?null:l;var s=i.memoizedState.inst;Re!==null&&l!==null&&Ur(l,Re.memoizedState.deps)?i.memoizedState=yn(t,s,a,l):(se.flags|=e,i.memoizedState=yn(1|t,s,a,l))}function wd(e,t){Hu(8390656,8,e,t)}function Kr(e,t){Lu(2048,8,e,t)}function kp(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Du(),se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Dd(e){var t=Ke().memoizedState;return kp({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Ud(e,t){return Lu(4,2,e,t)}function qd(e,t){return Lu(4,4,e,t)}function Hd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ld(e,t,a){a=a!=null?a.concat([e]):null,Lu(4,4,Hd.bind(null,t,e),a)}function Zr(){}function Bd(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Ur(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Qd(e,t){var a=Ke();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Ur(t,l[1]))return l[0];if(l=e(),zl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l}function Vr(e,t,a){return a===void 0||(pa&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=kh(),se.lanes|=e,Za|=e,a)}function kd(e,t,a,l){return Ct(a,t)?a:dn.current!==null?(e=Vr(e,a,l),Ct(e,t)||(Je=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(de&261930)===0?(Je=!0,e.memoizedState=a):(e=kh(),se.lanes|=e,Za|=e,t)}function Yd(e,t,a,l,i){var s=Z.p;Z.p=s!==0&&8>s?s:8;var o=H.T,h={};H.T=h,Fr(e,!1,t,a);try{var b=i(),z=H.S;if(z!==null&&z(h,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var U=qp(b,l);gi(e,t,U,Mt(e))}else gi(e,t,l,Mt(e))}catch(Q){gi(e,t,{then:function(){},status:"rejected",reason:Q},Mt())}finally{Z.p=s,o!==null&&h.types!==null&&(o.types=h.types),H.T=o}}function Yp(){}function Jr(e,t,a,l){if(e.tag!==5)throw Error(c(476));var i=Gd(e).queue;Yd(e,i,t,ne,a===null?Yp:function(){return Xd(e),a(l)})}function Gd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xd(e){var t=Gd(e);t.next===null&&(t=e.alternate.memoizedState),gi(e,t.next.queue,{},Mt())}function $r(){return lt(Ui)}function Kd(){return Ke().memoizedState}function Zd(){return Ke().memoizedState}function Gp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Mt();e=Qa(a);var l=ka(t,e,a);l!==null&&(bt(l,t,a),hi(l,t,a)),t={cache:Nr()},e.payload=t;return}t=t.return}}function Xp(e,t,a){var l=Mt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bu(e)?Jd(t,a):(a=hr(e,t,a,l),a!==null&&(bt(a,e,l),$d(a,t,l)))}function Vd(e,t,a){var l=Mt();gi(e,t,a,l)}function gi(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bu(e))Jd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,h=s(o,a);if(i.hasEagerState=!0,i.eagerState=h,Ct(h,o))return bu(e,t,i,0),Oe===null&&gu(),!1}catch{}finally{}if(a=hr(e,t,i,l),a!==null)return bt(a,e,l),$d(a,t,l),!0}return!1}function Fr(e,t,a,l){if(l={lane:2,revertLane:zc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bu(e)){if(t)throw Error(c(479))}else t=hr(e,a,l,2),t!==null&&bt(t,e,2)}function Bu(e){var t=e.alternate;return e===se||t!==null&&t===se}function Jd(e,t){hn=Mu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function $d(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Io(e,a)}}var bi={readContext:lt,use:Uu,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};bi.useEffectEvent=Le;var Fd={readContext:lt,use:Uu,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:wd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Hu(4194308,4,Hd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Hu(4194308,4,e,t)},useInsertionEffect:function(e,t){Hu(4,2,e,t)},useMemo:function(e,t){var a=ft();t=t===void 0?null:t;var l=e();if(zl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ft();if(a!==void 0){var i=a(t);if(zl){Ma(!0);try{a(t)}finally{Ma(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=Xp.bind(null,se,e),[l.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Gr(e);var t=e.queue,a=Vd.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Zr,useDeferredValue:function(e,t){var a=ft();return Vr(a,e,t)},useTransition:function(){var e=Gr(!1);return e=Yd.bind(null,se,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=se,i=ft();if(ve){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),Oe===null)throw Error(c(349));(de&127)!==0||pd(l,t,a)}i.memoizedState=a;var s={value:a,getSnapshot:t};return i.queue=s,wd(bd.bind(null,l,s,e),[e]),l.flags|=2048,yn(9,{destroy:void 0},gd.bind(null,l,s,a,t),null),a},useId:function(){var e=ft(),t=Oe.identifierPrefix;if(ve){var a=na,l=la;a=(l&~(1<<32-Tt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=wu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Hp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$r,useFormState:zd,useActionState:zd,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Fr.bind(null,se,!0,a),a.dispatch=t,[e,t]},useMemoCache:Qr,useCacheRefresh:function(){return ft().memoizedState=Gp.bind(null,se)},useEffectEvent:function(e){var t=ft(),a={impl:e};return t.memoizedState=a,function(){if((xe&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},Wr={readContext:lt,use:Uu,useCallback:Bd,useContext:lt,useEffect:Kr,useImperativeHandle:Ld,useInsertionEffect:Ud,useLayoutEffect:qd,useMemo:Qd,useReducer:qu,useRef:Md,useState:function(){return qu(ga)},useDebugValue:Zr,useDeferredValue:function(e,t){var a=Ke();return kd(a,Re.memoizedState,e,t)},useTransition:function(){var e=qu(ga)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:pi(e),t]},useSyncExternalStore:vd,useId:Kd,useHostTransitionStatus:$r,useFormState:Ad,useActionState:Ad,useOptimistic:function(e,t){var a=Ke();return Ed(a,Re,e,t)},useMemoCache:Qr,useCacheRefresh:Zd};Wr.useEffectEvent=Dd;var Wd={readContext:lt,use:Uu,useCallback:Bd,useContext:lt,useEffect:Kr,useImperativeHandle:Ld,useInsertionEffect:Ud,useLayoutEffect:qd,useMemo:Qd,useReducer:Yr,useRef:Md,useState:function(){return Yr(ga)},useDebugValue:Zr,useDeferredValue:function(e,t){var a=Ke();return Re===null?Vr(a,e,t):kd(a,Re.memoizedState,e,t)},useTransition:function(){var e=Yr(ga)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:pi(e),t]},useSyncExternalStore:vd,useId:Kd,useHostTransitionStatus:$r,useFormState:Od,useActionState:Od,useOptimistic:function(e,t){var a=Ke();return Re!==null?Ed(a,Re,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Qr,useCacheRefresh:Zd};Wd.useEffectEvent=Dd;function Pr(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:E({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ir={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Mt(),i=Qa(l);i.payload=t,a!=null&&(i.callback=a),t=ka(e,i,l),t!==null&&(bt(t,e,l),hi(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Mt(),i=Qa(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=ka(e,i,l),t!==null&&(bt(t,e,l),hi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mt(),l=Qa(a);l.tag=2,t!=null&&(l.callback=t),t=ka(e,l,a),t!==null&&(bt(t,e,a),hi(t,e,a))}};function Pd(e,t,a,l,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,o):t.prototype&&t.prototype.isPureReactComponent?!ii(a,l)||!ii(i,s):!0}function Id(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Ir.enqueueReplaceState(t,t.state,null)}function Al(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=E({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function eh(e){pu(e)}function th(e){console.error(e)}function ah(e){pu(e)}function Qu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function lh(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ec(e,t,a){return a=Qa(a),a.tag=3,a.payload={element:null},a.callback=function(){Qu(e,t)},a}function nh(e){return e=Qa(e),e.tag=3,e}function ih(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var s=l.value;e.payload=function(){return i(s)},e.callback=function(){lh(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){lh(t,a,l),typeof i!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Kp(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&sn(t,a,i,!0),a=zt.current,a!==null){switch(a.tag){case 31:case 13:return Yt===null?Pu():a.alternate===null&&Be===0&&(Be=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===Ru?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Tc(e,l,i)),!1;case 22:return a.flags|=65536,l===Ru?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Tc(e,l,i)),!1}throw Error(c(435,a.tag))}return Tc(e,l,i),Pu(),!1}if(ve)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==br&&(e=Error(c(422),{cause:l}),ri(Lt(e,a)))):(l!==br&&(t=Error(c(423),{cause:l}),ri(Lt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Lt(l,a),i=ec(e.stateNode,l,i),_r(e,i),Be!==4&&(Be=2)),!1;var s=Error(c(520),{cause:l});if(s=Lt(s,a),Ri===null?Ri=[s]:Ri.push(s),Be!==4&&(Be=2),t===null)return!0;l=Lt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=ec(a.stateNode,l,e),_r(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Va===null||!Va.has(s))))return a.flags|=65536,i&=-i,a.lanes|=i,i=nh(i),ih(i,e,a,l),_r(a,i),!1}a=a.return}while(a!==null);return!1}var tc=Error(c(461)),Je=!1;function nt(e,t,a,l){t.child=e===null?cd(t,null,a,l):Rl(t,e.child,a,l)}function uh(e,t,a,l,i){a=a.render;var s=t.ref;if("ref"in l){var o={};for(var h in l)h!=="ref"&&(o[h]=l[h])}else o=l;return jl(t),l=qr(e,t,a,o,s,i),h=Hr(),e!==null&&!Je?(Lr(e,t,i),ba(e,t,i)):(ve&&h&&pr(t),t.flags|=1,nt(e,t,l,i),t.child)}function sh(e,t,a,l,i){if(e===null){var s=a.type;return typeof s=="function"&&!mr(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,rh(e,t,s,l,i)):(e=Su(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!cc(e,i)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:ii,a(o,l)&&e.ref===t.ref)return ba(e,t,i)}return t.flags|=1,e=ha(s,l),e.ref=t.ref,e.return=t,t.child=e}function rh(e,t,a,l,i){if(e!==null){var s=e.memoizedProps;if(ii(s,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=s,cc(e,i))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,ba(e,t,i)}return ac(e,t,a,l,i)}function ch(e,t,a,l){var i=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~s}else l=0,t.child=null;return oh(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Tu(t,s!==null?s.cachePool:null),s!==null?dd(t,s):Mr(),hd(t);else return l=t.lanes=536870912,oh(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(Tu(t,s.cachePool),dd(t,s),Ga(),t.memoizedState=null):(e!==null&&Tu(t,null),Mr(),Ga());return nt(e,t,i,a),t.child}function xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function oh(e,t,a,l,i){var s=Cr();return s=s===null?null:{parent:Ze._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Tu(t,null),Mr(),hd(t),e!==null&&sn(e,t,l,!0),t.childLanes=i,null}function ku(e,t){return t=Gu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fh(e,t,a){return Rl(t,e.child,null,a),e=ku(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Zp(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(l.mode==="hidden")return e=ku(t,l),t.lanes=536870912,xi(null,e);if(Dr(t),(e=De)?(e=jm(e,kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:la,overflow:na}:null,retryLane:536870912,hydrationErrors:null},a=Jf(e),a.return=t,t.child=a,at=t,De=null)):e=null,e===null)throw Ha(t);return t.lanes=536870912,null}return ku(t,l)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(Dr(t),i)if(t.flags&256)t.flags&=-257,t=fh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Je||sn(e,t,a,!1),i=(a&e.childLanes)!==0,Je||i){if(l=Oe,l!==null&&(o=ef(l,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,bl(e,o),bt(l,e,o),tc;Pu(),t=fh(e,t,a)}else e=s.treeContext,De=Gt(o.nextSibling),at=t,ve=!0,qa=null,kt=!1,e!==null&&Wf(t,e),t=ku(t,l),t.flags|=4096;return t}return e=ha(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ac(e,t,a,l,i){return jl(t),a=qr(e,t,a,l,void 0,i),l=Hr(),e!==null&&!Je?(Lr(e,t,i),ba(e,t,i)):(ve&&l&&pr(t),t.flags|=1,nt(e,t,a,i),t.child)}function dh(e,t,a,l,i,s){return jl(t),t.updateQueue=null,a=yd(t,l,a,i),md(e),l=Hr(),e!==null&&!Je?(Lr(e,t,s),ba(e,t,s)):(ve&&l&&pr(t),t.flags|=1,nt(e,t,a,s),t.child)}function hh(e,t,a,l,i){if(jl(t),t.stateNode===null){var s=an,o=a.contextType;typeof o=="object"&&o!==null&&(s=lt(o)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ir,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},zr(t),o=a.contextType,s.context=typeof o=="object"&&o!==null?lt(o):an,s.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Pr(t,a,o,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&Ir.enqueueReplaceState(s,s.state,null),yi(t,l,s,i),mi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,b=Al(a,h);s.props=b;var z=s.context,U=a.contextType;o=an,typeof U=="object"&&U!==null&&(o=lt(U));var Q=a.getDerivedStateFromProps;U=typeof Q=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,U||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||z!==o)&&Id(t,s,l,o),Ba=!1;var A=t.memoizedState;s.state=A,yi(t,l,s,i),mi(),z=t.memoizedState,h||A!==z||Ba?(typeof Q=="function"&&(Pr(t,a,Q,l),z=t.memoizedState),(b=Ba||Pd(t,a,b,l,A,z,o))?(U||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),s.props=l,s.state=z,s.context=o,l=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,Ar(e,t),o=t.memoizedProps,U=Al(a,o),s.props=U,Q=t.pendingProps,A=s.context,z=a.contextType,b=an,typeof z=="object"&&z!==null&&(b=lt(z)),h=a.getDerivedStateFromProps,(z=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==Q||A!==b)&&Id(t,s,l,b),Ba=!1,A=t.memoizedState,s.state=A,yi(t,l,s,i),mi();var _=t.memoizedState;o!==Q||A!==_||Ba||e!==null&&e.dependencies!==null&&ju(e.dependencies)?(typeof h=="function"&&(Pr(t,a,h,l),_=t.memoizedState),(U=Ba||Pd(t,a,U,l,A,_,b)||e!==null&&e.dependencies!==null&&ju(e.dependencies))?(z||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,_,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,_,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=_),s.props=l,s.state=_,s.context=b,l=U):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Yu(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Rl(t,e.child,null,i),t.child=Rl(t,null,a,i)):nt(e,t,a,i),t.memoizedState=s.state,e=t.child):e=ba(e,t,i),e}function mh(e,t,a,l){return Sl(),t.flags|=256,nt(e,t,a,l),t.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nc(e){return{baseLanes:e,cachePool:ld()}}function ic(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ot),e}function yh(e,t,a){var l=t.pendingProps,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(i?Ya(t):Ga(),(e=De)?(e=jm(e,kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:la,overflow:na}:null,retryLane:536870912,hydrationErrors:null},a=Jf(e),a.return=t,t.child=a,at=t,De=null)):e=null,e===null)throw Ha(t);return kc(e)?t.lanes=32:t.lanes=536870912,null}var h=l.children;return l=l.fallback,i?(Ga(),i=t.mode,h=Gu({mode:"hidden",children:h},i),l=xl(l,i,a,null),h.return=t,l.return=t,h.sibling=l,t.child=h,l=t.child,l.memoizedState=nc(a),l.childLanes=ic(e,o,a),t.memoizedState=lc,xi(null,l)):(Ya(t),uc(t,h))}var b=e.memoizedState;if(b!==null&&(h=b.dehydrated,h!==null)){if(s)t.flags&256?(Ya(t),t.flags&=-257,t=sc(e,t,a)):t.memoizedState!==null?(Ga(),t.child=e.child,t.flags|=128,t=null):(Ga(),h=l.fallback,i=t.mode,l=Gu({mode:"visible",children:l.children},i),h=xl(h,i,a,null),h.flags|=2,l.return=t,h.return=t,l.sibling=h,t.child=l,Rl(t,e.child,null,a),l=t.child,l.memoizedState=nc(a),l.childLanes=ic(e,o,a),t.memoizedState=lc,t=xi(null,l));else if(Ya(t),kc(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var z=o.dgst;o=z,l=Error(c(419)),l.stack="",l.digest=o,ri({value:l,source:null,stack:null}),t=sc(e,t,a)}else if(Je||sn(e,t,a,!1),o=(a&e.childLanes)!==0,Je||o){if(o=Oe,o!==null&&(l=ef(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,bl(e,l),bt(o,e,l),tc;Qc(h)||Pu(),t=sc(e,t,a)}else Qc(h)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,De=Gt(h.nextSibling),at=t,ve=!0,qa=null,kt=!1,e!==null&&Wf(t,e),t=uc(t,l.children),t.flags|=4096);return t}return i?(Ga(),h=l.fallback,i=t.mode,b=e.child,z=b.sibling,l=ha(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,z!==null?h=ha(z,h):(h=xl(h,i,a,null),h.flags|=2),h.return=t,l.return=t,l.sibling=h,t.child=l,xi(null,l),l=t.child,h=e.child.memoizedState,h===null?h=nc(a):(i=h.cachePool,i!==null?(b=Ze._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=ld(),h={baseLanes:h.baseLanes|a,cachePool:i}),l.memoizedState=h,l.childLanes=ic(e,o,a),t.memoizedState=lc,xi(e.child,l)):(Ya(t),a=e.child,e=a.sibling,a=ha(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function uc(e,t){return t=Gu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Gu(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function sc(e,t,a){return Rl(t,e.child,null,a),e=uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Er(e.return,t,a)}function rc(e,t,a,l,i,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=i,o.treeForkCount=s)}function ph(e,t,a){var l=t.pendingProps,i=l.revealOrder,s=l.tail;l=l.children;var o=Xe.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,V(Xe,o),nt(e,t,l,a),l=ve?si:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vh(e,a,t);else if(e.tag===19)vh(e,a,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(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Ou(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),rc(t,!1,i,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ou(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}rc(t,!0,a,null,s,l);break;case"together":rc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ba(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(sn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=ha(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ha(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ju(e)))}function Vp(e,t,a){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),La(t,Ze,e.memoizedState.cache),Sl();break;case 27:case 5:Zn(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:La(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Dr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ya(t),t.flags|=128,null):(a&t.child.childLanes)!==0?yh(e,t,a):(Ya(t),e=ba(e,t,a),e!==null?e.sibling:null);Ya(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(sn(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return ph(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,ch(e,t,a,t.pendingProps);case 24:La(t,Ze,e.memoizedState.cache)}return ba(e,t,a)}function gh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!cc(e,a)&&(t.flags&128)===0)return Je=!1,Vp(e,t,a);Je=(e.flags&131072)!==0}else Je=!1,ve&&(t.flags&1048576)!==0&&Ff(t,si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tl(t.elementType),t.type=e,typeof e=="function")mr(e)?(l=Al(e,l),t.tag=1,t=hh(null,t,e,l,a)):(t.tag=0,t=ac(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===L){t.tag=11,t=uh(null,t,e,l,a);break e}else if(i===ee){t.tag=14,t=sh(null,t,e,l,a);break e}}throw t=et(e)||e,Error(c(306,t,""))}}return t;case 0:return ac(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=Al(l,t.pendingProps),hh(e,t,l,i,a);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var s=t.memoizedState;i=s.element,Ar(e,t),yi(t,l,null,a);var o=t.memoizedState;if(l=o.cache,La(t,Ze,l),l!==s.cache&&jr(t,[Ze],a,!0),mi(),l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=mh(e,t,l,a);break e}else if(l!==i){i=Lt(Error(c(424)),t),ri(i),t=mh(e,t,l,a);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(De=Gt(e.firstChild),at=t,ve=!0,qa=null,kt=!0,a=cd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Sl(),l===i){t=ba(e,t,a);break e}nt(e,t,l,a)}t=t.child}return t;case 26:return Yu(e,t),e===null?(a=Am(t.type,null,t.pendingProps,null))?t.memoizedState=a:ve||(a=t.type,e=t.pendingProps,l=is(ce.current).createElement(a),l[tt]=t,l[ht]=e,it(l,a,e),We(l),t.stateNode=l):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zn(t),e===null&&ve&&(l=t.stateNode=Cm(t.type,t.pendingProps,ce.current),at=t,kt=!0,i=De,Wa(t.type)?(Yc=i,De=Gt(l.firstChild)):De=i),nt(e,t,t.pendingProps.children,a),Yu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((i=l=De)&&(l=jg(l,t.type,t.pendingProps,kt),l!==null?(t.stateNode=l,at=t,De=Gt(l.firstChild),kt=!1,i=!0):i=!1),i||Ha(t)),Zn(t),i=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,Hc(i,s)?l=null:o!==null&&Hc(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=qr(e,t,Lp,null,null,a),Ui._currentValue=i),Yu(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&ve&&((e=a=De)&&(a=Ng(a,t.pendingProps,kt),a!==null?(t.stateNode=a,at=t,De=null,e=!0):e=!1),e||Ha(t)),null;case 13:return yh(e,t,a);case 4:return ot(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Rl(t,null,l,a):nt(e,t,l,a),t.child;case 11:return uh(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,La(t,t.type,l.value),nt(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,jl(t),i=lt(i),l=l(i),t.flags|=1,nt(e,t,l,a),t.child;case 14:return sh(e,t,t.type,t.pendingProps,a);case 15:return rh(e,t,t.type,t.pendingProps,a);case 19:return ph(e,t,a);case 31:return Zp(e,t,a);case 22:return ch(e,t,a,t.pendingProps);case 24:return jl(t),l=lt(Ze),e===null?(i=Cr(),i===null&&(i=Oe,s=Nr(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=a),i=s),t.memoizedState={parent:l,cache:i},zr(t),La(t,Ze,i)):((e.lanes&a)!==0&&(Ar(e,t),yi(t,null,null,a),mi()),i=e.memoizedState,s=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),La(t,Ze,l)):(l=s.cache,La(t,Ze,l),l!==i.cache&&jr(t,[Ze],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function xa(e){e.flags|=4}function oc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Kh())e.flags|=8192;else throw Cl=Ru,Rr}else e.flags&=-16777217}function bh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dm(t))if(Kh())e.flags|=8192;else throw Cl=Ru,Rr}function Xu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Wo():536870912,e.lanes|=t,bn|=t)}function Si(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Jp(e,t,a){var l=t.pendingProps;switch(gr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),va(Ze),Ge(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(un(t)?xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xr())),Ue(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(xa(t),s!==null?(Ue(t),bh(t,s)):(Ue(t),oc(t,i,null,l,a))):s?s!==e.memoizedState?(xa(t),Ue(t),bh(t,s)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&xa(t),Ue(t),oc(t,i,e,l,a)),null;case 27:if(tu(t),a=ce.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&xa(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}e=F.current,un(t)?Pf(t):(e=Cm(i,l,a),t.stateNode=e,xa(t))}return Ue(t),null;case 5:if(tu(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&xa(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}if(s=F.current,un(t))Pf(t);else{var o=is(ce.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?o.createElement(i,{is:l.is}):o.createElement(i)}}s[tt]=t,s[ht]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(it(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&xa(t)}}return Ue(t),oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&xa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=ce.current,un(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=at,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[tt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||ym(e.nodeValue,a)),e||Ha(t,!0)}else e=is(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=un(t),a!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[tt]=t}else Sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else a=xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=un(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[tt]=t}else Sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),i=!1}else i=xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Xu(t,t.updateQueue),Ue(t),null);case 4:return Ge(),e===null&&Mc(t.stateNode.containerInfo),Ue(t),null;case 10:return va(t.type),Ue(t),null;case 19:if(k(Xe),l=t.memoizedState,l===null)return Ue(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)Si(l,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ou(e),s!==null){for(t.flags|=128,Si(l,!1),e=s.updateQueue,t.updateQueue=e,Xu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Vf(a,e),a=a.sibling;return V(Xe,Xe.current&1|2),ve&&ma(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&jt()>$u&&(t.flags|=128,i=!0,Si(l,!1),t.lanes=4194304)}else{if(!i)if(e=Ou(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Xu(t,e),Si(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ve)return Ue(t),null}else 2*jt()-l.renderingStartTime>$u&&a!==536870912&&(t.flags|=128,i=!0,Si(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=jt(),e.sibling=null,a=Xe.current,V(Xe,i?a&1|2:a&1),ve&&ma(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return At(t),wr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),a=t.updateQueue,a!==null&&Xu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&k(Nl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),va(Ze),Ue(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function $p(e,t){switch(gr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(Ze),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return tu(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(c(340));Sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(Xe),null;case 4:return Ge(),null;case 10:return va(t.type),null;case 22:case 23:return At(t),wr(),e!==null&&k(Nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va(Ze),null;case 25:return null;default:return null}}function xh(e,t){switch(gr(t),t.tag){case 3:va(Ze),Ge();break;case 26:case 27:case 5:tu(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:k(Xe);break;case 10:va(t.type);break;case 22:case 23:At(t),wr(),e!==null&&k(Nl);break;case 24:va(Ze)}}function Ei(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var s=a.create,o=a.inst;l=s(),o.destroy=l}a=a.next}while(a!==i)}}catch(h){Te(t,t.return,h)}}function Xa(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){var o=l.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,i=t;var b=a,z=h;try{z()}catch(U){Te(i,b,U)}}}l=l.next}while(l!==s)}}catch(U){Te(t,t.return,U)}}function Sh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{fd(t,a)}catch(l){Te(e,e.return,l)}}}function Eh(e,t,a){a.props=Al(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Te(e,t,l)}}function ji(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Te(e,t,i)}}function ia(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Te(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Te(e,t,i)}else a.current=null}function jh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Te(e,e.return,i)}}function fc(e,t,a){try{var l=e.stateNode;pg(l,e.type,a,t),l[ht]=t}catch(i){Te(e,e.return,i)}}function Nh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wa(e.type)||e.tag===4}function dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nh(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&&Wa(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 hc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=fa));else if(l!==4&&(l===27&&Wa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(hc(e,t,a),e=e.sibling;e!==null;)hc(e,t,a),e=e.sibling}function Ku(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Wa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ku(e,t,a),e=e.sibling;e!==null;)Ku(e,t,a),e=e.sibling}function Th(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);it(t,l,a),t[tt]=e,t[ht]=a}catch(s){Te(e,e.return,s)}}var Sa=!1,$e=!1,mc=!1,Ch=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Fp(e,t){if(e=e.containerInfo,Uc=ds,e=Lf(e),sr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var o=0,h=-1,b=-1,z=0,U=0,Q=e,A=null;t:for(;;){for(var _;Q!==a||i!==0&&Q.nodeType!==3||(h=o+i),Q!==s||l!==0&&Q.nodeType!==3||(b=o+l),Q.nodeType===3&&(o+=Q.nodeValue.length),(_=Q.firstChild)!==null;)A=Q,Q=_;for(;;){if(Q===e)break t;if(A===a&&++z===i&&(h=o),A===s&&++U===l&&(b=o),(_=Q.nextSibling)!==null)break;Q=A,A=Q.parentNode}Q=_}a=h===-1||b===-1?null:{start:h,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(qc={focusedElem:e,selectionRange:a},ds=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,s=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(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,i=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var $=Al(a.type,i);e=l.getSnapshotBeforeUpdate($,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(te){Te(a,a.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Bc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bc(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function Rh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ja(e,a),l&4&&Ei(5,a);break;case 1:if(ja(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Te(a,a.return,o)}else{var i=Al(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Te(a,a.return,o)}}l&64&&Sh(a),l&512&&ji(a,a.return);break;case 3:if(ja(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{fd(e,t)}catch(o){Te(a,a.return,o)}}break;case 27:t===null&&l&4&&Th(a);case 26:case 5:ja(e,a),t===null&&l&4&&jh(a),l&512&&ji(a,a.return);break;case 12:ja(e,a);break;case 31:ja(e,a),l&4&&_h(e,a);break;case 13:ja(e,a),l&4&&Oh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ig.bind(null,a),Tg(e,a))));break;case 22:if(l=a.memoizedState!==null||Sa,!l){t=t!==null&&t.memoizedState!==null||$e,i=Sa;var s=$e;Sa=l,($e=t)&&!s?Na(e,a,(a.subtreeFlags&8772)!==0):ja(e,a),Sa=i,$e=s}break;case 30:break;default:ja(e,a)}}function zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xs(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 qe=null,yt=!1;function Ea(e,t,a){for(a=a.child;a!==null;)Ah(e,t,a),a=a.sibling}function Ah(e,t,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Vn,a)}catch{}switch(a.tag){case 26:$e||ia(a,t),Ea(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||ia(a,t);var l=qe,i=yt;Wa(a.type)&&(qe=a.stateNode,yt=!1),Ea(e,t,a),Mi(a.stateNode),qe=l,yt=i;break;case 5:$e||ia(a,t);case 6:if(l=qe,i=yt,qe=null,Ea(e,t,a),qe=l,yt=i,qe!==null)if(yt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(a.stateNode)}catch(s){Te(a,t,s)}else try{qe.removeChild(a.stateNode)}catch(s){Te(a,t,s)}break;case 18:qe!==null&&(yt?(e=qe,Sm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Rn(e)):Sm(qe,a.stateNode));break;case 4:l=qe,i=yt,qe=a.stateNode.containerInfo,yt=!0,Ea(e,t,a),qe=l,yt=i;break;case 0:case 11:case 14:case 15:Xa(2,a,t),$e||Xa(4,a,t),Ea(e,t,a);break;case 1:$e||(ia(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Eh(a,t,l)),Ea(e,t,a);break;case 21:Ea(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,Ea(e,t,a),$e=l;break;default:Ea(e,t,a)}}function _h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Rn(e)}catch(a){Te(t,t.return,a)}}}function Oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Rn(e)}catch(a){Te(t,t.return,a)}}function Wp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ch),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ch),t;default:throw Error(c(435,e.tag))}}function Zu(e,t){var a=Wp(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=ug.bind(null,e,l);l.then(i,i)}})}function vt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],s=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(Wa(h.type)){qe=h.stateNode,yt=!1;break e}break;case 5:qe=h.stateNode,yt=!1;break e;case 3:case 4:qe=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(qe===null)throw Error(c(160));Ah(s,o,i),qe=null,yt=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mh(t,e),t=t.sibling}var Pt=null;function Mh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),pt(e),l&4&&(Xa(3,e,e.return),Ei(3,e),Xa(5,e,e.return));break;case 1:vt(t,e),pt(e),l&512&&($e||a===null||ia(a,a.return)),l&64&&Sa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Pt;if(vt(t,e),pt(e),l&512&&($e||a===null||ia(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":s=i.getElementsByTagName("title")[0],(!s||s[Fn]||s[tt]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(l),i.head.insertBefore(s,i.querySelector("head > title"))),it(s,l,a),s[tt]=e,We(s),l=s;break e;case"link":var o=Mm("link","href",i).get(l+(a.href||""));if(o){for(var h=0;h<o.length;h++)if(s=o[h],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(h,1);break t}}s=i.createElement(l),it(s,l,a),i.head.appendChild(s);break;case"meta":if(o=Mm("meta","content",i).get(l+(a.content||""))){for(h=0;h<o.length;h++)if(s=o[h],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(h,1);break t}}s=i.createElement(l),it(s,l,a),i.head.appendChild(s);break;default:throw Error(c(468,l))}s[tt]=e,We(s),l=s}e.stateNode=l}else wm(i,e.type,e.stateNode);else e.stateNode=Om(i,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?wm(i,e.type,e.stateNode):Om(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&fc(e,e.memoizedProps,a.memoizedProps)}break;case 27:vt(t,e),pt(e),l&512&&($e||a===null||ia(a,a.return)),a!==null&&l&4&&fc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(vt(t,e),pt(e),l&512&&($e||a===null||ia(a,a.return)),e.flags&32){i=e.stateNode;try{$l(i,"")}catch($){Te(e,e.return,$)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,fc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(mc=!0);break;case 6:if(vt(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch($){Te(e,e.return,$)}}break;case 3:if(rs=null,i=Pt,Pt=us(t.containerInfo),vt(t,e),Pt=i,pt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Rn(t.containerInfo)}catch($){Te(e,e.return,$)}mc&&(mc=!1,wh(e));break;case 4:l=Pt,Pt=us(e.stateNode.containerInfo),vt(t,e),pt(e),Pt=l;break;case 12:vt(t,e),pt(e);break;case 31:vt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zu(e,l)));break;case 13:vt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ju=jt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zu(e,l)));break;case 22:i=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,z=Sa,U=$e;if(Sa=z||i,$e=U||b,vt(t,e),$e=U,Sa=z,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||b||Sa||$e||_l(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(s=b.stateNode,i)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=b.stateNode;var Q=b.memoizedProps.style,A=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;h.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch($){Te(b,b.return,$)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch($){Te(b,b.return,$)}}}else if(t.tag===18){if(a===null){b=t;try{var _=b.stateNode;i?Em(_,!0):Em(b.stateNode,!1)}catch($){Te(b,b.return,$)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Zu(e,a))));break;case 19:vt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zu(e,l)));break;case 30:break;case 21:break;default:vt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Nh(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var i=a.stateNode,s=dc(e);Ku(e,s,i);break;case 5:var o=a.stateNode;a.flags&32&&($l(o,""),a.flags&=-33);var h=dc(e);Ku(e,h,o);break;case 3:case 4:var b=a.stateNode.containerInfo,z=dc(e);hc(e,z,b);break;default:throw Error(c(161))}}catch(U){Te(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ja(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rh(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xa(4,t,t.return),_l(t);break;case 1:ia(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Eh(t,t.return,a),_l(t);break;case 27:Mi(t.stateNode);case 26:case 5:ia(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function Na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Na(i,s,a),Ei(4,s);break;case 1:if(Na(i,s,a),l=s,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(z){Te(l,l.return,z)}if(l=s,i=l.updateQueue,i!==null){var h=l.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)od(b[i],h)}catch(z){Te(l,l.return,z)}}a&&o&64&&Sh(s),ji(s,s.return);break;case 27:Th(s);case 26:case 5:Na(i,s,a),a&&l===null&&o&4&&jh(s),ji(s,s.return);break;case 12:Na(i,s,a);break;case 31:Na(i,s,a),a&&o&4&&_h(i,s);break;case 13:Na(i,s,a),a&&o&4&&Oh(i,s);break;case 22:s.memoizedState===null&&Na(i,s,a),ji(s,s.return);break;case 30:break;default:Na(i,s,a)}t=t.sibling}}function yc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ci(a))}function vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function It(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dh(e,t,a,l),t=t.sibling}function Dh(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:It(e,t,a,l),i&2048&&Ei(9,t);break;case 1:It(e,t,a,l);break;case 3:It(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(i&2048){It(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,h=s.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Te(t,t.return,b)}}else It(e,t,a,l);break;case 31:It(e,t,a,l);break;case 13:It(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?It(e,t,a,l):Ni(e,t):s._visibility&2?It(e,t,a,l):(s._visibility|=2,vn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&yc(o,t);break;case 24:It(e,t,a,l),i&2048&&vc(t.alternate,t);break;default:It(e,t,a,l)}}function vn(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,h=a,b=l,z=o.flags;switch(o.tag){case 0:case 11:case 15:vn(s,o,h,b,i),Ei(8,o);break;case 23:break;case 22:var U=o.stateNode;o.memoizedState!==null?U._visibility&2?vn(s,o,h,b,i):Ni(s,o):(U._visibility|=2,vn(s,o,h,b,i)),i&&z&2048&&yc(o.alternate,o);break;case 24:vn(s,o,h,b,i),i&&z&2048&&vc(o.alternate,o);break;default:vn(s,o,h,b,i)}t=t.sibling}}function Ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:Ni(a,l),i&2048&&yc(l.alternate,l);break;case 24:Ni(a,l),i&2048&&vc(l.alternate,l);break;default:Ni(a,l)}t=t.sibling}}var Ti=8192;function pn(e,t,a){if(e.subtreeFlags&Ti)for(e=e.child;e!==null;)Uh(e,t,a),e=e.sibling}function Uh(e,t,a){switch(e.tag){case 26:pn(e,t,a),e.flags&Ti&&e.memoizedState!==null&&Hg(a,Pt,e.memoizedState,e.memoizedProps);break;case 5:pn(e,t,a);break;case 3:case 4:var l=Pt;Pt=us(e.stateNode.containerInfo),pn(e,t,a),Pt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ti,Ti=16777216,pn(e,t,a),Ti=l):pn(e,t,a));break;default:pn(e,t,a)}}function qh(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 Ci(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,Lh(l,e)}qh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hh(e),e=e.sibling}function Hh(e){switch(e.tag){case 0:case 11:case 15:Ci(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:Ci(e);break;case 12:Ci(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vu(e)):Ci(e);break;default:Ci(e)}}function Vu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,Lh(l,e)}qh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),Vu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Vu(t));break;default:Vu(t)}e=e.sibling}}function Lh(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:Xa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ci(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Pe=l;else e:for(a=e;Pe!==null;){l=Pe;var i=l.sibling,s=l.return;if(zh(l),l===a){Pe=null;break e}if(i!==null){i.return=s,Pe=i;break e}Pe=s}}}var Pp={getCacheForType:function(e){var t=lt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return lt(Ze).controller.signal}},Ip=typeof WeakMap=="function"?WeakMap:Map,xe=0,Oe=null,oe=null,de=0,Ne=0,_t=null,Ka=!1,gn=!1,pc=!1,Ta=0,Be=0,Za=0,Ol=0,gc=0,Ot=0,bn=0,Ri=null,gt=null,bc=!1,Ju=0,Bh=0,$u=1/0,Fu=null,Va=null,Fe=0,Ja=null,xn=null,Ca=0,xc=0,Sc=null,Qh=null,zi=0,Ec=null;function Mt(){return(xe&2)!==0&&de!==0?de&-de:H.T!==null?zc():tf()}function kh(){if(Ot===0)if((de&536870912)===0||ve){var e=nu;nu<<=1,(nu&3932160)===0&&(nu=262144),Ot=e}else Ot=536870912;return e=zt.current,e!==null&&(e.flags|=32),Ot}function bt(e,t,a){(e===Oe&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Sn(e,0),$a(e,de,Ot,!1)),$n(e,a),((xe&2)===0||e!==Oe)&&(e===Oe&&((xe&2)===0&&(Ol|=a),Be===4&&$a(e,de,Ot,!1)),ua(e))}function Yh(e,t,a){if((xe&6)!==0)throw Error(c(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jn(e,t),i=l?ag(e,t):Nc(e,t,!0),s=l;do{if(i===0){gn&&!l&&$a(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!eg(a)){i=Nc(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var h=e;i=Ri;var b=h.current.memoizedState.isDehydrated;if(b&&(Sn(h,o).flags|=256),o=Nc(h,o,!1),o!==2){if(pc&&!b){h.errorRecoveryDisabledLanes|=s,Ol|=s,i=4;break e}s=gt,gt=i,s!==null&&(gt===null?gt=s:gt.push.apply(gt,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){Sn(e,0),$a(e,t,0,!0);break}e:{switch(l=e,s=i,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:$a(l,t,Ot,!Ka);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Ju+300-jt(),10<i)){if($a(l,t,Ot,!Ka),uu(l,0,!0)!==0)break e;Ca=t,l.timeoutHandle=bm(Gh.bind(null,l,a,gt,Fu,bc,t,Ot,Ol,bn,Ka,s,"Throttled",-0,0),i);break e}Gh(l,a,gt,Fu,bc,t,Ot,Ol,bn,Ka,s,null,-0,0)}}break}while(!0);ua(e)}function Gh(e,t,a,l,i,s,o,h,b,z,U,Q,A,_){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fa},Uh(t,s,Q);var $=(s&62914560)===s?Ju-jt():(s&4194048)===s?Bh-jt():0;if($=Lg(Q,$),$!==null){Ca=s,e.cancelPendingCommit=$(Wh.bind(null,e,t,s,a,l,i,o,h,b,U,Q,null,A,_)),$a(e,s,o,!z);return}}Wh(e,t,s,a,l,i,o,h,b)}function eg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],s=i.getSnapshot;i=i.value;try{if(!Ct(s(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 $a(e,t,a,l){t&=~gc,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var s=31-Tt(i),o=1<<s;l[s]=-1,i&=~o}a!==0&&Po(e,a,t)}function Wu(){return(xe&6)===0?(Ai(0),!1):!0}function jc(){if(oe!==null){if(Ne===0)var e=oe.return;else e=oe,ya=El=null,Br(e),fn=null,fi=0,e=oe;for(;e!==null;)xh(e.alternate,e),e=e.return;oe=null}}function Sn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,xg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ca=0,jc(),Oe=e,oe=a=ha(e.current,null),de=t,Ne=0,_t=null,Ka=!1,gn=Jn(e,t),pc=!1,bn=Ot=gc=Ol=Za=Be=0,gt=Ri=null,bc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Tt(l),s=1<<i;t|=e[i],l&=~s}return Ta=t,gu(),a}function Xh(e,t){se=null,H.H=bi,t===on||t===Cu?(t=ud(),Ne=3):t===Rr?(t=ud(),Ne=4):Ne=t===tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,oe===null&&(Be=1,Qu(e,Lt(t,e.current)))}function Kh(){var e=zt.current;return e===null?!0:(de&4194048)===de?Yt===null:(de&62914560)===de||(de&536870912)!==0?e===Yt:!1}function Zh(){var e=H.H;return H.H=bi,e===null?bi:e}function Vh(){var e=H.A;return H.A=Pp,e}function Pu(){Be=4,Ka||(de&4194048)!==de&&zt.current!==null||(gn=!0),(Za&134217727)===0&&(Ol&134217727)===0||Oe===null||$a(Oe,de,Ot,!1)}function Nc(e,t,a){var l=xe;xe|=2;var i=Zh(),s=Vh();(Oe!==e||de!==t)&&(Fu=null,Sn(e,t)),t=!1;var o=Be;e:do try{if(Ne!==0&&oe!==null){var h=oe,b=_t;switch(Ne){case 8:jc(),o=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var z=Ne;if(Ne=0,_t=null,En(e,h,b,z),a&&gn){o=0;break e}break;default:z=Ne,Ne=0,_t=null,En(e,h,b,z)}}tg(),o=Be;break}catch(U){Xh(e,U)}while(!0);return t&&e.shellSuspendCounter++,ya=El=null,xe=l,H.H=i,H.A=s,oe===null&&(Oe=null,de=0,gu()),o}function tg(){for(;oe!==null;)Jh(oe)}function ag(e,t){var a=xe;xe|=2;var l=Zh(),i=Vh();Oe!==e||de!==t?(Fu=null,$u=jt()+500,Sn(e,t)):gn=Jn(e,t);e:do try{if(Ne!==0&&oe!==null){t=oe;var s=_t;t:switch(Ne){case 1:Ne=0,_t=null,En(e,t,s,1);break;case 2:case 9:if(nd(s)){Ne=0,_t=null,$h(t);break}t=function(){Ne!==2&&Ne!==9||Oe!==e||(Ne=7),ua(e)},s.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:nd(s)?(Ne=0,_t=null,$h(t)):(Ne=0,_t=null,En(e,t,s,7));break;case 5:var o=null;switch(oe.tag){case 26:o=oe.memoizedState;case 5:case 27:var h=oe;if(o?Dm(o):h.stateNode.complete){Ne=0,_t=null;var b=h.sibling;if(b!==null)oe=b;else{var z=h.return;z!==null?(oe=z,Iu(z)):oe=null}break t}}Ne=0,_t=null,En(e,t,s,5);break;case 6:Ne=0,_t=null,En(e,t,s,6);break;case 8:jc(),Be=6;break e;default:throw Error(c(462))}}lg();break}catch(U){Xh(e,U)}while(!0);return ya=El=null,H.H=l,H.A=i,xe=a,oe!==null?0:(Oe=null,de=0,gu(),Be)}function lg(){for(;oe!==null&&!Cv();)Jh(oe)}function Jh(e){var t=gh(e.alternate,e,Ta);e.memoizedProps=e.pendingProps,t===null?Iu(e):oe=t}function $h(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=dh(a,t,t.pendingProps,t.type,void 0,de);break;case 11:t=dh(a,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Br(t);default:xh(a,t),t=oe=Vf(t,Ta),t=gh(a,t,Ta)}e.memoizedProps=e.pendingProps,t===null?Iu(e):oe=t}function En(e,t,a,l){ya=El=null,Br(t),fn=null,fi=0;var i=t.return;try{if(Kp(e,i,t,a,de)){Be=1,Qu(e,Lt(a,e.current)),oe=null;return}}catch(s){if(i!==null)throw oe=i,s;Be=1,Qu(e,Lt(a,e.current)),oe=null;return}t.flags&32768?(ve||l===1?e=!0:gn||(de&536870912)!==0?e=!1:(Ka=e=!0,(l===2||l===9||l===3||l===6)&&(l=zt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Fh(t,e)):Iu(t)}function Iu(e){var t=e;do{if((t.flags&32768)!==0){Fh(t,Ka);return}e=t.return;var a=Jp(t.alternate,t,Ta);if(a!==null){oe=a;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);Be===0&&(Be=5)}function Fh(e,t){do{var a=$p(e.alternate,e);if(a!==null){a.flags&=32767,oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=a}while(e!==null);Be=6,oe=null}function Wh(e,t,a,l,i,s,o,h,b){e.cancelPendingCommit=null;do es();while(Fe!==0);if((xe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=dr,qv(e,a,s,o,h,b),e===Oe&&(oe=Oe=null,de=0),xn=t,Ja=e,Ca=a,xc=s,Sc=i,Qh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,sg(au,function(){return am(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,i=Z.p,Z.p=2,o=xe,xe|=4;try{Fp(e,t,a)}finally{xe=o,Z.p=i,H.T=l}}Fe=1,Ph(),Ih(),em()}}function Ph(){if(Fe===1){Fe=0;var e=Ja,t=xn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var l=Z.p;Z.p=2;var i=xe;xe|=4;try{Mh(t,e);var s=qc,o=Lf(e.containerInfo),h=s.focusedElem,b=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&Hf(h.ownerDocument.documentElement,h)){if(b!==null&&sr(h)){var z=b.start,U=b.end;if(U===void 0&&(U=z),"selectionStart"in h)h.selectionStart=z,h.selectionEnd=Math.min(U,h.value.length);else{var Q=h.ownerDocument||document,A=Q&&Q.defaultView||window;if(A.getSelection){var _=A.getSelection(),$=h.textContent.length,te=Math.min(b.start,$),Ae=b.end===void 0?te:Math.min(b.end,$);!_.extend&&te>Ae&&(o=Ae,Ae=te,te=o);var T=qf(h,te),x=qf(h,Ae);if(T&&x&&(_.rangeCount!==1||_.anchorNode!==T.node||_.anchorOffset!==T.offset||_.focusNode!==x.node||_.focusOffset!==x.offset)){var R=Q.createRange();R.setStart(T.node,T.offset),_.removeAllRanges(),te>Ae?(_.addRange(R),_.extend(x.node,x.offset)):(R.setEnd(x.node,x.offset),_.addRange(R))}}}}for(Q=[],_=h;_=_.parentNode;)_.nodeType===1&&Q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<Q.length;h++){var B=Q[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ds=!!Uc,qc=Uc=null}finally{xe=i,Z.p=l,H.T=a}}e.current=t,Fe=2}}function Ih(){if(Fe===2){Fe=0;var e=Ja,t=xn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var l=Z.p;Z.p=2;var i=xe;xe|=4;try{Rh(e,t.alternate,t)}finally{xe=i,Z.p=l,H.T=a}}Fe=3}}function em(){if(Fe===4||Fe===3){Fe=0,Rv();var e=Ja,t=xn,a=Ca,l=Qh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,xn=Ja=null,tm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Va=null),Ys(a),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Vn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=H.T,i=Z.p,Z.p=2,H.T=null;try{for(var s=e.onRecoverableError,o=0;o<l.length;o++){var h=l[o];s(h.value,{componentStack:h.stack})}}finally{H.T=t,Z.p=i}}(Ca&3)!==0&&es(),ua(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===Ec?zi++:(zi=0,Ec=e):zi=0,Ai(0)}}function tm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function es(){return Ph(),Ih(),em(),am()}function am(){if(Fe!==5)return!1;var e=Ja,t=xc;xc=0;var a=Ys(Ca),l=H.T,i=Z.p;try{Z.p=32>a?32:a,H.T=null,a=Sc,Sc=null;var s=Ja,o=Ca;if(Fe=0,xn=Ja=null,Ca=0,(xe&6)!==0)throw Error(c(331));var h=xe;if(xe|=4,Hh(s.current),Dh(s,s.current,o,a),xe=h,Ai(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Vn,s)}catch{}return!0}finally{Z.p=i,H.T=l,tm(e,t)}}function lm(e,t,a){t=Lt(a,t),t=ec(e.stateNode,t,2),e=ka(e,t,2),e!==null&&($n(e,2),ua(e))}function Te(e,t,a){if(e.tag===3)lm(e,e,a);else for(;t!==null;){if(t.tag===3){lm(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Va===null||!Va.has(l))){e=Lt(a,e),a=nh(2),l=ka(t,a,2),l!==null&&(ih(a,l,t,e),$n(l,2),ua(l));break}}t=t.return}}function Tc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Ip;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(pc=!0,i.add(a),e=ng.bind(null,e,t,a),t.then(e,e))}function ng(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Oe===e&&(de&a)===a&&(Be===4||Be===3&&(de&62914560)===de&&300>jt()-Ju?(xe&2)===0&&Sn(e,0):gc|=a,bn===de&&(bn=0)),ua(e)}function nm(e,t){t===0&&(t=Wo()),e=bl(e,t),e!==null&&($n(e,t),ua(e))}function ig(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),nm(e,a)}function ug(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),nm(e,a)}function sg(e,t){return Ls(e,t)}var ts=null,jn=null,Cc=!1,as=!1,Rc=!1,Fa=0;function ua(e){e!==jn&&e.next===null&&(jn===null?ts=jn=e:jn=jn.next=e),as=!0,Cc||(Cc=!0,cg())}function Ai(e,t){if(!Rc&&as){Rc=!0;do for(var a=!1,l=ts;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var o=l.suspendedLanes,h=l.pingedLanes;s=(1<<31-Tt(42|e)+1)-1,s&=i&~(o&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,rm(l,s))}else s=de,s=uu(l,l===Oe?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Jn(l,s)||(a=!0,rm(l,s));l=l.next}while(a);Rc=!1}}function rg(){im()}function im(){as=Cc=!1;var e=0;Fa!==0&&bg()&&(e=Fa);for(var t=jt(),a=null,l=ts;l!==null;){var i=l.next,s=um(l,t);s===0?(l.next=null,a===null?ts=i:a.next=i,i===null&&(jn=a)):(a=l,(e!==0||(s&3)!==0)&&(as=!0)),l=i}Fe!==0&&Fe!==5||Ai(e),Fa!==0&&(Fa=0)}function um(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-Tt(s),h=1<<o,b=i[o];b===-1?((h&a)===0||(h&l)!==0)&&(i[o]=Uv(h,t)):b<=t&&(e.expiredLanes|=h),s&=~h}if(t=Oe,a=de,a=uu(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Bs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Jn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Bs(l),Ys(a)){case 2:case 8:a=$o;break;case 32:a=au;break;case 268435456:a=Fo;break;default:a=au}return l=sm.bind(null,e),a=Ls(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Bs(l),e.callbackPriority=2,e.callbackNode=null,2}function sm(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(es()&&e.callbackNode!==a)return null;var l=de;return l=uu(e,e===Oe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Yh(e,l,t),um(e,jt()),e.callbackNode!=null&&e.callbackNode===a?sm.bind(null,e):null)}function rm(e,t){if(es())return null;Yh(e,t,!0)}function cg(){Sg(function(){(xe&6)!==0?Ls(Jo,rg):im()})}function zc(){if(Fa===0){var e=rn;e===0&&(e=lu,lu<<=1,(lu&261888)===0&&(lu=256)),Fa=e}return Fa}function cm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ou(""+e)}function om(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function og(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var s=cm((i[ht]||null).action),o=l.submitter;o&&(t=(t=o[ht]||null)?cm(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var h=new mu("action","action",null,l,i);e.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Fa!==0){var b=o?om(i,o):new FormData(i);Jr(a,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(h.preventDefault(),b=o?om(i,o):new FormData(i),Jr(a,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var Ac=0;Ac<fr.length;Ac++){var _c=fr[Ac],fg=_c.toLowerCase(),dg=_c[0].toUpperCase()+_c.slice(1);Wt(fg,"on"+dg)}Wt(kf,"onAnimationEnd"),Wt(Yf,"onAnimationIteration"),Wt(Gf,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(zp,"onTransitionRun"),Wt(Ap,"onTransitionStart"),Wt(_p,"onTransitionCancel"),Wt(Xf,"onTransitionEnd"),Vl("onMouseEnter",["mouseout","mouseover"]),Vl("onMouseLeave",["mouseout","mouseover"]),Vl("onPointerEnter",["pointerout","pointerover"]),Vl("onPointerLeave",["pointerout","pointerover"]),yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _i="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(" "),hg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_i));function fm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var o=l.length-1;0<=o;o--){var h=l[o],b=h.instance,z=h.currentTarget;if(h=h.listener,b!==s&&i.isPropagationStopped())break e;s=h,i.currentTarget=z;try{s(i)}catch(U){pu(U)}i.currentTarget=null,s=b}else for(o=0;o<l.length;o++){if(h=l[o],b=h.instance,z=h.currentTarget,h=h.listener,b!==s&&i.isPropagationStopped())break e;s=h,i.currentTarget=z;try{s(i)}catch(U){pu(U)}i.currentTarget=null,s=b}}}}function fe(e,t){var a=t[Gs];a===void 0&&(a=t[Gs]=new Set);var l=e+"__bubble";a.has(l)||(dm(t,e,2,!1),a.add(l))}function Oc(e,t,a){var l=0;t&&(l|=4),dm(a,e,l,t)}var ls="_reactListening"+Math.random().toString(36).slice(2);function Mc(e){if(!e[ls]){e[ls]=!0,nf.forEach(function(a){a!=="selectionchange"&&(hg.has(a)||Oc(a,!1,e),Oc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ls]||(t[ls]=!0,Oc("selectionchange",!1,t))}}function dm(e,t,a,l){switch(km(t)){case 2:var i=kg;break;case 8:i=Yg;break;default:i=Vc}a=i.bind(null,t,a,e),i=void 0,!Ps||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function wc(e,t,a,l,i){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var h=l.stateNode.containerInfo;if(h===i)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;h!==null;){if(o=Xl(h),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=s=o;continue e}h=h.parentNode}}l=l.return}pf(function(){var z=s,U=Fs(a),Q=[];e:{var A=Kf.get(e);if(A!==void 0){var _=mu,$=e;switch(e){case"keypress":if(du(a)===0)break e;case"keydown":case"keyup":_=up;break;case"focusin":$="focus",_=ar;break;case"focusout":$="blur",_=ar;break;case"beforeblur":case"afterblur":_=ar;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=cp;break;case kf:case Yf:case Gf:_=Wv;break;case Xf:_=fp;break;case"scroll":case"scrollend":_=Zv;break;case"wheel":_=hp;break;case"copy":case"cut":case"paste":_=Iv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ef;break;case"toggle":case"beforetoggle":_=yp}var te=(t&4)!==0,Ae=!te&&(e==="scroll"||e==="scrollend"),T=te?A!==null?A+"Capture":null:A;te=[];for(var x=z,R;x!==null;){var B=x;if(R=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||R===null||T===null||(B=Pn(x,T),B!=null&&te.push(Oi(x,B,R))),Ae)break;x=x.return}0<te.length&&(A=new _(A,$,null,a,U),Q.push({event:A,listeners:te}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",A&&a!==$s&&($=a.relatedTarget||a.fromElement)&&(Xl($)||$[Gl]))break e;if((_||A)&&(A=U.window===U?U:(A=U.ownerDocument)?A.defaultView||A.parentWindow:window,_?($=a.relatedTarget||a.toElement,_=z,$=$?Xl($):null,$!==null&&(Ae=m($),te=$.tag,$!==Ae||te!==5&&te!==27&&te!==6)&&($=null)):(_=null,$=z),_!==$)){if(te=xf,B="onMouseLeave",T="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(te=Ef,B="onPointerLeave",T="onPointerEnter",x="pointer"),Ae=_==null?A:Wn(_),R=$==null?A:Wn($),A=new te(B,x+"leave",_,a,U),A.target=Ae,A.relatedTarget=R,B=null,Xl(U)===z&&(te=new te(T,x+"enter",$,a,U),te.target=R,te.relatedTarget=Ae,B=te),Ae=B,_&&$)t:{for(te=mg,T=_,x=$,R=0,B=T;B;B=te(B))R++;B=0;for(var I=x;I;I=te(I))B++;for(;0<R-B;)T=te(T),R--;for(;0<B-R;)x=te(x),B--;for(;R--;){if(T===x||x!==null&&T===x.alternate){te=T;break t}T=te(T),x=te(x)}te=null}else te=null;_!==null&&hm(Q,A,_,te,!1),$!==null&&Ae!==null&&hm(Q,Ae,$,te,!0)}}e:{if(A=z?Wn(z):window,_=A.nodeName&&A.nodeName.toLowerCase(),_==="select"||_==="input"&&A.type==="file")var ge=_f;else if(zf(A))if(Of)ge=Tp;else{ge=jp;var W=Ep}else _=A.nodeName,!_||_.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?z&&Js(z.elementType)&&(ge=_f):ge=Np;if(ge&&(ge=ge(e,z))){Af(Q,ge,a,U);break e}W&&W(e,A,z),e==="focusout"&&z&&A.type==="number"&&z.memoizedProps.value!=null&&Vs(A,"number",A.value)}switch(W=z?Wn(z):window,e){case"focusin":(zf(W)||W.contentEditable==="true")&&(Il=W,rr=z,ui=null);break;case"focusout":ui=rr=Il=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,Bf(Q,a,U);break;case"selectionchange":if(Rp)break;case"keydown":case"keyup":Bf(Q,a,U)}var re;if(nr)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else Pl?Cf(e,a)&&(he="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(he="onCompositionStart");he&&(jf&&a.locale!=="ko"&&(Pl||he!=="onCompositionStart"?he==="onCompositionEnd"&&Pl&&(re=gf()):(Da=U,Is="value"in Da?Da.value:Da.textContent,Pl=!0)),W=ns(z,he),0<W.length&&(he=new Sf(he,e,null,a,U),Q.push({event:he,listeners:W}),re?he.data=re:(re=Rf(a),re!==null&&(he.data=re)))),(re=pp?gp(e,a):bp(e,a))&&(he=ns(z,"onBeforeInput"),0<he.length&&(W=new Sf("onBeforeInput","beforeinput",null,a,U),Q.push({event:W,listeners:he}),W.data=re)),og(Q,e,z,a,U)}fm(Q,t)})}function Oi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ns(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=Pn(e,a),i!=null&&l.unshift(Oi(e,i,s)),i=Pn(e,t),i!=null&&l.push(Oi(e,i,s))),e.tag===3)return l;e=e.return}return[]}function mg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hm(e,t,a,l,i){for(var s=t._reactName,o=[];a!==null&&a!==l;){var h=a,b=h.alternate,z=h.stateNode;if(h=h.tag,b!==null&&b===l)break;h!==5&&h!==26&&h!==27||z===null||(b=z,i?(z=Pn(a,s),z!=null&&o.unshift(Oi(a,z,b))):i||(z=Pn(a,s),z!=null&&o.push(Oi(a,z,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var yg=/\r\n?/g,vg=/\u0000|\uFFFD/g;function mm(e){return(typeof e=="string"?e:""+e).replace(yg,`
|
|
49
|
+
`).replace(vg,"")}function ym(e,t){return t=mm(t),mm(e)===t}function ze(e,t,a,l,i,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||$l(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&$l(e,""+l);break;case"className":ru(e,"class",l);break;case"tabIndex":ru(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ru(e,a,l);break;case"style":yf(e,l,s);break;case"data":if(t!=="object"){ru(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ou(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 s=="function"&&(a==="formAction"?(t!=="input"&&ze(e,t,"name",i.name,i,null),ze(e,t,"formEncType",i.formEncType,i,null),ze(e,t,"formMethod",i.formMethod,i,null),ze(e,t,"formTarget",i.formTarget,i,null)):(ze(e,t,"encType",i.encType,i,null),ze(e,t,"method",i.method,i,null),ze(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ou(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=fa);break;case"onScroll":l!=null&&fe("scroll",e);break;case"onScrollEnd":l!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ou(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":fe("beforetoggle",e),fe("toggle",e),su(e,"popover",l);break;case"xlinkActuate":oa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":oa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":oa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":oa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":oa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":oa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":oa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":oa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":oa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":su(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Xv.get(a)||a,su(e,a,l))}}function Dc(e,t,a,l,i,s){switch(a){case"style":yf(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof l=="string"?$l(e,l):(typeof l=="number"||typeof l=="bigint")&&$l(e,""+l);break;case"onScroll":l!=null&&fe("scroll",e);break;case"onScrollEnd":l!=null&&fe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),s=e[ht]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):su(e,a,l)}}}function it(e,t,a){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 l=!1,i=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:ze(e,t,s,o,a,null)}}i&&ze(e,t,"srcSet",a.srcSet,a,null),l&&ze(e,t,"src",a.src,a,null);return;case"input":fe("invalid",e);var h=s=o=i=null,b=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var U=a[l];if(U!=null)switch(l){case"name":i=U;break;case"type":o=U;break;case"checked":b=U;break;case"defaultChecked":z=U;break;case"value":s=U;break;case"defaultValue":h=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:ze(e,t,l,U,a,null)}}ff(e,s,h,b,z,o,i,!1);return;case"select":fe("invalid",e),l=o=s=null;for(i in a)if(a.hasOwnProperty(i)&&(h=a[i],h!=null))switch(i){case"value":s=h;break;case"defaultValue":o=h;break;case"multiple":l=h;default:ze(e,t,i,h,a,null)}t=s,a=o,e.multiple=!!l,t!=null?Jl(e,!!l,t,!1):a!=null&&Jl(e,!!l,a,!0);return;case"textarea":fe("invalid",e),s=i=l=null;for(o in a)if(a.hasOwnProperty(o)&&(h=a[o],h!=null))switch(o){case"value":l=h;break;case"defaultValue":i=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:ze(e,t,o,h,a,null)}hf(e,l,i,s);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(e,t,b,l,a,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(l=0;l<_i.length;l++)fe(_i[l],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(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:ze(e,t,z,l,a,null)}return;default:if(Js(t)){for(U in a)a.hasOwnProperty(U)&&(l=a[U],l!==void 0&&Dc(e,t,U,l,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(l=a[h],l!=null&&ze(e,t,h,l,a,null))}function pg(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,h=null,b=null,z=null,U=null;for(_ in a){var Q=a[_];if(a.hasOwnProperty(_)&&Q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":b=Q;default:l.hasOwnProperty(_)||ze(e,t,_,null,l,Q)}}for(var A in l){var _=l[A];if(Q=a[A],l.hasOwnProperty(A)&&(_!=null||Q!=null))switch(A){case"type":s=_;break;case"name":i=_;break;case"checked":z=_;break;case"defaultChecked":U=_;break;case"value":o=_;break;case"defaultValue":h=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(c(137,t));break;default:_!==Q&&ze(e,t,A,_,l,Q)}}Zs(e,o,h,b,z,U,s,i);return;case"select":_=o=h=A=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":_=b;default:l.hasOwnProperty(s)||ze(e,t,s,null,l,b)}for(i in l)if(s=l[i],b=a[i],l.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":A=s;break;case"defaultValue":h=s;break;case"multiple":o=s;default:s!==b&&ze(e,t,i,s,l,b)}t=h,a=o,l=_,A!=null?Jl(e,!!a,A,!1):!!l!=!!a&&(t!=null?Jl(e,!!a,t,!0):Jl(e,!!a,a?[]:"",!1));return;case"textarea":_=A=null;for(h in a)if(i=a[h],a.hasOwnProperty(h)&&i!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:ze(e,t,h,null,l,i)}for(o in l)if(i=l[o],s=a[o],l.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case"value":A=i;break;case"defaultValue":_=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==s&&ze(e,t,o,i,l,s)}df(e,A,_);return;case"option":for(var $ in a)if(A=a[$],a.hasOwnProperty($)&&A!=null&&!l.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:ze(e,t,$,null,l,A)}for(b in l)if(A=l[b],_=a[b],l.hasOwnProperty(b)&&A!==_&&(A!=null||_!=null))switch(b){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:ze(e,t,b,A,l,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var te in a)A=a[te],a.hasOwnProperty(te)&&A!=null&&!l.hasOwnProperty(te)&&ze(e,t,te,null,l,A);for(z in l)if(A=l[z],_=a[z],l.hasOwnProperty(z)&&A!==_&&(A!=null||_!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:ze(e,t,z,A,l,_)}return;default:if(Js(t)){for(var Ae in a)A=a[Ae],a.hasOwnProperty(Ae)&&A!==void 0&&!l.hasOwnProperty(Ae)&&Dc(e,t,Ae,void 0,l,A);for(U in l)A=l[U],_=a[U],!l.hasOwnProperty(U)||A===_||A===void 0&&_===void 0||Dc(e,t,U,A,l,_);return}}for(var T in a)A=a[T],a.hasOwnProperty(T)&&A!=null&&!l.hasOwnProperty(T)&&ze(e,t,T,null,l,A);for(Q in l)A=l[Q],_=a[Q],!l.hasOwnProperty(Q)||A===_||A==null&&_==null||ze(e,t,Q,A,l,_)}function vm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],s=i.transferSize,o=i.initiatorType,h=i.duration;if(s&&h&&vm(o)){for(o=0,h=i.responseEnd,l+=1;l<a.length;l++){var b=a[l],z=b.startTime;if(z>h)break;var U=b.transferSize,Q=b.initiatorType;U&&vm(Q)&&(b=b.responseEnd,o+=U*(b<h?1:(h-z)/(b-z)))}if(--l,t+=8*(s+o)/(i.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 Uc=null,qc=null;function is(e){return e.nodeType===9?e:e.ownerDocument}function pm(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 gm(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 Hc(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 Lc=null;function bg(){var e=window.event;return e&&e.type==="popstate"?e===Lc?!1:(Lc=e,!0):(Lc=null,!1)}var bm=typeof setTimeout=="function"?setTimeout:void 0,xg=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,Sg=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(e){return xm.resolve(null).then(e).catch(Eg)}:bm;function Eg(e){setTimeout(function(){throw e})}function Wa(e){return e==="head"}function Sm(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),Rn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Mi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Mi(a);for(var s=a.firstChild;s;){var o=s.nextSibling,h=s.nodeName;s[Fn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&Mi(e.ownerDocument.body);a=i}while(a);Rn(t)}function Em(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bc(a),Xs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function jg(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Fn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function Ng(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Gt(e.nextSibling),e===null))return null;return e}function jm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Qc(e){return e.data==="$?"||e.data==="$~"}function kc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Tg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Gt(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 Yc=null;function Nm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Gt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Tm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Cm(e,t,a){switch(t=is(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xs(e)}var Xt=new Map,Rm=new Set;function us(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ra=Z.d;Z.d={f:Cg,r:Rg,D:zg,C:Ag,L:_g,m:Og,X:wg,S:Mg,M:Dg};function Cg(){var e=Ra.f(),t=Wu();return e||t}function Rg(e){var t=Kl(e);t!==null&&t.tag===5&&t.type==="form"?Xd(t):Ra.r(e)}var Nn=typeof document>"u"?null:document;function zm(e,t,a){var l=Nn;if(l&&typeof t=="string"&&t){var i=qt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),Rm.has(i)||(Rm.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),it(t,"link",e),We(t),l.head.appendChild(t)))}}function zg(e){Ra.D(e),zm("dns-prefetch",e,null)}function Ag(e,t){Ra.C(e,t),zm("preconnect",e,t)}function _g(e,t,a){Ra.L(e,t,a);var l=Nn;if(l&&e&&t){var i='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+qt(a.imageSizes)+'"]')):i+='[href="'+qt(e)+'"]';var s=i;switch(t){case"style":s=Tn(e);break;case"script":s=Cn(e)}Xt.has(s)||(e=E({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Xt.set(s,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(wi(s))||t==="script"&&l.querySelector(Di(s))||(t=l.createElement("link"),it(t,"link",e),We(t),l.head.appendChild(t)))}}function Og(e,t){Ra.m(e,t);var a=Nn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+qt(l)+'"][href="'+qt(e)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Cn(e)}if(!Xt.has(s)&&(e=E({rel:"modulepreload",href:e},t),Xt.set(s,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Di(s)))return}l=a.createElement("link"),it(l,"link",e),We(l),a.head.appendChild(l)}}}function Mg(e,t,a){Ra.S(e,t,a);var l=Nn;if(l&&e){var i=Zl(l).hoistableStyles,s=Tn(e);t=t||"default";var o=i.get(s);if(!o){var h={loading:0,preload:null};if(o=l.querySelector(wi(s)))h.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Xt.get(s))&&Gc(e,a);var b=o=l.createElement("link");We(b),it(b,"link",e),b._p=new Promise(function(z,U){b.onload=z,b.onerror=U}),b.addEventListener("load",function(){h.loading|=1}),b.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ss(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:h},i.set(s,o)}}}function wg(e,t){Ra.X(e,t);var a=Nn;if(a&&e){var l=Zl(a).hoistableScripts,i=Cn(e),s=l.get(i);s||(s=a.querySelector(Di(i)),s||(e=E({src:e,async:!0},t),(t=Xt.get(i))&&Xc(e,t),s=a.createElement("script"),We(s),it(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Dg(e,t){Ra.M(e,t);var a=Nn;if(a&&e){var l=Zl(a).hoistableScripts,i=Cn(e),s=l.get(i);s||(s=a.querySelector(Di(i)),s||(e=E({src:e,async:!0,type:"module"},t),(t=Xt.get(i))&&Xc(e,t),s=a.createElement("script"),We(s),it(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Am(e,t,a,l){var i=(i=ce.current)?us(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Tn(a.href),a=Zl(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Tn(a.href);var s=Zl(i).hoistableStyles,o=s.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=i.querySelector(wi(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Xt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Xt.set(e,a),s||Ug(i,e,a,o.state))),t&&l===null)throw Error(c(528,""));return o}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cn(a),a=Zl(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Tn(e){return'href="'+qt(e)+'"'}function wi(e){return'link[rel="stylesheet"]['+e+"]"}function _m(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Ug(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",a),We(t),e.head.appendChild(t))}function Cn(e){return'[src="'+qt(e)+'"]'}function Di(e){return"script[async]"+e}function Om(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+qt(a.href)+'"]');if(l)return t.instance=l,We(l),l;var i=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),We(l),it(l,"style",i),ss(l,a.precedence,e),t.instance=l;case"stylesheet":i=Tn(a.href);var s=e.querySelector(wi(i));if(s)return t.state.loading|=4,t.instance=s,We(s),s;l=_m(a),(i=Xt.get(i))&&Gc(l,i),s=(e.ownerDocument||e).createElement("link"),We(s);var o=s;return o._p=new Promise(function(h,b){o.onload=h,o.onerror=b}),it(s,"link",l),t.state.loading|=4,ss(s,a.precedence,e),t.instance=s;case"script":return s=Cn(a.src),(i=e.querySelector(Di(s)))?(t.instance=i,We(i),i):(l=a,(i=Xt.get(s))&&(l=E({},a),Xc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),We(i),it(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ss(l,a.precedence,e));return t.instance}function ss(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,o=0;o<l.length;o++){var h=l[o];if(h.dataset.precedence===t)s=h;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var rs=null;function Mm(e,t,a){if(rs===null){var l=new Map,i=rs=new Map;i.set(a,l)}else i=rs,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var s=a[i];if(!(s[Fn]||s[tt]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var h=l.get(o);h?h.push(s):l.set(o,[s])}}return l}function wm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function qg(e,t,a){if(a===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 Dm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Hg(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Tn(l.href),s=t.querySelector(wi(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,We(s);return}s=t.ownerDocument||t,l=_m(l),(i=Xt.get(i))&&Gc(l,i),s=s.createElement("link"),We(s);var o=s;o._p=new Promise(function(h,b){o.onload=h,o.onerror=b}),it(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=cs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Kc=0;function Lg(e,t){return e.stylesheets&&e.count===0&&fs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&fs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Kc===0&&(Kc=62500*gg());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Kc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var os=null;function fs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,os=new Map,t.forEach(Bg,e),os=null,cs.call(e))}function Bg(e,t){if(!(t.state.loading&4)){var a=os.get(e);if(a)var l=a.get(null);else{a=new Map,os.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}i=t.instance,o=i.getAttribute("data-precedence"),s=a.get(o)||l,s===l&&a.set(null,i),a.set(o,i),this.count++,l=cs.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ui={$$typeof:G,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Qg(e,t,a,l,i,s,o,h,b){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=Qs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qs(0),this.hiddenUpdates=Qs(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Um(e,t,a,l,i,s,o,h,b,z,U,Q){return e=new Qg(e,t,a,o,b,z,U,Q,h),t=1,s===!0&&(t|=24),s=Rt(3,null,null,t),e.current=s,s.stateNode=e,t=Nr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},zr(s),e}function qm(e){return e?(e=an,e):an}function Hm(e,t,a,l,i,s){i=qm(i),l.context===null?l.context=i:l.pendingContext=i,l=Qa(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=ka(e,l,t),a!==null&&(bt(a,e,t),hi(a,e,t))}function Lm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Zc(e,t){Lm(e,t),(e=e.alternate)&&Lm(e,t)}function Bm(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&bt(t,e,67108864),Zc(e,67108864)}}function Qm(e){if(e.tag===13||e.tag===31){var t=Mt();t=ks(t);var a=bl(e,t);a!==null&&bt(a,e,t),Zc(e,t)}}var ds=!0;function kg(e,t,a,l){var i=H.T;H.T=null;var s=Z.p;try{Z.p=2,Vc(e,t,a,l)}finally{Z.p=s,H.T=i}}function Yg(e,t,a,l){var i=H.T;H.T=null;var s=Z.p;try{Z.p=8,Vc(e,t,a,l)}finally{Z.p=s,H.T=i}}function Vc(e,t,a,l){if(ds){var i=Jc(l);if(i===null)wc(e,t,l,hs,a),Ym(e,l);else if(Xg(i,e,t,a,l))l.stopPropagation();else if(Ym(e,l),t&4&&-1<Gg.indexOf(e)){for(;i!==null;){var s=Kl(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=ml(s.pendingLanes);if(o!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var b=1<<31-Tt(o);h.entanglements[1]|=b,o&=~b}ua(s),(xe&6)===0&&($u=jt()+500,Ai(0))}}break;case 31:case 13:h=bl(s,2),h!==null&&bt(h,s,2),Wu(),Zc(s,2)}if(s=Jc(l),s===null&&wc(e,t,l,hs,a),s===i)break;i=s}i!==null&&l.stopPropagation()}else wc(e,t,l,null,a)}}function Jc(e){return e=Fs(e),$c(e)}var hs=null;function $c(e){if(hs=null,e=Xl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return hs=e,null}function km(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(zv()){case Jo:return 2;case $o:return 8;case au:case Av:return 32;case Fo:return 268435456;default:return 32}default:return 32}}var Fc=!1,Pa=null,Ia=null,el=null,qi=new Map,Hi=new Map,tl=[],Gg="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 Ym(e,t){switch(e){case"focusin":case"focusout":Pa=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":el=null;break;case"pointerover":case"pointerout":qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function Li(e,t,a,l,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Kl(t),t!==null&&Bm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Xg(e,t,a,l,i){switch(t){case"focusin":return Pa=Li(Pa,e,t,a,l,i),!0;case"dragenter":return Ia=Li(Ia,e,t,a,l,i),!0;case"mouseover":return el=Li(el,e,t,a,l,i),!0;case"pointerover":var s=i.pointerId;return qi.set(s,Li(qi.get(s)||null,e,t,a,l,i)),!0;case"gotpointercapture":return s=i.pointerId,Hi.set(s,Li(Hi.get(s)||null,e,t,a,l,i)),!0}return!1}function Gm(e){var t=Xl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,af(e.priority,function(){Qm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,af(e.priority,function(){Qm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Jc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);$s=l,a.target.dispatchEvent(l),$s=null}else return t=Kl(a),t!==null&&Bm(t),e.blockedOn=a,!1;t.shift()}return!0}function Xm(e,t,a){ms(e)&&a.delete(t)}function Kg(){Fc=!1,Pa!==null&&ms(Pa)&&(Pa=null),Ia!==null&&ms(Ia)&&(Ia=null),el!==null&&ms(el)&&(el=null),qi.forEach(Xm),Hi.forEach(Xm)}function ys(e,t){e.blockedOn===t&&(e.blockedOn=null,Fc||(Fc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Kg)))}var vs=null;function Km(e){vs!==e&&(vs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){vs===e&&(vs=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if($c(l||a)===null)continue;break}var s=Kl(a);s!==null&&(e.splice(t,3),t-=3,Jr(s,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Rn(e){function t(b){return ys(b,e)}Pa!==null&&ys(Pa,e),Ia!==null&&ys(Ia,e),el!==null&&ys(el,e),qi.forEach(t),Hi.forEach(t);for(var a=0;a<tl.length;a++){var l=tl[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<tl.length&&(a=tl[0],a.blockedOn===null);)Gm(a),a.blockedOn===null&&tl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],s=a[l+1],o=i[ht]||null;if(typeof s=="function")o||Km(a);else if(o){var h=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[ht]||null)h=o.formAction;else if($c(i)!==null)continue}else h=o.action;typeof h=="function"?a[l+1]=h:(a.splice(l,3),l-=3),Km(a)}}}function Zm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Wc(e){this._internalRoot=e}ps.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,l=Mt();Hm(a,l,e,t,null,null)},ps.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hm(e.current,2,null,e,null,null),Wu(),t[Gl]=null}};function ps(e){this._internalRoot=e}ps.prototype.unstable_scheduleHydration=function(e){if(e){var t=tf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<tl.length&&t!==0&&t<tl[a].priority;a++);tl.splice(a,0,e),a===0&&Gm(e)}};var Vm=u.version;if(Vm!=="19.2.5")throw Error(c(527,Vm,"19.2.5"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=y(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var Zg={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gs.isDisabled&&gs.supportsFiber)try{Vn=gs.inject(Zg),Nt=gs}catch{}}return Qi.createRoot=function(e,t){if(!f(e))throw Error(c(299));var a=!1,l="",i=eh,s=th,o=ah;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Um(e,1,!1,null,null,a,l,null,i,s,o,Zm),e[Gl]=t.current,Mc(e),new Wc(t)},Qi.hydrateRoot=function(e,t,a){if(!f(e))throw Error(c(299));var l=!1,i="",s=eh,o=th,h=ah,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=Um(e,1,!0,t,a??null,l,i,b,s,o,h,Zm),t.context=qm(null),a=t.current,l=Mt(),l=ks(l),i=Qa(l),i.callback=null,ka(a,i,l),a=l,t.current.lanes=a,$n(t,a),ua(t),e[Gl]=t.current,Mc(e),new ps(t)},Qi.version="19.2.5",Qi}var iy;function n0(){if(iy)return to.exports;iy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),to.exports=l0(),to.exports}var i0=n0(),Pi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dl,nl,zn,zy,u0=(zy=class extends Pi{constructor(){super();ae(this,Dl);ae(this,nl);ae(this,zn);J(this,zn,u=>{if(typeof window<"u"&&window.addEventListener){const r=()=>u();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,nl)||this.setEventListener(S(this,zn))}onUnsubscribe(){var u;this.hasListeners()||((u=S(this,nl))==null||u.call(this),J(this,nl,void 0))}setEventListener(u){var r;J(this,zn,u),(r=S(this,nl))==null||r.call(this),J(this,nl,u(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(u){S(this,Dl)!==u&&(J(this,Dl,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(r=>{r(u)})}isFocused(){var u;return typeof S(this,Dl)=="boolean"?S(this,Dl):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},Dl=new WeakMap,nl=new WeakMap,zn=new WeakMap,zy),Ao=new u0,s0={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},il,Ro,Ay,r0=(Ay=class{constructor(){ae(this,il,s0);ae(this,Ro,!1)}setTimeoutProvider(n){J(this,il,n)}setTimeout(n,u){return S(this,il).setTimeout(n,u)}clearTimeout(n){S(this,il).clearTimeout(n)}setInterval(n,u){return S(this,il).setInterval(n,u)}clearInterval(n){S(this,il).clearInterval(n)}},il=new WeakMap,Ro=new WeakMap,Ay),wl=new r0;function c0(n){setTimeout(n,0)}var o0=typeof window>"u"||"Deno"in globalThis;function St(){}function f0(n,u){return typeof n=="function"?n(u):n}function co(n){return typeof n=="number"&&n>=0&&n!==1/0}function Ly(n,u){return Math.max(n+(u||0)-Date.now(),0)}function dl(n,u){return typeof n=="function"?n(u):n}function Vt(n,u){return typeof n=="function"?n(u):n}function uy(n,u){const{type:r="all",exact:c,fetchStatus:f,predicate:m,queryKey:v,stale:g}=n;if(v){if(c){if(u.queryHash!==_o(v,u.options))return!1}else if(!Xi(u.queryKey,v))return!1}if(r!=="all"){const p=u.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof g=="boolean"&&u.isStale()!==g||f&&f!==u.state.fetchStatus||m&&!m(u))}function sy(n,u){const{exact:r,status:c,predicate:f,mutationKey:m}=n;if(m){if(!u.options.mutationKey)return!1;if(r){if(Gi(u.options.mutationKey)!==Gi(m))return!1}else if(!Xi(u.options.mutationKey,m))return!1}return!(c&&u.state.status!==c||f&&!f(u))}function _o(n,u){return((u==null?void 0:u.queryKeyHashFn)||Gi)(n)}function Gi(n){return JSON.stringify(n,(u,r)=>fo(r)?Object.keys(r).sort().reduce((c,f)=>(c[f]=r[f],c),{}):r)}function Xi(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(r=>Xi(n[r],u[r])):!1}var d0=Object.prototype.hasOwnProperty;function By(n,u,r=0){if(n===u)return n;if(r>500)return u;const c=ry(n)&&ry(u);if(!c&&!(fo(n)&&fo(u)))return u;const m=(c?n:Object.keys(n)).length,v=c?u:Object.keys(u),g=v.length,p=c?new Array(g):{};let y=0;for(let C=0;C<g;C++){const E=c?C:v[C],D=n[E],w=u[E];if(D===w){p[E]=D,(c?C<m:d0.call(n,E))&&y++;continue}if(D===null||w===null||typeof D!="object"||typeof w!="object"){p[E]=w;continue}const M=By(D,w,r+1);p[E]=M,M===D&&y++}return m===g&&y===m?n:p}function oo(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const r in n)if(n[r]!==u[r])return!1;return!0}function ry(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function fo(n){if(!cy(n))return!1;const u=n.constructor;if(u===void 0)return!0;const r=u.prototype;return!(!cy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function cy(n){return Object.prototype.toString.call(n)==="[object Object]"}function h0(n){return new Promise(u=>{wl.setTimeout(u,n)})}function ho(n,u,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,u):r.structuralSharing!==!1?By(n,u):u}function m0(n,u,r=0){const c=[...n,u];return r&&c.length>r?c.slice(1):c}function y0(n,u,r=0){const c=[u,...n];return r&&c.length>r?c.slice(0,-1):c}var Oo=Symbol();function Qy(n,u){return!n.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!n.queryFn||n.queryFn===Oo?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function ky(n,u){return typeof n=="function"?n(...u):!!n}function v0(n,u,r){let c=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=u()),c||(c=!0,f.aborted?r():f.addEventListener("abort",r,{once:!0})),f)}),n}var Ki=(()=>{let n=()=>o0;return{isServer(){return n()},setIsServer(u){n=u}}})();function mo(){let n,u;const r=new Promise((f,m)=>{n=f,u=m});r.status="pending",r.catch(()=>{});function c(f){Object.assign(r,f),delete r.resolve,delete r.reject}return r.resolve=f=>{c({status:"fulfilled",value:f}),n(f)},r.reject=f=>{c({status:"rejected",reason:f}),u(f)},r}var p0=c0;function g0(){let n=[],u=0,r=g=>{g()},c=g=>{g()},f=p0;const m=g=>{u?n.push(g):f(()=>{r(g)})},v=()=>{const g=n;n=[],g.length&&f(()=>{c(()=>{g.forEach(p=>{r(p)})})})};return{batch:g=>{let p;u++;try{p=g()}finally{u--,u||v()}return p},batchCalls:g=>(...p)=>{m(()=>{g(...p)})},schedule:m,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{f=g}}}var ut=g0(),An,ul,_n,_y,b0=(_y=class extends Pi{constructor(){super();ae(this,An,!0);ae(this,ul);ae(this,_n);J(this,_n,u=>{if(typeof window<"u"&&window.addEventListener){const r=()=>u(!0),c=()=>u(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){S(this,ul)||this.setEventListener(S(this,_n))}onUnsubscribe(){var u;this.hasListeners()||((u=S(this,ul))==null||u.call(this),J(this,ul,void 0))}setEventListener(u){var r;J(this,_n,u),(r=S(this,ul))==null||r.call(this),J(this,ul,u(this.setOnline.bind(this)))}setOnline(u){S(this,An)!==u&&(J(this,An,u),this.listeners.forEach(c=>{c(u)}))}isOnline(){return S(this,An)}},An=new WeakMap,ul=new WeakMap,_n=new WeakMap,_y),Ns=new b0;function x0(n){return Math.min(1e3*2**n,3e4)}function Yy(n){return(n??"online")==="online"?Ns.isOnline():!0}var yo=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Gy(n){let u=!1,r=0,c;const f=mo(),m=()=>f.status!=="pending",v=q=>{var Y;if(!m()){const O=new yo(q);D(O),(Y=n.onCancel)==null||Y.call(n,O)}},g=()=>{u=!0},p=()=>{u=!1},y=()=>Ao.isFocused()&&(n.networkMode==="always"||Ns.isOnline())&&n.canRun(),C=()=>Yy(n.networkMode)&&n.canRun(),E=q=>{m()||(c==null||c(),f.resolve(q))},D=q=>{m()||(c==null||c(),f.reject(q))},w=()=>new Promise(q=>{var Y;c=O=>{(m()||y())&&q(O)},(Y=n.onPause)==null||Y.call(n)}).then(()=>{var q;c=void 0,m()||(q=n.onContinue)==null||q.call(n)}),M=()=>{if(m())return;let q;const Y=r===0?n.initialPromise:void 0;try{q=Y??n.fn()}catch(O){q=Promise.reject(O)}Promise.resolve(q).then(E).catch(O=>{var P;if(m())return;const X=n.retry??(Ki.isServer()?0:3),G=n.retryDelay??x0,L=typeof G=="function"?G(r,O):G,K=X===!0||typeof X=="number"&&r<X||typeof X=="function"&&X(r,O);if(u||!K){D(O);return}r++,(P=n.onFail)==null||P.call(n,r,O),h0(L).then(()=>y()?void 0:w()).then(()=>{u?D(O):M()})})};return{promise:f,status:()=>f.status,cancel:v,continue:()=>(c==null||c(),f),cancelRetry:g,continueRetry:p,canStart:C,start:()=>(C()?M():w().then(M),f)}}var Ul,Oy,Xy=(Oy=class{constructor(){ae(this,Ul)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),co(this.gcTime)&&J(this,Ul,wl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ki.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,Ul)!==void 0&&(wl.clearTimeout(S(this,Ul)),J(this,Ul,void 0))}},Ul=new WeakMap,Oy),ql,On,Zt,Hl,Ie,Vi,Ll,wt,Ky,za,My,S0=(My=class extends Xy{constructor(u){super();ae(this,wt);ae(this,ql);ae(this,On);ae(this,Zt);ae(this,Hl);ae(this,Ie);ae(this,Vi);ae(this,Ll);J(this,Ll,!1),J(this,Vi,u.defaultOptions),this.setOptions(u.options),this.observers=[],J(this,Hl,u.client),J(this,Zt,S(this,Hl).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,J(this,ql,fy(this.options)),this.state=u.state??S(this,ql),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var u;return(u=S(this,Ie))==null?void 0:u.promise}setOptions(u){if(this.options={...S(this,Vi),...u},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=fy(this.options);r.data!==void 0&&(this.setState(oy(r.data,r.dataUpdatedAt)),J(this,ql,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Zt).remove(this)}setData(u,r){const c=ho(this.state.data,u,this.options);return me(this,wt,za).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(u,r){me(this,wt,za).call(this,{type:"setState",state:u,setStateOptions:r})}cancel(u){var c,f;const r=(c=S(this,Ie))==null?void 0:c.promise;return(f=S(this,Ie))==null||f.cancel(u),r?r.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,ql)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(u=>Vt(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Oo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>dl(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!Ly(this.state.dataUpdatedAt,u)}onFocus(){var r;const u=this.observers.find(c=>c.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(r=S(this,Ie))==null||r.continue()}onOnline(){var r;const u=this.observers.find(c=>c.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(r=S(this,Ie))==null||r.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),S(this,Zt).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(r=>r!==u),this.observers.length||(S(this,Ie)&&(S(this,Ll)||me(this,wt,Ky).call(this)?S(this,Ie).cancel({revert:!0}):S(this,Ie).cancelRetry()),this.scheduleGc()),S(this,Zt).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,wt,za).call(this,{type:"invalidate"})}async fetch(u,r){var p,y,C,E,D,w,M,q,Y,O,X,G;if(this.state.fetchStatus!=="idle"&&((p=S(this,Ie))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,Ie))return S(this,Ie).continueRetry(),S(this,Ie).promise}if(u&&this.setOptions(u),!this.options.queryFn){const L=this.observers.find(K=>K.options.queryFn);L&&this.setOptions(L.options)}const c=new AbortController,f=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(J(this,Ll,!0),c.signal)})},m=()=>{const L=Qy(this.options,r),P=(()=>{const ee={client:S(this,Hl),queryKey:this.queryKey,meta:this.meta};return f(ee),ee})();return J(this,Ll,!1),this.options.persister?this.options.persister(L,P,this):L(P)},g=(()=>{const L={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Hl),state:this.state,fetchFn:m};return f(L),L})();(y=this.options.behavior)==null||y.onFetch(g,this),J(this,On,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=g.fetchOptions)==null?void 0:C.meta))&&me(this,wt,za).call(this,{type:"fetch",meta:(E=g.fetchOptions)==null?void 0:E.meta}),J(this,Ie,Gy({initialPromise:r==null?void 0:r.initialPromise,fn:g.fetchFn,onCancel:L=>{L instanceof yo&&L.revert&&this.setState({...S(this,On),fetchStatus:"idle"}),c.abort()},onFail:(L,K)=>{me(this,wt,za).call(this,{type:"failed",failureCount:L,error:K})},onPause:()=>{me(this,wt,za).call(this,{type:"pause"})},onContinue:()=>{me(this,wt,za).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const L=await S(this,Ie).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(w=(D=S(this,Zt).config).onSuccess)==null||w.call(D,L,this),(q=(M=S(this,Zt).config).onSettled)==null||q.call(M,L,this.state.error,this),L}catch(L){if(L instanceof yo){if(L.silent)return S(this,Ie).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw me(this,wt,za).call(this,{type:"error",error:L}),(O=(Y=S(this,Zt).config).onError)==null||O.call(Y,L,this),(G=(X=S(this,Zt).config).onSettled)==null||G.call(X,this.state.data,L,this),L}finally{this.scheduleGc()}}},ql=new WeakMap,On=new WeakMap,Zt=new WeakMap,Hl=new WeakMap,Ie=new WeakMap,Vi=new WeakMap,Ll=new WeakMap,wt=new WeakSet,Ky=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},za=function(u){const r=c=>{switch(u.type){case"failed":return{...c,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Zy(c.data,this.options),fetchMeta:u.meta??null};case"success":const f={...c,...oy(u.data,u.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,On,u.manual?f:void 0),f;case"error":const m=u.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...u.state}}};this.state=r(this.state),ut.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),S(this,Zt).notify({query:this,type:"updated",action:u})})},My);function Zy(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yy(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function oy(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function fy(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,r=u!==void 0,c=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var xt,pe,Ji,dt,Bl,Mn,Aa,sl,$i,wn,Dn,Ql,kl,rl,Un,Ee,Yi,vo,po,go,bo,xo,So,Eo,Vy,wy,E0=(wy=class extends Pi{constructor(u,r){super();ae(this,Ee);ae(this,xt);ae(this,pe);ae(this,Ji);ae(this,dt);ae(this,Bl);ae(this,Mn);ae(this,Aa);ae(this,sl);ae(this,$i);ae(this,wn);ae(this,Dn);ae(this,Ql);ae(this,kl);ae(this,rl);ae(this,Un,new Set);this.options=r,J(this,xt,u),J(this,sl,null),J(this,Aa,mo()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,pe).addObserver(this),dy(S(this,pe),this.options)?me(this,Ee,Yi).call(this):this.updateResult(),me(this,Ee,bo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jo(S(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jo(S(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,Ee,xo).call(this),me(this,Ee,So).call(this),S(this,pe).removeObserver(this)}setOptions(u){const r=this.options,c=S(this,pe);if(this.options=S(this,xt).defaultQueryOptions(u),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,S(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,Ee,Eo).call(this),S(this,pe).setOptions(this.options),r._defaulted&&!oo(this.options,r)&&S(this,xt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,pe),observer:this});const f=this.hasListeners();f&&hy(S(this,pe),c,this.options,r)&&me(this,Ee,Yi).call(this),this.updateResult(),f&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||dl(this.options.staleTime,S(this,pe))!==dl(r.staleTime,S(this,pe)))&&me(this,Ee,vo).call(this);const m=me(this,Ee,po).call(this);f&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||m!==S(this,rl))&&me(this,Ee,go).call(this,m)}getOptimisticResult(u){const r=S(this,xt).getQueryCache().build(S(this,xt),u),c=this.createResult(r,u);return N0(this,c)&&(J(this,dt,c),J(this,Mn,this.options),J(this,Bl,S(this,pe).state)),c}getCurrentResult(){return S(this,dt)}trackResult(u,r){return new Proxy(u,{get:(c,f)=>(this.trackProp(f),r==null||r(f),f==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,Aa).status==="pending"&&S(this,Aa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,f))})}trackProp(u){S(this,Un).add(u)}getCurrentQuery(){return S(this,pe)}refetch({...u}={}){return this.fetch({...u})}fetchOptimistic(u){const r=S(this,xt).defaultQueryOptions(u),c=S(this,xt).getQueryCache().build(S(this,xt),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(u){return me(this,Ee,Yi).call(this,{...u,cancelRefetch:u.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,dt)))}createResult(u,r){var ye;const c=S(this,pe),f=this.options,m=S(this,dt),v=S(this,Bl),g=S(this,Mn),y=u!==c?u.state:S(this,Ji),{state:C}=u;let E={...C},D=!1,w;if(r._optimisticResults){const Me=this.hasListeners(),ke=!Me&&dy(u,r),Ye=Me&&hy(u,c,r,f);(ke||Ye)&&(E={...E,...Zy(C.data,u.options)}),r._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:M,errorUpdatedAt:q,status:Y}=E;w=E.data;let O=!1;if(r.placeholderData!==void 0&&w===void 0&&Y==="pending"){let Me;m!=null&&m.isPlaceholderData&&r.placeholderData===(g==null?void 0:g.placeholderData)?(Me=m.data,O=!0):Me=typeof r.placeholderData=="function"?r.placeholderData((ye=S(this,Dn))==null?void 0:ye.state.data,S(this,Dn)):r.placeholderData,Me!==void 0&&(Y="success",w=ho(m==null?void 0:m.data,Me,r),D=!0)}if(r.select&&w!==void 0&&!O)if(m&&w===(v==null?void 0:v.data)&&r.select===S(this,$i))w=S(this,wn);else try{J(this,$i,r.select),w=r.select(w),w=ho(m==null?void 0:m.data,w,r),J(this,wn,w),J(this,sl,null)}catch(Me){J(this,sl,Me)}S(this,sl)&&(M=S(this,sl),w=S(this,wn),q=Date.now(),Y="error");const X=E.fetchStatus==="fetching",G=Y==="pending",L=Y==="error",K=G&&X,P=w!==void 0,le={status:Y,fetchStatus:E.fetchStatus,isPending:G,isSuccess:Y==="success",isError:L,isInitialLoading:K,isLoading:K,data:w,dataUpdatedAt:E.dataUpdatedAt,error:M,errorUpdatedAt:q,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:u.isFetched(),isFetchedAfterMount:E.dataUpdateCount>y.dataUpdateCount||E.errorUpdateCount>y.errorUpdateCount,isFetching:X,isRefetching:X&&!G,isLoadingError:L&&!P,isPaused:E.fetchStatus==="paused",isPlaceholderData:D,isRefetchError:L&&P,isStale:Mo(u,r),refetch:this.refetch,promise:S(this,Aa),isEnabled:Vt(r.enabled,u)!==!1};if(this.options.experimental_prefetchInRender){const Me=le.data!==void 0,ke=le.status==="error"&&!Me,Ye=we=>{ke?we.reject(le.error):Me&&we.resolve(le.data)},Et=()=>{const we=J(this,Aa,le.promise=mo());Ye(we)},et=S(this,Aa);switch(et.status){case"pending":u.queryHash===c.queryHash&&Ye(et);break;case"fulfilled":(ke||le.data!==et.value)&&Et();break;case"rejected":(!ke||le.error!==et.reason)&&Et();break}}return le}updateResult(){const u=S(this,dt),r=this.createResult(S(this,pe),this.options);if(J(this,Bl,S(this,pe).state),J(this,Mn,this.options),S(this,Bl).data!==void 0&&J(this,Dn,S(this,pe)),oo(r,u))return;J(this,dt,r);const c=()=>{if(!u)return!0;const{notifyOnChangeProps:f}=this.options,m=typeof f=="function"?f():f;if(m==="all"||!m&&!S(this,Un).size)return!0;const v=new Set(m??S(this,Un));return this.options.throwOnError&&v.add("error"),Object.keys(S(this,dt)).some(g=>{const p=g;return S(this,dt)[p]!==u[p]&&v.has(p)})};me(this,Ee,Vy).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,Ee,bo).call(this)}},xt=new WeakMap,pe=new WeakMap,Ji=new WeakMap,dt=new WeakMap,Bl=new WeakMap,Mn=new WeakMap,Aa=new WeakMap,sl=new WeakMap,$i=new WeakMap,wn=new WeakMap,Dn=new WeakMap,Ql=new WeakMap,kl=new WeakMap,rl=new WeakMap,Un=new WeakMap,Ee=new WeakSet,Yi=function(u){me(this,Ee,Eo).call(this);let r=S(this,pe).fetch(this.options,u);return u!=null&&u.throwOnError||(r=r.catch(St)),r},vo=function(){me(this,Ee,xo).call(this);const u=dl(this.options.staleTime,S(this,pe));if(Ki.isServer()||S(this,dt).isStale||!co(u))return;const c=Ly(S(this,dt).dataUpdatedAt,u)+1;J(this,Ql,wl.setTimeout(()=>{S(this,dt).isStale||this.updateResult()},c))},po=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,pe)):this.options.refetchInterval)??!1},go=function(u){me(this,Ee,So).call(this),J(this,rl,u),!(Ki.isServer()||Vt(this.options.enabled,S(this,pe))===!1||!co(S(this,rl))||S(this,rl)===0)&&J(this,kl,wl.setInterval(()=>{(this.options.refetchIntervalInBackground||Ao.isFocused())&&me(this,Ee,Yi).call(this)},S(this,rl)))},bo=function(){me(this,Ee,vo).call(this),me(this,Ee,go).call(this,me(this,Ee,po).call(this))},xo=function(){S(this,Ql)!==void 0&&(wl.clearTimeout(S(this,Ql)),J(this,Ql,void 0))},So=function(){S(this,kl)!==void 0&&(wl.clearInterval(S(this,kl)),J(this,kl,void 0))},Eo=function(){const u=S(this,xt).getQueryCache().build(S(this,xt),this.options);if(u===S(this,pe))return;const r=S(this,pe);J(this,pe,u),J(this,Ji,u.state),this.hasListeners()&&(r==null||r.removeObserver(this),u.addObserver(this))},Vy=function(u){ut.batch(()=>{u.listeners&&this.listeners.forEach(r=>{r(S(this,dt))}),S(this,xt).getQueryCache().notify({query:S(this,pe),type:"observerResultsUpdated"})})},wy);function j0(n,u){return Vt(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function dy(n,u){return j0(n,u)||n.state.data!==void 0&&jo(n,u,u.refetchOnMount)}function jo(n,u,r){if(Vt(u.enabled,n)!==!1&&dl(u.staleTime,n)!=="static"){const c=typeof r=="function"?r(n):r;return c==="always"||c!==!1&&Mo(n,u)}return!1}function hy(n,u,r,c){return(n!==u||Vt(c.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Mo(n,r)}function Mo(n,u){return Vt(u.enabled,n)!==!1&&n.isStaleByTime(dl(u.staleTime,n))}function N0(n,u){return!oo(n.getCurrentResult(),u)}function my(n){return{onFetch:(u,r)=>{var C,E,D,w,M;const c=u.options,f=(D=(E=(C=u.fetchOptions)==null?void 0:C.meta)==null?void 0:E.fetchMore)==null?void 0:D.direction,m=((w=u.state.data)==null?void 0:w.pages)||[],v=((M=u.state.data)==null?void 0:M.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let q=!1;const Y=G=>{v0(G,()=>u.signal,()=>q=!0)},O=Qy(u.options,u.fetchOptions),X=async(G,L,K)=>{if(q)return Promise.reject();if(L==null&&G.pages.length)return Promise.resolve(G);const ee=(()=>{const ke={client:u.client,queryKey:u.queryKey,pageParam:L,direction:K?"backward":"forward",meta:u.options.meta};return Y(ke),ke})(),le=await O(ee),{maxPages:ye}=u.options,Me=K?y0:m0;return{pages:Me(G.pages,le,ye),pageParams:Me(G.pageParams,L,ye)}};if(f&&m.length){const G=f==="backward",L=G?T0:yy,K={pages:m,pageParams:v},P=L(c,K);g=await X(K,P,G)}else{const G=n??m.length;do{const L=p===0?v[0]??c.initialPageParam:yy(c,g);if(p>0&&L==null)break;g=await X(g,L),p++}while(p<G)}return g};u.options.persister?u.fetchFn=()=>{var q,Y;return(Y=(q=u.options).persister)==null?void 0:Y.call(q,y,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},r)}:u.fetchFn=y}}}function yy(n,{pages:u,pageParams:r}){const c=u.length-1;return u.length>0?n.getNextPageParam(u[c],u,r[c],r):void 0}function T0(n,{pages:u,pageParams:r}){var c;return u.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,u[0],u,r[0],r):void 0}var Fi,sa,rt,Yl,ra,ll,Dy,C0=(Dy=class extends Xy{constructor(u){super();ae(this,ra);ae(this,Fi);ae(this,sa);ae(this,rt);ae(this,Yl);J(this,Fi,u.client),this.mutationId=u.mutationId,J(this,rt,u.mutationCache),J(this,sa,[]),this.state=u.state||R0(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){S(this,sa).includes(u)||(S(this,sa).push(u),this.clearGcTimeout(),S(this,rt).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){J(this,sa,S(this,sa).filter(r=>r!==u)),this.scheduleGc(),S(this,rt).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){S(this,sa).length||(this.state.status==="pending"?this.scheduleGc():S(this,rt).remove(this))}continue(){var u;return((u=S(this,Yl))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var v,g,p,y,C,E,D,w,M,q,Y,O,X,G,L,K,P,ee;const r=()=>{me(this,ra,ll).call(this,{type:"continue"})},c={client:S(this,Fi),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,Yl,Gy({fn:()=>this.options.mutationFn?this.options.mutationFn(u,c):Promise.reject(new Error("No mutationFn found")),onFail:(le,ye)=>{me(this,ra,ll).call(this,{type:"failed",failureCount:le,error:ye})},onPause:()=>{me(this,ra,ll).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,rt).canRun(this)}));const f=this.state.status==="pending",m=!S(this,Yl).canStart();try{if(f)r();else{me(this,ra,ll).call(this,{type:"pending",variables:u,isPaused:m}),S(this,rt).config.onMutate&&await S(this,rt).config.onMutate(u,this,c);const ye=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,u,c));ye!==this.state.context&&me(this,ra,ll).call(this,{type:"pending",context:ye,variables:u,isPaused:m})}const le=await S(this,Yl).start();return await((y=(p=S(this,rt).config).onSuccess)==null?void 0:y.call(p,le,u,this.state.context,this,c)),await((E=(C=this.options).onSuccess)==null?void 0:E.call(C,le,u,this.state.context,c)),await((w=(D=S(this,rt).config).onSettled)==null?void 0:w.call(D,le,null,this.state.variables,this.state.context,this,c)),await((q=(M=this.options).onSettled)==null?void 0:q.call(M,le,null,u,this.state.context,c)),me(this,ra,ll).call(this,{type:"success",data:le}),le}catch(le){try{await((O=(Y=S(this,rt).config).onError)==null?void 0:O.call(Y,le,u,this.state.context,this,c))}catch(ye){Promise.reject(ye)}try{await((G=(X=this.options).onError)==null?void 0:G.call(X,le,u,this.state.context,c))}catch(ye){Promise.reject(ye)}try{await((K=(L=S(this,rt).config).onSettled)==null?void 0:K.call(L,void 0,le,this.state.variables,this.state.context,this,c))}catch(ye){Promise.reject(ye)}try{await((ee=(P=this.options).onSettled)==null?void 0:ee.call(P,void 0,le,u,this.state.context,c))}catch(ye){Promise.reject(ye)}throw me(this,ra,ll).call(this,{type:"error",error:le}),le}finally{S(this,rt).runNext(this)}}},Fi=new WeakMap,sa=new WeakMap,rt=new WeakMap,Yl=new WeakMap,ra=new WeakSet,ll=function(u){const r=c=>{switch(u.type){case"failed":return{...c,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...c,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:u.error,failureCount:c.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ut.batch(()=>{S(this,sa).forEach(c=>{c.onMutationUpdate(u)}),S(this,rt).notify({mutation:this,type:"updated",action:u})})},Dy);function R0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _a,ea,Wi,Uy,z0=(Uy=class extends Pi{constructor(u={}){super();ae(this,_a);ae(this,ea);ae(this,Wi);this.config=u,J(this,_a,new Set),J(this,ea,new Map),J(this,Wi,0)}build(u,r,c){const f=new C0({client:u,mutationCache:this,mutationId:++bs(this,Wi)._,options:u.defaultMutationOptions(r),state:c});return this.add(f),f}add(u){S(this,_a).add(u);const r=xs(u);if(typeof r=="string"){const c=S(this,ea).get(r);c?c.push(u):S(this,ea).set(r,[u])}this.notify({type:"added",mutation:u})}remove(u){if(S(this,_a).delete(u)){const r=xs(u);if(typeof r=="string"){const c=S(this,ea).get(r);if(c)if(c.length>1){const f=c.indexOf(u);f!==-1&&c.splice(f,1)}else c[0]===u&&S(this,ea).delete(r)}}this.notify({type:"removed",mutation:u})}canRun(u){const r=xs(u);if(typeof r=="string"){const c=S(this,ea).get(r),f=c==null?void 0:c.find(m=>m.state.status==="pending");return!f||f===u}else return!0}runNext(u){var c;const r=xs(u);if(typeof r=="string"){const f=(c=S(this,ea).get(r))==null?void 0:c.find(m=>m!==u&&m.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ut.batch(()=>{S(this,_a).forEach(u=>{this.notify({type:"removed",mutation:u})}),S(this,_a).clear(),S(this,ea).clear()})}getAll(){return Array.from(S(this,_a))}find(u){const r={exact:!0,...u};return this.getAll().find(c=>sy(r,c))}findAll(u={}){return this.getAll().filter(r=>sy(u,r))}notify(u){ut.batch(()=>{this.listeners.forEach(r=>{r(u)})})}resumePausedMutations(){const u=this.getAll().filter(r=>r.state.isPaused);return ut.batch(()=>Promise.all(u.map(r=>r.continue().catch(St))))}},_a=new WeakMap,ea=new WeakMap,Wi=new WeakMap,Uy);function xs(n){var u;return(u=n.options.scope)==null?void 0:u.id}var ca,qy,A0=(qy=class extends Pi{constructor(u={}){super();ae(this,ca);this.config=u,J(this,ca,new Map)}build(u,r,c){const f=r.queryKey,m=r.queryHash??_o(f,r);let v=this.get(m);return v||(v=new S0({client:u,queryKey:f,queryHash:m,options:u.defaultQueryOptions(r),state:c,defaultOptions:u.getQueryDefaults(f)}),this.add(v)),v}add(u){S(this,ca).has(u.queryHash)||(S(this,ca).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const r=S(this,ca).get(u.queryHash);r&&(u.destroy(),r===u&&S(this,ca).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){ut.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return S(this,ca).get(u)}getAll(){return[...S(this,ca).values()]}find(u){const r={exact:!0,...u};return this.getAll().find(c=>uy(r,c))}findAll(u={}){const r=this.getAll();return Object.keys(u).length>0?r.filter(c=>uy(u,c)):r}notify(u){ut.batch(()=>{this.listeners.forEach(r=>{r(u)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},ca=new WeakMap,qy),Qe,cl,ol,qn,Hn,fl,Ln,Bn,Hy,_0=(Hy=class{constructor(n={}){ae(this,Qe);ae(this,cl);ae(this,ol);ae(this,qn);ae(this,Hn);ae(this,fl);ae(this,Ln);ae(this,Bn);J(this,Qe,n.queryCache||new A0),J(this,cl,n.mutationCache||new z0),J(this,ol,n.defaultOptions||{}),J(this,qn,new Map),J(this,Hn,new Map),J(this,fl,0)}mount(){bs(this,fl)._++,S(this,fl)===1&&(J(this,Ln,Ao.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,Qe).onFocus())})),J(this,Bn,Ns.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,Qe).onOnline())})))}unmount(){var n,u;bs(this,fl)._--,S(this,fl)===0&&((n=S(this,Ln))==null||n.call(this),J(this,Ln,void 0),(u=S(this,Bn))==null||u.call(this),J(this,Bn,void 0))}isFetching(n){return S(this,Qe).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return S(this,cl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const u=this.defaultQueryOptions({queryKey:n});return(r=S(this,Qe).get(u.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),r=S(this,Qe).build(this,u),c=r.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(dl(u.staleTime,r))&&this.prefetchQuery(u),Promise.resolve(c))}getQueriesData(n){return S(this,Qe).findAll(n).map(({queryKey:u,state:r})=>{const c=r.data;return[u,c]})}setQueryData(n,u,r){const c=this.defaultQueryOptions({queryKey:n}),f=S(this,Qe).get(c.queryHash),m=f==null?void 0:f.state.data,v=f0(u,m);if(v!==void 0)return S(this,Qe).build(this,c).setData(v,{...r,manual:!0})}setQueriesData(n,u,r){return ut.batch(()=>S(this,Qe).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,u,r)]))}getQueryState(n){var r;const u=this.defaultQueryOptions({queryKey:n});return(r=S(this,Qe).get(u.queryHash))==null?void 0:r.state}removeQueries(n){const u=S(this,Qe);ut.batch(()=>{u.findAll(n).forEach(r=>{u.remove(r)})})}resetQueries(n,u){const r=S(this,Qe);return ut.batch(()=>(r.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const r={revert:!0,...u},c=ut.batch(()=>S(this,Qe).findAll(n).map(f=>f.cancel(r)));return Promise.all(c).then(St).catch(St)}invalidateQueries(n,u={}){return ut.batch(()=>(S(this,Qe).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},u)))}refetchQueries(n,u={}){const r={...u,cancelRefetch:u.cancelRefetch??!0},c=ut.batch(()=>S(this,Qe).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let m=f.fetch(void 0,r);return r.throwOnError||(m=m.catch(St)),f.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(St)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const r=S(this,Qe).build(this,u);return r.isStaleByTime(dl(u.staleTime,r))?r.fetch(u):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(St).catch(St)}fetchInfiniteQuery(n){return n.behavior=my(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(St).catch(St)}ensureInfiniteQueryData(n){return n.behavior=my(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ns.isOnline()?S(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Qe)}getMutationCache(){return S(this,cl)}getDefaultOptions(){return S(this,ol)}setDefaultOptions(n){J(this,ol,n)}setQueryDefaults(n,u){S(this,qn).set(Gi(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...S(this,qn).values()],r={};return u.forEach(c=>{Xi(n,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(n,u){S(this,Hn).set(Gi(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...S(this,Hn).values()],r={};return u.forEach(c=>{Xi(n,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const u={...S(this,ol).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=_o(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Oo&&(u.enabled=!1),u}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...S(this,ol).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){S(this,Qe).clear(),S(this,cl).clear()}},Qe=new WeakMap,cl=new WeakMap,ol=new WeakMap,qn=new WeakMap,Hn=new WeakMap,fl=new WeakMap,Ln=new WeakMap,Bn=new WeakMap,Hy),Jy=N.createContext(void 0),Qn=n=>{const u=N.useContext(Jy);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},O0=({client:n,children:u})=>(N.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(Jy.Provider,{value:n,children:u})),$y=N.createContext(!1),M0=()=>N.useContext($y);$y.Provider;function w0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var D0=N.createContext(w0()),U0=()=>N.useContext(D0),q0=(n,u,r)=>{const c=r!=null&&r.state.error&&typeof n.throwOnError=="function"?ky(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||c)&&(u.isReset()||(n.retryOnMount=!1))},H0=n=>{N.useEffect(()=>{n.clearReset()},[n])},L0=({result:n,errorResetBoundary:u,throwOnError:r,query:c,suspense:f})=>n.isError&&!u.isReset()&&!n.isFetching&&c&&(f&&n.data===void 0||ky(r,[n.error,c])),B0=n=>{if(n.suspense){const r=f=>f==="static"?f:Math.max(f??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...f)=>r(c(...f)):r(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Q0=(n,u)=>n.isLoading&&n.isFetching&&!u,k0=(n,u)=>(n==null?void 0:n.suspense)&&u.isPending,vy=(n,u,r)=>u.fetchOptimistic(n).catch(()=>{r.clearReset()});function Y0(n,u,r){var D,w,M,q;const c=M0(),f=U0(),m=Qn(),v=m.defaultQueryOptions(n);(w=(D=m.getDefaultOptions().queries)==null?void 0:D._experimental_beforeQuery)==null||w.call(D,v);const g=m.getQueryCache().get(v.queryHash);v._optimisticResults=c?"isRestoring":"optimistic",B0(v),q0(v,f,g),H0(f);const p=!m.getQueryCache().get(v.queryHash),[y]=N.useState(()=>new u(m,v)),C=y.getOptimisticResult(v),E=!c&&n.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(Y=>{const O=E?y.subscribe(ut.batchCalls(Y)):St;return y.updateResult(),O},[y,E]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),N.useEffect(()=>{y.setOptions(v)},[v,y]),k0(v,C))throw vy(v,y,f);if(L0({result:C,errorResetBoundary:f,throwOnError:v.throwOnError,query:g,suspense:v.suspense}))throw C.error;if((q=(M=m.getDefaultOptions().queries)==null?void 0:M._experimental_afterQuery)==null||q.call(M,v,C),v.experimental_prefetchInRender&&!Ki.isServer()&&Q0(C,c)){const Y=p?vy(v,y,f):g==null?void 0:g.promise;Y==null||Y.catch(St).finally(()=>{y.updateResult()})}return v.notifyOnChangeProps?C:y.trackResult(C)}function ct(n,u){return Y0(n,E0)}/**
|
|
50
|
+
* react-router v7.14.2
|
|
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 py="popstate";function gy(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function G0(n={}){function u(c,f){var y;let m=(y=f.state)==null?void 0:y.masked,{pathname:v,search:g,hash:p}=m||c.location;return No("",{pathname:v,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default",m?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function r(c,f){return typeof f=="string"?f:Zi(f)}return K0(u,r,null,n)}function He(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function Jt(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function X0(){return Math.random().toString(36).substring(2,10)}function by(n,u){return{usr:n.state,key:n.key,idx:u,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function No(n,u,r=null,c,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?kn(u):u,state:r,key:u&&u.key||c||X0(),unstable_mask:f}}function Zi({pathname:n="/",search:u="",hash:r=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function kn(n){let u={};if(n){let r=n.indexOf("#");r>=0&&(u.hash=n.substring(r),n=n.substring(0,r));let c=n.indexOf("?");c>=0&&(u.search=n.substring(c),n=n.substring(0,c)),n&&(u.pathname=n)}return u}function K0(n,u,r,c={}){let{window:f=document.defaultView,v5Compat:m=!1}=c,v=f.history,g="POP",p=null,y=C();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function C(){return(v.state||{idx:null}).idx}function E(){g="POP";let Y=C(),O=Y==null?null:Y-y;y=Y,p&&p({action:g,location:q.location,delta:O})}function D(Y,O){g="PUSH";let X=gy(Y)?Y:No(q.location,Y,O);y=C()+1;let G=by(X,y),L=q.createHref(X.unstable_mask||X);try{v.pushState(G,"",L)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;f.location.assign(L)}m&&p&&p({action:g,location:q.location,delta:1})}function w(Y,O){g="REPLACE";let X=gy(Y)?Y:No(q.location,Y,O);y=C();let G=by(X,y),L=q.createHref(X.unstable_mask||X);v.replaceState(G,"",L),m&&p&&p({action:g,location:q.location,delta:0})}function M(Y){return Z0(Y)}let q={get action(){return g},get location(){return n(f,v)},listen(Y){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(py,E),p=Y,()=>{f.removeEventListener(py,E),p=null}},createHref(Y){return u(f,Y)},createURL:M,encodeLocation(Y){let O=M(Y);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:D,replace:w,go(Y){return v.go(Y)}};return q}function Z0(n,u=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),He(r,"No window.location.(origin|href) available to create URL");let c=typeof n=="string"?n:Zi(n);return c=c.replace(/ $/,"%20"),!u&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Fy(n,u,r="/"){return V0(n,u,r,!1)}function V0(n,u,r,c){let f=typeof u=="string"?kn(u):u,m=Oa(f.pathname||"/",r);if(m==null)return null;let v=Wy(n);J0(v);let g=null;for(let p=0;g==null&&p<v.length;++p){let y=ib(m);g=lb(v[p],y,c)}return g}function Wy(n,u=[],r=[],c="",f=!1){let m=(v,g,p=f,y)=>{let C={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(c)&&p)return;He(C.relativePath.startsWith(c),`Absolute route path "${C.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(c.length)}let E=ta([c,C.relativePath]),D=r.concat(C);v.children&&v.children.length>0&&(He(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),Wy(v.children,u,D,E,p)),!(v.path==null&&!v.index)&&u.push({path:E,score:tb(E,v.index),routesMeta:D})};return n.forEach((v,g)=>{var p;if(v.path===""||!((p=v.path)!=null&&p.includes("?")))m(v,g);else for(let y of Py(v.path))m(v,g,!0,y)}),u}function Py(n){let u=n.split("/");if(u.length===0)return[];let[r,...c]=u,f=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return f?[m,""]:[m];let v=Py(c.join("/")),g=[];return g.push(...v.map(p=>p===""?m:[m,p].join("/"))),f&&g.push(...v),g.map(p=>n.startsWith("/")&&p===""?"/":p)}function J0(n){n.sort((u,r)=>u.score!==r.score?r.score-u.score:ab(u.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var $0=/^:[\w-]+$/,F0=3,W0=2,P0=1,I0=10,eb=-2,xy=n=>n==="*";function tb(n,u){let r=n.split("/"),c=r.length;return r.some(xy)&&(c+=eb),u&&(c+=W0),r.filter(f=>!xy(f)).reduce((f,m)=>f+($0.test(m)?F0:m===""?P0:I0),c)}function ab(n,u){return n.length===u.length&&n.slice(0,-1).every((c,f)=>c===u[f])?n[n.length-1]-u[u.length-1]:0}function lb(n,u,r=!1){let{routesMeta:c}=n,f={},m="/",v=[];for(let g=0;g<c.length;++g){let p=c[g],y=g===c.length-1,C=m==="/"?u:u.slice(m.length)||"/",E=Ts({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},C),D=p.route;if(!E&&y&&r&&!c[c.length-1].route.index&&(E=Ts({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},C)),!E)return null;Object.assign(f,E.params),v.push({params:f,pathname:ta([m,E.pathname]),pathnameBase:cb(ta([m,E.pathnameBase])),route:D}),E.pathnameBase!=="/"&&(m=ta([m,E.pathnameBase]))}return v}function Ts(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,c]=nb(n.path,n.caseSensitive,n.end),f=u.match(r);if(!f)return null;let m=f[0],v=m.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:c.reduce((y,{paramName:C,isOptional:E},D)=>{if(C==="*"){let M=g[D]||"";v=m.slice(0,m.length-M.length).replace(/(.)\/+$/,"$1")}const w=g[D];return E&&!w?y[C]=void 0:y[C]=(w||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:v,pattern:n}}function nb(n,u=!1,r=!0){Jt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,p,y,C)=>{if(c.push({paramName:g,isOptional:p!=null}),p){let E=C.charAt(y+v.length);return E&&E!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),c]}function ib(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Jt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),n}}function Oa(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let r=u.endsWith("/")?u.length-1:u.length,c=n.charAt(r);return c&&c!=="/"?null:n.slice(r)||"/"}var ub=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function sb(n,u="/"){let{pathname:r,search:c="",hash:f=""}=typeof n=="string"?kn(n):n,m;return r?(r=Iy(r),r.startsWith("/")?m=Sy(r.substring(1),"/"):m=Sy(r,u)):m=u,{pathname:m,search:ob(c),hash:fb(f)}}function Sy(n,u){let r=Cs(u).split("/");return n.split("/").forEach(f=>{f===".."?r.length>1&&r.pop():f!=="."&&r.push(f)}),r.length>1?r.join("/"):"/"}function io(n,u,r,c){return`Cannot include a '${n}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rb(n){return n.filter((u,r)=>r===0||u.route.path&&u.route.path.length>0)}function wo(n){let u=rb(n);return u.map((r,c)=>c===u.length-1?r.pathname:r.pathnameBase)}function Rs(n,u,r,c=!1){let f;typeof n=="string"?f=kn(n):(f={...n},He(!f.pathname||!f.pathname.includes("?"),io("?","pathname","search",f)),He(!f.pathname||!f.pathname.includes("#"),io("#","pathname","hash",f)),He(!f.search||!f.search.includes("#"),io("#","search","hash",f)));let m=n===""||f.pathname==="",v=m?"/":f.pathname,g;if(v==null)g=r;else{let E=u.length-1;if(!c&&v.startsWith("..")){let D=v.split("/");for(;D[0]==="..";)D.shift(),E-=1;f.pathname=D.join("/")}g=E>=0?u[E]:"/"}let p=sb(f,g),y=v&&v!=="/"&&v.endsWith("/"),C=(m||v===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(y||C)&&(p.pathname+="/"),p}var Iy=n=>n.replace(/\/\/+/g,"/"),ta=n=>Iy(n.join("/")),Cs=n=>n.replace(/\/+$/,""),cb=n=>Cs(n).replace(/^\/*/,"/"),ob=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,fb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,db=class{constructor(n,u,r,c=!1){this.status=n,this.statusText=u||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function hb(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function mb(n){let u=n.map(r=>r.route.path).filter(Boolean);return ta(u)||"/"}var ev=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tv(n,u){let r=n;if(typeof r!="string"||!ub.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,f=!1;if(ev)try{let m=new URL(window.location.href),v=r.startsWith("//")?new URL(m.protocol+r):new URL(r),g=Oa(v.pathname,u);v.origin===m.origin&&g!=null?r=g+v.search+v.hash:f=!0}catch{Jt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var av=["POST","PUT","PATCH","DELETE"];new Set(av);var yb=["GET",...av];new Set(yb);var Yn=N.createContext(null);Yn.displayName="DataRouter";var zs=N.createContext(null);zs.displayName="DataRouterState";var lv=N.createContext(!1);function vb(){return N.useContext(lv)}var nv=N.createContext({isTransitioning:!1});nv.displayName="ViewTransition";var pb=N.createContext(new Map);pb.displayName="Fetchers";var gb=N.createContext(null);gb.displayName="Await";var Dt=N.createContext(null);Dt.displayName="Navigation";var Ii=N.createContext(null);Ii.displayName="Location";var $t=N.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Do=N.createContext(null);Do.displayName="RouteError";var iv="REACT_ROUTER_ERROR",bb="REDIRECT",xb="ROUTE_ERROR_RESPONSE";function Sb(n){if(n.startsWith(`${iv}:${bb}:{`))try{let u=JSON.parse(n.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function Eb(n){if(n.startsWith(`${iv}:${xb}:{`))try{let u=JSON.parse(n.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new db(u.status,u.statusText,u.data)}catch{}}function jb(n,{relative:u}={}){He(Gn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=N.useContext(Dt),{hash:f,pathname:m,search:v}=eu(n,{relative:u}),g=m;return r!=="/"&&(g=m==="/"?r:ta([r,m])),c.createHref({pathname:g,search:v,hash:f})}function Gn(){return N.useContext(Ii)!=null}function aa(){return He(Gn(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(Ii).location}var uv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sv(n){N.useContext(Dt).static||N.useLayoutEffect(n)}function As(){let{isDataRoute:n}=N.useContext($t);return n?Bb():Nb()}function Nb(){He(Gn(),"useNavigate() may be used only in the context of a <Router> component.");let n=N.useContext(Yn),{basename:u,navigator:r}=N.useContext(Dt),{matches:c}=N.useContext($t),{pathname:f}=aa(),m=JSON.stringify(wo(c)),v=N.useRef(!1);return sv(()=>{v.current=!0}),N.useCallback((p,y={})=>{if(Jt(v.current,uv),!v.current)return;if(typeof p=="number"){r.go(p);return}let C=Rs(p,JSON.parse(m),f,y.relative==="path");n==null&&u!=="/"&&(C.pathname=C.pathname==="/"?u:ta([u,C.pathname])),(y.replace?r.replace:r.push)(C,y.state,y)},[u,r,m,f,n])}var Tb=N.createContext(null);function Cb(n){let u=N.useContext($t).outlet;return N.useMemo(()=>u&&N.createElement(Tb.Provider,{value:n},u),[u,n])}function Rb(){let{matches:n}=N.useContext($t),u=n[n.length-1];return(u==null?void 0:u.params)??{}}function eu(n,{relative:u}={}){let{matches:r}=N.useContext($t),{pathname:c}=aa(),f=JSON.stringify(wo(r));return N.useMemo(()=>Rs(n,JSON.parse(f),c,u==="path"),[n,f,c,u])}function zb(n,u){return rv(n,u)}function rv(n,u,r){var Y;He(Gn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=N.useContext(Dt),{matches:f}=N.useContext($t),m=f[f.length-1],v=m?m.params:{},g=m?m.pathname:"/",p=m?m.pathnameBase:"/",y=m&&m.route;{let O=y&&y.path||"";ov(g,!y||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${O}">) 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="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let C=aa(),E;if(u){let O=typeof u=="string"?kn(u):u;He(p==="/"||((Y=O.pathname)==null?void 0:Y.startsWith(p)),`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 "${p}" but pathname "${O.pathname}" was given in the \`location\` prop.`),E=O}else E=C;let D=E.pathname||"/",w=D;if(p!=="/"){let O=p.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(O.length).join("/")}let M=Fy(n,{pathname:w});Jt(y||M!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Jt(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.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=wb(M&&M.map(O=>Object.assign({},O,{params:Object.assign({},v,O.params),pathname:ta([p,c.encodeLocation?c.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?p:ta([p,c.encodeLocation?c.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),f,r);return u&&q?N.createElement(Ii.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...E},navigationType:"POP"}},q):q}function Ab(){let n=Lb(),u=hb(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},v=null;return console.error("Error handled by React Router default ErrorBoundary:",n),v=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:m},"ErrorBoundary")," or"," ",N.createElement("code",{style:m},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},u),r?N.createElement("pre",{style:f},r):null,v)}var _b=N.createElement(Ab,null),cv=class extends N.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.onError?this.props.onError(n,u):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=Eb(n.digest);r&&(n=r)}let u=n!==void 0?N.createElement($t.Provider,{value:this.props.routeContext},N.createElement(Do.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?N.createElement(Ob,{error:n},u):u}};cv.contextType=lv;var uo=new WeakMap;function Ob({children:n,error:u}){let{basename:r}=N.useContext(Dt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=Sb(u.digest);if(c){let f=uo.get(u);if(f)throw f;let m=tv(c.location,r);if(ev&&!uo.get(u))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw uo.set(u,v),v}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return n}function Mb({routeContext:n,match:u,children:r}){let c=N.useContext(Yn);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),N.createElement($t.Provider,{value:n},r)}function wb(n,u=[],r){let c=r==null?void 0:r.state;if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(u.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let f=n,m=c==null?void 0:c.errors;if(m!=null){let C=f.findIndex(E=>E.route.id&&(m==null?void 0:m[E.route.id])!==void 0);He(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,C+1))}let v=!1,g=-1;if(r&&c){v=c.renderFallback;for(let C=0;C<f.length;C++){let E=f[C];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(g=C),E.route.id){let{loaderData:D,errors:w}=c,M=E.route.loader&&!D.hasOwnProperty(E.route.id)&&(!w||w[E.route.id]===void 0);if(E.route.lazy||M){r.isStatic&&(v=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let p=r==null?void 0:r.onError,y=c&&p?(C,E)=>{var D,w;p(C,{location:c.location,params:((w=(D=c.matches)==null?void 0:D[0])==null?void 0:w.params)??{},unstable_pattern:mb(c.matches),errorInfo:E})}:void 0;return f.reduceRight((C,E,D)=>{let w,M=!1,q=null,Y=null;c&&(w=m&&E.route.id?m[E.route.id]:void 0,q=E.route.errorElement||_b,v&&(g<0&&D===0?(ov("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,Y=null):g===D&&(M=!0,Y=E.route.hydrateFallbackElement||null)));let O=u.concat(f.slice(0,D+1)),X=()=>{let G;return w?G=q:M?G=Y:E.route.Component?G=N.createElement(E.route.Component,null):E.route.element?G=E.route.element:G=C,N.createElement(Mb,{match:E,routeContext:{outlet:C,matches:O,isDataRoute:c!=null},children:G})};return c&&(E.route.ErrorBoundary||E.route.errorElement||D===0)?N.createElement(cv,{location:c.location,revalidation:c.revalidation,component:q,error:w,children:X(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:y}):X()},null)}function Uo(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Db(n){let u=N.useContext(Yn);return He(u,Uo(n)),u}function Ub(n){let u=N.useContext(zs);return He(u,Uo(n)),u}function qb(n){let u=N.useContext($t);return He(u,Uo(n)),u}function qo(n){let u=qb(n),r=u.matches[u.matches.length-1];return He(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Hb(){return qo("useRouteId")}function Lb(){var c;let n=N.useContext(Do),u=Ub("useRouteError"),r=qo("useRouteError");return n!==void 0?n:(c=u.errors)==null?void 0:c[r]}function Bb(){let{router:n}=Db("useNavigate"),u=qo("useNavigate"),r=N.useRef(!1);return sv(()=>{r.current=!0}),N.useCallback(async(f,m={})=>{Jt(r.current,uv),r.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:u,...m}))},[n,u])}var Ey={};function ov(n,u,r){!u&&!Ey[n]&&(Ey[n]=!0,Jt(!1,r))}N.memo(Qb);function Qb({routes:n,future:u,state:r,isStatic:c,onError:f}){return rv(n,void 0,{state:r,isStatic:c,onError:f})}function kb({to:n,replace:u,state:r,relative:c}){He(Gn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=N.useContext(Dt);Jt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=N.useContext($t),{pathname:v}=aa(),g=As(),p=Rs(n,wo(m),v,c==="path"),y=JSON.stringify(p);return N.useEffect(()=>{g(JSON.parse(y),{replace:u,state:r,relative:c})},[g,y,c,u,r]),null}function Yb(n){return Cb(n.context)}function Kt(n){He(!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 Gb({basename:n="/",children:u=null,location:r,navigationType:c="POP",navigator:f,static:m=!1,unstable_useTransitions:v}){He(!Gn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),p=N.useMemo(()=>({basename:g,navigator:f,static:m,unstable_useTransitions:v,future:{}}),[g,f,m,v]);typeof r=="string"&&(r=kn(r));let{pathname:y="/",search:C="",hash:E="",state:D=null,key:w="default",unstable_mask:M}=r,q=N.useMemo(()=>{let Y=Oa(y,g);return Y==null?null:{location:{pathname:Y,search:C,hash:E,state:D,key:w,unstable_mask:M},navigationType:c}},[g,y,C,E,D,w,c,M]);return Jt(q!=null,`<Router basename="${g}"> is not able to match the URL "${y}${C}${E}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:N.createElement(Dt.Provider,{value:p},N.createElement(Ii.Provider,{children:u,value:q}))}function Xb({children:n,location:u}){return zb(To(n),u)}function To(n,u=[]){let r=[];return N.Children.forEach(n,(c,f)=>{if(!N.isValidElement(c))return;let m=[...u,f];if(c.type===N.Fragment){r.push.apply(r,To(c.props.children,m));return}He(c.type===Kt,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!c.props.index||!c.props.children,"An index route cannot have child routes.");let v={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(v.children=To(c.props.children,m)),r.push(v)}),r}var Es="get",js="application/x-www-form-urlencoded";function _s(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Kb(n){return _s(n)&&n.tagName.toLowerCase()==="button"}function Zb(n){return _s(n)&&n.tagName.toLowerCase()==="form"}function Vb(n){return _s(n)&&n.tagName.toLowerCase()==="input"}function Jb(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function $b(n,u){return n.button===0&&(!u||u==="_self")&&!Jb(n)}function Co(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((u,r)=>{let c=n[r];return u.concat(Array.isArray(c)?c.map(f=>[r,f]):[[r,c]])},[]))}function Fb(n,u){let r=Co(n);return u&&u.forEach((c,f)=>{r.has(f)||u.getAll(f).forEach(m=>{r.append(f,m)})}),r}var Ss=null;function Wb(){if(Ss===null)try{new FormData(document.createElement("form"),0),Ss=!1}catch{Ss=!0}return Ss}var Pb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function so(n){return n!=null&&!Pb.has(n)?(Jt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${js}"`),null):n}function Ib(n,u){let r,c,f,m,v;if(Zb(n)){let g=n.getAttribute("action");c=g?Oa(g,u):null,r=n.getAttribute("method")||Es,f=so(n.getAttribute("enctype"))||js,m=new FormData(n)}else if(Kb(n)||Vb(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||g.getAttribute("action");if(c=p?Oa(p,u):null,r=n.getAttribute("formmethod")||g.getAttribute("method")||Es,f=so(n.getAttribute("formenctype"))||so(g.getAttribute("enctype"))||js,m=new FormData(g,n),!Wb()){let{name:y,type:C,value:E}=n;if(C==="image"){let D=y?`${y}.`:"";m.append(`${D}x`,"0"),m.append(`${D}y`,"0")}else y&&m.append(y,E)}}else{if(_s(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Es,c=null,f=js,v=n}return m&&f==="text/plain"&&(v=m,m=void 0),{action:c,method:r.toLowerCase(),encType:f,formData:m,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ho(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function fv(n,u,r,c){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:u&&Oa(f.pathname,u)==="/"?f.pathname=`${Cs(u)}/_root.${c}`:f.pathname=`${Cs(f.pathname)}.${c}`,f}async function ex(n,u){if(n.id in u)return u[n.id];try{let r=await import(n.module);return u[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tx(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function ax(n,u,r){let c=await Promise.all(n.map(async f=>{let m=u.routes[f.route.id];if(m){let v=await ex(m,r);return v.links?v.links():[]}return[]}));return ux(c.flat(1).filter(tx).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function jy(n,u,r,c,f,m){let v=(p,y)=>r[y]?p.route.id!==r[y].route.id:!0,g=(p,y)=>{var C;return r[y].pathname!==p.pathname||((C=r[y].route.path)==null?void 0:C.endsWith("*"))&&r[y].params["*"]!==p.params["*"]};return m==="assets"?u.filter((p,y)=>v(p,y)||g(p,y)):m==="data"?u.filter((p,y)=>{var E;let C=c.routes[p.route.id];if(!C||!C.hasLoader)return!1;if(v(p,y)||g(p,y))return!0;if(p.route.shouldRevalidate){let D=p.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((E=r[0])==null?void 0:E.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof D=="boolean")return D}return!0}):[]}function lx(n,u,{includeHydrateFallback:r}={}){return nx(n.map(c=>{let f=u.routes[c.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),r&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function nx(n){return[...new Set(n)]}function ix(n){let u={},r=Object.keys(n).sort();for(let c of r)u[c]=n[c];return u}function ux(n,u){let r=new Set;return new Set(u),n.reduce((c,f)=>{let m=JSON.stringify(ix(f));return r.has(m)||(r.add(m),c.push({key:m,link:f})),c},[])}function Lo(){let n=N.useContext(Yn);return Ho(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function sx(){let n=N.useContext(zs);return Ho(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Bo=N.createContext(void 0);Bo.displayName="FrameworkContext";function Qo(){let n=N.useContext(Bo);return Ho(n,"You must render this element inside a <HydratedRouter> element"),n}function rx(n,u){let r=N.useContext(Bo),[c,f]=N.useState(!1),[m,v]=N.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:y,onMouseLeave:C,onTouchStart:E}=u,D=N.useRef(null);N.useEffect(()=>{if(n==="render"&&v(!0),n==="viewport"){let q=O=>{O.forEach(X=>{v(X.isIntersecting)})},Y=new IntersectionObserver(q,{threshold:.5});return D.current&&Y.observe(D.current),()=>{Y.disconnect()}}},[n]),N.useEffect(()=>{if(c){let q=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(q)}}},[c]);let w=()=>{f(!0)},M=()=>{f(!1),v(!1)};return r?n!=="intent"?[m,D,{}]:[m,D,{onFocus:ki(g,w),onBlur:ki(p,M),onMouseEnter:ki(y,w),onMouseLeave:ki(C,M),onTouchStart:ki(E,w)}]:[!1,D,{}]}function ki(n,u){return r=>{n&&n(r),r.defaultPrevented||u(r)}}function cx({page:n,...u}){let r=vb(),{router:c}=Lo(),f=N.useMemo(()=>Fy(c.routes,n,c.basename),[c.routes,n,c.basename]);return f?r?N.createElement(fx,{page:n,matches:f,...u}):N.createElement(dx,{page:n,matches:f,...u}):null}function ox(n){let{manifest:u,routeModules:r}=Qo(),[c,f]=N.useState([]);return N.useEffect(()=>{let m=!1;return ax(n,u,r).then(v=>{m||f(v)}),()=>{m=!0}},[n,u,r]),c}function fx({page:n,matches:u,...r}){let c=aa(),{future:f}=Qo(),{basename:m}=Lo(),v=N.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let g=fv(n,m,f.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,y=[];for(let C of u)typeof C.route.shouldRevalidate=="function"?p=!0:y.push(C.route.id);return p&&y.length>0&&g.searchParams.set("_routes",y.join(",")),[g.pathname+g.search]},[m,f.unstable_trailingSlashAwareDataRequests,n,c,u]);return N.createElement(N.Fragment,null,v.map(g=>N.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})))}function dx({page:n,matches:u,...r}){let c=aa(),{future:f,manifest:m,routeModules:v}=Qo(),{basename:g}=Lo(),{loaderData:p,matches:y}=sx(),C=N.useMemo(()=>jy(n,u,y,m,c,"data"),[n,u,y,m,c]),E=N.useMemo(()=>jy(n,u,y,m,c,"assets"),[n,u,y,m,c]),D=N.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let q=new Set,Y=!1;if(u.forEach(X=>{var L;let G=m.routes[X.route.id];!G||!G.hasLoader||(!C.some(K=>K.route.id===X.route.id)&&X.route.id in p&&((L=v[X.route.id])!=null&&L.shouldRevalidate)||G.hasClientLoader?Y=!0:q.add(X.route.id))}),q.size===0)return[];let O=fv(n,g,f.unstable_trailingSlashAwareDataRequests,"data");return Y&&q.size>0&&O.searchParams.set("_routes",u.filter(X=>q.has(X.route.id)).map(X=>X.route.id).join(",")),[O.pathname+O.search]},[g,f.unstable_trailingSlashAwareDataRequests,p,c,m,C,u,n,v]),w=N.useMemo(()=>lx(E,m),[E,m]),M=ox(E);return N.createElement(N.Fragment,null,D.map(q=>N.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...r})),w.map(q=>N.createElement("link",{key:q,rel:"modulepreload",href:q,...r})),M.map(({key:q,link:Y})=>N.createElement("link",{key:q,nonce:r.nonce,...Y,crossOrigin:Y.crossOrigin??r.crossOrigin})))}function hx(...n){return u=>{n.forEach(r=>{typeof r=="function"?r(u):r!=null&&(r.current=u)})}}var mx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mx&&(window.__reactRouterVersion="7.14.2")}catch{}function yx({basename:n,children:u,unstable_useTransitions:r,window:c}){let f=N.useRef();f.current==null&&(f.current=G0({window:c,v5Compat:!0}));let m=f.current,[v,g]=N.useState({action:m.action,location:m.location}),p=N.useCallback(y=>{r===!1?g(y):N.startTransition(()=>g(y))},[r]);return N.useLayoutEffect(()=>m.listen(p),[m,p]),N.createElement(Gb,{basename:n,children:u,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:r})}var dv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xn=N.forwardRef(function({onClick:u,discover:r="render",prefetch:c="none",relative:f,reloadDocument:m,replace:v,unstable_mask:g,state:p,target:y,to:C,preventScrollReset:E,viewTransition:D,unstable_defaultShouldRevalidate:w,...M},q){let{basename:Y,navigator:O,unstable_useTransitions:X}=N.useContext(Dt),G=typeof C=="string"&&dv.test(C),L=tv(C,Y);C=L.to;let K=jb(C,{relative:f}),P=aa(),ee=null;if(g){let we=Rs(g,[],P.unstable_mask?P.unstable_mask.pathname:"/",!0);Y!=="/"&&(we.pathname=we.pathname==="/"?Y:ta([Y,we.pathname])),ee=O.createHref(we)}let[le,ye,Me]=rx(c,M),ke=gx(C,{replace:v,unstable_mask:g,state:p,target:y,preventScrollReset:E,relative:f,viewTransition:D,unstable_defaultShouldRevalidate:w,unstable_useTransitions:X});function Ye(we){u&&u(we),we.defaultPrevented||ke(we)}let Et=!(L.isExternal||m),et=N.createElement("a",{...M,...Me,href:(Et?ee:void 0)||L.absoluteURL||K,onClick:Et?Ye:u,ref:hx(q,ye),target:y,"data-discover":!G&&r==="render"?"true":void 0});return le&&!G?N.createElement(N.Fragment,null,et,N.createElement(cx,{page:K})):et});Xn.displayName="Link";var hv=N.forwardRef(function({"aria-current":u="page",caseSensitive:r=!1,className:c="",end:f=!1,style:m,to:v,viewTransition:g,children:p,...y},C){let E=eu(v,{relative:y.relative}),D=aa(),w=N.useContext(zs),{navigator:M,basename:q}=N.useContext(Dt),Y=w!=null&&jx(E)&&g===!0,O=M.encodeLocation?M.encodeLocation(E).pathname:E.pathname,X=D.pathname,G=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(X=X.toLowerCase(),G=G?G.toLowerCase():null,O=O.toLowerCase()),G&&q&&(G=Oa(G,q)||G);const L=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let K=X===O||!f&&X.startsWith(O)&&X.charAt(L)==="/",P=G!=null&&(G===O||!f&&G.startsWith(O)&&G.charAt(O.length)==="/"),ee={isActive:K,isPending:P,isTransitioning:Y},le=K?u:void 0,ye;typeof c=="function"?ye=c(ee):ye=[c,K?"active":null,P?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Me=typeof m=="function"?m(ee):m;return N.createElement(Xn,{...y,"aria-current":le,className:ye,ref:C,style:Me,to:v,viewTransition:g},typeof p=="function"?p(ee):p)});hv.displayName="NavLink";var vx=N.forwardRef(({discover:n="render",fetcherKey:u,navigate:r,reloadDocument:c,replace:f,state:m,method:v=Es,action:g,onSubmit:p,relative:y,preventScrollReset:C,viewTransition:E,unstable_defaultShouldRevalidate:D,...w},M)=>{let{unstable_useTransitions:q}=N.useContext(Dt),Y=Sx(),O=Ex(g,{relative:y}),X=v.toLowerCase()==="get"?"get":"post",G=typeof g=="string"&&dv.test(g),L=K=>{if(p&&p(K),K.defaultPrevented)return;K.preventDefault();let P=K.nativeEvent.submitter,ee=(P==null?void 0:P.getAttribute("formmethod"))||v,le=()=>Y(P||K.currentTarget,{fetcherKey:u,method:ee,navigate:r,replace:f,state:m,relative:y,preventScrollReset:C,viewTransition:E,unstable_defaultShouldRevalidate:D});q&&r!==!1?N.startTransition(()=>le()):le()};return N.createElement("form",{ref:M,method:X,action:O,onSubmit:c?p:L,...w,"data-discover":!G&&n==="render"?"true":void 0})});vx.displayName="Form";function px(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mv(n){let u=N.useContext(Yn);return He(u,px(n)),u}function gx(n,{target:u,replace:r,unstable_mask:c,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let C=As(),E=aa(),D=eu(n,{relative:v});return N.useCallback(w=>{if($b(w,u)){w.preventDefault();let M=r!==void 0?r:Zi(E)===Zi(D),q=()=>C(n,{replace:M,unstable_mask:c,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p});y?N.startTransition(()=>q()):q()}},[E,C,D,r,c,f,u,n,m,v,g,p,y])}function ko(n){Jt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=N.useRef(Co(n)),r=N.useRef(!1),c=aa(),f=N.useMemo(()=>Fb(c.search,r.current?null:u.current),[c.search]),m=As(),v=N.useCallback((g,p)=>{const y=Co(typeof g=="function"?g(new URLSearchParams(f)):g);r.current=!0,m("?"+y,p)},[m,f]);return[f,v]}var bx=0,xx=()=>`__${String(++bx)}__`;function Sx(){let{router:n}=mv("useSubmit"),{basename:u}=N.useContext(Dt),r=Hb(),c=n.fetch,f=n.navigate;return N.useCallback(async(m,v={})=>{let{action:g,method:p,encType:y,formData:C,body:E}=Ib(m,u);if(v.navigate===!1){let D=v.fetcherKey||xx();await c(D,r,v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:C,body:E,formMethod:v.method||p,formEncType:v.encType||y,flushSync:v.flushSync})}else await f(v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:C,body:E,formMethod:v.method||p,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:r,flushSync:v.flushSync,viewTransition:v.viewTransition})},[c,f,u,r])}function Ex(n,{relative:u}={}){let{basename:r}=N.useContext(Dt),c=N.useContext($t);He(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),m={...eu(n||".",{relative:u})},v=aa();if(n==null){m.search=v.search;let g=new URLSearchParams(m.search),p=g.getAll("index");if(p.some(C=>C==="")){g.delete("index"),p.filter(E=>E).forEach(E=>g.append("index",E));let C=g.toString();m.search=C?`?${C}`:""}}return(!n||n===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:ta([r,m.pathname])),Zi(m)}function jx(n,{relative:u}={}){let r=N.useContext(nv);He(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=mv("useViewTransitionState"),f=eu(n,{relative:u});if(!r.isTransitioning)return!1;let m=Oa(r.currentLocation.pathname,c)||r.currentLocation.pathname,v=Oa(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Ts(f.pathname,v)!=null||Ts(f.pathname,m)!=null}/**
|
|
61
|
+
* @license lucide-react v0.544.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const Nx=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tx=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,r,c)=>c?c.toUpperCase():r.toLowerCase()),Ny=n=>{const u=Tx(n);return u.charAt(0).toUpperCase()+u.slice(1)},yv=(...n)=>n.filter((u,r,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===r).join(" ").trim(),Cx=n=>{for(const u in n)if(u.startsWith("aria-")||u==="role"||u==="title")return!0};/**
|
|
66
|
+
* @license lucide-react v0.544.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/var Rx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
+
* @license lucide-react v0.544.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const zx=N.forwardRef(({color:n="currentColor",size:u=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:f="",children:m,iconNode:v,...g},p)=>N.createElement("svg",{ref:p,...Rx,width:u,height:u,stroke:n,strokeWidth:c?Number(r)*24/Number(u):r,className:yv("lucide",f),...!m&&!Cx(g)&&{"aria-hidden":"true"},...g},[...v.map(([y,C])=>N.createElement(y,C)),...Array.isArray(m)?m:[m]]));/**
|
|
76
|
+
* @license lucide-react v0.544.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const je=(n,u)=>{const r=N.forwardRef(({className:c,...f},m)=>N.createElement(zx,{ref:m,iconNode:u,className:yv(`lucide-${Nx(Ny(n))}`,`lucide-${n}`,c),...f}));return r.displayName=Ny(n),r};/**
|
|
81
|
+
* @license lucide-react v0.544.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const Ax=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],_x=je("activity",Ax);/**
|
|
86
|
+
* @license lucide-react v0.544.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Ox=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mx=je("chevron-down",Ox);/**
|
|
91
|
+
* @license lucide-react v0.544.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const wx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Dx=je("circle-alert",wx);/**
|
|
96
|
+
* @license lucide-react v0.544.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const Ux=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],qx=je("circle-check-big",Ux);/**
|
|
101
|
+
* @license lucide-react v0.544.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const Hx=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Lx=je("download",Hx);/**
|
|
106
|
+
* @license lucide-react v0.544.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Bx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Qx=je("file-text",Bx);/**
|
|
111
|
+
* @license lucide-react v0.544.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const kx=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],Yx=je("flame",kx);/**
|
|
116
|
+
* @license lucide-react v0.544.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const Gx=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Xx=je("funnel",Gx);/**
|
|
121
|
+
* @license lucide-react v0.544.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const Kx=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Zx=je("git-branch",Kx);/**
|
|
126
|
+
* @license lucide-react v0.544.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Vx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Jx=je("globe",Vx);/**
|
|
131
|
+
* @license lucide-react v0.544.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const $x=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],Fx=je("kanban",$x);/**
|
|
136
|
+
* @license lucide-react v0.544.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const Wx=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Px=je("layout-grid",Wx);/**
|
|
141
|
+
* @license lucide-react v0.544.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const Ix=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],e1=je("link",Ix);/**
|
|
146
|
+
* @license lucide-react v0.544.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const t1=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Ty=je("message-circle",t1);/**
|
|
151
|
+
* @license lucide-react v0.544.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const a1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],l1=je("message-square",a1);/**
|
|
156
|
+
* @license lucide-react v0.544.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const n1=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],i1=je("pause",n1);/**
|
|
161
|
+
* @license lucide-react v0.544.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const u1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Yo=je("play",u1);/**
|
|
166
|
+
* @license lucide-react v0.544.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const s1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Os=je("plus",s1);/**
|
|
171
|
+
* @license lucide-react v0.544.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const r1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],vv=je("refresh-cw",r1);/**
|
|
176
|
+
* @license lucide-react v0.544.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const c1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Go=je("rotate-ccw",c1);/**
|
|
181
|
+
* @license lucide-react v0.544.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const o1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xo=je("search",o1);/**
|
|
186
|
+
* @license lucide-react v0.544.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const f1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],d1=je("send",f1);/**
|
|
191
|
+
* @license lucide-react v0.544.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const h1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],m1=je("settings",h1);/**
|
|
196
|
+
* @license lucide-react v0.544.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const y1=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],v1=je("snowflake",y1);/**
|
|
201
|
+
* @license lucide-react v0.544.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const p1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],g1=je("square",p1);/**
|
|
206
|
+
* @license lucide-react v0.544.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const b1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],x1=je("terminal",b1);/**
|
|
211
|
+
* @license lucide-react v0.544.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const S1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],E1=je("trash-2",S1);/**
|
|
216
|
+
* @license lucide-react v0.544.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const j1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],pv=je("users",j1);/**
|
|
221
|
+
* @license lucide-react v0.544.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const N1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gv=je("x",N1);/**
|
|
226
|
+
* @license lucide-react v0.544.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const T1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],C1=je("zap",T1),R1=[{to:"/chat",label:"对话",icon:l1},{to:"/projects",label:"项目",icon:Px},{to:"/board",label:"看板",icon:Fx},{to:"/workers",label:"Workers",icon:pv},{to:"/logs",label:"Logs",icon:Qx},{to:"/skills",label:"Skills",icon:Jx},{to:"/system",label:"系统",icon:m1}];function z1(){return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"font-[family-name:var(--font-heading)] font-bold text-lg px-3 pt-2 pb-4 flex items-center gap-3 text-[var(--color-text)]",children:[d.jsx("span",{className:"w-5 h-5 rounded-md bg-[var(--color-accent-mint)] border-2 border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]"}),"SPS Console",d.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] font-normal",children:"v0.44"})]}),d.jsx("nav",{className:"flex flex-col gap-1.5 mt-2","aria-label":"主导航",children:R1.map(n=>{const u=n.icon;return d.jsxs(hv,{to:n.to,className:({isActive:r})=>["flex items-center gap-3 px-3 py-2.5 rounded-xl font-semibold text-sm cursor-pointer transition-transform duration-150","border-2 border-transparent",r?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] font-bold":"text-[var(--color-text)] hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)] hover:shadow-[3px_3px_0_var(--color-text)] hover:-translate-x-px hover:-translate-y-px"].join(" "),children:[d.jsx(u,{size:18,strokeWidth:2.5}),n.label]},n.to)})})]})}class A1 extends Error{constructor(u,r,c){super(r),this.status=u,this.detail=c,this.name="ApiError"}}async function Ft(n){const u=await fetch(n,{headers:{Accept:"application/json"}});if(!u.ok){let r;try{r=await u.json()}catch{r=await u.text()}throw new A1(u.status,`${u.status} ${u.statusText}`,r)}return await u.json()}function bv(){return Ft("/api/system/info")}function _1(){return Ft("/api/system/env")}function O1(){return Ft("/api/system/doctor/all")}function M1(){const{data:n,isError:u}=ct({queryKey:["system-info"],queryFn:bv,refetchInterval:3e4});return d.jsxs("div",{className:"h-10 flex items-center gap-4 px-6 font-[family-name:var(--font-mono)] text-[11px] text-[var(--color-text-muted)]",children:[d.jsx("span",{className:"nb-status",style:{background:u?"var(--color-crashed-bg)":"var(--color-running-bg)",color:u?"var(--color-crashed)":"var(--color-running)",padding:"2px 8px 2px 7px"},children:u?"disconnected":"server"}),d.jsxs("span",{children:["localhost:",window.location.port]}),n&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),d.jsxs("span",{children:["v",n.version]}),d.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),d.jsxs("span",{children:["node ",n.nodeVersion]})]}),d.jsx("span",{className:"ml-auto text-[var(--color-text-subtle)]",children:"Cmd+K"})]})}function w1(){return d.jsxs("div",{className:"grid grid-cols-[240px_1fr] grid-rows-[1fr_40px] min-h-screen",children:[d.jsx("aside",{className:"row-span-1 row-start-1 border-r-[3px] border-[var(--color-text)] bg-[var(--color-bg)] p-4 flex flex-col",children:d.jsx(z1,{})}),d.jsx("main",{className:"row-start-1 overflow-auto p-6 flex flex-col gap-4",children:d.jsx(Yb,{})}),d.jsx("footer",{className:"col-span-2 row-start-2 border-t-[3px] border-[var(--color-text)] bg-[var(--color-bg)]",children:d.jsx(M1,{})})]})}class D1 extends N.Component{constructor(){super(...arguments);$m(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,c){console.error("[ErrorBoundary]",r,c)}render(){return this.state.error?d.jsx("div",{className:"p-6",children:d.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-crashed-bg)]",children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"💥 UI 崩了"}),d.jsx("p",{className:"text-sm mb-3 text-[var(--color-text-muted)]",children:this.state.error.message}),d.jsxs("details",{className:"text-xs mb-4",children:[d.jsx("summary",{className:"cursor-pointer font-semibold",children:"stack"}),d.jsx("pre",{className:"mt-2 font-[family-name:var(--font-mono)] overflow-auto max-h-60 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-md p-3",children:this.state.error.stack??"(no stack)"})]}),d.jsx("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:()=>{this.setState({error:null}),window.location.reload()},children:"刷新页面"})]})}):this.props.children}}function Ms(){return Ft("/api/projects")}function U1(){const{data:n,isLoading:u,isError:r,error:c,refetch:f}=ct({queryKey:["projects"],queryFn:Ms});return d.jsxs("div",{className:"flex flex-col gap-6 max-w-6xl",children:[d.jsxs("header",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"项目 🎯"}),d.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:n?`${n.data.length} 个本机项目`:u?"加载中…":"点击刷新重试"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>f(),type:"button",children:[d.jsx(_x,{size:16,strokeWidth:2.5}),"刷新"]}),d.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[d.jsx(Os,{size:16,strokeWidth:3}),"新建项目"]})]})]}),u&&d.jsx(L1,{}),r&&d.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:"加载失败"}),d.jsx("p",{className:"text-sm text-[var(--color-text)]",children:c instanceof Error?c.message:String(c)}),d.jsx("button",{className:"nb-btn mt-4",onClick:()=>f(),type:"button",children:"重试"})]}),n&&n.data.length===0&&d.jsx(B1,{}),n&&n.data.length>0&&d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:n.data.map(m=>d.jsx(q1,{project:m},m.name))})]})}function q1({project:n}){const u=n.pipelineStatus==="running";return d.jsxs(Xn,{to:`/board?project=${encodeURIComponent(n.name)}`,className:"nb-card nb-card-interactive block no-underline text-[var(--color-text)]",children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-xl truncate",children:n.name}),d.jsx(H1,{status:n.pipelineStatus})]}),n.repoDir&&d.jsx("p",{className:"text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] truncate mb-3",children:n.repoDir}),d.jsxs("div",{className:"grid grid-cols-3 gap-2 text-sm mt-4 pt-3 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[d.jsx(ro,{label:"cards",value:n.cards.total,accent:"purple"}),d.jsx(ro,{label:"inprogress",value:n.cards.inprogress,accent:n.cards.inprogress>0?"yellow":"idle"}),d.jsx(ro,{label:"workers",value:`${n.workers.active}/${n.workers.total}`,accent:u?"mint":"idle"})]})]})}function ro({label:n,value:u,accent:r}){const c={purple:"var(--color-accent-purple)",yellow:"var(--color-accent-yellow)",mint:"var(--color-accent-mint)",idle:"var(--color-bg-cream)"};return d.jsxs("div",{className:"flex flex-col items-center justify-center py-2 rounded-lg border-2 border-[var(--color-text)]",style:{background:c[r]},children:[d.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-lg",children:u}),d.jsx("span",{className:"text-[10px] uppercase tracking-wider text-[var(--color-text-muted)] font-semibold",children:n})]})}function H1({status:n}){const u={running:{bg:"var(--color-running-bg)",label:"running"},idle:{bg:"var(--color-idle-bg)",label:"idle"},stopping:{bg:"var(--color-stuck-bg)",label:"stopping"},error:{bg:"var(--color-crashed-bg)",label:"error"}},{bg:r,label:c}=u[n],f=n==="running"?"var(--color-running)":n==="error"?"var(--color-crashed)":n==="stopping"?"var(--color-stuck)":"var(--color-idle)";return d.jsx("span",{className:"nb-status",style:{background:r,color:f},children:c})}function L1(){return d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[0,1,2].map(n=>d.jsxs("div",{className:"nb-card opacity-60 animate-pulse",children:[d.jsx("div",{className:"h-6 w-32 bg-[var(--color-border-light)] rounded-md mb-3"}),d.jsx("div",{className:"h-3 w-full bg-[var(--color-border-light)] rounded-md mb-2"}),d.jsx("div",{className:"h-3 w-2/3 bg-[var(--color-border-light)] rounded-md"})]},n))})}function B1(){return d.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] flex items-center gap-6 p-8",children:[d.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center",children:d.jsx(pv,{size:32,strokeWidth:2.5})}),d.jsxs("div",{className:"flex-1",children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"还没有项目 ✨"}),d.jsxs("p",{className:"text-sm text-[var(--color-text)] mb-4",children:["运行 ",d.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded-md font-[family-name:var(--font-mono)]",children:"sps project init <name>"})," 创建第一个项目。"]}),d.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[d.jsx(Os,{size:16,strokeWidth:3}),"新建项目"]})]})]})}function Q1(n){return Ft(`/api/projects/${encodeURIComponent(n)}/cards`)}function k1(n,u){return Ft(`/api/projects/${encodeURIComponent(n)}/cards/${u}`)}async function Kn(n,u){const r=await fetch(n,{method:"POST",headers:u?{"Content-Type":"application/json"}:void 0,body:u?JSON.stringify(u):void 0});if(!r.ok){const c=await r.text();throw new Error(`${r.status} ${r.statusText}: ${c}`)}return r.json().catch(()=>({}))}function Y1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/cards/${u}/reset`)}function G1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/cards/${u}/launch`)}function X1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/cards`,{title:u})}function K1(n){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/start`)}function Z1(n){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/stop`)}function V1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/reset`,u??{})}function xv(n){const u=Qn();N.useEffect(()=>{if(!n)return;const r=`/stream/projects/${encodeURIComponent(n)}`,c=new EventSource(r),f=g=>{try{const p=JSON.parse(g.data);u.invalidateQueries({queryKey:["cards",p.project]}),p.card&&u.setQueryData(["card",p.project,p.seq],{...u.getQueryData(["card",p.project,p.seq])??{},...p.card}),u.invalidateQueries({queryKey:["projects"]})}catch{}},m=g=>{try{const p=JSON.parse(g.data);u.invalidateQueries({queryKey:["workers",p.project]}),u.invalidateQueries({queryKey:["projects"]})}catch{}},v=g=>{try{const p=JSON.parse(g.data);u.invalidateQueries({queryKey:["pipeline-status",p.project]}),u.invalidateQueries({queryKey:["projects"]})}catch{}};return c.addEventListener("card.created",f),c.addEventListener("card.updated",f),c.addEventListener("card.deleted",f),c.addEventListener("worker.updated",m),c.addEventListener("worker.added",m),c.addEventListener("worker.deleted",m),c.addEventListener("pipeline.status",v),()=>c.close()},[n,u])}const J1=new Set(["python","typescript","golang","rust","kotlin","swift","java"]),$1=new Set(["frontend","backend","mobile","database","devops"]),F1=new Set(["backend-architect","frontend-developer","code-reviewer","database-optimizer","devops-automator","security-engineer","qa-tester","security","qa","architect","db-opt"]),W1=new Set(["coding-standards","tdd-workflow","git-workflow","architecture-decision-records","debugging-workflow"]);function P1(n){return J1.has(n)?"lang":$1.has(n)?"end":F1.has(n)?"persona":W1.has(n)?"workflow":"other"}const I1={lang:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg)"};function Sv({name:n}){const u=I1[P1(n)];return d.jsx("span",{className:"nb-badge",style:{background:u},children:n})}function Ev({label:n,kind:u="default"}){const r=u==="warn"?"var(--color-accent-pink)":u==="accent"?"var(--color-accent-yellow)":"var(--color-bg-cream)";return d.jsx("span",{className:"nb-badge",style:{background:r},children:n})}function e2({card:n,onClick:u,done:r}){const c=n.labels.some(f=>f.startsWith("STARTED-"))&&!r;return d.jsxs("article",{onClick:u,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),u())},tabIndex:0,role:"button","aria-label":`Card #${n.seq}: ${n.title}`,className:["bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl p-3","shadow-[3px_3px_0_var(--color-text)] cursor-pointer","transition-[transform,box-shadow] duration-[180ms] ease-out","hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-[5px_5px_0_var(--color-text)]","focus:outline-none focus-visible:ring-[3px] focus-visible:ring-offset-2 focus-visible:ring-[var(--color-text)]",r?"opacity-60":""].join(" "),children:[d.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[d.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-[11px] px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full",children:["#",n.seq]}),c&&d.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"running"})]}),d.jsx("p",{className:`font-bold text-sm leading-5 mb-2 line-clamp-2 ${r?"line-through decoration-2":""}`,children:n.title}),(n.skills.length>0||n.labels.length>0)&&d.jsxs("div",{className:"flex flex-wrap gap-1 mb-2",children:[n.skills.slice(0,3).map(f=>d.jsx(Sv,{name:f},f)),n.labels.filter(f=>f==="NEEDS-FIX").map(f=>d.jsx(Ev,{label:f,kind:"warn"},f))]}),d.jsxs("div",{className:"pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)] flex items-center gap-2 text-[11px] font-[family-name:var(--font-mono)] text-[var(--color-text-subtle)]",children:[d.jsx("span",{children:t2(n.updatedAt??n.createdAt)}),n.branch&&d.jsxs("span",{className:"truncate",children:["· ",n.branch]})]})]})}function t2(n){if(!n)return"—";const u=new Date(n),r=Date.now()-u.getTime();return r<6e4?"刚才":r<36e5?`${Math.floor(r/6e4)}m ago`:r<864e5?`${Math.floor(r/36e5)}h ago`:u.toLocaleDateString()}function a2({label:n,bg:u,cards:r,onCardClick:c}){return d.jsxs("div",{className:"flex flex-col gap-2 p-3 rounded-2xl border-[3px] border-[var(--color-text)] min-h-[340px]",style:{background:u},children:[d.jsxs("div",{className:"flex items-center justify-between px-1 pb-2 border-b-2 border-[var(--color-text)]",children:[d.jsx("span",{className:"font-[family-name:var(--font-heading)] font-bold text-sm uppercase tracking-wider",children:n}),d.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full",children:r.length})]}),d.jsxs("div",{className:"flex flex-col gap-2",children:[r.length===0&&d.jsx("div",{className:"text-xs text-[var(--color-text-muted)] text-center py-6 italic",children:"— 空 —"}),r.map(f=>d.jsx(e2,{card:f,onClick:()=>c(f),done:n==="Done"},f.seq))]})]})}function l2({project:n,seq:u,onClose:r,onChanged:c}){const{data:f,isLoading:m,isError:v,error:g}=ct({queryKey:["card",n,u],queryFn:()=>k1(n,u)});return N.useEffect(()=>{const p=y=>{y.key==="Escape"&&r()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[r]),d.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"card-modal-title",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:r,children:d.jsxs("div",{onClick:p=>p.stopPropagation(),className:"nb-card mt-12 w-full max-w-3xl bg-[var(--color-bg)]",children:[d.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[d.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full",children:["#",u]}),(f==null?void 0:f.state)&&d.jsx("span",{className:"font-[family-name:var(--font-mono)] text-xs px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full font-semibold",children:f.state})]}),d.jsx("h2",{id:"card-modal-title",className:"font-[family-name:var(--font-heading)] text-2xl font-bold",children:(f==null?void 0:f.title)??"加载中…"})]}),d.jsx("button",{onClick:r,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:d.jsx(gv,{size:16,strokeWidth:3})})]}),m&&d.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),v&&d.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",g instanceof Error?g.message:String(g)]}),f&&d.jsxs("div",{className:"flex flex-col gap-4",children:[f.branch&&d.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[d.jsx(Zx,{size:14}),d.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:f.branch})]}),(f.skills.length>0||f.labels.length>0)&&d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[f.skills.map(p=>d.jsx(Sv,{name:p},p)),f.labels.map(p=>d.jsx(Ev,{label:p,kind:p==="NEEDS-FIX"?"warn":"default"},p))]}),f.checklist.total>0&&d.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-3",children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsxs("span",{className:"font-bold text-sm",children:["检查清单 ",f.checklist.done,"/",f.checklist.total]}),d.jsx("div",{className:"w-24 h-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full overflow-hidden",children:d.jsx("div",{className:"h-full bg-[var(--color-cta)]",style:{width:`${f.checklist.percent}%`}})})]}),d.jsx("ul",{className:"text-sm space-y-1",children:f.checklist.items.map((p,y)=>d.jsxs("li",{className:`flex items-start gap-2 ${p.done?"opacity-60 line-through":""}`,children:[d.jsx("span",{children:p.done?"✓":"○"}),d.jsx("span",{children:p.text})]},y))})]}),f.body&&d.jsxs("div",{children:[d.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"正文"}),d.jsx("pre",{className:"text-xs whitespace-pre-wrap font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-64 overflow-auto",children:f.body.trim()||"(空)"})]}),d.jsxs("div",{className:"flex gap-3 pt-2 border-t-2 border-[var(--color-border-light)]",children:[d.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:async()=>{await G1(n,u),c()},children:[d.jsx(Yo,{size:14,strokeWidth:3}),"启动 worker"]}),d.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{window.confirm(`重置卡片 #${u}?`)&&(await Y1(n,u),c(),r())},children:[d.jsx(Go,{size:14,strokeWidth:2.5}),"重置卡片"]})]})]})]})})}function Ko({current:n,onChange:u}){const[r,c]=N.useState(!1),f=N.useRef(null),{data:m}=ct({queryKey:["projects"],queryFn:Ms});return N.useEffect(()=>{const v=g=>{var p;(p=f.current)!=null&&p.contains(g.target)||c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),d.jsxs("div",{className:"relative",ref:f,children:[d.jsxs("button",{type:"button",className:"inline-flex items-center gap-2 px-3 py-2 bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[3px_3px_0_var(--color-text)] font-[family-name:var(--font-mono)] text-sm font-bold hover:-translate-x-px hover:-translate-y-px hover:shadow-[4px_4px_0_var(--color-text)] transition-[transform,box-shadow] duration-150",onClick:()=>c(v=>!v),children:[n,d.jsx(Mx,{size:14,strokeWidth:2.5})]}),r&&m&&d.jsx("div",{className:"absolute right-0 mt-2 z-20 min-w-[200px] bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[5px_5px_0_var(--color-text)] overflow-hidden",children:m.data.map(v=>d.jsxs("button",{type:"button",onClick:()=>{u(v.name),c(!1)},className:["w-full text-left px-4 py-2 text-sm font-semibold",v.name===n?"bg-[var(--color-accent-mint)]":"hover:bg-[var(--color-bg-cream)]"].join(" "),children:[d.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:v.name}),d.jsxs("span",{className:"ml-2 text-xs text-[var(--color-text-muted)]",children:[v.cards.total," cards"]})]},v.name))})]})}function n2({title:n,body:u,confirm:r,onConfirm:c,onCancel:f,danger:m}){return N.useEffect(()=>{const v=g=>{g.key==="Escape"&&f()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[f]),d.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"confirm-title",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:f,children:d.jsxs("div",{onClick:v=>v.stopPropagation(),className:"nb-card max-w-md w-full",children:[d.jsx("h2",{id:"confirm-title",className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:n}),d.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5",children:u}),d.jsxs("div",{className:"flex gap-3 justify-end",children:[d.jsx("button",{className:"nb-btn",onClick:f,type:"button",children:"取消"}),d.jsx("button",{className:m?"nb-btn nb-btn-danger":"nb-btn nb-btn-yellow",onClick:async()=>{await c()},type:"button",children:r})]})]})})}const i2=[{state:"Backlog",label:"Backlog",bg:"var(--color-accent-purple)"},{state:"Inprogress",label:"Inprogress",bg:"var(--color-accent-yellow)"},{state:"Review",label:"Review",bg:"var(--color-accent-pink)"},{state:"Done",label:"Done",bg:"var(--color-accent-mint)"}];function u2(){var X,G,L;const[n,u]=ko(),r=n.get("project"),[c,f]=N.useState(null),[m,v]=N.useState(!1),[g,p]=N.useState("");xv(r);const y=ct({queryKey:["projects"],queryFn:Ms}),C=ct({queryKey:["cards",r],queryFn:()=>Q1(r??""),enabled:!!r}),E=Qn(),D=()=>{E.invalidateQueries({queryKey:["cards",r]}),E.invalidateQueries({queryKey:["projects"]}),E.invalidateQueries({queryKey:["pipeline-status",r]})},w=K=>{u({project:K})};if(!r)return d.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"看板"}),d.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] max-w-2xl",children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"选择一个项目 🎯"}),d.jsx("p",{className:"text-sm mb-4 text-[var(--color-text-muted)]",children:"看板按项目分。挑一个开始:"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:(X=y.data)==null?void 0:X.data.map(K=>d.jsx("button",{className:"nb-btn nb-btn-blue",onClick:()=>w(K.name),type:"button",children:K.name},K.name))})]})]});const M=((G=C.data)==null?void 0:G.data)??[],q=g?M.filter(K=>K.title.toLowerCase().includes(g.toLowerCase())||K.skills.some(P=>P.includes(g))||K.labels.some(P=>P.includes(g))):M,Y=(L=y.data)==null?void 0:L.data.find(K=>K.name===r),O=(Y==null?void 0:Y.pipelineStatus)==="running";return d.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[d.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"看板 ✨"}),d.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:Y?`${Y.name} · ${Y.cards.total} cards · ${Y.workers.active} workers 活跃`:"加载中…"})]}),d.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[d.jsx(Ko,{current:r,onChange:w}),O?d.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:async()=>{await Z1(r),D()},type:"button",children:[d.jsx(g1,{size:14,strokeWidth:3})," 停止"]}):d.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:async()=>{await K1(r),D()},type:"button",children:[d.jsx(Yo,{size:14,strokeWidth:3})," 启动 pipeline"]}),d.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>v(!0),type:"button",children:[d.jsx(Go,{size:14,strokeWidth:2.5})," 重置"]}),d.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{const K=window.prompt("卡片标题(markdown 会用作 title)");K&&(await X1(r,K),D())},type:"button",children:[d.jsx(Os,{size:14,strokeWidth:3})," 新卡片"]})]})]}),d.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[d.jsxs("div",{className:"relative flex-1 max-w-md",children:[d.jsx(Xo,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),d.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索标题 / skill / label…",value:g,onChange:K=>p(K.target.value),"aria-label":"搜索卡片"})]}),d.jsxs("span",{className:"text-xs text-[var(--color-text-muted)] flex items-center gap-1 font-[family-name:var(--font-mono)]",children:[d.jsx(Xx,{size:12}),q.length," / ",M.length]})]}),C.isError&&d.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[d.jsx("p",{className:"font-semibold",children:"加载卡片失败"}),d.jsx("p",{className:"text-sm mt-1 text-[var(--color-text-muted)]",children:C.error instanceof Error?C.error.message:String(C.error)})]}),!C.isError&&d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:i2.map(K=>d.jsx(a2,{label:K.label,bg:K.bg,cards:q.filter(s2(K.state)),onCardClick:P=>f(P.seq)},K.state))}),c!==null&&d.jsx(l2,{project:r,seq:c,onClose:()=>f(null),onChanged:D}),m&&d.jsx(n2,{title:"重置整个流水线",body:"这会清空所有卡片的运行状态、worker marker、分支。不可撤销。",confirm:"重置全部",onConfirm:async()=>{await V1(r,{all:!0}),v(!1),D()},onCancel:()=>v(!1)})]})}function s2(n){return u=>n==="Backlog"?u.state==="Backlog"||u.state==="Planning":n==="Done"?u.state==="Done"||u.state==="Canceled":u.state===n}function r2(n){return Ft(`/api/projects/${encodeURIComponent(n)}/workers`)}async function c2(n,u){const r=await fetch(n,{method:"POST",headers:void 0,body:void 0});if(!r.ok)throw new Error(`${r.status}: ${await r.text()}`);return r.json().catch(()=>({}))}function o2(n,u){return c2(`/api/projects/${encodeURIComponent(n)}/workers/${u}/kill`)}function f2(){const[n,u]=ko(),r=n.get("project");xv(r);const c=Qn(),{data:f,isLoading:m,isError:v,error:g,refetch:p}=ct({queryKey:["workers",r],queryFn:()=>r2(r??""),enabled:!!r,refetchInterval:5e3});if(!r)return d.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Workers 👷"}),d.jsxs("p",{className:"text-sm text-[var(--color-text-muted)]",children:["在 URL 上加 ",d.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"?project=xx"}),",或从",d.jsx(Xn,{to:"/projects",className:"underline font-semibold",children:" 项目列表"})," 打开看板后跳转。"]})]});const y=(f==null?void 0:f.data)??[],C=y.filter(w=>w.state==="running").length,E=y.filter(w=>w.state==="stuck").length,D=y.filter(w=>w.state==="crashed").length;return d.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[d.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Workers 👷"}),d.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[y.length," 个 slot · ",C," running · ",E," stuck · ",D," crashed"]})]}),d.jsxs("div",{className:"flex gap-3 items-center",children:[d.jsx(Ko,{current:r,onChange:w=>u({project:w})}),d.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>p(),type:"button",children:[d.jsx(Go,{size:14,strokeWidth:2.5})," 刷新"]})]})]}),m&&d.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),v&&d.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:d.jsxs("p",{className:"font-semibold",children:["加载失败: ",g instanceof Error?g.message:String(g)]})}),!m&&y.length===0&&d.jsx("div",{className:"nb-card bg-[var(--color-bg-cream)]",children:d.jsx("p",{className:"text-[var(--color-text-muted)]",children:"当前没有 worker slot。启动一次 pipeline 就会出现。"})}),y.length>0&&d.jsx("div",{className:"nb-card p-0 overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)]",children:[d.jsx(Ml,{w:"70px",children:"Slot"}),d.jsx(Ml,{children:"Card"}),d.jsx(Ml,{w:"110px",children:"Status"}),d.jsx(Ml,{w:"90px",children:"Stage"}),d.jsx(Ml,{w:"90px",children:"PID"}),d.jsx(Ml,{w:"120px",children:"Runtime"}),d.jsx(Ml,{w:"200px",right:!0,children:"Action"})]})}),d.jsx("tbody",{children:y.map(w=>d.jsx(d2,{project:r,worker:w,onChange:()=>c.invalidateQueries({queryKey:["workers",r]})},w.slot))})]})})]})}function Ml({children:n,w:u,right:r}){return d.jsx("th",{className:["px-4 py-3 text-left font-[family-name:var(--font-heading)] font-bold text-[12px] uppercase tracking-wider text-[var(--color-text-muted)]",r?"text-right":""].join(" "),style:u?{width:u}:void 0,children:n})}function d2({project:n,worker:u,onChange:r}){const c=u.state==="idle";return d.jsxs("tr",{className:"border-b border-dashed border-[var(--color-border-light)] last:border-0 hover:bg-[var(--color-accent-yellow)] transition-colors",children:[d.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] font-bold",children:u.slot}),d.jsx("td",{className:"px-4 py-3",children:u.card?d.jsxs("span",{className:"font-semibold",children:[d.jsxs("span",{className:"inline-block px-2 py-0.5 text-xs bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full font-[family-name:var(--font-mono)] mr-2",children:["#",u.card.seq]}),u.card.title]}):d.jsx("em",{className:"text-[var(--color-text-subtle)]",children:"— 空闲 —"})}),d.jsx("td",{className:"px-4 py-3",children:d.jsx(h2,{state:u.state})}),d.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:u.stage||"—"}),d.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:u.pid??"—"}),d.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:m2(u.runtimeMs)}),d.jsx("td",{className:"px-4 py-3 text-right space-x-2",children:!c&&d.jsxs(d.Fragment,{children:[d.jsxs(Xn,{to:`/logs?project=${encodeURIComponent(n)}&worker=${u.slot}`,className:"nb-btn nb-btn-sm",style:{display:"inline-flex",padding:"4px 10px",fontSize:11},children:[d.jsx(x1,{size:12,strokeWidth:2.5})," log"]}),d.jsxs("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:async()=>{window.confirm(`终止 worker-${u.slot}?`)&&(await o2(n,u.slot),r())},type:"button",children:[d.jsx(C1,{size:12,strokeWidth:2.5})," 终止"]})]})})]})}function h2({state:n}){const u={running:{bg:"var(--color-running-bg)",color:"var(--color-running)"},stuck:{bg:"var(--color-stuck-bg)",color:"var(--color-stuck)"},crashed:{bg:"var(--color-crashed-bg)",color:"var(--color-crashed)"},idle:{bg:"var(--color-idle-bg)",color:"var(--color-idle)"}},{bg:r,color:c}=u[n];return d.jsx("span",{className:"nb-status",style:{background:r,color:c},children:n})}function m2(n){if(n==null||n<=0)return"—";const u=Math.floor(n/1e3),r=Math.floor(u/3600),c=Math.floor(u%3600/60),f=u%60,m=v=>v.toString().padStart(2,"0");return r>0?`${m(r)}:${m(c)}:${m(f)}`:`${m(c)}:${m(f)}`}function y2(n){const u=new URLSearchParams({project:n.project});return n.worker&&u.set("worker",n.worker),u.set("limit",String(n.limit)),Ft(`/api/logs?${u}`)}function v2(n){const u=new URLSearchParams({project:n.project});return n.worker&&u.set("worker",n.worker),`/stream/logs?${u}`}const p2=["error","warn","info","debug"],g2=["error","warn","info"];function b2(){const[n,u]=ko(),r=n.get("project"),c=n.get("worker")??"",[f,m]=N.useState([]),[v,g]=N.useState(!1),[p,y]=N.useState(!0),[C,E]=N.useState(()=>new Set(g2)),[D,w]=N.useState(""),M=N.useRef(null),{data:q}=ct({queryKey:["logs",r,c],queryFn:()=>y2({project:r??"",worker:c||void 0,limit:500}),enabled:!!r});N.useEffect(()=>{q!=null&&q.data&&m(q.data)},[q]),N.useEffect(()=>{if(!r)return;const O=v2({project:r,worker:c||void 0}),X=new EventSource(O);return X.addEventListener("log.line",G=>{if(!v)try{const L=JSON.parse(G.data);m(K=>{const P=[...K,L];return P.length>5e3&&P.splice(0,P.length-5e3),P})}catch{}}),()=>X.close()},[r,c,v]),N.useEffect(()=>{if(!p)return;const O=M.current;O&&(O.scrollTop=O.scrollHeight)},[f,p]);const Y=N.useMemo(()=>{const O=D.toLowerCase();return f.filter(X=>!(!C.has(X.level)||O&&!X.msg.toLowerCase().includes(O)))},[f,C,D]);return r?d.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[d.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Logs 📜"}),d.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[r,c&&` · worker-${c}`," · tail -f · ",f.length," lines",v&&d.jsx("span",{className:"text-[var(--color-stuck)] ml-2 font-bold",children:"⏸ PAUSED"})]})]}),d.jsx("div",{className:"flex gap-3 items-center",children:d.jsx(Ko,{current:r,onChange:O=>u({project:O})})})]}),d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d.jsxs("div",{className:"relative flex-1 max-w-md",children:[d.jsx(Xo,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),d.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"过滤关键字…",value:D,onChange:O=>w(O.target.value),"aria-label":"过滤日志"})]}),d.jsx("div",{className:"flex items-center gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:p2.map(O=>d.jsx(x2,{level:O,enabled:C.has(O),onToggle:()=>{E(X=>{const G=new Set(X);return G.has(O)?G.delete(O):G.add(O),G})}},O))}),d.jsxs("div",{className:"ml-auto flex gap-2",children:[d.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>y(O=>!O),type:"button",children:p?"✓ Auto-scroll":"Auto-scroll"}),d.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>g(O=>!O),type:"button",children:v?d.jsxs(d.Fragment,{children:[d.jsx(Yo,{size:12,strokeWidth:3})," Resume"]}):d.jsxs(d.Fragment,{children:[d.jsx(i1,{size:12,strokeWidth:3})," Pause"]})}),d.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>{const O=new Blob([Y.map(L=>L.raw).join(`
|
|
231
|
+
`)],{type:"text/plain"}),X=URL.createObjectURL(O),G=document.createElement("a");G.href=X,G.download=`${r}-log-${Date.now()}.log`,G.click(),URL.revokeObjectURL(X)},type:"button",children:[d.jsx(Lx,{size:12,strokeWidth:2.5})," Export"]})]})]}),d.jsxs("div",{className:"nb-card p-0 overflow-hidden",children:[d.jsxs("div",{className:"px-4 py-2 bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)] flex items-center justify-between font-[family-name:var(--font-mono)] text-xs",children:[d.jsx("span",{className:"text-[var(--color-text-muted)]",children:(q==null?void 0:q.file)??"~/.coral/projects/.../logs/*.log"}),d.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"live"})]}),d.jsxs("div",{ref:M,className:"overflow-auto font-[family-name:var(--font-mono)] text-[12px] leading-[22px] max-h-[70vh] bg-[var(--color-bg)] p-2",onScroll:O=>{const X=O.currentTarget;!(X.scrollHeight-X.scrollTop-X.clientHeight<40)&&p&&y(!1)},children:[Y.map((O,X)=>d.jsx(S2,{line:O},X)),Y.length===0&&d.jsx("div",{className:"text-center py-12 text-[var(--color-text-subtle)]",children:"没有匹配的日志"})]})]})]}):d.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Logs 📜"}),d.jsxs("p",{className:"text-sm",children:["需要 ",d.jsx("code",{children:"?project=xx"}),"。"]})]})}function x2({level:n,enabled:u,onToggle:r}){const c={error:"var(--color-crashed-bg)",warn:"var(--color-stuck-bg)",info:"var(--color-secondary)",debug:"var(--color-accent-purple)"},f={error:"var(--color-crashed)",warn:"var(--color-stuck)",info:"var(--color-text)",debug:"var(--color-text)"};return d.jsx("button",{type:"button",onClick:r,"aria-pressed":u,className:["px-3 py-0.5 rounded-full font-[family-name:var(--font-mono)] text-[10px] font-bold tracking-widest cursor-pointer",u?"border-[1.5px] border-[var(--color-text)]":"text-[var(--color-text-subtle)]"].join(" "),style:u?{background:c[n],color:f[n]}:{},children:n.toUpperCase()})}function S2({line:n}){var r;const u={error:"bg-[var(--color-crashed)] text-[var(--color-text)]",warn:"bg-[var(--color-stuck)] text-[var(--color-text)]",info:"bg-[var(--color-secondary)] text-[var(--color-text)]",debug:"",trace:""};return d.jsxs("div",{className:"grid grid-cols-[100px_60px_1fr] gap-2 px-2 py-0.5 rounded hover:bg-[var(--color-bg-cream)]",children:[d.jsx("span",{className:"text-[var(--color-text-subtle)] whitespace-nowrap",children:n.ts?((r=n.ts.split("T")[1])==null?void 0:r.replace("Z",""))??n.ts:"--"}),d.jsx("span",{className:`text-center font-bold ${u[n.level]??""}`,style:{borderRadius:4,padding:"0 6px"},children:n.level.toUpperCase()}),d.jsx("span",{className:"truncate text-[var(--color-text)]",children:n.msg})]})}function E2(n){return Ft("/api/skills")}function j2(n){return Ft(`/api/skills/${encodeURIComponent(n)}`)}async function ws(n,u){const r=await fetch(n,{method:"POST",headers:u?{"Content-Type":"application/json"}:void 0,body:u?JSON.stringify(u):void 0});if(!r.ok)throw new Error(`${r.status}: ${await r.text()}`);return r.json().catch(()=>({}))}function N2(n,u){return ws(`/api/skills/${encodeURIComponent(n)}/link`,{project:u})}function T2(n,u){return fetch(`/api/skills/${encodeURIComponent(n)}/link?project=${encodeURIComponent(u)}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`${r.status}`);return r.json()})}function C2(n,u){return ws(`/api/skills/${encodeURIComponent(n)}/freeze`,{project:u})}function R2(n,u){return ws(`/api/skills/${encodeURIComponent(n)}/unfreeze`,{project:u})}function z2(){return ws("/api/skills/sync")}function A2({name:n,projects:u,onClose:r,onChange:c}){const{data:f,isLoading:m,isError:v,error:g,refetch:p}=ct({queryKey:["skill",n],queryFn:()=>j2(n)});N.useEffect(()=>{const M=q=>{q.key==="Escape"&&r()};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[r]);const y=async M=>{await N2(n,M),p(),c()},C=async M=>{window.confirm(`从 ${M} 移除 ${n}?`)&&(await T2(n,M),p(),c())},E=async M=>{await C2(n,M),p(),c()},D=async M=>{window.confirm(`${M} 里 ${n} 的本地改动会丢失,确定 unfreeze?`)&&(await R2(n,M),p(),c())},w=new Map(((f==null?void 0:f.linkedProjects)??[]).map(M=>[M.project,M.state]));return d.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:r,children:d.jsxs("div",{onClick:M=>M.stopPropagation(),className:"nb-card mt-8 w-full max-w-4xl",children:[d.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:n}),f&&d.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[f.category," · ",f.origin||"local"]})]}),d.jsx("button",{onClick:r,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:d.jsx(gv,{size:16,strokeWidth:3})})]}),m&&d.jsx("p",{children:"加载中…"}),v&&d.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",g instanceof Error?g.message:String(g)]}),f&&d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-4",children:[d.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-3 uppercase tracking-wider",children:"项目链接状态"}),d.jsxs("div",{className:"flex flex-col gap-2",children:[u.map(M=>{const q=w.get(M);return d.jsxs("div",{className:"flex items-center justify-between gap-3 p-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-lg",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-sm",children:M}),q==="linked"&&d.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"linked"}),q==="frozen"&&d.jsx("span",{className:"nb-status",style:{background:"var(--color-stuck-bg)",color:"var(--color-stuck)"},children:"frozen"}),!q&&d.jsx("span",{className:"nb-status",style:{background:"var(--color-idle-bg)",color:"var(--color-idle)"},children:"absent"})]}),d.jsxs("div",{className:"flex gap-2",children:[!q&&d.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"4px 10px",fontSize:11},onClick:()=>y(M),type:"button",children:[d.jsx(e1,{size:11})," link"]}),q==="linked"&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>E(M),type:"button",children:[d.jsx(v1,{size:11})," freeze"]}),d.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>C(M),type:"button",children:"unlink"})]}),q==="frozen"&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>D(M),type:"button",children:[d.jsx(Yx,{size:11})," unfreeze"]}),d.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>C(M),type:"button",children:"unlink"})]})]})]},M)}),u.length===0&&d.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"还没有任何项目。先去创建一个项目。"})]})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"SKILL.md 预览"}),d.jsx("pre",{className:"text-xs whitespace-pre-wrap font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-80 overflow-auto",children:f.body||"(empty)"})]}),f.references.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"References"}),d.jsx("ul",{className:"text-sm space-y-1 font-[family-name:var(--font-mono)]",children:f.references.map(M=>d.jsxs("li",{className:"flex items-center gap-3",children:[d.jsx("span",{children:M.name}),d.jsxs("span",{className:"text-xs text-[var(--color-text-subtle)]",children:[M.lines," lines"]})]},M.name))})]})]})]})})}const _2=[{value:"all",label:"全部"},{value:"language",label:"language"},{value:"end",label:"end"},{value:"persona",label:"persona"},{value:"workflow",label:"workflow"},{value:"other",label:"other"}],O2={language:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg-cream)"};function M2(){var D;const[n,u]=N.useState("all"),[r,c]=N.useState(""),[f,m]=N.useState(null),v=Qn(),{data:g,isLoading:p}=ct({queryKey:["skills"],queryFn:()=>E2()}),y=ct({queryKey:["projects"],queryFn:Ms}),C=N.useMemo(()=>((g==null?void 0:g.data)??[]).filter(M=>!(n!=="all"&&M.category!==n||r&&!M.name.toLowerCase().includes(r.toLowerCase()))),[g,n,r]),E=N.useMemo(()=>{const w=(g==null?void 0:g.data)??[],M={all:w.length};for(const q of w)M[q.category]=(M[q.category]??0)+1;return M},[g]);return d.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[d.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"Skills 🎯"}),d.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:p?"加载中…":`${(g==null?void 0:g.data.length)??0} 个 user-level skill`})]}),d.jsx("div",{className:"flex gap-3 items-center",children:d.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{await z2(),v.invalidateQueries({queryKey:["skills"]})},type:"button",children:[d.jsx(vv,{size:14,strokeWidth:2.5}),"Sync bundled"]})})]}),d.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[d.jsxs("div",{className:"relative flex-1 max-w-md",children:[d.jsx(Xo,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),d.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索 skill…",value:r,onChange:w=>c(w.target.value),"aria-label":"搜索 skill"})]}),d.jsx("div",{className:"flex gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:_2.map(w=>d.jsxs("button",{type:"button",onClick:()=>u(w.value),className:["px-3 py-1 rounded-full text-xs font-bold font-[family-name:var(--font-body)]",n===w.value?"bg-[var(--color-text)] text-[var(--color-bg)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text)]"].join(" "),children:[w.label," ",E[w.value]]},w.value))})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:C.map(w=>{var M;return d.jsx(w2,{skill:w,projectCount:((M=y.data)==null?void 0:M.data.length)??0,onOpen:()=>m(w.name)},w.name)})}),f&&d.jsx(A2,{name:f,projects:((D=y.data)==null?void 0:D.data.map(w=>w.name))??[],onClose:()=>m(null),onChange:()=>v.invalidateQueries({queryKey:["skills"]})})]})}function w2({skill:n,projectCount:u,onOpen:r}){const c=O2[n.category];return d.jsxs("article",{onClick:r,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),r())},tabIndex:0,role:"button","aria-label":`Open ${n.name}`,className:"nb-card nb-card-interactive flex flex-col gap-3",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:n.name}),d.jsx("span",{className:"nb-badge text-[10px]",style:{background:c},children:n.category})]}),d.jsx("p",{className:"text-sm text-[var(--color-text-muted)] leading-5 line-clamp-3",children:n.description||"(no description)"}),d.jsxs("div",{className:"flex items-center justify-between text-xs font-[family-name:var(--font-mono)] pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[d.jsx("span",{className:"font-bold",children:n.linkedProjects.length>0?`● linked in ${n.linkedProjects.length}`:"○ not linked"}),d.jsxs("span",{className:"text-[var(--color-text-subtle)]",children:[u," projects"]})]})]})}function D2(){const n=ct({queryKey:["system-info"],queryFn:bv}),u=ct({queryKey:["system-env"],queryFn:_1}),r=ct({queryKey:["doctor"],queryFn:O1});return d.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[d.jsx("header",{children:d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"系统 ⚙️"})}),d.jsxs("section",{className:"nb-card",children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"版本与运行时"}),n.data?d.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-2 text-sm",children:[d.jsx("dt",{className:"font-bold",children:"sps-cli"}),d.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.version}),d.jsx("dt",{className:"font-bold",children:"Node"}),d.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.nodeVersion}),d.jsx("dt",{className:"font-bold",children:"Platform"}),d.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.platform}),d.jsx("dt",{className:"font-bold",children:"PID"}),d.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.pid??"—"}),d.jsx("dt",{className:"font-bold",children:"Uptime"}),d.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:U2(n.data.uptimeMs)})]}):d.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})]}),d.jsxs("section",{className:"nb-card",children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsxs("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:["全局配置 ",d.jsx("code",{className:"text-sm font-[family-name:var(--font-mono)] font-normal bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"~/.coral/env"})]}),d.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:"敏感值脱敏"})]}),u.data&&u.data.exists?d.jsx("dl",{className:"grid grid-cols-[220px_1fr] gap-y-1 text-sm font-[family-name:var(--font-mono)]",children:u.data.entries.map(c=>d.jsxs("div",{className:"contents",children:[d.jsxs("dt",{className:"font-bold flex items-center gap-2",children:[c.masked&&d.jsx("span",{className:"text-[var(--color-stuck)]",children:"🔒"}),c.key]}),d.jsx("dd",{className:"text-[var(--color-text-muted)] truncate",children:c.value})]},c.key))}):d.jsxs("p",{className:"text-[var(--color-text-muted)] text-sm",children:["env 文件不存在。运行 ",d.jsx("code",{className:"bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded font-[family-name:var(--font-mono)]",children:"sps setup"})," 配置。"]})]}),d.jsxs("section",{className:"nb-card",children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:"项目健康检查"}),d.jsxs("button",{className:"nb-btn nb-btn-mint",style:{padding:"6px 12px",fontSize:12},onClick:()=>r.refetch(),type:"button",children:[d.jsx(vv,{size:12,strokeWidth:2.5}),"重跑"]})]}),r.data&&r.data.data.length>0?d.jsx("ul",{className:"flex flex-col gap-2",children:r.data.data.map(c=>d.jsxs("li",{className:"flex items-center gap-3 px-3 py-2 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg",children:[c.ok?d.jsx(qx,{size:16,className:"text-[var(--color-running)]",strokeWidth:2.5}):d.jsx(Dx,{size:16,className:"text-[var(--color-stuck)]",strokeWidth:2.5}),d.jsx("span",{className:"font-bold font-[family-name:var(--font-mono)]",children:c.project}),c.issues.length>0?d.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:c.issues.join("; ")}):d.jsx("span",{className:"text-xs text-[var(--color-running)] font-semibold",children:"OK"})]},c.project))}):d.jsx("p",{className:"text-[var(--color-text-muted)] text-sm",children:"还没有项目。"})]})]})}function U2(n){const u=Math.floor(n/1e3),r=Math.floor(u/3600),c=Math.floor(u%3600/60),f=u%60;return r>0?`${r}h ${c}m ${f}s`:c>0?`${c}m ${f}s`:`${f}s`}function q2(){return Ft("/api/chat/sessions")}function H2(n){return Ft(`/api/chat/sessions/${n}`)}async function Cy(n={}){const u=await fetch("/api/chat/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!u.ok)throw new Error(`${u.status}: ${await u.text()}`);return await u.json()}async function L2(n){const u=await fetch(`/api/chat/sessions/${n}`,{method:"DELETE"});if(!u.ok)throw new Error(`${u.status}`)}async function B2(n,u){const r=await fetch(`/api/chat/sessions/${n}/messages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:u})});if(!r.ok)throw new Error(`${r.status}: ${await r.text()}`);return await r.json()}function Ry(){var w,M,q,Y,O,X,G;const{sessionId:n}=Rb(),u=As(),r=Qn(),c=ct({queryKey:["chat-sessions"],queryFn:q2}),f=ct({queryKey:["chat-session",n],queryFn:()=>H2(n??""),enabled:!!n}),[m,v]=N.useState(""),[g,p]=N.useState(!1),y=N.useRef(null);N.useEffect(()=>{const L=y.current;L&&(L.scrollTop=L.scrollHeight)},[f.data]);const C=async()=>{const L=await Cy();r.invalidateQueries({queryKey:["chat-sessions"]}),u(`/chat/${L.id}`)},E=async()=>{if(!m.trim())return;let L=n;if(!L){const P=await Cy();r.invalidateQueries({queryKey:["chat-sessions"]}),L=P.id,u(`/chat/${L}`)}p(!0);const K=m;v("");try{await B2(L,K),r.invalidateQueries({queryKey:["chat-session",L]}),r.invalidateQueries({queryKey:["chat-sessions"]})}catch(P){console.error(P)}finally{p(!1)}},D=async L=>{window.confirm("删除这个对话?")&&(await L2(L),r.invalidateQueries({queryKey:["chat-sessions"]}),n===L&&u("/chat"))};return d.jsxs("div",{className:"grid grid-cols-[260px_1fr] gap-4 h-[calc(100vh-140px)]",children:[d.jsxs("aside",{className:"nb-card p-3 overflow-auto flex flex-col gap-2",children:[d.jsxs("button",{className:"nb-btn nb-btn-primary w-full justify-center",onClick:C,type:"button",children:[d.jsx(Os,{size:14,strokeWidth:3}),"新建对话"]}),d.jsxs("div",{className:"mt-2 text-xs font-[family-name:var(--font-heading)] uppercase tracking-wider text-[var(--color-text-muted)] px-2",children:["历史 ",((w=c.data)==null?void 0:w.data.length)??0]}),d.jsxs("div",{className:"flex flex-col gap-1.5 mt-1",children:[(((M=c.data)==null?void 0:M.data)??[]).map(L=>d.jsxs("div",{className:["group flex items-start gap-2 p-2 rounded-lg border-2 border-transparent cursor-pointer",n===L.id?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]":"hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)]"].join(" "),onClick:()=>u(`/chat/${L.id}`),onKeyDown:K=>{K.key==="Enter"&&u(`/chat/${L.id}`)},tabIndex:0,role:"button",children:[d.jsx(Ty,{size:14,strokeWidth:2.5,className:"mt-0.5 flex-shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-semibold truncate",children:L.title}),d.jsxs("p",{className:"text-[10px] text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] truncate",children:[L.messageCount," msg · ",jv(L.lastMessageAt??L.createdAt)]})]}),d.jsx("button",{type:"button","aria-label":"删除对话",className:"opacity-0 group-hover:opacity-100 p-1 hover:text-[var(--color-crashed)]",onClick:K=>{K.stopPropagation(),D(L.id)},children:d.jsx(E1,{size:12})})]},L.id)),(((q=c.data)==null?void 0:q.data)??[]).length===0&&d.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic text-center py-4",children:"还没对话。点上面新建。"})]})]}),d.jsx("div",{className:"nb-card p-0 flex flex-col overflow-hidden",children:n?d.jsxs(d.Fragment,{children:[d.jsxs("header",{className:"px-4 py-3 border-b-2 border-[var(--color-text)] bg-[var(--color-bg-cream)]",children:[d.jsx("h2",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:((Y=f.data)==null?void 0:Y.title)??"加载中…"}),d.jsx("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:(O=f.data)==null?void 0:O.id})]}),d.jsxs("div",{ref:y,className:"flex-1 overflow-auto p-4 flex flex-col gap-4",children:[(((X=f.data)==null?void 0:X.messages)??[]).map(L=>d.jsx(Q2,{msg:L},L.id)),g&&d.jsx("div",{className:"self-start max-w-xl nb-card bg-[var(--color-accent-mint)] p-3 animate-pulse",children:d.jsx("p",{className:"text-sm",children:"思考中…"})}),!f.isLoading&&(((G=f.data)==null?void 0:G.messages)??[]).length===0&&!g&&d.jsx("p",{className:"text-center text-[var(--color-text-subtle)] italic mt-12",children:"下方输入问题开始对话"})]}),d.jsx("div",{className:"border-t-2 border-[var(--color-text)] p-3 bg-[var(--color-bg-cream)]",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("textarea",{className:"nb-input flex-1 resize-none",placeholder:"说点什么… (⌘+Enter 发送)",rows:2,value:m,onChange:L=>v(L.target.value),onKeyDown:L=>{(L.metaKey||L.ctrlKey)&&L.key==="Enter"&&(L.preventDefault(),E())},"aria-label":"消息输入",disabled:g}),d.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:E,disabled:!m.trim()||g,type:"button","aria-label":"发送",children:[d.jsx(d1,{size:14,strokeWidth:3}),"发送"]})]})})]}):d.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:d.jsxs("div",{className:"text-center max-w-md",children:[d.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center mx-auto mb-4",children:d.jsx(Ty,{size:32,strokeWidth:2.5})}),d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"对话 💬"}),d.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mb-4",children:['点左上角"新建对话"开始一个 session。每个 session 会 spawn 一次 ',d.jsx("code",{className:"bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded font-[family-name:var(--font-mono)]",children:"sps agent"})," 处理消息。"]}),d.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic",children:"v0.44 不支持流式输出,等待 v0.45 接入 ACP daemon。"})]})})})]})}function Q2({msg:n}){const u=n.role==="user",r=n.role==="error";return d.jsx("div",{className:u?"self-end max-w-3xl":"self-start max-w-3xl",children:d.jsxs("div",{className:["nb-card",u?"bg-[var(--color-secondary)]":r?"bg-[var(--color-crashed-bg)]":"bg-[var(--color-bg)]"].join(" "),children:[d.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-1",children:[u?"你":r?"错误":"assistant"," · ",jv(n.ts)]}),d.jsx("pre",{className:"text-sm font-[family-name:var(--font-body)] whitespace-pre-wrap break-words",children:n.content})]})})}function jv(n){if(!n)return"";const u=new Date(n),r=Date.now()-u.getTime();return r<6e4?"刚才":r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:u.toLocaleDateString()}function k2(){return d.jsxs("div",{className:"nb-card max-w-2xl mt-12",children:[d.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold mb-2",children:"404 · 页面不存在"}),d.jsx("p",{className:"text-[var(--color-text-muted)] mb-6",children:"没找到这个页面。可能是链接过期了。"}),d.jsx(Xn,{to:"/",className:"nb-btn nb-btn-mint inline-flex",children:"返回首页"})]})}function Y2(){return d.jsx(D1,{children:d.jsx(Xb,{children:d.jsxs(Kt,{element:d.jsx(w1,{}),children:[d.jsx(Kt,{index:!0,element:d.jsx(kb,{to:"/board",replace:!0})}),d.jsx(Kt,{path:"/projects",element:d.jsx(U1,{})}),d.jsx(Kt,{path:"/board",element:d.jsx(u2,{})}),d.jsx(Kt,{path:"/workers",element:d.jsx(f2,{})}),d.jsx(Kt,{path:"/logs",element:d.jsx(b2,{})}),d.jsx(Kt,{path:"/skills",element:d.jsx(M2,{})}),d.jsx(Kt,{path:"/system",element:d.jsx(D2,{})}),d.jsx(Kt,{path:"/chat",element:d.jsx(Ry,{})}),d.jsx(Kt,{path:"/chat/:sessionId",element:d.jsx(Ry,{})}),d.jsx(Kt,{path:"*",element:d.jsx(k2,{})})]})})})}const G2=new _0({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),Nv=document.getElementById("root");if(!Nv)throw new Error("#root not found");i0.createRoot(Nv).render(d.jsx(N.StrictMode,{children:d.jsx(O0,{client:G2,children:d.jsx(yx,{children:d.jsx(Y2,{})})})}));
|