@coralai/sps-cli 0.45.0 → 0.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/console-assets/assets/index-BGs71Um2.css +1 -0
- package/dist/console-assets/assets/index-BsHLiTM2.js +236 -0
- package/dist/console-assets/index.html +2 -2
- package/dist/console-server/routes/chat.d.ts +9 -6
- package/dist/console-server/routes/chat.d.ts.map +1 -1
- package/dist/console-server/routes/chat.js +165 -63
- package/dist/console-server/routes/chat.js.map +1 -1
- package/package.json +1 -1
- package/dist/console-assets/assets/index-COKveGOw.js +0 -231
- package/dist/console-assets/assets/index-DTOYQgOY.css +0 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
var Fg=Object.defineProperty;var Jm=n=>{throw TypeError(n)};var Wg=(n,u,r)=>u in n?Fg(n,u,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[u]=r;var $m=(n,u,r)=>Wg(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)),le=(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),W=(n,u,r,c)=>(Pc(n,u,"write to private field"),c?c.call(n,r):u.set(n,r),r),ye=(n,u,r)=>(Pc(n,u,"access private method"),r);var bs=(n,u,r,c)=>({set _(d){W(n,u,d,r)},get _(){return S(n,u,c)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)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(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.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 Pg(){if(Fm)return Bi;Fm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:n,type:c,key:v,ref:d!==void 0?d:null,props:m}}return Bi.Fragment=u,Bi.jsx=r,Bi.jsxs=r,Bi}var Wm;function Ig(){return Wm||(Wm=1,Ic.exports=Pg()),Ic.exports}var f=Ig(),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 e0(){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"),d=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 M(j){return j===null||typeof j!="object"?null:(j=D&&j[D]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,Y={};function O(j,k,$){this.props=j,this.context=k,this.refs=Y,this.updater=$||w}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 Z(){}Z.prototype=O.prototype;function G(j,k,$){this.props=j,this.context=k,this.refs=Y,this.updater=$||w}var X=G.prototype=new Z;X.constructor=G,q(X,O.prototype),X.isPureReactComponent=!0;var Q=Array.isArray;function F(){}var V={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function ce(j,k,$){var I=$.ref;return{$$typeof:n,type:j,key:k,ref:I!==void 0?I:null,props:$}}function xe(j,k){return ce(j.type,k,j.props)}function je(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function Ye(j){var k={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function($){return k[$]})}var Et=/\/+/g;function et(j,k){return typeof j=="object"&&j!==null&&j.key!=null?Ye(""+j.key):k.toString(36)}function De(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(F,F):(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,$,I,ue){var oe=typeof j;(oe==="undefined"||oe==="boolean")&&(j=null);var Ne=!1;if(j===null)Ne=!0;else switch(oe){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(j.$$typeof){case n:case u:Ne=!0;break;case C:return Ne=j._init,H(Ne(j._payload),k,$,I,ue)}}if(Ne)return ue=ue(j),Ne=I===""?"."+et(j,0):I,Q(ue)?($="",Ne!=null&&($=Ne.replace(Et,"$&/")+"/"),H(ue,k,$,"",function(Zn){return Zn})):ue!=null&&(je(ue)&&(ue=xe(ue,$+(ue.key==null||j&&j.key===ue.key?"":(""+ue.key).replace(Et,"$&/")+"/")+Ne)),k.push(ue)),1;Ne=0;var ot=I===""?".":I+":";if(Q(j))for(var Ge=0;Ge<j.length;Ge++)I=j[Ge],oe=ot+et(I,Ge),Ne+=H(I,k,$,oe,ue);else if(Ge=M(j),typeof Ge=="function")for(j=Ge.call(j),Ge=0;!(I=j.next()).done;)I=I.value,oe=ot+et(I,Ge++),Ne+=H(I,k,$,oe,ue);else if(oe==="object"){if(typeof j.then=="function")return H(De(j),k,$,I,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 Ne}function J(j,k,$){if(j==null)return j;var I=[],ue=0;return H(j,I,"","",function(oe){return k.call($,oe,ue++)}),I}function ne(j){if(j._status===-1){var k=j._result;k=k(),k.then(function($){(j._status===0||j._status===-1)&&(j._status=1,j._result=$)},function($){(j._status===0||j._status===-1)&&(j._status=2,j._result=$)}),j._status===-1&&(j._status=0,j._result=k)}if(j._status===1)return j._result.default;throw j._result}var ze=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)},Me={map:J,forEach:function(j,k,$){J(j,function(){k.apply(this,arguments)},$)},count:function(j){var k=0;return J(j,function(){k++}),k},toArray:function(j){return J(j,function(k){return k})||[]},only:function(j){if(!je(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ie.Activity=E,ie.Children=Me,ie.Component=O,ie.Fragment=r,ie.Profiler=d,ie.PureComponent=G,ie.StrictMode=c,ie.Suspense=p,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ie.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},ie.cache=function(j){return function(){return j.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(j,k,$){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var I=q({},j.props),ue=j.key;if(k!=null)for(oe in k.key!==void 0&&(ue=""+k.key),k)!K.call(k,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&k.ref===void 0||(I[oe]=k[oe]);var oe=arguments.length-2;if(oe===1)I.children=$;else if(1<oe){for(var Ne=Array(oe),ot=0;ot<oe;ot++)Ne[ot]=arguments[ot+2];I.children=Ne}return ce(j.type,ue,I)},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,$){var I,ue={},oe=null;if(k!=null)for(I in k.key!==void 0&&(oe=""+k.key),k)K.call(k,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ue[I]=k[I]);var Ne=arguments.length-2;if(Ne===1)ue.children=$;else if(1<Ne){for(var ot=Array(Ne),Ge=0;Ge<Ne;Ge++)ot[Ge]=arguments[Ge+2];ue.children=ot}if(j&&j.defaultProps)for(I in Ne=j.defaultProps,Ne)ue[I]===void 0&&(ue[I]=Ne[I]);return ce(j,oe,ue)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(j){return{$$typeof:g,render:j}},ie.isValidElement=je,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=V.T,$={};V.T=$;try{var I=j(),ue=V.S;ue!==null&&ue($,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(F,ze)}catch(oe){ze(oe)}finally{k!==null&&$.types!==null&&(k.types=$.types),V.T=k}},ie.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ie.use=function(j){return V.H.use(j)},ie.useActionState=function(j,k,$){return V.H.useActionState(j,k,$)},ie.useCallback=function(j,k){return V.H.useCallback(j,k)},ie.useContext=function(j){return V.H.useContext(j)},ie.useDebugValue=function(){},ie.useDeferredValue=function(j,k){return V.H.useDeferredValue(j,k)},ie.useEffect=function(j,k){return V.H.useEffect(j,k)},ie.useEffectEvent=function(j){return V.H.useEffectEvent(j)},ie.useId=function(){return V.H.useId()},ie.useImperativeHandle=function(j,k,$){return V.H.useImperativeHandle(j,k,$)},ie.useInsertionEffect=function(j,k){return V.H.useInsertionEffect(j,k)},ie.useLayoutEffect=function(j,k){return V.H.useLayoutEffect(j,k)},ie.useMemo=function(j,k){return V.H.useMemo(j,k)},ie.useOptimistic=function(j,k){return V.H.useOptimistic(j,k)},ie.useReducer=function(j,k,$){return V.H.useReducer(j,k,$)},ie.useRef=function(j){return V.H.useRef(j)},ie.useState=function(j){return V.H.useState(j)},ie.useSyncExternalStore=function(j,k,$){return V.H.useSyncExternalStore(j,k,$)},ie.useTransition=function(){return V.H.useTransition()},ie.version="19.2.5",ie}var Im;function zo(){return Im||(Im=1,eo.exports=e0()),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 t0(){return ey||(ey=1,(function(n){function u(H,J){var ne=H.length;H.push(J);e:for(;0<ne;){var ze=ne-1>>>1,Me=H[ze];if(0<d(Me,J))H[ze]=J,H[ne]=Me,ne=ze;else break e}}function r(H){return H.length===0?null:H[0]}function c(H){if(H.length===0)return null;var J=H[0],ne=H.pop();if(ne!==J){H[0]=ne;e:for(var ze=0,Me=H.length,j=Me>>>1;ze<j;){var k=2*(ze+1)-1,$=H[k],I=k+1,ue=H[I];if(0>d($,ne))I<Me&&0>d(ue,$)?(H[ze]=ue,H[I]=ne,ze=I):(H[ze]=$,H[k]=ne,ze=k);else if(I<Me&&0>d(ue,ne))H[ze]=ue,H[I]=ne,ze=I;else break e}}return J}function d(H,J){var ne=H.sortIndex-J.sortIndex;return ne!==0?ne:H.id-J.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,M=!1,w=!1,q=!1,Y=!1,O=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(H){for(var J=r(y);J!==null;){if(J.callback===null)c(y);else if(J.startTime<=H)c(y),J.sortIndex=J.expirationTime,u(p,J);else break;J=r(y)}}function Q(H){if(q=!1,X(H),!w)if(r(p)!==null)w=!0,F||(F=!0,Ye());else{var J=r(y);J!==null&&De(Q,J.startTime-H)}}var F=!1,V=-1,K=5,ce=-1;function xe(){return Y?!0:!(n.unstable_now()-ce<K)}function je(){if(Y=!1,F){var H=n.unstable_now();ce=H;var J=!0;try{e:{w=!1,q&&(q=!1,Z(V),V=-1),M=!0;var ne=D;try{t:{for(X(H),E=r(p);E!==null&&!(E.expirationTime>H&&xe());){var ze=E.callback;if(typeof ze=="function"){E.callback=null,D=E.priorityLevel;var Me=ze(E.expirationTime<=H);if(H=n.unstable_now(),typeof Me=="function"){E.callback=Me,X(H),J=!0;break t}E===r(p)&&c(p),X(H)}else c(p);E=r(p)}if(E!==null)J=!0;else{var j=r(y);j!==null&&De(Q,j.startTime-H),J=!1}}break e}finally{E=null,D=ne,M=!1}J=void 0}}finally{J?Ye():F=!1}}}var Ye;if(typeof G=="function")Ye=function(){G(je)};else if(typeof MessageChannel<"u"){var Et=new MessageChannel,et=Et.port2;Et.port1.onmessage=je,Ye=function(){et.postMessage(null)}}else Ye=function(){O(je,0)};function De(H,J){V=O(function(){H(n.unstable_now())},J)}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"):K=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 J=3;break;default:J=D}var ne=D;D=J;try{return H()}finally{D=ne}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(H,J){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ne=D;D=H;try{return J()}finally{D=ne}},n.unstable_scheduleCallback=function(H,J,ne){var ze=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ze+ne:ze):ne=ze,H){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=ne+Me,H={id:C++,callback:J,priorityLevel:H,startTime:ne,expirationTime:Me,sortIndex:-1},ne>ze?(H.sortIndex=ne,u(y,H),r(p)===null&&H===r(y)&&(q?(Z(V),V=-1):q=!0,De(Q,ne-ze))):(H.sortIndex=Me,u(p,H),w||M||(w=!0,F||(F=!0,Ye()))),H},n.unstable_shouldYield=xe,n.unstable_wrapCallback=function(H){var J=D;return function(){var ne=D;D=J;try{return H.apply(this,arguments)}finally{D=ne}}}})(lo)),lo}var ty;function a0(){return ty||(ty=1,ao.exports=t0()),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 l0(){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},d=Symbol.for("react.portal");function m(p,y,C){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,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,M=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:M}):C==="script"&&c.d.X(p,{crossOrigin:E,integrity:D,fetchPriority:M,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 n0(){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=l0(),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 i0(){if(ny)return Qi;ny=1;var n=a0(),u=zo(),r=n0();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 d(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"),M=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),je=Symbol.iterator;function Ye(e){return e===null||typeof e!="object"?null:(e=je&&e[je]||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 Q:return"Suspense";case F:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case G:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:et(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return et(e(t))}catch{}}return null}var De=Array.isArray,H=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},ze=[],Me=-1;function j(e){return{current:e}}function k(e){0>Me||(e.current=ze[Me],ze[Me]=null,Me--)}function $(e,t){Me++,ze[Me]=e.current,e.current=t}var I=j(null),ue=j(null),oe=j(null),Ne=j(null);function ot(e,t){switch($(oe,t),$(ue,e),$(I,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(I),$(I,e)}function Ge(){k(I),k(ue),k(oe)}function Zn(e){e.memoizedState!==null&&$(Ne,e);var t=I.current,a=gm(t,e.type);t!==a&&($(ue,e),$(I,a))}function tu(e){ue.current===e&&(k(I),k(ue)),Ne.current===e&&(k(Ne),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 B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(_){var A=_}Reflect.construct(e,[],B)}else{try{B.call()}catch(_){A=_}e.call(B.prototype)}}else{try{throw Error()}catch(_){A=_}(B=e())&&typeof B.catch=="function"&&B.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 Rv(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+=Rv(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,zv=n.unstable_shouldYield,Av=n.unstable_requestPaint,jt=n.unstable_now,_v=n.unstable_getCurrentPriorityLevel,Jo=n.unstable_ImmediatePriority,$o=n.unstable_UserBlockingPriority,au=n.unstable_NormalPriority,Ov=n.unstable_LowPriority,Fo=n.unstable_IdlePriority,Mv=n.log,wv=n.unstable_setDisableYieldValue,Vn=null,Nt=null;function Ma(e){if(typeof Mv=="function"&&wv(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Vn,e)}catch{}}var Tt=Math.clz32?Math.clz32:qv,Dv=Math.log,Uv=Math.LN2;function qv(e){return e>>>=0,e===0?32:31-(Dv(e)/Uv|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 Hv(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 Lv(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),B=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&=~B}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=J.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function af(e,t){var a=J.p;try{return J.p=e,t()}finally{J.p=a}}var wa=Math.random().toString(36).slice(2),tt="__reactFiber$"+wa,ht="__reactProps$"+wa,Gl="__reactContainer$"+wa,Gs="__reactEvents$"+wa,Bv="__reactListeners$"+wa,Qv="__reactHandles$"+wa,lf="__reactResources$"+wa,Fn="__reactMarker$"+wa;function Xs(e){delete e[tt],delete e[ht],delete e[Gs],delete e[Bv],delete e[Qv]}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 kv=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 Yv(e){return Hs.call(rf,e)?!0:Hs.call(sf,e)?!1:kv.test(e)?rf[e]=!0:(sf[e]=!0,!1)}function su(e,t,a){if(Yv(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 Gv(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=Gv(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 Xv=/[\n"\\]/g;function qt(e){return e.replace(Xv,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(De(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 Kv=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||Kv.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 Zv=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"]]),Vv=/^[\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 Vv.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}),Jv=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),$v=E({},yu,{dataTransfer:0}),Fv=mt($v),Wv=E({},ei,{relatedTarget:0}),ar=mt(Wv),Pv=E({},vl,{animationName:0,elapsedTime:0,pseudoElement:0}),Iv=mt(Pv),ep=E({},vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tp=mt(ep),ap=E({},vl,{data:0}),Sf=mt(ap),lp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},np={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"},ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function up(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ip[e])?!!t[e]:!1}function lr(){return up}var sp=E({},ei,{key:function(e){if(e.key){var t=lp[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"?np[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}}),rp=mt(sp),cp=E({},yu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=mt(cp),op=E({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr}),fp=mt(op),dp=E({},vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),hp=mt(dp),mp=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}),yp=mt(mp),vp=E({},vl,{newState:0,oldState:0}),pp=mt(vp),gp=[9,13,27,32],nr=da&&"CompositionEvent"in window,ai=null;da&&"documentMode"in document&&(ai=document.documentMode);var bp=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 gp.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 xp(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 Sp(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 Ep={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"?!!Ep[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 jp(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(jp,t)}}function Np(e,t,a){e==="focusin"?(wf(),li=t,ni=a,li.attachEvent("onpropertychange",Df)):e==="focusout"&&wf()}function Tp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vu(ni)}function Cp(e,t){if(e==="click")return vu(t)}function Rp(e,t){if(e==="input"||e==="change")return vu(t)}function zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:zp;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 Ap=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"),_p=gl("transitionrun"),Op=gl("transitionstart"),Mp=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 wp(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 wp(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=Lg(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Rt(31,a,t,i),e.elementType=ce,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 Q:return e=Rt(13,a,t,i),e.elementType=Q,e.lanes=s,e;case F:return e=Rt(19,a,t,i),e.elementType=F,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:o=10;break e;case Z:o=9;break e;case X:o=11;break e;case V:o=14;break e;case K: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,Ue=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":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<_i.length;a++)de(_i[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),ff(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("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&&(de("beforetoggle",t),de("toggle",t)),l.onScroll!=null&&de("scroll",t),l.onScrollEnd!=null&&de("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&&Ue&&Ha(e),If(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ue=Nm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ue=Nm(e)}else t===27?(t=Ue,Wa(e.type)?(e=Yc,Yc=null,Ue=e):Ue=t):Ue=at?Gt(e.stateNode.nextSibling):null;return!0}function Sl(){Ue=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){$(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===Ne.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 Dp=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()})}},Up=n.unstable_scheduleCallback,qp=n.unstable_NormalPriority,Ze={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nr(){return{controller:new Dp,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&Up(qp,function(){e.controller.abort()})}var oi=null,Tr=0,rn=0,cn=null;function Hp(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 Lp(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"&&Hp(e,t),ad!==null&&ad(e,t)};var Nl=j(null);function Cr(){var e=Nl.current;return e!==null?e:we.pooledCache}function Tu(e,t){t===null?$(Nl,Nl.current):$(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=we,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,L){return x===null||x.tag!==6?(x=yr(R,T.mode,L),x.return=T,x):(x=i(x,R),x.return=T,x)}function b(T,x,R,L){var te=R.type;return te===q?U(T,x,R.props.children,L,R.key):x!==null&&(x.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===K&&Tl(te)===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,L),di(x,R),x.return=T,x)}function z(T,x,R,L){return x===null||x.tag!==4||x.stateNode.containerInfo!==R.containerInfo||x.stateNode.implementation!==R.implementation?(x=vr(R,T.mode,L),x.return=T,x):(x=i(x,R.children||[]),x.return=T,x)}function U(T,x,R,L,te){return x===null||x.tag!==7?(x=xl(R,T.mode,L,te),x.return=T,x):(x=i(x,R),x.return=T,x)}function B(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 M:return R=Su(x.type,x.key,x.props,null,T.mode,R),di(R,x),R.return=T,R;case w:return x=vr(x,T.mode,R),x.return=T,x;case K:return x=Tl(x),B(T,x,R)}if(De(x)||Ye(x))return x=xl(x,T.mode,R,null),x.return=T,x;if(typeof x.then=="function")return B(T,zu(x),R);if(x.$$typeof===G)return B(T,Nu(T,x),R);Au(T,x)}return null}function A(T,x,R,L){var te=x!==null?x.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return te!==null?null:h(T,x,""+R,L);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return R.key===te?b(T,x,R,L):null;case w:return R.key===te?z(T,x,R,L):null;case K:return R=Tl(R),A(T,x,R,L)}if(De(R)||Ye(R))return te!==null?null:U(T,x,R,L,null);if(typeof R.then=="function")return A(T,x,zu(R),L);if(R.$$typeof===G)return A(T,x,Nu(T,R),L);Au(T,R)}return null}function _(T,x,R,L,te){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return T=T.get(R)||null,h(x,T,""+L,te);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case M:return T=T.get(L.key===null?R:L.key)||null,b(x,T,L,te);case w:return T=T.get(L.key===null?R:L.key)||null,z(x,T,L,te);case K:return L=Tl(L),_(T,x,R,L,te)}if(De(L)||Ye(L))return T=T.get(R)||null,U(x,T,L,te,null);if(typeof L.then=="function")return _(T,x,R,zu(L),te);if(L.$$typeof===G)return _(T,x,R,Nu(x,L),te);Au(x,L)}return null}function P(T,x,R,L){for(var te=null,ge=null,ee=x,re=x=0,me=null;ee!==null&&re<R.length;re++){ee.index>re?(me=ee,ee=null):me=ee.sibling;var be=A(T,ee,R[re],L);if(be===null){ee===null&&(ee=me);break}e&&ee&&be.alternate===null&&t(T,ee),x=s(be,x,re),ge===null?te=be:ge.sibling=be,ge=be,ee=me}if(re===R.length)return a(T,ee),ve&&ma(T,re),te;if(ee===null){for(;re<R.length;re++)ee=B(T,R[re],L),ee!==null&&(x=s(ee,x,re),ge===null?te=ee:ge.sibling=ee,ge=ee);return ve&&ma(T,re),te}for(ee=l(ee);re<R.length;re++)me=_(ee,T,re,R[re],L),me!==null&&(e&&me.alternate!==null&&ee.delete(me.key===null?re:me.key),x=s(me,x,re),ge===null?te=me:ge.sibling=me,ge=me);return e&&ee.forEach(function(al){return t(T,al)}),ve&&ma(T,re),te}function ae(T,x,R,L){if(R==null)throw Error(c(151));for(var te=null,ge=null,ee=x,re=x=0,me=null,be=R.next();ee!==null&&!be.done;re++,be=R.next()){ee.index>re?(me=ee,ee=null):me=ee.sibling;var al=A(T,ee,be.value,L);if(al===null){ee===null&&(ee=me);break}e&&ee&&al.alternate===null&&t(T,ee),x=s(al,x,re),ge===null?te=al:ge.sibling=al,ge=al,ee=me}if(be.done)return a(T,ee),ve&&ma(T,re),te;if(ee===null){for(;!be.done;re++,be=R.next())be=B(T,be.value,L),be!==null&&(x=s(be,x,re),ge===null?te=be:ge.sibling=be,ge=be);return ve&&ma(T,re),te}for(ee=l(ee);!be.done;re++,be=R.next())be=_(ee,T,re,be.value,L),be!==null&&(e&&be.alternate!==null&&ee.delete(be.key===null?re:be.key),x=s(be,x,re),ge===null?te=be:ge.sibling=be,ge=be);return e&&ee.forEach(function($g){return t(T,$g)}),ve&&ma(T,re),te}function Oe(T,x,R,L){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 M:e:{for(var te=R.key;x!==null;){if(x.key===te){if(te=R.type,te===q){if(x.tag===7){a(T,x.sibling),L=i(x,R.props.children),L.return=T,T=L;break e}}else if(x.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===K&&Tl(te)===x.type){a(T,x.sibling),L=i(x,R.props),di(L,R),L.return=T,T=L;break e}a(T,x);break}else t(T,x);x=x.sibling}R.type===q?(L=xl(R.props.children,T.mode,L,R.key),L.return=T,T=L):(L=Su(R.type,R.key,R.props,null,T.mode,L),di(L,R),L.return=T,T=L)}return o(T);case w:e:{for(te=R.key;x!==null;){if(x.key===te)if(x.tag===4&&x.stateNode.containerInfo===R.containerInfo&&x.stateNode.implementation===R.implementation){a(T,x.sibling),L=i(x,R.children||[]),L.return=T,T=L;break e}else{a(T,x);break}else t(T,x);x=x.sibling}L=vr(R,T.mode,L),L.return=T,T=L}return o(T);case K:return R=Tl(R),Oe(T,x,R,L)}if(De(R))return P(T,x,R,L);if(Ye(R)){if(te=Ye(R),typeof te!="function")throw Error(c(150));return R=te.call(R),ae(T,x,R,L)}if(typeof R.then=="function")return Oe(T,x,zu(R),L);if(R.$$typeof===G)return Oe(T,x,Nu(T,R),L);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),L=i(x,R),L.return=T,T=L):(a(T,x),L=yr(R,T.mode,L),L.return=T,T=L),o(T)):a(T,x)}return function(T,x,R,L){try{fi=0;var te=Oe(T,x,R,L);return fn=null,te}catch(ee){if(ee===on||ee===Cu)throw ee;var ge=Rt(29,ee,null,T.mode);return ge.lanes=L,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,(Se&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 B=i.baseState;o=0,U=z=b=null,h=s;do{var A=h.lane&-536870913,_=A!==h.lane;if(_?(he&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 P=e,ae=h;A=t;var Oe=a;switch(ae.tag){case 1:if(P=ae.payload,typeof P=="function"){B=P.call(Oe,B,A);break e}B=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ae.payload,A=typeof P=="function"?P.call(Oe,B,A):P,A==null)break e;B=E({},B,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=B):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=B),i.baseState=b,i.firstBaseUpdate=z,i.lastBaseUpdate=U,s===null&&(i.shared.lanes=0),Za|=o,e.lanes=o,e.memoizedState=B}}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,$(_u,e),$(dn,t),Ta=e|t.baseLanes}function Mr(){$(_u,Ta),$(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;$(Xe,Xe.current&1),$(zt,e),Yt===null&&(t===null||dn.current!==null||t.memoizedState!==null)&&(Yt=e)}function Dr(e){$(Xe,Xe.current),$(zt,e),Yt===null&&(Yt=e)}function hd(e){e.tag===22?($(Xe,Xe.current),$(zt,e),Yt===null&&(Yt=e)):Ga()}function Ga(){$(Xe,Xe.current),$(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,Ae=null,Ve=null,Mu=!1,hn=!1,zl=!1,wu=0,vi=0,mn=null,Bp=0;function Be(){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=Ae!==null&&Ae.next!==null;if(pa=0,Ve=Ae=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=Ae=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 Qp(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?pi(t):t,e=e.useState()[0],(Ae!==null?Ae.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=Ae=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(Ae===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ve===null?se.memoizedState:Ve.next;if(t!==null)Ve=t,Ae=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.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]=xe;return t.index++,a}function ga(e,t){return typeof t=="function"?t(e):t}function qu(e){var t=Ke();return kr(t,Ae,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 B=z.lane&-536870913;if(B!==z.lane?(he&B)===B:(pa&B)===B){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}),B===rn&&(U=!0);else if((pa&A)===A){z=z.next,A===rn&&(U=!0);continue}else B={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(h=b=B,o=s):b=b.next=B,se.lanes|=A,Za|=A;B=z.action,zl&&a(s,B),s=z.hasEagerState?z.eagerState:a(s,B)}else A={lane:B,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|=B,Za|=B;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((Ae||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),we===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,Ae,typeof l=="function"?l:ga)}function kp(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=we.formState;if(a!==null){e:{var l=se;if(ve){if(Ue){t:{for(var i=Ue,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){Ue=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=kp.bind(null,se,i,s,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Ad(e){var t=Ke();return _d(t,Ae,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},Yp.bind(null,i,a),null)),[l,s,e]}function Yp(e,t){e.action=t}function Od(e){var t=Ke(),a=Ae;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;Ae!==null&&l!==null&&Ur(l,Ae.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 Gp(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 Gp({ref:t,nextImpl:e}),function(){if((Se&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&&(he&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&&(he&261930)===0?(Je=!0,e.memoizedState=a):(e=kh(),se.lanes|=e,Za|=e,t)}function Yd(e,t,a,l,i){var s=J.p;J.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=Lp(b,l);gi(e,t,U,Mt(e))}else gi(e,t,l,Mt(e))}catch(B){gi(e,t,{then:function(){},status:"rejected",reason:B},Mt())}finally{J.p=s,o!==null&&h.types!==null&&(o.types=h.types),H.T=o}}function Xp(){}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?Xp: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 Kp(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 Zp(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),we===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:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be};bi.useEffectEvent=Be;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=Zp.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(),we===null)throw Error(c(349));(he&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=we.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=Bp++,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=Kp.bind(null,se)},useEffectEvent:function(e){var t=ft(),a={impl:e};return t.memoizedState=a,function(){if((Se&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,Ae.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,Ae,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 Ae===null?Vr(a,e,t):kd(a,Ae.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 Ae!==null?Ed(a,Ae,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 Vp(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&&Qe===0&&(Qe=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),Qe!==4&&(Qe=2)),!1;var s=Error(c(520),{cause:l});if(s=Lt(s,a),Ri===null?Ri=[s]:Ri.push(s),Qe!==4&&(Qe=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 Jp(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=Ue)?(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,Ue=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=we,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,Ue=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 B=a.getDerivedStateFromProps;U=typeof B=="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 B=="function"&&(Pr(t,a,B,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,B=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!==B||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!==B||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=Ue)?(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,Ue=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=we,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,Ue=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,$(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 $p(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),$(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,$p(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===X){t.tag=11,t=uh(null,t,e,l,a);break e}else if(i===V){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(Ue=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(oe.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,oe.current),at=t,kt=!0,i=Ue,Wa(t.type)?(Yc=i,Ue=Gt(l.firstChild)):Ue=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=Ue)&&(l=Tg(l,t.type,t.pendingProps,kt),l!==null?(t.stateNode=l,at=t,Ue=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,Qp,null,null,a),Ui._currentValue=i),Yu(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&ve&&((e=a=Ue)&&(a=Cg(a,t.pendingProps,kt),a!==null?(t.stateNode=a,at=t,Ue=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 Jp(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=we,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 qe(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 Fp(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 qe(t),null;case 1:return qe(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())),qe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(xa(t),s!==null?(qe(t),bh(t,s)):(qe(t),oc(t,i,null,l,a))):s?s!==e.memoizedState?(xa(t),qe(t),bh(t,s)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&xa(t),qe(t),oc(t,i,e,l,a)),null;case 27:if(tu(t),a=oe.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 qe(t),null}e=I.current,un(t)?Pf(t):(e=Cm(i,l,a),t.stateNode=e,xa(t))}return qe(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 qe(t),null}if(s=I.current,un(t))Pf(t);else{var o=is(oe.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 qe(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=oe.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 qe(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;qe(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 qe(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;qe(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),qe(t),null);case 4:return Ge(),e===null&&Mc(t.stateNode.containerInfo),qe(t),null;case 10:return va(t.type),qe(t),null;case 19:if(k(Xe),l=t.memoizedState,l===null)return qe(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)Si(l,!1);else{if(Qe!==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 $(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 qe(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,$(Xe,i?a&1|2:a&1),ve&&ma(t,l.treeForkCount),e):(qe(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&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(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),qe(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Wp(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){Re(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){Re(i,b,U)}}}l=l.next}while(l!==s)}}catch(U){Re(t,t.return,U)}}function Sh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{fd(t,a)}catch(l){Re(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){Re(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){Re(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){Re(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){Re(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){Re(e,e.return,i)}}function fc(e,t,a){try{var l=e.stateNode;bg(l,e.type,a,t),l[ht]=t}catch(i){Re(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){Re(e,e.return,s)}}var Sa=!1,$e=!1,mc=!1,Ch=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Pp(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,B=e,A=null;t:for(;;){for(var _;B!==a||i!==0&&B.nodeType!==3||(h=o+i),B!==s||l!==0&&B.nodeType!==3||(b=o+l),B.nodeType===3&&(o+=B.nodeValue.length),(_=B.firstChild)!==null;)A=B,B=_;for(;;){if(B===e)break t;if(A===a&&++z===i&&(h=o),A===s&&++U===l&&(b=o),(_=B.nextSibling)!==null)break;B=A,A=B.parentNode}B=_}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 P=Al(a.type,i);e=l.getSnapshotBeforeUpdate(P,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Re(a,a.return,ae)}}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){Re(a,a.return,o)}else{var i=Al(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Re(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){Re(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=sg.bind(null,a),Rg(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 He=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=He,i=yt;Wa(a.type)&&(He=a.stateNode,yt=!1),Ea(e,t,a),Mi(a.stateNode),He=l,yt=i;break;case 5:$e||ia(a,t);case 6:if(l=He,i=yt,He=null,Ea(e,t,a),He=l,yt=i,He!==null)if(yt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(s){Re(a,t,s)}else try{He.removeChild(a.stateNode)}catch(s){Re(a,t,s)}break;case 18:He!==null&&(yt?(e=He,Sm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Rn(e)):Sm(He,a.stateNode));break;case 4:l=He,i=yt,He=a.stateNode.containerInfo,yt=!0,Ea(e,t,a),He=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){Re(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){Re(t,t.return,a)}}function Ip(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=Ip(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=rg.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)){He=h.stateNode,yt=!1;break e}break;case 5:He=h.stateNode,yt=!1;break e;case 3:case 4:He=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(He===null)throw Error(c(160));Ah(s,o,i),He=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(P){Re(e,e.return,P)}}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(P){Re(e,e.return,P)}}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(P){Re(e,e.return,P)}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 B=b.memoizedProps.style,A=B!=null&&B.hasOwnProperty("display")?B.display:null;h.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(P){Re(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(P){Re(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var _=b.stateNode;i?Em(_,!0):Em(b.stateNode,!1)}catch(P){Re(b,b.return,P)}}}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){Re(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){Re(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){Re(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){Re(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&&Bg(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 eg={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}},tg=typeof WeakMap=="function"?WeakMap:Map,Se=0,we=null,fe=null,he=0,Ce=0,_t=null,Ka=!1,gn=!1,pc=!1,Ta=0,Qe=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(Se&2)!==0&&he!==0?he&-he:H.T!==null?zc():tf()}function kh(){if(Ot===0)if((he&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===we&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Sn(e,0),$a(e,he,Ot,!1)),$n(e,a),((Se&2)===0||e!==we)&&(e===we&&((Se&2)===0&&(Ol|=a),Qe===4&&$a(e,he,Ot,!1)),ua(e))}function Yh(e,t,a){if((Se&6)!==0)throw Error(c(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jn(e,t),i=l?ng(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&&!ag(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,B,A,_){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fa},Uh(t,s,B);var P=(s&62914560)===s?Ju-jt():(s&4194048)===s?Bh-jt():0;if(P=Qg(B,P),P!==null){Ca=s,e.cancelPendingCommit=P(Wh.bind(null,e,t,s,a,l,i,o,h,b,U,B,null,A,_)),$a(e,s,o,!z);return}}Wh(e,t,s,a,l,i,o,h,b)}function ag(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(Se&6)===0?(Ai(0),!1):!0}function jc(){if(fe!==null){if(Ce===0)var e=fe.return;else e=fe,ya=El=null,Br(e),fn=null,fi=0,e=fe;for(;e!==null;)xh(e.alternate,e),e=e.return;fe=null}}function Sn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Eg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ca=0,jc(),we=e,fe=a=ha(e.current,null),he=t,Ce=0,_t=null,Ka=!1,gn=Jn(e,t),pc=!1,bn=Ot=gc=Ol=Za=Qe=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(),Ce=3):t===Rr?(t=ud(),Ce=4):Ce=t===tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,fe===null&&(Qe=1,Qu(e,Lt(t,e.current)))}function Kh(){var e=zt.current;return e===null?!0:(he&4194048)===he?Yt===null:(he&62914560)===he||(he&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=eg,e}function Pu(){Qe=4,Ka||(he&4194048)!==he&&zt.current!==null||(gn=!0),(Za&134217727)===0&&(Ol&134217727)===0||we===null||$a(we,he,Ot,!1)}function Nc(e,t,a){var l=Se;Se|=2;var i=Zh(),s=Vh();(we!==e||he!==t)&&(Fu=null,Sn(e,t)),t=!1;var o=Qe;e:do try{if(Ce!==0&&fe!==null){var h=fe,b=_t;switch(Ce){case 8:jc(),o=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var z=Ce;if(Ce=0,_t=null,En(e,h,b,z),a&&gn){o=0;break e}break;default:z=Ce,Ce=0,_t=null,En(e,h,b,z)}}lg(),o=Qe;break}catch(U){Xh(e,U)}while(!0);return t&&e.shellSuspendCounter++,ya=El=null,Se=l,H.H=i,H.A=s,fe===null&&(we=null,he=0,gu()),o}function lg(){for(;fe!==null;)Jh(fe)}function ng(e,t){var a=Se;Se|=2;var l=Zh(),i=Vh();we!==e||he!==t?(Fu=null,$u=jt()+500,Sn(e,t)):gn=Jn(e,t);e:do try{if(Ce!==0&&fe!==null){t=fe;var s=_t;t:switch(Ce){case 1:Ce=0,_t=null,En(e,t,s,1);break;case 2:case 9:if(nd(s)){Ce=0,_t=null,$h(t);break}t=function(){Ce!==2&&Ce!==9||we!==e||(Ce=7),ua(e)},s.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:nd(s)?(Ce=0,_t=null,$h(t)):(Ce=0,_t=null,En(e,t,s,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var h=fe;if(o?Dm(o):h.stateNode.complete){Ce=0,_t=null;var b=h.sibling;if(b!==null)fe=b;else{var z=h.return;z!==null?(fe=z,Iu(z)):fe=null}break t}}Ce=0,_t=null,En(e,t,s,5);break;case 6:Ce=0,_t=null,En(e,t,s,6);break;case 8:jc(),Qe=6;break e;default:throw Error(c(462))}}ig();break}catch(U){Xh(e,U)}while(!0);return ya=El=null,H.H=l,H.A=i,Se=a,fe!==null?0:(we=null,he=0,gu(),Qe)}function ig(){for(;fe!==null&&!zv();)Jh(fe)}function Jh(e){var t=gh(e.alternate,e,Ta);e.memoizedProps=e.pendingProps,t===null?Iu(e):fe=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,he);break;case 11:t=dh(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Br(t);default:xh(a,t),t=fe=Vf(t,Ta),t=gh(a,t,Ta)}e.memoizedProps=e.pendingProps,t===null?Iu(e):fe=t}function En(e,t,a,l){ya=El=null,Br(t),fn=null,fi=0;var i=t.return;try{if(Vp(e,i,t,a,he)){Qe=1,Qu(e,Lt(a,e.current)),fe=null;return}}catch(s){if(i!==null)throw fe=i,s;Qe=1,Qu(e,Lt(a,e.current)),fe=null;return}t.flags&32768?(ve||l===1?e=!0:gn||(he&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=Fp(t.alternate,t,Ta);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Qe===0&&(Qe=5)}function Fh(e,t){do{var a=Wp(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);Qe=6,fe=null}function Wh(e,t,a,l,i,s,o,h,b){e.cancelPendingCommit=null;do es();while(Fe!==0);if((Se&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,Lv(e,a,s,o,h,b),e===we&&(fe=we=null,he=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,cg(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=J.p,J.p=2,o=Se,Se|=4;try{Pp(e,t,a)}finally{Se=o,J.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=J.p;J.p=2;var i=Se;Se|=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 B=h.ownerDocument||document,A=B&&B.defaultView||window;if(A.getSelection){var _=A.getSelection(),P=h.textContent.length,ae=Math.min(b.start,P),Oe=b.end===void 0?ae:Math.min(b.end,P);!_.extend&&ae>Oe&&(o=Oe,Oe=ae,ae=o);var T=qf(h,ae),x=qf(h,Oe);if(T&&x&&(_.rangeCount!==1||_.anchorNode!==T.node||_.anchorOffset!==T.offset||_.focusNode!==x.node||_.focusOffset!==x.offset)){var R=B.createRange();R.setStart(T.node,T.offset),_.removeAllRanges(),ae>Oe?(_.addRange(R),_.extend(x.node,x.offset)):(R.setEnd(x.node,x.offset),_.addRange(R))}}}}for(B=[],_=h;_=_.parentNode;)_.nodeType===1&&B.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<B.length;h++){var L=B[h];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}ds=!!Uc,qc=Uc=null}finally{Se=i,J.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=J.p;J.p=2;var i=Se;Se|=4;try{Rh(e,t.alternate,t)}finally{Se=i,J.p=l,H.T=a}}Fe=3}}function em(){if(Fe===4||Fe===3){Fe=0,Av();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=J.p,J.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,J.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=J.p;try{J.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,(Se&6)!==0)throw Error(c(331));var h=Se;if(Se|=4,Hh(s.current),Dh(s,s.current,o,a),Se=h,Ai(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Vn,s)}catch{}return!0}finally{J.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 Re(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 tg;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=ug.bind(null,e,t,a),t.then(e,e))}function ug(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,we===e&&(he&a)===a&&(Qe===4||Qe===3&&(he&62914560)===he&&300>jt()-Ju?(Se&2)===0&&Sn(e,0):gc|=a,bn===he&&(bn=0)),ua(e)}function nm(e,t){t===0&&(t=Wo()),e=bl(e,t),e!==null&&($n(e,t),ua(e))}function sg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),nm(e,a)}function rg(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 cg(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,fg())}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=he,s=uu(l,l===we?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 og(){im()}function im(){as=Cc=!1;var e=0;Fa!==0&&Sg()&&(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]=Hv(h,t)):b<=t&&(e.expiredLanes|=h),s&=~h}if(t=we,a=he,a=uu(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ce===2||Ce===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=he;return l=uu(e,e===we?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 fg(){jg(function(){(Se&6)!==0?Ls(Jo,og):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 dg(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],hg=_c.toLowerCase(),mg=_c[0].toUpperCase()+_c.slice(1);Wt(hg,"on"+mg)}Wt(kf,"onAnimationEnd"),Wt(Yf,"onAnimationIteration"),Wt(Gf,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(_p,"onTransitionRun"),Wt(Op,"onTransitionStart"),Wt(Mp,"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(" "),yg=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 de(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"&&(yg.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=Gg;break;case 8:i=Xg;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),B=[];e:{var A=Kf.get(e);if(A!==void 0){var _=mu,P=e;switch(e){case"keypress":if(du(a)===0)break e;case"keydown":case"keyup":_=rp;break;case"focusin":P="focus",_=ar;break;case"focusout":P="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":_=Fv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=fp;break;case kf:case Yf:case Gf:_=Iv;break;case Xf:_=hp;break;case"scroll":case"scrollend":_=Jv;break;case"wheel":_=yp;break;case"copy":case"cut":case"paste":_=tp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ef;break;case"toggle":case"beforetoggle":_=pp}var ae=(t&4)!==0,Oe=!ae&&(e==="scroll"||e==="scrollend"),T=ae?A!==null?A+"Capture":null:A;ae=[];for(var x=z,R;x!==null;){var L=x;if(R=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||R===null||T===null||(L=Pn(x,T),L!=null&&ae.push(Oi(x,L,R))),Oe)break;x=x.return}0<ae.length&&(A=new _(A,P,null,a,U),B.push({event:A,listeners:ae}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",A&&a!==$s&&(P=a.relatedTarget||a.fromElement)&&(Xl(P)||P[Gl]))break e;if((_||A)&&(A=U.window===U?U:(A=U.ownerDocument)?A.defaultView||A.parentWindow:window,_?(P=a.relatedTarget||a.toElement,_=z,P=P?Xl(P):null,P!==null&&(Oe=m(P),ae=P.tag,P!==Oe||ae!==5&&ae!==27&&ae!==6)&&(P=null)):(_=null,P=z),_!==P)){if(ae=xf,L="onMouseLeave",T="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Ef,L="onPointerLeave",T="onPointerEnter",x="pointer"),Oe=_==null?A:Wn(_),R=P==null?A:Wn(P),A=new ae(L,x+"leave",_,a,U),A.target=Oe,A.relatedTarget=R,L=null,Xl(U)===z&&(ae=new ae(T,x+"enter",P,a,U),ae.target=R,ae.relatedTarget=Oe,L=ae),Oe=L,_&&P)t:{for(ae=vg,T=_,x=P,R=0,L=T;L;L=ae(L))R++;L=0;for(var te=x;te;te=ae(te))L++;for(;0<R-L;)T=ae(T),R--;for(;0<L-R;)x=ae(x),L--;for(;R--;){if(T===x||x!==null&&T===x.alternate){ae=T;break t}T=ae(T),x=ae(x)}ae=null}else ae=null;_!==null&&hm(B,A,_,ae,!1),P!==null&&Oe!==null&&hm(B,Oe,P,ae,!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=Rp;else{ge=Tp;var ee=Np}else _=A.nodeName,!_||_.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?z&&Js(z.elementType)&&(ge=_f):ge=Cp;if(ge&&(ge=ge(e,z))){Af(B,ge,a,U);break e}ee&&ee(e,A,z),e==="focusout"&&z&&A.type==="number"&&z.memoizedProps.value!=null&&Vs(A,"number",A.value)}switch(ee=z?Wn(z):window,e){case"focusin":(zf(ee)||ee.contentEditable==="true")&&(Il=ee,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(B,a,U);break;case"selectionchange":if(Ap)break;case"keydown":case"keyup":Bf(B,a,U)}var re;if(nr)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Pl?Cf(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(jf&&a.locale!=="ko"&&(Pl||me!=="onCompositionStart"?me==="onCompositionEnd"&&Pl&&(re=gf()):(Da=U,Is="value"in Da?Da.value:Da.textContent,Pl=!0)),ee=ns(z,me),0<ee.length&&(me=new Sf(me,e,null,a,U),B.push({event:me,listeners:ee}),re?me.data=re:(re=Rf(a),re!==null&&(me.data=re)))),(re=bp?xp(e,a):Sp(e,a))&&(me=ns(z,"onBeforeInput"),0<me.length&&(ee=new Sf("onBeforeInput","beforeinput",null,a,U),B.push({event:ee,listeners:me}),ee.data=re)),dg(B,e,z,a,U)}fm(B,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 vg(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 pg=/\r\n?/g,gg=/\u0000|\uFFFD/g;function mm(e){return(typeof e=="string"?e:""+e).replace(pg,`
|
|
49
|
+
`).replace(gg,"")}function ym(e,t){return t=mm(t),mm(e)===t}function _e(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"&&_e(e,t,"name",i.name,i,null),_e(e,t,"formEncType",i.formEncType,i,null),_e(e,t,"formMethod",i.formMethod,i,null),_e(e,t,"formTarget",i.formTarget,i,null)):(_e(e,t,"encType",i.encType,i,null),_e(e,t,"method",i.method,i,null),_e(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&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("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":de("beforetoggle",e),de("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=Zv.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&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("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":de("error",e),de("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:_e(e,t,s,o,a,null)}}i&&_e(e,t,"srcSet",a.srcSet,a,null),l&&_e(e,t,"src",a.src,a,null);return;case"input":de("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:_e(e,t,l,U,a,null)}}ff(e,s,h,b,z,o,i,!1);return;case"select":de("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:_e(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":de("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:_e(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:_e(e,t,b,l,a,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(l=0;l<_i.length;l++)de(_i[l],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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:_e(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&&_e(e,t,h,l,a,null))}function bg(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 B=a[_];if(a.hasOwnProperty(_)&&B!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":b=B;default:l.hasOwnProperty(_)||_e(e,t,_,null,l,B)}}for(var A in l){var _=l[A];if(B=a[A],l.hasOwnProperty(A)&&(_!=null||B!=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:_!==B&&_e(e,t,A,_,l,B)}}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)||_e(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&&_e(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:_e(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&&_e(e,t,o,i,l,s)}df(e,A,_);return;case"option":for(var P in a)if(A=a[P],a.hasOwnProperty(P)&&A!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:_e(e,t,P,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:_e(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 ae in a)A=a[ae],a.hasOwnProperty(ae)&&A!=null&&!l.hasOwnProperty(ae)&&_e(e,t,ae,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:_e(e,t,z,A,l,_)}return;default:if(Js(t)){for(var Oe in a)A=a[Oe],a.hasOwnProperty(Oe)&&A!==void 0&&!l.hasOwnProperty(Oe)&&Dc(e,t,Oe,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)&&_e(e,t,T,null,l,A);for(B in l)A=l[B],_=a[B],!l.hasOwnProperty(B)||A===_||A==null&&_==null||_e(e,t,B,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 xg(){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,B=b.initiatorType;U&&vm(B)&&(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 Sg(){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,Eg=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,jg=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(e){return xm.resolve(null).then(e).catch(Ng)}:bm;function Ng(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 Tg(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 Cg(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 Rg(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=J.d;J.d={f:zg,r:Ag,D:_g,C:Og,L:Mg,m:wg,X:Ug,S:Dg,M:qg};function zg(){var e=Ra.f(),t=Wu();return e||t}function Ag(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 _g(e){Ra.D(e),zm("dns-prefetch",e,null)}function Og(e,t){Ra.C(e,t),zm("preconnect",e,t)}function Mg(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 wg(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 Dg(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 Ug(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 qg(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=oe.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||Hg(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 Hg(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 Lg(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 Bg(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 Qg(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*xg());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(kg,e),os=null,cs.call(e))}function kg(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 Yg(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,B){return e=new Yg(e,t,a,o,b,z,U,B,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 Gg(e,t,a,l){var i=H.T;H.T=null;var s=J.p;try{J.p=2,Vc(e,t,a,l)}finally{J.p=s,H.T=i}}function Xg(e,t,a,l){var i=H.T;H.T=null;var s=J.p;try{J.p=8,Vc(e,t,a,l)}finally{J.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(Zg(i,e,t,a,l))l.stopPropagation();else if(Ym(e,l),t&4&&-1<Kg.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),(Se&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(_v()){case Jo:return 2;case $o:return 8;case au:case Ov: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=[],Kg="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 Zg(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 Vg(){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,Vg)))}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"));J.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 Jg={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(Jg),Nt=gs}catch{}}return Qi.createRoot=function(e,t){if(!d(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(!d(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 u0(){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=i0(),to.exports}var s0=u0(),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,Ay,r0=(Ay=class extends Pi{constructor(){super();le(this,Dl);le(this,nl);le(this,zn);W(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),W(this,nl,void 0))}setEventListener(u){var r;W(this,zn,u),(r=S(this,nl))==null||r.call(this),W(this,nl,u(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(u){S(this,Dl)!==u&&(W(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,Ay),Ao=new r0,c0={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},il,Ro,_y,o0=(_y=class{constructor(){le(this,il,c0);le(this,Ro,!1)}setTimeoutProvider(n){W(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,_y),wl=new o0;function f0(n){setTimeout(n,0)}var d0=typeof window>"u"||"Deno"in globalThis;function St(){}function h0(n,u){return typeof n=="function"?n(u):n}function co(n){return typeof n=="number"&&n>=0&&n!==1/0}function By(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:d,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||d&&d!==u.state.fetchStatus||m&&!m(u))}function sy(n,u){const{exact:r,status:c,predicate:d,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||d&&!d(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,d)=>(c[d]=r[d],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 m0=Object.prototype.hasOwnProperty;function Qy(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],M=u[E];if(D===M){p[E]=D,(c?C<m:m0.call(n,E))&&y++;continue}if(D===null||M===null||typeof D!="object"||typeof M!="object"){p[E]=M;continue}const w=Qy(D,M,r+1);p[E]=w,w===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 y0(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?Qy(n,u):u}function v0(n,u,r=0){const c=[...n,u];return r&&c.length>r?c.slice(1):c}function p0(n,u,r=0){const c=[u,...n];return r&&c.length>r?c.slice(0,-1):c}var Oo=Symbol();function ky(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 Yy(n,u){return typeof n=="function"?n(...u):!!n}function g0(n,u,r){let c=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??(d=u()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),n}var Ki=(()=>{let n=()=>d0;return{isServer(){return n()},setIsServer(u){n=u}}})();function mo(){let n,u;const r=new Promise((d,m)=>{n=d,u=m});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),n(d)},r.reject=d=>{c({status:"rejected",reason:d}),u(d)},r}var b0=f0;function x0(){let n=[],u=0,r=g=>{g()},c=g=>{g()},d=b0;const m=g=>{u?n.push(g):d(()=>{r(g)})},v=()=>{const g=n;n=[],g.length&&d(()=>{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=>{d=g}}}var ut=x0(),An,ul,_n,Oy,S0=(Oy=class extends Pi{constructor(){super();le(this,An,!0);le(this,ul);le(this,_n);W(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),W(this,ul,void 0))}setEventListener(u){var r;W(this,_n,u),(r=S(this,ul))==null||r.call(this),W(this,ul,u(this.setOnline.bind(this)))}setOnline(u){S(this,An)!==u&&(W(this,An,u),this.listeners.forEach(c=>{c(u)}))}isOnline(){return S(this,An)}},An=new WeakMap,ul=new WeakMap,_n=new WeakMap,Oy),Ns=new S0;function E0(n){return Math.min(1e3*2**n,3e4)}function Gy(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 Xy(n){let u=!1,r=0,c;const d=mo(),m=()=>d.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=()=>Gy(n.networkMode)&&n.canRun(),E=q=>{m()||(c==null||c(),d.resolve(q))},D=q=>{m()||(c==null||c(),d.reject(q))},M=()=>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)}),w=()=>{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 F;if(m())return;const Z=n.retry??(Ki.isServer()?0:3),G=n.retryDelay??E0,X=typeof G=="function"?G(r,O):G,Q=Z===!0||typeof Z=="number"&&r<Z||typeof Z=="function"&&Z(r,O);if(u||!Q){D(O);return}r++,(F=n.onFail)==null||F.call(n,r,O),y0(X).then(()=>y()?void 0:M()).then(()=>{u?D(O):w()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(c==null||c(),d),cancelRetry:g,continueRetry:p,canStart:C,start:()=>(C()?w():M().then(w),d)}}var Ul,My,Ky=(My=class{constructor(){le(this,Ul)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),co(this.gcTime)&&W(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)),W(this,Ul,void 0))}},Ul=new WeakMap,My),ql,On,Zt,Hl,Ie,Vi,Ll,wt,Zy,za,wy,j0=(wy=class extends Ky{constructor(u){super();le(this,wt);le(this,ql);le(this,On);le(this,Zt);le(this,Hl);le(this,Ie);le(this,Vi);le(this,Ll);W(this,Ll,!1),W(this,Vi,u.defaultOptions),this.setOptions(u.options),this.observers=[],W(this,Hl,u.client),W(this,Zt,S(this,Hl).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,W(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)),W(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 ye(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){ye(this,wt,za).call(this,{type:"setState",state:u,setStateOptions:r})}cancel(u){var c,d;const r=(c=S(this,Ie))==null?void 0:c.promise;return(d=S(this,Ie))==null||d.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:!By(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)||ye(this,wt,Zy).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||ye(this,wt,za).call(this,{type:"invalidate"})}async fetch(u,r){var p,y,C,E,D,M,w,q,Y,O,Z,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 X=this.observers.find(Q=>Q.options.queryFn);X&&this.setOptions(X.options)}const c=new AbortController,d=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>(W(this,Ll,!0),c.signal)})},m=()=>{const X=ky(this.options,r),F=(()=>{const V={client:S(this,Hl),queryKey:this.queryKey,meta:this.meta};return d(V),V})();return W(this,Ll,!1),this.options.persister?this.options.persister(X,F,this):X(F)},g=(()=>{const X={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Hl),state:this.state,fetchFn:m};return d(X),X})();(y=this.options.behavior)==null||y.onFetch(g,this),W(this,On,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=g.fetchOptions)==null?void 0:C.meta))&&ye(this,wt,za).call(this,{type:"fetch",meta:(E=g.fetchOptions)==null?void 0:E.meta}),W(this,Ie,Xy({initialPromise:r==null?void 0:r.initialPromise,fn:g.fetchFn,onCancel:X=>{X instanceof yo&&X.revert&&this.setState({...S(this,On),fetchStatus:"idle"}),c.abort()},onFail:(X,Q)=>{ye(this,wt,za).call(this,{type:"failed",failureCount:X,error:Q})},onPause:()=>{ye(this,wt,za).call(this,{type:"pause"})},onContinue:()=>{ye(this,wt,za).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const X=await S(this,Ie).start();if(X===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(X),(M=(D=S(this,Zt).config).onSuccess)==null||M.call(D,X,this),(q=(w=S(this,Zt).config).onSettled)==null||q.call(w,X,this.state.error,this),X}catch(X){if(X instanceof yo){if(X.silent)return S(this,Ie).promise;if(X.revert){if(this.state.data===void 0)throw X;return this.state.data}}throw ye(this,wt,za).call(this,{type:"error",error:X}),(O=(Y=S(this,Zt).config).onError)==null||O.call(Y,X,this),(G=(Z=S(this,Zt).config).onSettled)==null||G.call(Z,this.state.data,X,this),X}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,Zy=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,...Vy(c.data,this.options),fetchMeta:u.meta??null};case"success":const d={...c,...oy(u.data,u.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,On,u.manual?d:void 0),d;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})})},wy);function Vy(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gy(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,Te,Yi,vo,po,go,bo,xo,So,Eo,Jy,Dy,N0=(Dy=class extends Pi{constructor(u,r){super();le(this,Te);le(this,xt);le(this,pe);le(this,Ji);le(this,dt);le(this,Bl);le(this,Mn);le(this,Aa);le(this,sl);le(this,$i);le(this,wn);le(this,Dn);le(this,Ql);le(this,kl);le(this,rl);le(this,Un,new Set);this.options=r,W(this,xt,u),W(this,sl,null),W(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)?ye(this,Te,Yi).call(this):this.updateResult(),ye(this,Te,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,ye(this,Te,xo).call(this),ye(this,Te,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");ye(this,Te,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 d=this.hasListeners();d&&hy(S(this,pe),c,this.options,r)&&ye(this,Te,Yi).call(this),this.updateResult(),d&&(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)))&&ye(this,Te,vo).call(this);const m=ye(this,Te,po).call(this);d&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||m!==S(this,rl))&&ye(this,Te,go).call(this,m)}getOptimisticResult(u){const r=S(this,xt).getQueryCache().build(S(this,xt),u),c=this.createResult(r,u);return C0(this,c)&&(W(this,dt,c),W(this,Mn,this.options),W(this,Bl,S(this,pe).state)),c}getCurrentResult(){return S(this,dt)}trackResult(u,r){return new Proxy(u,{get:(c,d)=>(this.trackProp(d),r==null||r(d),d==="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,d))})}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 ye(this,Te,Yi).call(this,{...u,cancelRefetch:u.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,dt)))}createResult(u,r){var ce;const c=S(this,pe),d=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,M;if(r._optimisticResults){const xe=this.hasListeners(),je=!xe&&dy(u,r),Ye=xe&&hy(u,c,r,d);(je||Ye)&&(E={...E,...Vy(C.data,u.options)}),r._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:w,errorUpdatedAt:q,status:Y}=E;M=E.data;let O=!1;if(r.placeholderData!==void 0&&M===void 0&&Y==="pending"){let xe;m!=null&&m.isPlaceholderData&&r.placeholderData===(g==null?void 0:g.placeholderData)?(xe=m.data,O=!0):xe=typeof r.placeholderData=="function"?r.placeholderData((ce=S(this,Dn))==null?void 0:ce.state.data,S(this,Dn)):r.placeholderData,xe!==void 0&&(Y="success",M=ho(m==null?void 0:m.data,xe,r),D=!0)}if(r.select&&M!==void 0&&!O)if(m&&M===(v==null?void 0:v.data)&&r.select===S(this,$i))M=S(this,wn);else try{W(this,$i,r.select),M=r.select(M),M=ho(m==null?void 0:m.data,M,r),W(this,wn,M),W(this,sl,null)}catch(xe){W(this,sl,xe)}S(this,sl)&&(w=S(this,sl),M=S(this,wn),q=Date.now(),Y="error");const Z=E.fetchStatus==="fetching",G=Y==="pending",X=Y==="error",Q=G&&Z,F=M!==void 0,K={status:Y,fetchStatus:E.fetchStatus,isPending:G,isSuccess:Y==="success",isError:X,isInitialLoading:Q,isLoading:Q,data:M,dataUpdatedAt:E.dataUpdatedAt,error:w,errorUpdatedAt:q,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:u.isFetched(),isFetchedAfterMount:E.dataUpdateCount>y.dataUpdateCount||E.errorUpdateCount>y.errorUpdateCount,isFetching:Z,isRefetching:Z&&!G,isLoadingError:X&&!F,isPaused:E.fetchStatus==="paused",isPlaceholderData:D,isRefetchError:X&&F,isStale:Mo(u,r),refetch:this.refetch,promise:S(this,Aa),isEnabled:Vt(r.enabled,u)!==!1};if(this.options.experimental_prefetchInRender){const xe=K.data!==void 0,je=K.status==="error"&&!xe,Ye=De=>{je?De.reject(K.error):xe&&De.resolve(K.data)},Et=()=>{const De=W(this,Aa,K.promise=mo());Ye(De)},et=S(this,Aa);switch(et.status){case"pending":u.queryHash===c.queryHash&&Ye(et);break;case"fulfilled":(je||K.data!==et.value)&&Et();break;case"rejected":(!je||K.error!==et.reason)&&Et();break}}return K}updateResult(){const u=S(this,dt),r=this.createResult(S(this,pe),this.options);if(W(this,Bl,S(this,pe).state),W(this,Mn,this.options),S(this,Bl).data!==void 0&&W(this,Dn,S(this,pe)),oo(r,u))return;W(this,dt,r);const c=()=>{if(!u)return!0;const{notifyOnChangeProps:d}=this.options,m=typeof d=="function"?d():d;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)})};ye(this,Te,Jy).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,Te,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,Te=new WeakSet,Yi=function(u){ye(this,Te,Eo).call(this);let r=S(this,pe).fetch(this.options,u);return u!=null&&u.throwOnError||(r=r.catch(St)),r},vo=function(){ye(this,Te,xo).call(this);const u=dl(this.options.staleTime,S(this,pe));if(Ki.isServer()||S(this,dt).isStale||!co(u))return;const c=By(S(this,dt).dataUpdatedAt,u)+1;W(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){ye(this,Te,So).call(this),W(this,rl,u),!(Ki.isServer()||Vt(this.options.enabled,S(this,pe))===!1||!co(S(this,rl))||S(this,rl)===0)&&W(this,kl,wl.setInterval(()=>{(this.options.refetchIntervalInBackground||Ao.isFocused())&&ye(this,Te,Yi).call(this)},S(this,rl)))},bo=function(){ye(this,Te,vo).call(this),ye(this,Te,go).call(this,ye(this,Te,po).call(this))},xo=function(){S(this,Ql)!==void 0&&(wl.clearTimeout(S(this,Ql)),W(this,Ql,void 0))},So=function(){S(this,kl)!==void 0&&(wl.clearInterval(S(this,kl)),W(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);W(this,pe,u),W(this,Ji,u.state),this.hasListeners()&&(r==null||r.removeObserver(this),u.addObserver(this))},Jy=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"})})},Dy);function T0(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 T0(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 C0(n,u){return!oo(n.getCurrentResult(),u)}function my(n){return{onFetch:(u,r)=>{var C,E,D,M,w;const c=u.options,d=(D=(E=(C=u.fetchOptions)==null?void 0:C.meta)==null?void 0:E.fetchMore)==null?void 0:D.direction,m=((M=u.state.data)==null?void 0:M.pages)||[],v=((w=u.state.data)==null?void 0:w.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let q=!1;const Y=G=>{g0(G,()=>u.signal,()=>q=!0)},O=ky(u.options,u.fetchOptions),Z=async(G,X,Q)=>{if(q)return Promise.reject();if(X==null&&G.pages.length)return Promise.resolve(G);const V=(()=>{const je={client:u.client,queryKey:u.queryKey,pageParam:X,direction:Q?"backward":"forward",meta:u.options.meta};return Y(je),je})(),K=await O(V),{maxPages:ce}=u.options,xe=Q?p0:v0;return{pages:xe(G.pages,K,ce),pageParams:xe(G.pageParams,X,ce)}};if(d&&m.length){const G=d==="backward",X=G?R0:yy,Q={pages:m,pageParams:v},F=X(c,Q);g=await Z(Q,F,G)}else{const G=n??m.length;do{const X=p===0?v[0]??c.initialPageParam:yy(c,g);if(p>0&&X==null)break;g=await Z(g,X),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 R0(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,Uy,z0=(Uy=class extends Ky{constructor(u){super();le(this,ra);le(this,Fi);le(this,sa);le(this,rt);le(this,Yl);W(this,Fi,u.client),this.mutationId=u.mutationId,W(this,rt,u.mutationCache),W(this,sa,[]),this.state=u.state||A0(),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){W(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,M,w,q,Y,O,Z,G,X,Q,F,V;const r=()=>{ye(this,ra,ll).call(this,{type:"continue"})},c={client:S(this,Fi),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,Yl,Xy({fn:()=>this.options.mutationFn?this.options.mutationFn(u,c):Promise.reject(new Error("No mutationFn found")),onFail:(K,ce)=>{ye(this,ra,ll).call(this,{type:"failed",failureCount:K,error:ce})},onPause:()=>{ye(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 d=this.state.status==="pending",m=!S(this,Yl).canStart();try{if(d)r();else{ye(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 ce=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,u,c));ce!==this.state.context&&ye(this,ra,ll).call(this,{type:"pending",context:ce,variables:u,isPaused:m})}const K=await S(this,Yl).start();return await((y=(p=S(this,rt).config).onSuccess)==null?void 0:y.call(p,K,u,this.state.context,this,c)),await((E=(C=this.options).onSuccess)==null?void 0:E.call(C,K,u,this.state.context,c)),await((M=(D=S(this,rt).config).onSettled)==null?void 0:M.call(D,K,null,this.state.variables,this.state.context,this,c)),await((q=(w=this.options).onSettled)==null?void 0:q.call(w,K,null,u,this.state.context,c)),ye(this,ra,ll).call(this,{type:"success",data:K}),K}catch(K){try{await((O=(Y=S(this,rt).config).onError)==null?void 0:O.call(Y,K,u,this.state.context,this,c))}catch(ce){Promise.reject(ce)}try{await((G=(Z=this.options).onError)==null?void 0:G.call(Z,K,u,this.state.context,c))}catch(ce){Promise.reject(ce)}try{await((Q=(X=S(this,rt).config).onSettled)==null?void 0:Q.call(X,void 0,K,this.state.variables,this.state.context,this,c))}catch(ce){Promise.reject(ce)}try{await((V=(F=this.options).onSettled)==null?void 0:V.call(F,void 0,K,u,this.state.context,c))}catch(ce){Promise.reject(ce)}throw ye(this,ra,ll).call(this,{type:"error",error:K}),K}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})})},Uy);function A0(){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,qy,_0=(qy=class extends Pi{constructor(u={}){super();le(this,_a);le(this,ea);le(this,Wi);this.config=u,W(this,_a,new Set),W(this,ea,new Map),W(this,Wi,0)}build(u,r,c){const d=new z0({client:u,mutationCache:this,mutationId:++bs(this,Wi)._,options:u.defaultMutationOptions(r),state:c});return this.add(d),d}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 d=c.indexOf(u);d!==-1&&c.splice(d,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),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===u}else return!0}runNext(u){var c;const r=xs(u);if(typeof r=="string"){const d=(c=S(this,ea).get(r))==null?void 0:c.find(m=>m!==u&&m.state.isPaused);return(d==null?void 0:d.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,qy);function xs(n){var u;return(u=n.options.scope)==null?void 0:u.id}var ca,Hy,O0=(Hy=class extends Pi{constructor(u={}){super();le(this,ca);this.config=u,W(this,ca,new Map)}build(u,r,c){const d=r.queryKey,m=r.queryHash??_o(d,r);let v=this.get(m);return v||(v=new j0({client:u,queryKey:d,queryHash:m,options:u.defaultQueryOptions(r),state:c,defaultOptions:u.getQueryDefaults(d)}),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,Hy),ke,cl,ol,qn,Hn,fl,Ln,Bn,Ly,M0=(Ly=class{constructor(n={}){le(this,ke);le(this,cl);le(this,ol);le(this,qn);le(this,Hn);le(this,fl);le(this,Ln);le(this,Bn);W(this,ke,n.queryCache||new O0),W(this,cl,n.mutationCache||new _0),W(this,ol,n.defaultOptions||{}),W(this,qn,new Map),W(this,Hn,new Map),W(this,fl,0)}mount(){bs(this,fl)._++,S(this,fl)===1&&(W(this,Ln,Ao.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,ke).onFocus())})),W(this,Bn,Ns.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,ke).onOnline())})))}unmount(){var n,u;bs(this,fl)._--,S(this,fl)===0&&((n=S(this,Ln))==null||n.call(this),W(this,Ln,void 0),(u=S(this,Bn))==null||u.call(this),W(this,Bn,void 0))}isFetching(n){return S(this,ke).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,ke).get(u.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),r=S(this,ke).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,ke).findAll(n).map(({queryKey:u,state:r})=>{const c=r.data;return[u,c]})}setQueryData(n,u,r){const c=this.defaultQueryOptions({queryKey:n}),d=S(this,ke).get(c.queryHash),m=d==null?void 0:d.state.data,v=h0(u,m);if(v!==void 0)return S(this,ke).build(this,c).setData(v,{...r,manual:!0})}setQueriesData(n,u,r){return ut.batch(()=>S(this,ke).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,ke).get(u.queryHash))==null?void 0:r.state}removeQueries(n){const u=S(this,ke);ut.batch(()=>{u.findAll(n).forEach(r=>{u.remove(r)})})}resetQueries(n,u){const r=S(this,ke);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,ke).findAll(n).map(d=>d.cancel(r)));return Promise.all(c).then(St).catch(St)}invalidateQueries(n,u={}){return ut.batch(()=>(S(this,ke).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,ke).findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(St)),d.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,ke).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,ke)}getMutationCache(){return S(this,cl)}getDefaultOptions(){return S(this,ol)}setDefaultOptions(n){W(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,ke).clear(),S(this,cl).clear()}},ke=new WeakMap,cl=new WeakMap,ol=new WeakMap,qn=new WeakMap,Hn=new WeakMap,fl=new WeakMap,Ln=new WeakMap,Bn=new WeakMap,Ly),$y=N.createContext(void 0),Qn=n=>{const u=N.useContext($y);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},w0=({client:n,children:u})=>(N.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),f.jsx($y.Provider,{value:n,children:u})),Fy=N.createContext(!1),D0=()=>N.useContext(Fy);Fy.Provider;function U0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var q0=N.createContext(U0()),H0=()=>N.useContext(q0),L0=(n,u,r)=>{const c=r!=null&&r.state.error&&typeof n.throwOnError=="function"?Yy(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||c)&&(u.isReset()||(n.retryOnMount=!1))},B0=n=>{N.useEffect(()=>{n.clearReset()},[n])},Q0=({result:n,errorResetBoundary:u,throwOnError:r,query:c,suspense:d})=>n.isError&&!u.isReset()&&!n.isFetching&&c&&(d&&n.data===void 0||Yy(r,[n.error,c])),k0=n=>{if(n.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Y0=(n,u)=>n.isLoading&&n.isFetching&&!u,G0=(n,u)=>(n==null?void 0:n.suspense)&&u.isPending,vy=(n,u,r)=>u.fetchOptimistic(n).catch(()=>{r.clearReset()});function X0(n,u,r){var D,M,w,q;const c=D0(),d=H0(),m=Qn(),v=m.defaultQueryOptions(n);(M=(D=m.getDefaultOptions().queries)==null?void 0:D._experimental_beforeQuery)==null||M.call(D,v);const g=m.getQueryCache().get(v.queryHash);v._optimisticResults=c?"isRestoring":"optimistic",k0(v),L0(v,d,g),B0(d);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]),G0(v,C))throw vy(v,y,d);if(Q0({result:C,errorResetBoundary:d,throwOnError:v.throwOnError,query:g,suspense:v.suspense}))throw C.error;if((q=(w=m.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||q.call(w,v,C),v.experimental_prefetchInRender&&!Ki.isServer()&&Y0(C,c)){const Y=p?vy(v,y,d):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 X0(n,N0)}/**
|
|
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 K0(n={}){function u(c,d){var y;let m=(y=d.state)==null?void 0:y.masked,{pathname:v,search:g,hash:p}=m||c.location;return No("",{pathname:v,search:g,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function r(c,d){return typeof d=="string"?d:Zi(d)}return V0(u,r,null,n)}function Le(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 Z0(){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,d){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?kn(u):u,state:r,key:u&&u.key||c||Z0(),unstable_mask:d}}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 V0(n,u,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,v=d.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 Z=gy(Y)?Y:No(q.location,Y,O);y=C()+1;let G=by(Z,y),X=q.createHref(Z.unstable_mask||Z);try{v.pushState(G,"",X)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;d.location.assign(X)}m&&p&&p({action:g,location:q.location,delta:1})}function M(Y,O){g="REPLACE";let Z=gy(Y)?Y:No(q.location,Y,O);y=C();let G=by(Z,y),X=q.createHref(Z.unstable_mask||Z);v.replaceState(G,"",X),m&&p&&p({action:g,location:q.location,delta:0})}function w(Y){return J0(Y)}let q={get action(){return g},get location(){return n(d,v)},listen(Y){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(py,E),p=Y,()=>{d.removeEventListener(py,E),p=null}},createHref(Y){return u(d,Y)},createURL:w,encodeLocation(Y){let O=w(Y);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:D,replace:M,go(Y){return v.go(Y)}};return q}function J0(n,u=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Le(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 Wy(n,u,r="/"){return $0(n,u,r,!1)}function $0(n,u,r,c){let d=typeof u=="string"?kn(u):u,m=Oa(d.pathname||"/",r);if(m==null)return null;let v=Py(n);F0(v);let g=null;for(let p=0;g==null&&p<v.length;++p){let y=sb(m);g=ib(v[p],y,c)}return g}function Py(n,u=[],r=[],c="",d=!1){let m=(v,g,p=d,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;Le(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&&(Le(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),Py(v.children,u,D,E,p)),!(v.path==null&&!v.index)&&u.push({path:E,score:lb(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 Iy(v.path))m(v,g,!0,y)}),u}function Iy(n){let u=n.split("/");if(u.length===0)return[];let[r,...c]=u,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let v=Iy(c.join("/")),g=[];return g.push(...v.map(p=>p===""?m:[m,p].join("/"))),d&&g.push(...v),g.map(p=>n.startsWith("/")&&p===""?"/":p)}function F0(n){n.sort((u,r)=>u.score!==r.score?r.score-u.score:nb(u.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var W0=/^:[\w-]+$/,P0=3,I0=2,eb=1,tb=10,ab=-2,xy=n=>n==="*";function lb(n,u){let r=n.split("/"),c=r.length;return r.some(xy)&&(c+=ab),u&&(c+=I0),r.filter(d=>!xy(d)).reduce((d,m)=>d+(W0.test(m)?P0:m===""?eb:tb),c)}function nb(n,u){return n.length===u.length&&n.slice(0,-1).every((c,d)=>c===u[d])?n[n.length-1]-u[u.length-1]:0}function ib(n,u,r=!1){let{routesMeta:c}=n,d={},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(d,E.params),v.push({params:d,pathname:ta([m,E.pathname]),pathnameBase:fb(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]=ub(n.path,n.caseSensitive,n.end),d=u.match(r);if(!d)return null;let m=d[0],v=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((y,{paramName:C,isOptional:E},D)=>{if(C==="*"){let w=g[D]||"";v=m.slice(0,m.length-w.length).replace(/(.)\/+$/,"$1")}const M=g[D];return E&&!M?y[C]=void 0:y[C]=(M||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:v,pattern:n}}function ub(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=[],d="^"+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:"*"}),d+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":n!==""&&n!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,u?void 0:"i"),c]}function sb(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 rb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function cb(n,u="/"){let{pathname:r,search:c="",hash:d=""}=typeof n=="string"?kn(n):n,m;return r?(r=ev(r),r.startsWith("/")?m=Sy(r.substring(1),"/"):m=Sy(r,u)):m=u,{pathname:m,search:db(c),hash:hb(d)}}function Sy(n,u){let r=Cs(u).split("/");return n.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),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 ob(n){return n.filter((u,r)=>r===0||u.route.path&&u.route.path.length>0)}function wo(n){let u=ob(n);return u.map((r,c)=>c===u.length-1?r.pathname:r.pathnameBase)}function Rs(n,u,r,c=!1){let d;typeof n=="string"?d=kn(n):(d={...n},Le(!d.pathname||!d.pathname.includes("?"),io("?","pathname","search",d)),Le(!d.pathname||!d.pathname.includes("#"),io("#","pathname","hash",d)),Le(!d.search||!d.search.includes("#"),io("#","search","hash",d)));let m=n===""||d.pathname==="",v=m?"/":d.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;d.pathname=D.join("/")}g=E>=0?u[E]:"/"}let p=cb(d,g),y=v&&v!=="/"&&v.endsWith("/"),C=(m||v===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(y||C)&&(p.pathname+="/"),p}var ev=n=>n.replace(/\/\/+/g,"/"),ta=n=>ev(n.join("/")),Cs=n=>n.replace(/\/+$/,""),fb=n=>Cs(n).replace(/^\/*/,"/"),db=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,hb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,mb=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 yb(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function vb(n){let u=n.map(r=>r.route.path).filter(Boolean);return ta(u)||"/"}var tv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function av(n,u){let r=n;if(typeof r!="string"||!rb.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(tv)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:d=!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:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lv=["POST","PUT","PATCH","DELETE"];new Set(lv);var pb=["GET",...lv];new Set(pb);var Yn=N.createContext(null);Yn.displayName="DataRouter";var zs=N.createContext(null);zs.displayName="DataRouterState";var nv=N.createContext(!1);function gb(){return N.useContext(nv)}var iv=N.createContext({isTransitioning:!1});iv.displayName="ViewTransition";var bb=N.createContext(new Map);bb.displayName="Fetchers";var xb=N.createContext(null);xb.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 uv="REACT_ROUTER_ERROR",Sb="REDIRECT",Eb="ROUTE_ERROR_RESPONSE";function jb(n){if(n.startsWith(`${uv}:${Sb}:{`))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 Nb(n){if(n.startsWith(`${uv}:${Eb}:{`))try{let u=JSON.parse(n.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new mb(u.status,u.statusText,u.data)}catch{}}function Tb(n,{relative:u}={}){Le(Gn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=N.useContext(Dt),{hash:d,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:d})}function Gn(){return N.useContext(Ii)!=null}function aa(){return Le(Gn(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(Ii).location}var sv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rv(n){N.useContext(Dt).static||N.useLayoutEffect(n)}function As(){let{isDataRoute:n}=N.useContext($t);return n?kb():Cb()}function Cb(){Le(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:d}=aa(),m=JSON.stringify(wo(c)),v=N.useRef(!1);return rv(()=>{v.current=!0}),N.useCallback((p,y={})=>{if(Jt(v.current,sv),!v.current)return;if(typeof p=="number"){r.go(p);return}let C=Rs(p,JSON.parse(m),d,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,d,n])}var Rb=N.createContext(null);function zb(n){let u=N.useContext($t).outlet;return N.useMemo(()=>u&&N.createElement(Rb.Provider,{value:n},u),[u,n])}function Ab(){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(),d=JSON.stringify(wo(r));return N.useMemo(()=>Rs(n,JSON.parse(d),c,u==="path"),[n,d,c,u])}function _b(n,u){return cv(n,u)}function cv(n,u,r){var Y;Le(Gn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=N.useContext(Dt),{matches:d}=N.useContext($t),m=d[d.length-1],v=m?m.params:{},g=m?m.pathname:"/",p=m?m.pathnameBase:"/",y=m&&m.route;{let O=y&&y.path||"";fv(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;Le(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||"/",M=D;if(p!=="/"){let O=p.replace(/^\//,"").split("/");M="/"+D.replace(/^\//,"").split("/").slice(O.length).join("/")}let w=Wy(n,{pathname:M});Jt(y||w!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Jt(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${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=Ub(w&&w.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])})),d,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 Ob(){let n=Qb(),u=yb(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)",d={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:d},r):null,v)}var Mb=N.createElement(Ob,null),ov=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=Nb(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(wb,{error:n},u):u}};ov.contextType=nv;var uo=new WeakMap;function wb({children:n,error:u}){let{basename:r}=N.useContext(Dt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=jb(u.digest);if(c){let d=uo.get(u);if(d)throw d;let m=av(c.location,r);if(tv&&!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 Db({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 Ub(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 d=n,m=c==null?void 0:c.errors;if(m!=null){let C=d.findIndex(E=>E.route.id&&(m==null?void 0:m[E.route.id])!==void 0);Le(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,C+1))}let v=!1,g=-1;if(r&&c){v=c.renderFallback;for(let C=0;C<d.length;C++){let E=d[C];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(g=C),E.route.id){let{loaderData:D,errors:M}=c,w=E.route.loader&&!D.hasOwnProperty(E.route.id)&&(!M||M[E.route.id]===void 0);if(E.route.lazy||w){r.isStatic&&(v=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let p=r==null?void 0:r.onError,y=c&&p?(C,E)=>{var D,M;p(C,{location:c.location,params:((M=(D=c.matches)==null?void 0:D[0])==null?void 0:M.params)??{},unstable_pattern:vb(c.matches),errorInfo:E})}:void 0;return d.reduceRight((C,E,D)=>{let M,w=!1,q=null,Y=null;c&&(M=m&&E.route.id?m[E.route.id]:void 0,q=E.route.errorElement||Mb,v&&(g<0&&D===0?(fv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,Y=null):g===D&&(w=!0,Y=E.route.hydrateFallbackElement||null)));let O=u.concat(d.slice(0,D+1)),Z=()=>{let G;return M?G=q:w?G=Y:E.route.Component?G=N.createElement(E.route.Component,null):E.route.element?G=E.route.element:G=C,N.createElement(Db,{match:E,routeContext:{outlet:C,matches:O,isDataRoute:c!=null},children:G})};return c&&(E.route.ErrorBoundary||E.route.errorElement||D===0)?N.createElement(ov,{location:c.location,revalidation:c.revalidation,component:q,error:M,children:Z(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:y}):Z()},null)}function Uo(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qb(n){let u=N.useContext(Yn);return Le(u,Uo(n)),u}function Hb(n){let u=N.useContext(zs);return Le(u,Uo(n)),u}function Lb(n){let u=N.useContext($t);return Le(u,Uo(n)),u}function qo(n){let u=Lb(n),r=u.matches[u.matches.length-1];return Le(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Bb(){return qo("useRouteId")}function Qb(){var c;let n=N.useContext(Do),u=Hb("useRouteError"),r=qo("useRouteError");return n!==void 0?n:(c=u.errors)==null?void 0:c[r]}function kb(){let{router:n}=qb("useNavigate"),u=qo("useNavigate"),r=N.useRef(!1);return rv(()=>{r.current=!0}),N.useCallback(async(d,m={})=>{Jt(r.current,sv),r.current&&(typeof d=="number"?await n.navigate(d):await n.navigate(d,{fromRouteId:u,...m}))},[n,u])}var Ey={};function fv(n,u,r){!u&&!Ey[n]&&(Ey[n]=!0,Jt(!1,r))}N.memo(Yb);function Yb({routes:n,future:u,state:r,isStatic:c,onError:d}){return cv(n,void 0,{state:r,isStatic:c,onError:d})}function Gb({to:n,replace:u,state:r,relative:c}){Le(Gn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=N.useContext(Dt);Jt(!d,"<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 Xb(n){return zb(n.context)}function Kt(n){Le(!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 Kb({basename:n="/",children:u=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:v}){Le(!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:d,static:m,unstable_useTransitions:v,future:{}}),[g,d,m,v]);typeof r=="string"&&(r=kn(r));let{pathname:y="/",search:C="",hash:E="",state:D=null,key:M="default",unstable_mask:w}=r,q=N.useMemo(()=>{let Y=Oa(y,g);return Y==null?null:{location:{pathname:Y,search:C,hash:E,state:D,key:M,unstable_mask:w},navigationType:c}},[g,y,C,E,D,M,c,w]);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 Zb({children:n,location:u}){return _b(To(n),u)}function To(n,u=[]){let r=[];return N.Children.forEach(n,(c,d)=>{if(!N.isValidElement(c))return;let m=[...u,d];if(c.type===N.Fragment){r.push.apply(r,To(c.props.children,m));return}Le(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>`),Le(!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 Vb(n){return _s(n)&&n.tagName.toLowerCase()==="button"}function Jb(n){return _s(n)&&n.tagName.toLowerCase()==="form"}function $b(n){return _s(n)&&n.tagName.toLowerCase()==="input"}function Fb(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Wb(n,u){return n.button===0&&(!u||u==="_self")&&!Fb(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(d=>[r,d]):[[r,c]])},[]))}function Pb(n,u){let r=Co(n);return u&&u.forEach((c,d)=>{r.has(d)||u.getAll(d).forEach(m=>{r.append(d,m)})}),r}var Ss=null;function Ib(){if(Ss===null)try{new FormData(document.createElement("form"),0),Ss=!1}catch{Ss=!0}return Ss}var ex=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function so(n){return n!=null&&!ex.has(n)?(Jt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${js}"`),null):n}function tx(n,u){let r,c,d,m,v;if(Jb(n)){let g=n.getAttribute("action");c=g?Oa(g,u):null,r=n.getAttribute("method")||Es,d=so(n.getAttribute("enctype"))||js,m=new FormData(n)}else if(Vb(n)||$b(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,d=so(n.getAttribute("formenctype"))||so(g.getAttribute("enctype"))||js,m=new FormData(g,n),!Ib()){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,d=js,v=n}return m&&d==="text/plain"&&(v=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,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 dv(n,u,r,c){let d=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:u&&Oa(d.pathname,u)==="/"?d.pathname=`${Cs(u)}/_root.${c}`:d.pathname=`${Cs(d.pathname)}.${c}`,d}async function ax(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 lx(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 nx(n,u,r){let c=await Promise.all(n.map(async d=>{let m=u.routes[d.route.id];if(m){let v=await ax(m,r);return v.links?v.links():[]}return[]}));return rx(c.flat(1).filter(lx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function jy(n,u,r,c,d,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(d.pathname+d.search+d.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 ix(n,u,{includeHydrateFallback:r}={}){return ux(n.map(c=>{let d=u.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function ux(n){return[...new Set(n)]}function sx(n){let u={},r=Object.keys(n).sort();for(let c of r)u[c]=n[c];return u}function rx(n,u){let r=new Set;return new Set(u),n.reduce((c,d)=>{let m=JSON.stringify(sx(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function Lo(){let n=N.useContext(Yn);return Ho(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function cx(){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 ox(n,u){let r=N.useContext(Bo),[c,d]=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(Z=>{v(Z.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 M=()=>{d(!0)},w=()=>{d(!1),v(!1)};return r?n!=="intent"?[m,D,{}]:[m,D,{onFocus:ki(g,M),onBlur:ki(p,w),onMouseEnter:ki(y,M),onMouseLeave:ki(C,w),onTouchStart:ki(E,M)}]:[!1,D,{}]}function ki(n,u){return r=>{n&&n(r),r.defaultPrevented||u(r)}}function fx({page:n,...u}){let r=gb(),{router:c}=Lo(),d=N.useMemo(()=>Wy(c.routes,n,c.basename),[c.routes,n,c.basename]);return d?r?N.createElement(hx,{page:n,matches:d,...u}):N.createElement(mx,{page:n,matches:d,...u}):null}function dx(n){let{manifest:u,routeModules:r}=Qo(),[c,d]=N.useState([]);return N.useEffect(()=>{let m=!1;return nx(n,u,r).then(v=>{m||d(v)}),()=>{m=!0}},[n,u,r]),c}function hx({page:n,matches:u,...r}){let c=aa(),{future:d}=Qo(),{basename:m}=Lo(),v=N.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let g=dv(n,m,d.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,d.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 mx({page:n,matches:u,...r}){let c=aa(),{future:d,manifest:m,routeModules:v}=Qo(),{basename:g}=Lo(),{loaderData:p,matches:y}=cx(),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(Z=>{var X;let G=m.routes[Z.route.id];!G||!G.hasLoader||(!C.some(Q=>Q.route.id===Z.route.id)&&Z.route.id in p&&((X=v[Z.route.id])!=null&&X.shouldRevalidate)||G.hasClientLoader?Y=!0:q.add(Z.route.id))}),q.size===0)return[];let O=dv(n,g,d.unstable_trailingSlashAwareDataRequests,"data");return Y&&q.size>0&&O.searchParams.set("_routes",u.filter(Z=>q.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[O.pathname+O.search]},[g,d.unstable_trailingSlashAwareDataRequests,p,c,m,C,u,n,v]),M=N.useMemo(()=>ix(E,m),[E,m]),w=dx(E);return N.createElement(N.Fragment,null,D.map(q=>N.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...r})),M.map(q=>N.createElement("link",{key:q,rel:"modulepreload",href:q,...r})),w.map(({key:q,link:Y})=>N.createElement("link",{key:q,nonce:r.nonce,...Y,crossOrigin:Y.crossOrigin??r.crossOrigin})))}function yx(...n){return u=>{n.forEach(r=>{typeof r=="function"?r(u):r!=null&&(r.current=u)})}}var vx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vx&&(window.__reactRouterVersion="7.14.2")}catch{}function px({basename:n,children:u,unstable_useTransitions:r,window:c}){let d=N.useRef();d.current==null&&(d.current=K0({window:c,v5Compat:!0}));let m=d.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(Kb,{basename:n,children:u,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:r})}var hv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xn=N.forwardRef(function({onClick:u,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:v,unstable_mask:g,state:p,target:y,to:C,preventScrollReset:E,viewTransition:D,unstable_defaultShouldRevalidate:M,...w},q){let{basename:Y,navigator:O,unstable_useTransitions:Z}=N.useContext(Dt),G=typeof C=="string"&&hv.test(C),X=av(C,Y);C=X.to;let Q=Tb(C,{relative:d}),F=aa(),V=null;if(g){let De=Rs(g,[],F.unstable_mask?F.unstable_mask.pathname:"/",!0);Y!=="/"&&(De.pathname=De.pathname==="/"?Y:ta([Y,De.pathname])),V=O.createHref(De)}let[K,ce,xe]=ox(c,w),je=xx(C,{replace:v,unstable_mask:g,state:p,target:y,preventScrollReset:E,relative:d,viewTransition:D,unstable_defaultShouldRevalidate:M,unstable_useTransitions:Z});function Ye(De){u&&u(De),De.defaultPrevented||je(De)}let Et=!(X.isExternal||m),et=N.createElement("a",{...w,...xe,href:(Et?V:void 0)||X.absoluteURL||Q,onClick:Et?Ye:u,ref:yx(q,ce),target:y,"data-discover":!G&&r==="render"?"true":void 0});return K&&!G?N.createElement(N.Fragment,null,et,N.createElement(fx,{page:Q})):et});Xn.displayName="Link";var mv=N.forwardRef(function({"aria-current":u="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:v,viewTransition:g,children:p,...y},C){let E=eu(v,{relative:y.relative}),D=aa(),M=N.useContext(zs),{navigator:w,basename:q}=N.useContext(Dt),Y=M!=null&&Tx(E)&&g===!0,O=w.encodeLocation?w.encodeLocation(E).pathname:E.pathname,Z=D.pathname,G=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;r||(Z=Z.toLowerCase(),G=G?G.toLowerCase():null,O=O.toLowerCase()),G&&q&&(G=Oa(G,q)||G);const X=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let Q=Z===O||!d&&Z.startsWith(O)&&Z.charAt(X)==="/",F=G!=null&&(G===O||!d&&G.startsWith(O)&&G.charAt(O.length)==="/"),V={isActive:Q,isPending:F,isTransitioning:Y},K=Q?u:void 0,ce;typeof c=="function"?ce=c(V):ce=[c,Q?"active":null,F?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let xe=typeof m=="function"?m(V):m;return N.createElement(Xn,{...y,"aria-current":K,className:ce,ref:C,style:xe,to:v,viewTransition:g},typeof p=="function"?p(V):p)});mv.displayName="NavLink";var gx=N.forwardRef(({discover:n="render",fetcherKey:u,navigate:r,reloadDocument:c,replace:d,state:m,method:v=Es,action:g,onSubmit:p,relative:y,preventScrollReset:C,viewTransition:E,unstable_defaultShouldRevalidate:D,...M},w)=>{let{unstable_useTransitions:q}=N.useContext(Dt),Y=jx(),O=Nx(g,{relative:y}),Z=v.toLowerCase()==="get"?"get":"post",G=typeof g=="string"&&hv.test(g),X=Q=>{if(p&&p(Q),Q.defaultPrevented)return;Q.preventDefault();let F=Q.nativeEvent.submitter,V=(F==null?void 0:F.getAttribute("formmethod"))||v,K=()=>Y(F||Q.currentTarget,{fetcherKey:u,method:V,navigate:r,replace:d,state:m,relative:y,preventScrollReset:C,viewTransition:E,unstable_defaultShouldRevalidate:D});q&&r!==!1?N.startTransition(()=>K()):K()};return N.createElement("form",{ref:w,method:Z,action:O,onSubmit:c?p:X,...M,"data-discover":!G&&n==="render"?"true":void 0})});gx.displayName="Form";function bx(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yv(n){let u=N.useContext(Yn);return Le(u,bx(n)),u}function xx(n,{target:u,replace:r,unstable_mask:c,state:d,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(M=>{if(Wb(M,u)){M.preventDefault();let w=r!==void 0?r:Zi(E)===Zi(D),q=()=>C(n,{replace:w,unstable_mask:c,state:d,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p});y?N.startTransition(()=>q()):q()}},[E,C,D,r,c,d,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(),d=N.useMemo(()=>Pb(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(d)):g);r.current=!0,m("?"+y,p)},[m,d]);return[d,v]}var Sx=0,Ex=()=>`__${String(++Sx)}__`;function jx(){let{router:n}=yv("useSubmit"),{basename:u}=N.useContext(Dt),r=Bb(),c=n.fetch,d=n.navigate;return N.useCallback(async(m,v={})=>{let{action:g,method:p,encType:y,formData:C,body:E}=tx(m,u);if(v.navigate===!1){let D=v.fetcherKey||Ex();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 d(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,d,u,r])}function Nx(n,{relative:u}={}){let{basename:r}=N.useContext(Dt),c=N.useContext($t);Le(c,"useFormAction must be used inside a RouteContext");let[d]=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===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:ta([r,m.pathname])),Zi(m)}function Tx(n,{relative:u}={}){let r=N.useContext(iv);Le(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=yv("useViewTransitionState"),d=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(d.pathname,v)!=null||Ts(d.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 Cx=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rx=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,r,c)=>c?c.toUpperCase():r.toLowerCase()),Ny=n=>{const u=Rx(n);return u.charAt(0).toUpperCase()+u.slice(1)},vv=(...n)=>n.filter((u,r,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===r).join(" ").trim(),zx=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 Ax={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 _x=N.forwardRef(({color:n="currentColor",size:u=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:m,iconNode:v,...g},p)=>N.createElement("svg",{ref:p,...Ax,width:u,height:u,stroke:n,strokeWidth:c?Number(r)*24/Number(u):r,className:vv("lucide",d),...!m&&!zx(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 Ee=(n,u)=>{const r=N.forwardRef(({className:c,...d},m)=>N.createElement(_x,{ref:m,iconNode:u,className:vv(`lucide-${Cx(Ny(n))}`,`lucide-${n}`,c),...d}));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 Ox=[["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"}]],Mx=Ee("activity",Ox);/**
|
|
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 wx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Dx=Ee("chevron-down",wx);/**
|
|
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 Ux=[["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"}]],qx=Ee("circle-alert",Ux);/**
|
|
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 Hx=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Lx=Ee("circle-check-big",Hx);/**
|
|
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 Bx=[["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"}]],Qx=Ee("download",Bx);/**
|
|
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 kx=[["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"}]],Yx=Ee("file-text",kx);/**
|
|
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 Gx=[["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"}]],Xx=Ee("flame",Gx);/**
|
|
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 Kx=[["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"}]],Zx=Ee("funnel",Kx);/**
|
|
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 Vx=[["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"}]],Jx=Ee("git-branch",Vx);/**
|
|
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 $x=[["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"}]],Fx=Ee("globe",$x);/**
|
|
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 Wx=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],Px=Ee("kanban",Wx);/**
|
|
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 Ix=[["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"}]],e1=Ee("layout-grid",Ix);/**
|
|
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 t1=[["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"}]],a1=Ee("link",t1);/**
|
|
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 l1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pv=Ee("loader-circle",l1);/**
|
|
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 n1=[["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=Ee("message-circle",n1);/**
|
|
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 i1=[["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"}]],u1=Ee("message-square",i1);/**
|
|
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 s1=[["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"}]],r1=Ee("pause",s1);/**
|
|
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 c1=[["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=Ee("play",c1);/**
|
|
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 o1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Os=Ee("plus",o1);/**
|
|
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 f1=[["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"}]],gv=Ee("refresh-cw",f1);/**
|
|
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 d1=[["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=Ee("rotate-ccw",d1);/**
|
|
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 h1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xo=Ee("search",h1);/**
|
|
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 m1=[["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"}]],y1=Ee("send",m1);/**
|
|
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 v1=[["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"}]],p1=Ee("settings",v1);/**
|
|
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 g1=[["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"}]],b1=Ee("snowflake",g1);/**
|
|
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 x1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],S1=Ee("square",x1);/**
|
|
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 E1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],j1=Ee("terminal",E1);/**
|
|
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 N1=[["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"}]],T1=Ee("trash-2",N1);/**
|
|
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 C1=[["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"}]],bv=Ee("users",C1);/**
|
|
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 R1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xv=Ee("x",R1);/**
|
|
231
|
+
* @license lucide-react v0.544.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const z1=[["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"}]],A1=Ee("zap",z1),_1=[{to:"/chat",label:"对话",icon:u1},{to:"/projects",label:"项目",icon:e1},{to:"/board",label:"看板",icon:Px},{to:"/workers",label:"Workers",icon:bv},{to:"/logs",label:"Logs",icon:Yx},{to:"/skills",label:"Skills",icon:Fx},{to:"/system",label:"系统",icon:p1}];function O1(){return f.jsxs(f.Fragment,{children:[f.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:[f.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",f.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] font-normal",children:"v0.44"})]}),f.jsx("nav",{className:"flex flex-col gap-1.5 mt-2","aria-label":"主导航",children:_1.map(n=>{const u=n.icon;return f.jsxs(mv,{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:[f.jsx(u,{size:18,strokeWidth:2.5}),n.label]},n.to)})})]})}class M1 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 M1(u.status,`${u.status} ${u.statusText}`,r)}return await u.json()}function Sv(){return Ft("/api/system/info")}function w1(){return Ft("/api/system/env")}function D1(){return Ft("/api/system/doctor/all")}function U1(){const{data:n,isError:u}=ct({queryKey:["system-info"],queryFn:Sv,refetchInterval:3e4});return f.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:[f.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"}),f.jsxs("span",{children:["localhost:",window.location.port]}),n&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),f.jsxs("span",{children:["v",n.version]}),f.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),f.jsxs("span",{children:["node ",n.nodeVersion]})]}),f.jsx("span",{className:"ml-auto text-[var(--color-text-subtle)]",children:"Cmd+K"})]})}function q1(){return f.jsxs("div",{className:"grid grid-cols-[240px_1fr] grid-rows-[1fr_40px] min-h-screen",children:[f.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:f.jsx(O1,{})}),f.jsx("main",{className:"row-start-1 overflow-auto p-6 flex flex-col gap-4",children:f.jsx(Xb,{})}),f.jsx("footer",{className:"col-span-2 row-start-2 border-t-[3px] border-[var(--color-text)] bg-[var(--color-bg)]",children:f.jsx(U1,{})})]})}class H1 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?f.jsx("div",{className:"p-6",children:f.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-crashed-bg)]",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"💥 UI 崩了"}),f.jsx("p",{className:"text-sm mb-3 text-[var(--color-text-muted)]",children:this.state.error.message}),f.jsxs("details",{className:"text-xs mb-4",children:[f.jsx("summary",{className:"cursor-pointer font-semibold",children:"stack"}),f.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)"})]}),f.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 L1(){const{data:n,isLoading:u,isError:r,error:c,refetch:d}=ct({queryKey:["projects"],queryFn:Ms});return f.jsxs("div",{className:"flex flex-col gap-6 max-w-6xl",children:[f.jsxs("header",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"项目 🎯"}),f.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:n?`${n.data.length} 个本机项目`:u?"加载中…":"点击刷新重试"})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>d(),type:"button",children:[f.jsx(Mx,{size:16,strokeWidth:2.5}),"刷新"]}),f.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[f.jsx(Os,{size:16,strokeWidth:3}),"新建项目"]})]})]}),u&&f.jsx(k1,{}),r&&f.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:"加载失败"}),f.jsx("p",{className:"text-sm text-[var(--color-text)]",children:c instanceof Error?c.message:String(c)}),f.jsx("button",{className:"nb-btn mt-4",onClick:()=>d(),type:"button",children:"重试"})]}),n&&n.data.length===0&&f.jsx(Y1,{}),n&&n.data.length>0&&f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:n.data.map(m=>f.jsx(B1,{project:m},m.name))})]})}function B1({project:n}){const u=n.pipelineStatus==="running";return f.jsxs(Xn,{to:`/board?project=${encodeURIComponent(n.name)}`,className:"nb-card nb-card-interactive block no-underline text-[var(--color-text)]",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-xl truncate",children:n.name}),f.jsx(Q1,{status:n.pipelineStatus})]}),n.repoDir&&f.jsx("p",{className:"text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] truncate mb-3",children:n.repoDir}),f.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:[f.jsx(ro,{label:"cards",value:n.cards.total,accent:"purple"}),f.jsx(ro,{label:"inprogress",value:n.cards.inprogress,accent:n.cards.inprogress>0?"yellow":"idle"}),f.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 f.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:[f.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-lg",children:u}),f.jsx("span",{className:"text-[10px] uppercase tracking-wider text-[var(--color-text-muted)] font-semibold",children:n})]})}function Q1({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],d=n==="running"?"var(--color-running)":n==="error"?"var(--color-crashed)":n==="stopping"?"var(--color-stuck)":"var(--color-idle)";return f.jsx("span",{className:"nb-status",style:{background:r,color:d},children:c})}function k1(){return f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[0,1,2].map(n=>f.jsxs("div",{className:"nb-card opacity-60 animate-pulse",children:[f.jsx("div",{className:"h-6 w-32 bg-[var(--color-border-light)] rounded-md mb-3"}),f.jsx("div",{className:"h-3 w-full bg-[var(--color-border-light)] rounded-md mb-2"}),f.jsx("div",{className:"h-3 w-2/3 bg-[var(--color-border-light)] rounded-md"})]},n))})}function Y1(){return f.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] flex items-center gap-6 p-8",children:[f.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:f.jsx(bv,{size:32,strokeWidth:2.5})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"还没有项目 ✨"}),f.jsxs("p",{className:"text-sm text-[var(--color-text)] mb-4",children:["运行 ",f.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>"})," 创建第一个项目。"]}),f.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[f.jsx(Os,{size:16,strokeWidth:3}),"新建项目"]})]})]})}function G1(n){return Ft(`/api/projects/${encodeURIComponent(n)}/cards`)}function X1(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 K1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/cards/${u}/reset`)}function Z1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/cards/${u}/launch`)}function V1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/cards`,{title:u})}function J1(n){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/start`)}function $1(n){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/stop`)}function F1(n,u){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/reset`,u??{})}function Ev(n){const u=Qn();N.useEffect(()=>{if(!n)return;const r=`/stream/projects/${encodeURIComponent(n)}`,c=new EventSource(r),d=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",d),c.addEventListener("card.updated",d),c.addEventListener("card.deleted",d),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 W1=new Set(["python","typescript","golang","rust","kotlin","swift","java"]),P1=new Set(["frontend","backend","mobile","database","devops"]),I1=new Set(["backend-architect","frontend-developer","code-reviewer","database-optimizer","devops-automator","security-engineer","qa-tester","security","qa","architect","db-opt"]),e2=new Set(["coding-standards","tdd-workflow","git-workflow","architecture-decision-records","debugging-workflow"]);function t2(n){return W1.has(n)?"lang":P1.has(n)?"end":I1.has(n)?"persona":e2.has(n)?"workflow":"other"}const a2={lang:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg)"};function jv({name:n}){const u=a2[t2(n)];return f.jsx("span",{className:"nb-badge",style:{background:u},children:n})}function Nv({label:n,kind:u="default"}){const r=u==="warn"?"var(--color-accent-pink)":u==="accent"?"var(--color-accent-yellow)":"var(--color-bg-cream)";return f.jsx("span",{className:"nb-badge",style:{background:r},children:n})}function l2({card:n,onClick:u,done:r}){const c=n.labels.some(d=>d.startsWith("STARTED-"))&&!r;return f.jsxs("article",{onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.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:[f.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[f.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&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"running"})]}),f.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)&&f.jsxs("div",{className:"flex flex-wrap gap-1 mb-2",children:[n.skills.slice(0,3).map(d=>f.jsx(jv,{name:d},d)),n.labels.filter(d=>d==="NEEDS-FIX").map(d=>f.jsx(Nv,{label:d,kind:"warn"},d))]}),f.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:[f.jsx("span",{children:n2(n.updatedAt??n.createdAt)}),n.branch&&f.jsxs("span",{className:"truncate",children:["· ",n.branch]})]})]})}function n2(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 i2({label:n,bg:u,cards:r,onCardClick:c}){return f.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:[f.jsxs("div",{className:"flex items-center justify-between px-1 pb-2 border-b-2 border-[var(--color-text)]",children:[f.jsx("span",{className:"font-[family-name:var(--font-heading)] font-bold text-sm uppercase tracking-wider",children:n}),f.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})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[r.length===0&&f.jsx("div",{className:"text-xs text-[var(--color-text-muted)] text-center py-6 italic",children:"— 空 —"}),r.map(d=>f.jsx(l2,{card:d,onClick:()=>c(d),done:n==="Done"},d.seq))]})]})}function u2({project:n,seq:u,onClose:r,onChanged:c}){const{data:d,isLoading:m,isError:v,error:g}=ct({queryKey:["card",n,u],queryFn:()=>X1(n,u)});return N.useEffect(()=>{const p=y=>{y.key==="Escape"&&r()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[r]),f.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:f.jsxs("div",{onClick:p=>p.stopPropagation(),className:"nb-card mt-12 w-full max-w-3xl bg-[var(--color-bg)]",children:[f.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[f.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]}),(d==null?void 0:d.state)&&f.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:d.state})]}),f.jsx("h2",{id:"card-modal-title",className:"font-[family-name:var(--font-heading)] text-2xl font-bold",children:(d==null?void 0:d.title)??"加载中…"})]}),f.jsx("button",{onClick:r,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:f.jsx(xv,{size:16,strokeWidth:3})})]}),m&&f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),v&&f.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",g instanceof Error?g.message:String(g)]}),d&&f.jsxs("div",{className:"flex flex-col gap-4",children:[d.branch&&f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx(Jx,{size:14}),f.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:d.branch})]}),(d.skills.length>0||d.labels.length>0)&&f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d.skills.map(p=>f.jsx(jv,{name:p},p)),d.labels.map(p=>f.jsx(Nv,{label:p,kind:p==="NEEDS-FIX"?"warn":"default"},p))]}),d.checklist.total>0&&f.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-3",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsxs("span",{className:"font-bold text-sm",children:["检查清单 ",d.checklist.done,"/",d.checklist.total]}),f.jsx("div",{className:"w-24 h-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full overflow-hidden",children:f.jsx("div",{className:"h-full bg-[var(--color-cta)]",style:{width:`${d.checklist.percent}%`}})})]}),f.jsx("ul",{className:"text-sm space-y-1",children:d.checklist.items.map((p,y)=>f.jsxs("li",{className:`flex items-start gap-2 ${p.done?"opacity-60 line-through":""}`,children:[f.jsx("span",{children:p.done?"✓":"○"}),f.jsx("span",{children:p.text})]},y))})]}),d.body&&f.jsxs("div",{children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"正文"}),f.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:d.body.trim()||"(空)"})]}),f.jsxs("div",{className:"flex gap-3 pt-2 border-t-2 border-[var(--color-border-light)]",children:[f.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:async()=>{await Z1(n,u),c()},children:[f.jsx(Yo,{size:14,strokeWidth:3}),"启动 worker"]}),f.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{window.confirm(`重置卡片 #${u}?`)&&(await K1(n,u),c(),r())},children:[f.jsx(Go,{size:14,strokeWidth:2.5}),"重置卡片"]})]})]})]})})}function Ko({current:n,onChange:u}){const[r,c]=N.useState(!1),d=N.useRef(null),{data:m}=ct({queryKey:["projects"],queryFn:Ms});return N.useEffect(()=>{const v=g=>{var p;(p=d.current)!=null&&p.contains(g.target)||c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),f.jsxs("div",{className:"relative",ref:d,children:[f.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,f.jsx(Dx,{size:14,strokeWidth:2.5})]}),r&&m&&f.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=>f.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:[f.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:v.name}),f.jsxs("span",{className:"ml-2 text-xs text-[var(--color-text-muted)]",children:[v.cards.total," cards"]})]},v.name))})]})}function s2({title:n,body:u,confirm:r,onConfirm:c,onCancel:d,danger:m}){return N.useEffect(()=>{const v=g=>{g.key==="Escape"&&d()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[d]),f.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:d,children:f.jsxs("div",{onClick:v=>v.stopPropagation(),className:"nb-card max-w-md w-full",children:[f.jsx("h2",{id:"confirm-title",className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:n}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5",children:u}),f.jsxs("div",{className:"flex gap-3 justify-end",children:[f.jsx("button",{className:"nb-btn",onClick:d,type:"button",children:"取消"}),f.jsx("button",{className:m?"nb-btn nb-btn-danger":"nb-btn nb-btn-yellow",onClick:async()=>{await c()},type:"button",children:r})]})]})})}const r2=[{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 c2(){var Z,G,X;const[n,u]=ko(),r=n.get("project"),[c,d]=N.useState(null),[m,v]=N.useState(!1),[g,p]=N.useState("");Ev(r);const y=ct({queryKey:["projects"],queryFn:Ms}),C=ct({queryKey:["cards",r],queryFn:()=>G1(r??""),enabled:!!r}),E=Qn(),D=()=>{E.invalidateQueries({queryKey:["cards",r]}),E.invalidateQueries({queryKey:["projects"]}),E.invalidateQueries({queryKey:["pipeline-status",r]})},M=Q=>{u({project:Q})};if(!r)return f.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"看板"}),f.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] max-w-2xl",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"选择一个项目 🎯"}),f.jsx("p",{className:"text-sm mb-4 text-[var(--color-text-muted)]",children:"看板按项目分。挑一个开始:"}),f.jsx("div",{className:"flex flex-wrap gap-2",children:(Z=y.data)==null?void 0:Z.data.map(Q=>f.jsx("button",{className:"nb-btn nb-btn-blue",onClick:()=>M(Q.name),type:"button",children:Q.name},Q.name))})]})]});const w=((G=C.data)==null?void 0:G.data)??[],q=g?w.filter(Q=>Q.title.toLowerCase().includes(g.toLowerCase())||Q.skills.some(F=>F.includes(g))||Q.labels.some(F=>F.includes(g))):w,Y=(X=y.data)==null?void 0:X.data.find(Q=>Q.name===r),O=(Y==null?void 0:Y.pipelineStatus)==="running";return f.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[f.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"看板 ✨"}),f.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:Y?`${Y.name} · ${Y.cards.total} cards · ${Y.workers.active} workers 活跃`:"加载中…"})]}),f.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f.jsx(Ko,{current:r,onChange:M}),O?f.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:async()=>{await $1(r),D()},type:"button",children:[f.jsx(S1,{size:14,strokeWidth:3})," 停止"]}):f.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:async()=>{await J1(r),D()},type:"button",children:[f.jsx(Yo,{size:14,strokeWidth:3})," 启动 pipeline"]}),f.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>v(!0),type:"button",children:[f.jsx(Go,{size:14,strokeWidth:2.5})," 重置"]}),f.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{const Q=window.prompt("卡片标题(markdown 会用作 title)");Q&&(await V1(r,Q),D())},type:"button",children:[f.jsx(Os,{size:14,strokeWidth:3})," 新卡片"]})]})]}),f.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f.jsxs("div",{className:"relative flex-1 max-w-md",children:[f.jsx(Xo,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),f.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索标题 / skill / label…",value:g,onChange:Q=>p(Q.target.value),"aria-label":"搜索卡片"})]}),f.jsxs("span",{className:"text-xs text-[var(--color-text-muted)] flex items-center gap-1 font-[family-name:var(--font-mono)]",children:[f.jsx(Zx,{size:12}),q.length," / ",w.length]})]}),C.isError&&f.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[f.jsx("p",{className:"font-semibold",children:"加载卡片失败"}),f.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&&f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:r2.map(Q=>f.jsx(i2,{label:Q.label,bg:Q.bg,cards:q.filter(o2(Q.state)),onCardClick:F=>d(F.seq)},Q.state))}),c!==null&&f.jsx(u2,{project:r,seq:c,onClose:()=>d(null),onChanged:D}),m&&f.jsx(s2,{title:"重置整个流水线",body:"这会清空所有卡片的运行状态、worker marker、分支。不可撤销。",confirm:"重置全部",onConfirm:async()=>{await F1(r,{all:!0}),v(!1),D()},onCancel:()=>v(!1)})]})}function o2(n){return u=>n==="Backlog"?u.state==="Backlog"||u.state==="Planning":n==="Done"?u.state==="Done"||u.state==="Canceled":u.state===n}function f2(n){return Ft(`/api/projects/${encodeURIComponent(n)}/workers`)}async function d2(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 h2(n,u){return d2(`/api/projects/${encodeURIComponent(n)}/workers/${u}/kill`)}function m2(){const[n,u]=ko(),r=n.get("project");Ev(r);const c=Qn(),{data:d,isLoading:m,isError:v,error:g,refetch:p}=ct({queryKey:["workers",r],queryFn:()=>f2(r??""),enabled:!!r,refetchInterval:5e3});if(!r)return f.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Workers 👷"}),f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)]",children:["在 URL 上加 ",f.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"?project=xx"}),",或从",f.jsx(Xn,{to:"/projects",className:"underline font-semibold",children:" 项目列表"})," 打开看板后跳转。"]})]});const y=(d==null?void 0:d.data)??[],C=y.filter(M=>M.state==="running").length,E=y.filter(M=>M.state==="stuck").length,D=y.filter(M=>M.state==="crashed").length;return f.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[f.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Workers 👷"}),f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[y.length," 个 slot · ",C," running · ",E," stuck · ",D," crashed"]})]}),f.jsxs("div",{className:"flex gap-3 items-center",children:[f.jsx(Ko,{current:r,onChange:M=>u({project:M})}),f.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>p(),type:"button",children:[f.jsx(Go,{size:14,strokeWidth:2.5})," 刷新"]})]})]}),m&&f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),v&&f.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:f.jsxs("p",{className:"font-semibold",children:["加载失败: ",g instanceof Error?g.message:String(g)]})}),!m&&y.length===0&&f.jsx("div",{className:"nb-card bg-[var(--color-bg-cream)]",children:f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"当前没有 worker slot。启动一次 pipeline 就会出现。"})}),y.length>0&&f.jsx("div",{className:"nb-card p-0 overflow-hidden",children:f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)]",children:[f.jsx(Ml,{w:"70px",children:"Slot"}),f.jsx(Ml,{children:"Card"}),f.jsx(Ml,{w:"110px",children:"Status"}),f.jsx(Ml,{w:"90px",children:"Stage"}),f.jsx(Ml,{w:"90px",children:"PID"}),f.jsx(Ml,{w:"120px",children:"Runtime"}),f.jsx(Ml,{w:"200px",right:!0,children:"Action"})]})}),f.jsx("tbody",{children:y.map(M=>f.jsx(y2,{project:r,worker:M,onChange:()=>c.invalidateQueries({queryKey:["workers",r]})},M.slot))})]})})]})}function Ml({children:n,w:u,right:r}){return f.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 y2({project:n,worker:u,onChange:r}){const c=u.state==="idle";return f.jsxs("tr",{className:"border-b border-dashed border-[var(--color-border-light)] last:border-0 hover:bg-[var(--color-accent-yellow)] transition-colors",children:[f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] font-bold",children:u.slot}),f.jsx("td",{className:"px-4 py-3",children:u.card?f.jsxs("span",{className:"font-semibold",children:[f.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]}):f.jsx("em",{className:"text-[var(--color-text-subtle)]",children:"— 空闲 —"})}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(v2,{state:u.state})}),f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:u.stage||"—"}),f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:u.pid??"—"}),f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:p2(u.runtimeMs)}),f.jsx("td",{className:"px-4 py-3 text-right space-x-2",children:!c&&f.jsxs(f.Fragment,{children:[f.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:[f.jsx(j1,{size:12,strokeWidth:2.5})," log"]}),f.jsxs("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:async()=>{window.confirm(`终止 worker-${u.slot}?`)&&(await h2(n,u.slot),r())},type:"button",children:[f.jsx(A1,{size:12,strokeWidth:2.5})," 终止"]})]})})]})}function v2({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 f.jsx("span",{className:"nb-status",style:{background:r,color:c},children:n})}function p2(n){if(n==null||n<=0)return"—";const u=Math.floor(n/1e3),r=Math.floor(u/3600),c=Math.floor(u%3600/60),d=u%60,m=v=>v.toString().padStart(2,"0");return r>0?`${m(r)}:${m(c)}:${m(d)}`:`${m(c)}:${m(d)}`}function g2(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 b2(n){const u=new URLSearchParams({project:n.project});return n.worker&&u.set("worker",n.worker),`/stream/logs?${u}`}const x2=["error","warn","info","debug"],S2=["error","warn","info"];function E2(){const[n,u]=ko(),r=n.get("project"),c=n.get("worker")??"",[d,m]=N.useState([]),[v,g]=N.useState(!1),[p,y]=N.useState(!0),[C,E]=N.useState(()=>new Set(S2)),[D,M]=N.useState(""),w=N.useRef(null),{data:q}=ct({queryKey:["logs",r,c],queryFn:()=>g2({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=b2({project:r,worker:c||void 0}),Z=new EventSource(O);return Z.addEventListener("log.line",G=>{if(!v)try{const X=JSON.parse(G.data);m(Q=>{const F=[...Q,X];return F.length>5e3&&F.splice(0,F.length-5e3),F})}catch{}}),()=>Z.close()},[r,c,v]),N.useEffect(()=>{if(!p)return;const O=w.current;O&&(O.scrollTop=O.scrollHeight)},[d,p]);const Y=N.useMemo(()=>{const O=D.toLowerCase();return d.filter(Z=>!(!C.has(Z.level)||O&&!Z.msg.toLowerCase().includes(O)))},[d,C,D]);return r?f.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[f.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Logs 📜"}),f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[r,c&&` · worker-${c}`," · tail -f · ",d.length," lines",v&&f.jsx("span",{className:"text-[var(--color-stuck)] ml-2 font-bold",children:"⏸ PAUSED"})]})]}),f.jsx("div",{className:"flex gap-3 items-center",children:f.jsx(Ko,{current:r,onChange:O=>u({project:O})})})]}),f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[f.jsxs("div",{className:"relative flex-1 max-w-md",children:[f.jsx(Xo,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),f.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"过滤关键字…",value:D,onChange:O=>M(O.target.value),"aria-label":"过滤日志"})]}),f.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:x2.map(O=>f.jsx(j2,{level:O,enabled:C.has(O),onToggle:()=>{E(Z=>{const G=new Set(Z);return G.has(O)?G.delete(O):G.add(O),G})}},O))}),f.jsxs("div",{className:"ml-auto flex gap-2",children:[f.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>y(O=>!O),type:"button",children:p?"✓ Auto-scroll":"Auto-scroll"}),f.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>g(O=>!O),type:"button",children:v?f.jsxs(f.Fragment,{children:[f.jsx(Yo,{size:12,strokeWidth:3})," Resume"]}):f.jsxs(f.Fragment,{children:[f.jsx(r1,{size:12,strokeWidth:3})," Pause"]})}),f.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>{const O=new Blob([Y.map(X=>X.raw).join(`
|
|
236
|
+
`)],{type:"text/plain"}),Z=URL.createObjectURL(O),G=document.createElement("a");G.href=Z,G.download=`${r}-log-${Date.now()}.log`,G.click(),URL.revokeObjectURL(Z)},type:"button",children:[f.jsx(Qx,{size:12,strokeWidth:2.5})," Export"]})]})]}),f.jsxs("div",{className:"nb-card p-0 overflow-hidden",children:[f.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:[f.jsx("span",{className:"text-[var(--color-text-muted)]",children:(q==null?void 0:q.file)??"~/.coral/projects/.../logs/*.log"}),f.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"live"})]}),f.jsxs("div",{ref:w,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 Z=O.currentTarget;!(Z.scrollHeight-Z.scrollTop-Z.clientHeight<40)&&p&&y(!1)},children:[Y.map((O,Z)=>f.jsx(N2,{line:O},Z)),Y.length===0&&f.jsx("div",{className:"text-center py-12 text-[var(--color-text-subtle)]",children:"没有匹配的日志"})]})]})]}):f.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Logs 📜"}),f.jsxs("p",{className:"text-sm",children:["需要 ",f.jsx("code",{children:"?project=xx"}),"。"]})]})}function j2({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)"},d={error:"var(--color-crashed)",warn:"var(--color-stuck)",info:"var(--color-text)",debug:"var(--color-text)"};return f.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:d[n]}:{},children:n.toUpperCase()})}function N2({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 f.jsxs("div",{className:"grid grid-cols-[100px_60px_1fr] gap-2 px-2 py-0.5 rounded hover:bg-[var(--color-bg-cream)]",children:[f.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:"--"}),f.jsx("span",{className:`text-center font-bold ${u[n.level]??""}`,style:{borderRadius:4,padding:"0 6px"},children:n.level.toUpperCase()}),f.jsx("span",{className:"truncate text-[var(--color-text)]",children:n.msg})]})}function T2(n){return Ft("/api/skills")}function C2(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 R2(n,u){return ws(`/api/skills/${encodeURIComponent(n)}/link`,{project:u})}function z2(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 A2(n,u){return ws(`/api/skills/${encodeURIComponent(n)}/freeze`,{project:u})}function _2(n,u){return ws(`/api/skills/${encodeURIComponent(n)}/unfreeze`,{project:u})}function O2(){return ws("/api/skills/sync")}function M2({name:n,projects:u,onClose:r,onChange:c}){const{data:d,isLoading:m,isError:v,error:g,refetch:p}=ct({queryKey:["skill",n],queryFn:()=>C2(n)});N.useEffect(()=>{const w=q=>{q.key==="Escape"&&r()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[r]);const y=async w=>{await R2(n,w),p(),c()},C=async w=>{window.confirm(`从 ${w} 移除 ${n}?`)&&(await z2(n,w),p(),c())},E=async w=>{await A2(n,w),p(),c()},D=async w=>{window.confirm(`${w} 里 ${n} 的本地改动会丢失,确定 unfreeze?`)&&(await _2(n,w),p(),c())},M=new Map(((d==null?void 0:d.linkedProjects)??[]).map(w=>[w.project,w.state]));return f.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:f.jsxs("div",{onClick:w=>w.stopPropagation(),className:"nb-card mt-8 w-full max-w-4xl",children:[f.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:n}),d&&f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[d.category," · ",d.origin||"local"]})]}),f.jsx("button",{onClick:r,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:f.jsx(xv,{size:16,strokeWidth:3})})]}),m&&f.jsx("p",{children:"加载中…"}),v&&f.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",g instanceof Error?g.message:String(g)]}),d&&f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-4",children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-3 uppercase tracking-wider",children:"项目链接状态"}),f.jsxs("div",{className:"flex flex-col gap-2",children:[u.map(w=>{const q=M.get(w);return f.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:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-sm",children:w}),q==="linked"&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"linked"}),q==="frozen"&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-stuck-bg)",color:"var(--color-stuck)"},children:"frozen"}),!q&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-idle-bg)",color:"var(--color-idle)"},children:"absent"})]}),f.jsxs("div",{className:"flex gap-2",children:[!q&&f.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"4px 10px",fontSize:11},onClick:()=>y(w),type:"button",children:[f.jsx(a1,{size:11})," link"]}),q==="linked"&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>E(w),type:"button",children:[f.jsx(b1,{size:11})," freeze"]}),f.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>C(w),type:"button",children:"unlink"})]}),q==="frozen"&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>D(w),type:"button",children:[f.jsx(Xx,{size:11})," unfreeze"]}),f.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>C(w),type:"button",children:"unlink"})]})]})]},w)}),u.length===0&&f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"还没有任何项目。先去创建一个项目。"})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"SKILL.md 预览"}),f.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:d.body||"(empty)"})]}),d.references.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"References"}),f.jsx("ul",{className:"text-sm space-y-1 font-[family-name:var(--font-mono)]",children:d.references.map(w=>f.jsxs("li",{className:"flex items-center gap-3",children:[f.jsx("span",{children:w.name}),f.jsxs("span",{className:"text-xs text-[var(--color-text-subtle)]",children:[w.lines," lines"]})]},w.name))})]})]})]})})}const w2=[{value:"all",label:"全部"},{value:"language",label:"language"},{value:"end",label:"end"},{value:"persona",label:"persona"},{value:"workflow",label:"workflow"},{value:"other",label:"other"}],D2={language:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg-cream)"};function U2(){var D;const[n,u]=N.useState("all"),[r,c]=N.useState(""),[d,m]=N.useState(null),v=Qn(),{data:g,isLoading:p}=ct({queryKey:["skills"],queryFn:()=>T2()}),y=ct({queryKey:["projects"],queryFn:Ms}),C=N.useMemo(()=>((g==null?void 0:g.data)??[]).filter(w=>!(n!=="all"&&w.category!==n||r&&!w.name.toLowerCase().includes(r.toLowerCase()))),[g,n,r]),E=N.useMemo(()=>{const M=(g==null?void 0:g.data)??[],w={all:M.length};for(const q of M)w[q.category]=(w[q.category]??0)+1;return w},[g]);return f.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[f.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"Skills 🎯"}),f.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`})]}),f.jsx("div",{className:"flex gap-3 items-center",children:f.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{await O2(),v.invalidateQueries({queryKey:["skills"]})},type:"button",children:[f.jsx(gv,{size:14,strokeWidth:2.5}),"Sync bundled"]})})]}),f.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f.jsxs("div",{className:"relative flex-1 max-w-md",children:[f.jsx(Xo,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),f.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索 skill…",value:r,onChange:M=>c(M.target.value),"aria-label":"搜索 skill"})]}),f.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:w2.map(M=>f.jsxs("button",{type:"button",onClick:()=>u(M.value),className:["px-3 py-1 rounded-full text-xs font-bold font-[family-name:var(--font-body)]",n===M.value?"bg-[var(--color-text)] text-[var(--color-bg)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text)]"].join(" "),children:[M.label," ",E[M.value]]},M.value))})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:C.map(M=>{var w;return f.jsx(q2,{skill:M,projectCount:((w=y.data)==null?void 0:w.data.length)??0,onOpen:()=>m(M.name)},M.name)})}),d&&f.jsx(M2,{name:d,projects:((D=y.data)==null?void 0:D.data.map(M=>M.name))??[],onClose:()=>m(null),onChange:()=>v.invalidateQueries({queryKey:["skills"]})})]})}function q2({skill:n,projectCount:u,onOpen:r}){const c=D2[n.category];return f.jsxs("article",{onClick:r,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),r())},tabIndex:0,role:"button","aria-label":`Open ${n.name}`,className:"nb-card nb-card-interactive flex flex-col gap-3",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:n.name}),f.jsx("span",{className:"nb-badge text-[10px]",style:{background:c},children:n.category})]}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] leading-5 line-clamp-3",children:n.description||"(no description)"}),f.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:[f.jsx("span",{className:"font-bold",children:n.linkedProjects.length>0?`● linked in ${n.linkedProjects.length}`:"○ not linked"}),f.jsxs("span",{className:"text-[var(--color-text-subtle)]",children:[u," projects"]})]})]})}function H2(){const n=ct({queryKey:["system-info"],queryFn:Sv}),u=ct({queryKey:["system-env"],queryFn:w1}),r=ct({queryKey:["doctor"],queryFn:D1});return f.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[f.jsx("header",{children:f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"系统 ⚙️"})}),f.jsxs("section",{className:"nb-card",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"版本与运行时"}),n.data?f.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-2 text-sm",children:[f.jsx("dt",{className:"font-bold",children:"sps-cli"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.version}),f.jsx("dt",{className:"font-bold",children:"Node"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.nodeVersion}),f.jsx("dt",{className:"font-bold",children:"Platform"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.platform}),f.jsx("dt",{className:"font-bold",children:"PID"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.pid??"—"}),f.jsx("dt",{className:"font-bold",children:"Uptime"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:L2(n.data.uptimeMs)})]}):f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})]}),f.jsxs("section",{className:"nb-card",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:["全局配置 ",f.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"})]}),f.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:"敏感值脱敏"})]}),u.data&&u.data.exists?f.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=>f.jsxs("div",{className:"contents",children:[f.jsxs("dt",{className:"font-bold flex items-center gap-2",children:[c.masked&&f.jsx("span",{className:"text-[var(--color-stuck)]",children:"🔒"}),c.key]}),f.jsx("dd",{className:"text-[var(--color-text-muted)] truncate",children:c.value})]},c.key))}):f.jsxs("p",{className:"text-[var(--color-text-muted)] text-sm",children:["env 文件不存在。运行 ",f.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"})," 配置。"]})]}),f.jsxs("section",{className:"nb-card",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:"项目健康检查"}),f.jsxs("button",{className:"nb-btn nb-btn-mint",style:{padding:"6px 12px",fontSize:12},onClick:()=>r.refetch(),type:"button",children:[f.jsx(gv,{size:12,strokeWidth:2.5}),"重跑"]})]}),r.data&&r.data.data.length>0?f.jsx("ul",{className:"flex flex-col gap-2",children:r.data.data.map(c=>f.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?f.jsx(Lx,{size:16,className:"text-[var(--color-running)]",strokeWidth:2.5}):f.jsx(qx,{size:16,className:"text-[var(--color-stuck)]",strokeWidth:2.5}),f.jsx("span",{className:"font-bold font-[family-name:var(--font-mono)]",children:c.project}),c.issues.length>0?f.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:c.issues.join("; ")}):f.jsx("span",{className:"text-xs text-[var(--color-running)] font-semibold",children:"OK"})]},c.project))}):f.jsx("p",{className:"text-[var(--color-text-muted)] text-sm",children:"还没有项目。"})]})]})}function L2(n){const u=Math.floor(n/1e3),r=Math.floor(u/3600),c=Math.floor(u%3600/60),d=u%60;return r>0?`${r}h ${c}m ${d}s`:c>0?`${c}m ${d}s`:`${d}s`}function B2(){return Ft("/api/chat/sessions")}function Q2(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 k2(n){const u=await fetch(`/api/chat/sessions/${n}`,{method:"DELETE"});if(!u.ok)throw new Error(`${u.status}`)}async function Y2(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 q,Y,O,Z,G,X;const{sessionId:n}=Ab(),u=As(),r=Qn(),c=ct({queryKey:["chat-sessions"],queryFn:B2}),d=ct({queryKey:["chat-session",n],queryFn:()=>Q2(n??""),enabled:!!n}),[m,v]=N.useState(null),[g,p]=N.useState(""),[y,C]=N.useState(!1),E=N.useRef(null);N.useEffect(()=>{if(!n)return;const Q=new EventSource(`/stream/chat/${encodeURIComponent(n)}`);return Q.addEventListener("chat.message",F=>{try{const V=JSON.parse(F.data);r.setQueryData(["chat-session",n],K=>{if(!K||K.messages.some(je=>je.id===V.message.id))return K;const xe=K.messages.findIndex(je=>je.role==="user"&&je.id.startsWith("optim-")&&je.content===V.message.content);if(xe>=0){const je=[...K.messages];return je[xe]=V.message,{...K,messages:je}}return{...K,messages:[...K.messages,V.message]}})}catch{}}),Q.addEventListener("chat.message.pending",F=>{try{const V=JSON.parse(F.data);v({id:V.assistantId,content:""})}catch{}}),Q.addEventListener("chat.message.chunk",F=>{try{const V=JSON.parse(F.data);v(K=>K&&K.id===V.assistantId?{id:K.id,content:V.accumulated}:K)}catch{}}),Q.addEventListener("chat.message.complete",F=>{try{const V=JSON.parse(F.data);v(K=>K&&K.id===V.assistantId?null:K),r.setQueryData(["chat-session",n],K=>!K||K.messages.some(xe=>xe.id===V.message.id)?K:{...K,messages:[...K.messages,V.message],lastMessageAt:V.message.ts,messageCount:K.messageCount+1}),r.invalidateQueries({queryKey:["chat-sessions"]}),C(!1)}catch{}}),()=>Q.close()},[n,r]),N.useEffect(()=>{const Q=E.current;Q&&(Q.scrollTop=Q.scrollHeight)},[d.data,m]);const D=N.useCallback(async()=>{const Q=await Cy();r.invalidateQueries({queryKey:["chat-sessions"]}),u(`/chat/${Q.id}`)},[r,u]),M=N.useCallback(async()=>{const Q=g.trim();if(!Q||y)return;let F=n;if(!F){const K=await Cy();r.invalidateQueries({queryKey:["chat-sessions"]}),F=K.id,u(`/chat/${F}`,{replace:!0})}const V={id:`optim-${Date.now()}`,role:"user",content:Q,ts:new Date().toISOString(),status:"complete"};r.setQueryData(["chat-session",F],K=>K?{...K,messages:[...K.messages,V],lastMessageAt:V.ts,messageCount:K.messageCount+1}:{id:F,createdAt:V.ts,lastMessageAt:V.ts,title:Q.slice(0,60),project:null,messageCount:1,messages:[V]}),p(""),C(!0);try{await Y2(F,Q)}catch(K){C(!1),console.error("sendMessage failed",K),window.alert(`发送失败: ${K instanceof Error?K.message:String(K)}`)}},[g,y,n,r,u]),w=N.useCallback(async Q=>{window.confirm("删除这个对话?")&&(await k2(Q),r.invalidateQueries({queryKey:["chat-sessions"]}),n===Q&&u("/chat"))},[r,n,u]);return f.jsxs("div",{className:"grid grid-cols-[260px_1fr] gap-4 h-[calc(100vh-140px)]",children:[f.jsxs("aside",{className:"nb-card p-3 overflow-auto flex flex-col gap-2",children:[f.jsxs("button",{className:"nb-btn nb-btn-primary w-full justify-center",onClick:D,type:"button",children:[f.jsx(Os,{size:14,strokeWidth:3}),"新建对话"]}),f.jsxs("div",{className:"mt-2 text-xs font-[family-name:var(--font-heading)] uppercase tracking-wider text-[var(--color-text-muted)] px-2",children:["历史 ",((q=c.data)==null?void 0:q.data.length)??0]}),f.jsxs("div",{className:"flex flex-col gap-1.5 mt-1",children:[(((Y=c.data)==null?void 0:Y.data)??[]).map(Q=>f.jsxs("div",{className:["group flex items-start gap-2 p-2 rounded-lg border-2 border-transparent cursor-pointer",n===Q.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/${Q.id}`),onKeyDown:F=>{F.key==="Enter"&&u(`/chat/${Q.id}`)},tabIndex:0,role:"button",children:[f.jsx(Ty,{size:14,strokeWidth:2.5,className:"mt-0.5 flex-shrink-0"}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-sm font-semibold truncate",children:Q.title}),f.jsxs("p",{className:"text-[10px] text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] truncate",children:[Q.messageCount," msg · ",Tv(Q.lastMessageAt??Q.createdAt)]})]}),f.jsx("button",{type:"button","aria-label":"删除对话",className:"opacity-0 group-hover:opacity-100 p-1 hover:text-[var(--color-crashed)]",onClick:F=>{F.stopPropagation(),w(Q.id)},children:f.jsx(T1,{size:12})})]},Q.id)),(((O=c.data)==null?void 0:O.data)??[]).length===0&&f.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic text-center py-4",children:"还没对话。点上面新建。"})]})]}),f.jsx("div",{className:"nb-card p-0 flex flex-col overflow-hidden",children:n?f.jsxs(f.Fragment,{children:[f.jsxs("header",{className:"px-4 py-3 border-b-2 border-[var(--color-text)] bg-[var(--color-bg-cream)]",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:((Z=d.data)==null?void 0:Z.title)??"新对话"}),f.jsx("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:n})]}),f.jsxs("div",{ref:E,className:"flex-1 overflow-auto p-4 flex flex-col gap-4",children:[(((G=d.data)==null?void 0:G.messages)??[]).map(Q=>f.jsx(zy,{msg:Q},Q.id)),m&&f.jsx(zy,{msg:{id:m.id,role:"assistant",content:m.content,ts:new Date().toISOString(),status:"streaming"},streaming:!0}),!d.isLoading&&(((X=d.data)==null?void 0:X.messages)??[]).length===0&&!m&&!y&&f.jsx("p",{className:"text-center text-[var(--color-text-subtle)] italic mt-12",children:"下方输入问题开始对话 · Enter 发送 · Shift+Enter 换行"})]}),f.jsx("div",{className:"border-t-2 border-[var(--color-text)] p-3 bg-[var(--color-bg-cream)]",children:f.jsxs("div",{className:"flex gap-2 items-end",children:[f.jsx("textarea",{className:"nb-input flex-1 resize-none",placeholder:"说点什么… (Enter 发送,Shift+Enter 换行)",rows:2,value:g,onChange:Q=>p(Q.target.value),onKeyDown:Q=>{Q.key==="Enter"&&!Q.shiftKey&&!Q.nativeEvent.isComposing&&(Q.preventDefault(),M())},"aria-label":"消息输入"}),f.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:M,disabled:!g.trim()||y,type:"button","aria-label":"发送",children:[y?f.jsx(pv,{size:14,strokeWidth:3,className:"animate-spin"}):f.jsx(y1,{size:14,strokeWidth:3}),"发送"]})]})})]}):f.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:f.jsxs("div",{className:"text-center max-w-md",children:[f.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:f.jsx(Ty,{size:32,strokeWidth:2.5})}),f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"对话 💬"}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-4",children:'点左上角"新建对话"开始一个 session。或直接在下方输入,会自动建 session。'}),f.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic",children:"Enter 发送 · Shift+Enter 换行 · 内容流式返回"})]})})})]})}function zy({msg:n,streaming:u}){const r=n.role==="user",c=n.role==="error";return f.jsx("div",{className:r?"self-end max-w-3xl":"self-start max-w-3xl",children:f.jsxs("div",{className:["nb-card",r?"bg-[var(--color-secondary)]":c?"bg-[var(--color-crashed-bg)]":"bg-[var(--color-bg)]"].join(" "),children:[f.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-1 flex items-center gap-2",children:[r?"你":c?"错误":"assistant",f.jsx("span",{className:"font-normal",children:"·"}),f.jsx("span",{className:"font-normal",children:Tv(n.ts)}),u&&f.jsxs("span",{className:"flex items-center gap-1 font-normal text-[var(--color-running)]",children:[f.jsx(pv,{size:10,strokeWidth:3,className:"animate-spin"}),"streaming"]})]}),f.jsxs("pre",{className:"text-sm font-[family-name:var(--font-body)] whitespace-pre-wrap break-words",children:[n.content||(u?"…":""),u&&f.jsx("span",{className:"inline-block w-2 h-4 ml-1 bg-[var(--color-text)] animate-pulse align-middle"})]})]})})}function Tv(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 G2(){return f.jsxs("div",{className:"nb-card max-w-2xl mt-12",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold mb-2",children:"404 · 页面不存在"}),f.jsx("p",{className:"text-[var(--color-text-muted)] mb-6",children:"没找到这个页面。可能是链接过期了。"}),f.jsx(Xn,{to:"/",className:"nb-btn nb-btn-mint inline-flex",children:"返回首页"})]})}function X2(){return f.jsx(H1,{children:f.jsx(Zb,{children:f.jsxs(Kt,{element:f.jsx(q1,{}),children:[f.jsx(Kt,{index:!0,element:f.jsx(Gb,{to:"/board",replace:!0})}),f.jsx(Kt,{path:"/projects",element:f.jsx(L1,{})}),f.jsx(Kt,{path:"/board",element:f.jsx(c2,{})}),f.jsx(Kt,{path:"/workers",element:f.jsx(m2,{})}),f.jsx(Kt,{path:"/logs",element:f.jsx(E2,{})}),f.jsx(Kt,{path:"/skills",element:f.jsx(U2,{})}),f.jsx(Kt,{path:"/system",element:f.jsx(H2,{})}),f.jsx(Kt,{path:"/chat",element:f.jsx(Ry,{})}),f.jsx(Kt,{path:"/chat/:sessionId",element:f.jsx(Ry,{})}),f.jsx(Kt,{path:"*",element:f.jsx(G2,{})})]})})})}const K2=new M0({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),Cv=document.getElementById("root");if(!Cv)throw new Error("#root not found");s0.createRoot(Cv).render(f.jsx(N.StrictMode,{children:f.jsx(w0,{client:K2,children:f.jsx(px,{children:f.jsx(X2,{})})})}));
|