gossipcat 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -2
- package/dist-dashboard/assets/index-Bf6FBM2K.css +1 -0
- package/dist-dashboard/assets/index-BsDB836W.js +65 -0
- package/dist-dashboard/index.html +2 -2
- package/dist-mcp/mcp-server.js +1475 -657
- package/package.json +1 -1
- package/dist-dashboard/assets/index-Dx4sBGgb.js +0 -65
- package/dist-dashboard/assets/index-rAO4S2u5.css +0 -1
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var O0=Object.defineProperty;var C0=(s,o,m)=>o in s?O0(s,o,{enumerable:!0,configurable:!0,writable:!0,value:m}):s[o]=m;var ke=(s,o,m)=>C0(s,typeof o!="symbol"?o+"":o,m);(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))r(p);new MutationObserver(p=>{for(const N of p)if(N.type==="childList")for(const v of N.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function m(p){const N={};return p.integrity&&(N.integrity=p.integrity),p.referrerPolicy&&(N.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?N.credentials="include":p.crossOrigin==="anonymous"?N.credentials="omit":N.credentials="same-origin",N}function r(p){if(p.ep)return;p.ep=!0;const N=m(p);fetch(p.href,N)}})();var hs={exports:{}},_n={};/**
|
|
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 Rd;function U0(){if(Rd)return _n;Rd=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function m(r,p,N){var v=null;if(N!==void 0&&(v=""+N),p.key!==void 0&&(v=""+p.key),"key"in p){N={};for(var _ in p)_!=="key"&&(N[_]=p[_])}else N=p;return p=N.ref,{$$typeof:s,type:r,key:v,ref:p!==void 0?p:null,props:N}}return _n.Fragment=o,_n.jsx=m,_n.jsxs=m,_n}var qd;function R0(){return qd||(qd=1,hs.exports=U0()),hs.exports}var i=R0(),gs={exports:{}},oe={};/**
|
|
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 Hd;function q0(){if(Hd)return oe;Hd=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),v=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),L=Symbol.iterator;function ne(g){return g===null||typeof g!="object"?null:(g=L&&g[L]||g["@@iterator"],typeof g=="function"?g:null)}var fe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},he=Object.assign,Q={};function K(g,E,G){this.props=g,this.context=E,this.refs=Q,this.updater=G||fe}K.prototype.isReactComponent={},K.prototype.setState=function(g,E){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,E,"setState")},K.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function re(){}re.prototype=K.prototype;function X(g,E,G){this.props=g,this.context=E,this.refs=Q,this.updater=G||fe}var ue=X.prototype=new re;ue.constructor=X,he(ue,K.prototype),ue.isPureReactComponent=!0;var A=Array.isArray;function le(){}var B={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Y(g,E,G){var V=G.ref;return{$$typeof:s,type:g,key:E,ref:V!==void 0?V:null,props:G}}function ee(g,E){return Y(g.type,E,g.props)}function ie(g){return typeof g=="object"&&g!==null&&g.$$typeof===s}function w(g){var E={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(G){return E[G]})}var R=/\/+/g;function F(g,E){return typeof g=="object"&&g!==null&&g.key!=null?w(""+g.key):E.toString(36)}function I(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(le,le):(g.status="pending",g.then(function(E){g.status==="pending"&&(g.status="fulfilled",g.value=E)},function(E){g.status==="pending"&&(g.status="rejected",g.reason=E)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function M(g,E,G,V,se){var ge=typeof g;(ge==="undefined"||ge==="boolean")&&(g=null);var $=!1;if(g===null)$=!0;else switch(ge){case"bigint":case"string":case"number":$=!0;break;case"object":switch(g.$$typeof){case s:case o:$=!0;break;case C:return $=g._init,M($(g._payload),E,G,V,se)}}if($)return se=se(g),$=V===""?"."+F(g,0):V,A(se)?(G="",$!=null&&(G=$.replace(R,"$&/")+"/"),M(se,E,G,"",function(Ca){return Ca})):se!=null&&(ie(se)&&(se=ee(se,G+(se.key==null||g&&g.key===se.key?"":(""+se.key).replace(R,"$&/")+"/")+$)),E.push(se)),1;$=0;var Qe=V===""?".":V+":";if(A(g))for(var He=0;He<g.length;He++)V=g[He],ge=Qe+F(V,He),$+=M(V,E,G,ge,se);else if(He=ne(g),typeof He=="function")for(g=He.call(g),He=0;!(V=g.next()).done;)V=V.value,ge=Qe+F(V,He++),$+=M(V,E,G,ge,se);else if(ge==="object"){if(typeof g.then=="function")return M(I(g),E,G,V,se);throw E=String(g),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return $}function O(g,E,G){if(g==null)return g;var V=[],se=0;return M(g,V,"","",function(ge){return E.call(G,ge,se++)}),V}function Z(g){if(g._status===-1){var E=g._result;E=E(),E.then(function(G){(g._status===0||g._status===-1)&&(g._status=1,g._result=G)},function(G){(g._status===0||g._status===-1)&&(g._status=2,g._result=G)}),g._status===-1&&(g._status=0,g._result=E)}if(g._status===1)return g._result.default;throw g._result}var ce=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(E))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},be={map:O,forEach:function(g,E,G){O(g,function(){E.apply(this,arguments)},G)},count:function(g){var E=0;return O(g,function(){E++}),E},toArray:function(g){return O(g,function(E){return E})||[]},only:function(g){if(!ie(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return oe.Activity=H,oe.Children=be,oe.Component=K,oe.Fragment=m,oe.Profiler=p,oe.PureComponent=X,oe.StrictMode=r,oe.Suspense=j,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,oe.__COMPILER_RUNTIME={__proto__:null,c:function(g){return B.H.useMemoCache(g)}},oe.cache=function(g){return function(){return g.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(g,E,G){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var V=he({},g.props),se=g.key;if(E!=null)for(ge in E.key!==void 0&&(se=""+E.key),E)!W.call(E,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&E.ref===void 0||(V[ge]=E[ge]);var ge=arguments.length-2;if(ge===1)V.children=G;else if(1<ge){for(var $=Array(ge),Qe=0;Qe<ge;Qe++)$[Qe]=arguments[Qe+2];V.children=$}return Y(g.type,se,V)},oe.createContext=function(g){return g={$$typeof:v,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:N,_context:g},g},oe.createElement=function(g,E,G){var V,se={},ge=null;if(E!=null)for(V in E.key!==void 0&&(ge=""+E.key),E)W.call(E,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(se[V]=E[V]);var $=arguments.length-2;if($===1)se.children=G;else if(1<$){for(var Qe=Array($),He=0;He<$;He++)Qe[He]=arguments[He+2];se.children=Qe}if(g&&g.defaultProps)for(V in $=g.defaultProps,$)se[V]===void 0&&(se[V]=$[V]);return Y(g,ge,se)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(g){return{$$typeof:_,render:g}},oe.isValidElement=ie,oe.lazy=function(g){return{$$typeof:C,_payload:{_status:-1,_result:g},_init:Z}},oe.memo=function(g,E){return{$$typeof:h,type:g,compare:E===void 0?null:E}},oe.startTransition=function(g){var E=B.T,G={};B.T=G;try{var V=g(),se=B.S;se!==null&&se(G,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(le,ce)}catch(ge){ce(ge)}finally{E!==null&&G.types!==null&&(E.types=G.types),B.T=E}},oe.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},oe.use=function(g){return B.H.use(g)},oe.useActionState=function(g,E,G){return B.H.useActionState(g,E,G)},oe.useCallback=function(g,E){return B.H.useCallback(g,E)},oe.useContext=function(g){return B.H.useContext(g)},oe.useDebugValue=function(){},oe.useDeferredValue=function(g,E){return B.H.useDeferredValue(g,E)},oe.useEffect=function(g,E){return B.H.useEffect(g,E)},oe.useEffectEvent=function(g){return B.H.useEffectEvent(g)},oe.useId=function(){return B.H.useId()},oe.useImperativeHandle=function(g,E,G){return B.H.useImperativeHandle(g,E,G)},oe.useInsertionEffect=function(g,E){return B.H.useInsertionEffect(g,E)},oe.useLayoutEffect=function(g,E){return B.H.useLayoutEffect(g,E)},oe.useMemo=function(g,E){return B.H.useMemo(g,E)},oe.useOptimistic=function(g,E){return B.H.useOptimistic(g,E)},oe.useReducer=function(g,E,G){return B.H.useReducer(g,E,G)},oe.useRef=function(g){return B.H.useRef(g)},oe.useState=function(g){return B.H.useState(g)},oe.useSyncExternalStore=function(g,E,G){return B.H.useSyncExternalStore(g,E,G)},oe.useTransition=function(){return B.H.useTransition()},oe.version="19.2.4",oe}var Bd;function zs(){return Bd||(Bd=1,gs.exports=q0()),gs.exports}var k=zs(),xs={exports:{}},En={},ps={exports:{}},bs={};/**
|
|
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 Yd;function H0(){return Yd||(Yd=1,(function(s){function o(M,O){var Z=M.length;M.push(O);e:for(;0<Z;){var ce=Z-1>>>1,be=M[ce];if(0<p(be,O))M[ce]=O,M[Z]=be,Z=ce;else break e}}function m(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var O=M[0],Z=M.pop();if(Z!==O){M[0]=Z;e:for(var ce=0,be=M.length,g=be>>>1;ce<g;){var E=2*(ce+1)-1,G=M[E],V=E+1,se=M[V];if(0>p(G,Z))V<be&&0>p(se,G)?(M[ce]=se,M[V]=Z,ce=V):(M[ce]=G,M[E]=Z,ce=E);else if(V<be&&0>p(se,Z))M[ce]=se,M[V]=Z,ce=V;else break e}}return O}function p(M,O){var Z=M.sortIndex-O.sortIndex;return Z!==0?Z:M.id-O.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var N=performance;s.unstable_now=function(){return N.now()}}else{var v=Date,_=v.now();s.unstable_now=function(){return v.now()-_}}var j=[],h=[],C=1,H=null,L=3,ne=!1,fe=!1,he=!1,Q=!1,K=typeof setTimeout=="function"?setTimeout:null,re=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ue(M){for(var O=m(h);O!==null;){if(O.callback===null)r(h);else if(O.startTime<=M)r(h),O.sortIndex=O.expirationTime,o(j,O);else break;O=m(h)}}function A(M){if(he=!1,ue(M),!fe)if(m(j)!==null)fe=!0,le||(le=!0,w());else{var O=m(h);O!==null&&I(A,O.startTime-M)}}var le=!1,B=-1,W=5,Y=-1;function ee(){return Q?!0:!(s.unstable_now()-Y<W)}function ie(){if(Q=!1,le){var M=s.unstable_now();Y=M;var O=!0;try{e:{fe=!1,he&&(he=!1,re(B),B=-1),ne=!0;var Z=L;try{t:{for(ue(M),H=m(j);H!==null&&!(H.expirationTime>M&&ee());){var ce=H.callback;if(typeof ce=="function"){H.callback=null,L=H.priorityLevel;var be=ce(H.expirationTime<=M);if(M=s.unstable_now(),typeof be=="function"){H.callback=be,ue(M),O=!0;break t}H===m(j)&&r(j),ue(M)}else r(j);H=m(j)}if(H!==null)O=!0;else{var g=m(h);g!==null&&I(A,g.startTime-M),O=!1}}break e}finally{H=null,L=Z,ne=!1}O=void 0}}finally{O?w():le=!1}}}var w;if(typeof X=="function")w=function(){X(ie)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,F=R.port2;R.port1.onmessage=ie,w=function(){F.postMessage(null)}}else w=function(){K(ie,0)};function I(M,O){B=K(function(){M(s.unstable_now())},O)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<M?Math.floor(1e3/M):5},s.unstable_getCurrentPriorityLevel=function(){return L},s.unstable_next=function(M){switch(L){case 1:case 2:case 3:var O=3;break;default:O=L}var Z=L;L=O;try{return M()}finally{L=Z}},s.unstable_requestPaint=function(){Q=!0},s.unstable_runWithPriority=function(M,O){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var Z=L;L=M;try{return O()}finally{L=Z}},s.unstable_scheduleCallback=function(M,O,Z){var ce=s.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ce+Z:ce):Z=ce,M){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Z+be,M={id:C++,callback:O,priorityLevel:M,startTime:Z,expirationTime:be,sortIndex:-1},Z>ce?(M.sortIndex=Z,o(h,M),m(j)===null&&M===m(h)&&(he?(re(B),B=-1):he=!0,I(A,Z-ce))):(M.sortIndex=be,o(j,M),fe||ne||(fe=!0,le||(le=!0,w()))),M},s.unstable_shouldYield=ee,s.unstable_wrapCallback=function(M){var O=L;return function(){var Z=L;L=O;try{return M.apply(this,arguments)}finally{L=Z}}}})(bs)),bs}var Gd;function B0(){return Gd||(Gd=1,ps.exports=H0()),ps.exports}var vs={exports:{}},Pe={};/**
|
|
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 Xd;function Y0(){if(Xd)return Pe;Xd=1;var s=zs();function o(j){var h="https://react.dev/errors/"+j;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)h+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+j+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(){}var r={d:{f:m,r:function(){throw Error(o(522))},D:m,C:m,L:m,m,X:m,S:m,M:m},p:0,findDOMNode:null},p=Symbol.for("react.portal");function N(j,h,C){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:H==null?null:""+H,children:j,containerInfo:h,implementation:C}}var v=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(j,h){if(j==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Pe.createPortal=function(j,h){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(o(299));return N(j,h,null,C)},Pe.flushSync=function(j){var h=v.T,C=r.p;try{if(v.T=null,r.p=2,j)return j()}finally{v.T=h,r.p=C,r.d.f()}},Pe.preconnect=function(j,h){typeof j=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(j,h))},Pe.prefetchDNS=function(j){typeof j=="string"&&r.d.D(j)},Pe.preinit=function(j,h){if(typeof j=="string"&&h&&typeof h.as=="string"){var C=h.as,H=_(C,h.crossOrigin),L=typeof h.integrity=="string"?h.integrity:void 0,ne=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;C==="style"?r.d.S(j,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:H,integrity:L,fetchPriority:ne}):C==="script"&&r.d.X(j,{crossOrigin:H,integrity:L,fetchPriority:ne,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Pe.preinitModule=function(j,h){if(typeof j=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var C=_(h.as,h.crossOrigin);r.d.M(j,{crossOrigin:C,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(j)},Pe.preload=function(j,h){if(typeof j=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var C=h.as,H=_(C,h.crossOrigin);r.d.L(j,C,{crossOrigin:H,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Pe.preloadModule=function(j,h){if(typeof j=="string")if(h){var C=_(h.as,h.crossOrigin);r.d.m(j,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:C,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(j)},Pe.requestFormReset=function(j){r.d.r(j)},Pe.unstable_batchedUpdates=function(j,h){return j(h)},Pe.useFormState=function(j,h,C){return v.H.useFormState(j,h,C)},Pe.useFormStatus=function(){return v.H.useHostTransitionStatus()},Pe.version="19.2.4",Pe}var wd;function G0(){if(wd)return vs.exports;wd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),vs.exports=Y0(),vs.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 Ld;function X0(){if(Ld)return En;Ld=1;var s=B0(),o=zs(),m=G0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function N(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function 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 _(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 j(e){if(N(e)!==e)throw Error(r(188))}function h(e){var t=e.alternate;if(!t){if(t=N(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return j(n),e;if(u===a)return j(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,f=n.child;f;){if(f===l){c=!0,l=n,a=u;break}if(f===a){c=!0,a=n,l=u;break}f=f.sibling}if(!c){for(f=u.child;f;){if(f===l){c=!0,l=u,a=n;break}if(f===a){c=!0,a=u,l=n;break}f=f.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var H=Object.assign,L=Symbol.for("react.element"),ne=Symbol.for("react.transitional.element"),fe=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function w(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var R=Symbol.for("react.client.reference");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===R?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case K:return"Profiler";case Q:return"StrictMode";case A:return"Suspense";case le:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case fe:return"Portal";case X:return e.displayName||"Context";case re:return(e._context.displayName||"Context")+".Consumer";case ue:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}var I=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ce=[],be=-1;function g(e){return{current:e}}function E(e){0>be||(e.current=ce[be],ce[be]=null,be--)}function G(e,t){be++,ce[be]=e.current,e.current=t}var V=g(null),se=g(null),ge=g(null),$=g(null);function Qe(e,t){switch(G(ge,t),G(se,e),G(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ad(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ad(t),e=nd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}E(V),G(V,e)}function He(){E(V),E(se),E(ge)}function Ca(e){e.memoizedState!==null&&G($,e);var t=V.current,l=nd(t,e.type);t!==l&&(G(se,e),G(V,l))}function An(e){se.current===e&&(E(V),E(se)),$.current===e&&(E($),Nn._currentValue=Z)}var Wu,Os;function zl(e){if(Wu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Wu=t&&t[1]||"",Os=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Wu+e+Os}var Fu=!1;function Iu(e,t){if(!e||Fu)return"";Fu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(z){var T=z}Reflect.construct(e,[],q)}else{try{q.call()}catch(z){T=z}e.call(q.prototype)}}else{try{throw Error()}catch(z){T=z}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(z){if(z&&T&&typeof z.stack=="string")return[z.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],f=u[1];if(c&&f){var d=c.split(`
|
|
44
|
-
`),S=f.split(`
|
|
45
|
-
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===S.length)for(a=d.length-1,n=S.length-1;1<=a&&0<=n&&d[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==S[n]){var D=`
|
|
46
|
-
`+d[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=n);break}}}finally{Fu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?zl(l):""}function sm(e,t){switch(e.tag){case 26:case 27:case 5:return zl(e.type);case 16:return zl("Lazy");case 13:return e.child!==t&&t!==null?zl("Suspense Fallback"):zl("Suspense");case 19:return zl("SuspenseList");case 0:case 15:return Iu(e.type,!1);case 11:return Iu(e.type.render,!1);case 1:return Iu(e.type,!0);case 31:return zl("Activity");default:return""}}function Cs(e){try{var t="",l=null;do t+=sm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Pu=Object.prototype.hasOwnProperty,ei=s.unstable_scheduleCallback,ti=s.unstable_cancelCallback,om=s.unstable_shouldYield,fm=s.unstable_requestPaint,ft=s.unstable_now,rm=s.unstable_getCurrentPriorityLevel,Us=s.unstable_ImmediatePriority,Rs=s.unstable_UserBlockingPriority,Dn=s.unstable_NormalPriority,dm=s.unstable_LowPriority,qs=s.unstable_IdlePriority,mm=s.log,hm=s.unstable_setDisableYieldValue,Ua=null,rt=null;function al(e){if(typeof mm=="function"&&hm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ua,e)}catch{}}var dt=Math.clz32?Math.clz32:pm,gm=Math.log,xm=Math.LN2;function pm(e){return e>>>=0,e===0?32:31-(gm(e)/xm|0)|0}var On=256,Cn=262144,Un=4194304;function Al(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 Rn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Al(a):(c&=f,c!==0?n=Al(c):l||(l=f&~e,l!==0&&(n=Al(l))))):(f=a&~u,f!==0?n=Al(f):c!==0?n=Al(c):l||(l=a&~e,l!==0&&(n=Al(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ra(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bm(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 Hs(){var e=Un;return Un<<=1,(Un&62914560)===0&&(Un=4194304),e}function li(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vm(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,d=e.expirationTimes,S=e.hiddenUpdates;for(l=c&~l;0<l;){var D=31-dt(l),q=1<<D;f[D]=0,d[D]=-1;var T=S[D];if(T!==null)for(S[D]=null,D=0;D<T.length;D++){var z=T[D];z!==null&&(z.lane&=-536870913)}l&=~q}a!==0&&Bs(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function Bs(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ys(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Gs(e,t){var l=t&-t;return l=(l&42)!==0?1:ai(l),(l&(e.suspendedLanes|t))!==0?0:l}function ai(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 ni(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xs(){var e=O.p;return e!==0?e:(e=window.event,e===void 0?32:Ed(e.type))}function ws(e,t){var l=O.p;try{return O.p=e,t()}finally{O.p=l}}var nl=Math.random().toString(36).slice(2),Je="__reactFiber$"+nl,at="__reactProps$"+nl,Jl="__reactContainer$"+nl,ui="__reactEvents$"+nl,ym="__reactListeners$"+nl,Sm="__reactHandles$"+nl,Ls="__reactResources$"+nl,Ha="__reactMarker$"+nl;function ii(e){delete e[Je],delete e[at],delete e[ui],delete e[ym],delete e[Sm]}function $l(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Jl]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=rd(e);e!==null;){if(l=e[Je])return l;e=rd(e)}return t}e=l,l=e.parentNode}return null}function Wl(e){if(e=e[Je]||e[Jl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ba(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Fl(e){var t=e[Ls];return t||(t=e[Ls]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[Ha]=!0}var Qs=new Set,Zs={};function Dl(e,t){Il(e,t),Il(e+"Capture",t)}function Il(e,t){for(Zs[e]=t,e=0;e<t.length;e++)Qs.add(t[e])}var Nm=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]*$"),Vs={},Ks={};function jm(e){return Pu.call(Ks,e)?!0:Pu.call(Vs,e)?!1:Nm.test(e)?Ks[e]=!0:(Vs[e]=!0,!1)}function qn(e,t,l){if(jm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Hn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Gt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ks(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ci(e){if(!e._valueTracker){var t=ks(e)?"checked":"value";e._valueTracker=Tm(e,t,""+e[t])}}function Js(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=ks(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Bn(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 Mm=/[\n"\\]/g;function St(e){return e.replace(Mm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function si(e,t,l,a,n,u,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?oi(e,c,yt(t)):l!=null?oi(e,c,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+yt(f):e.removeAttribute("name")}function $s(e,t,l,a,n,u,c,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ci(e);return}l=l!=null?""+yt(l):"",t=t!=null?""+yt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),ci(e)}function oi(e,t,l){t==="number"&&Bn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Pl(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+yt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Ws(e,t,l){if(t!=null&&(t=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(l):""}function Fs(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(I(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=yt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),ci(e)}function ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var _m=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 Is(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||_m.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ps(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Is(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Is(e,u,t[u])}function fi(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 Em=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"]]),zm=/^[\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 Yn(e){return zm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xt(){}var ri=null;function di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,la=null;function eo(e){var t=Wl(e);if(t&&(e=t.stateNode)){var l=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(si(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+St(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[at]||null;if(!n)throw Error(r(90));si(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Js(a)}break e;case"textarea":Ws(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Pl(e,!!l.multiple,t,!1)}}}var mi=!1;function to(e,t,l){if(mi)return e(t,l);mi=!0;try{var a=e(t);return a}finally{if(mi=!1,(ta!==null||la!==null)&&(Mu(),ta&&(t=ta,e=la,la=ta=null,eo(t),e)))for(t=0;t<e.length;t++)eo(e[t])}}function Ya(e,t){var l=e.stateNode;if(l===null)return null;var a=l[at]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hi=!1;if(wt)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){hi=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{hi=!1}var ul=null,gi=null,Gn=null;function lo(){if(Gn)return Gn;var e,t=gi,l=t.length,a,n="value"in ul?ul.value:ul.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return Gn=n.slice(e,1<a?1-a:void 0)}function Xn(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 wn(){return!0}function ao(){return!1}function nt(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?wn:ao,this.isPropagationStopped=ao,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=wn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wn)},persist:function(){},isPersistent:wn}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=nt(Ol),Xa=H({},Ol,{view:0,detail:0}),Am=nt(Xa),xi,pi,wa,Qn=H({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vi,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!==wa&&(wa&&e.type==="mousemove"?(xi=e.screenX-wa.screenX,pi=e.screenY-wa.screenY):pi=xi=0,wa=e),xi)},movementY:function(e){return"movementY"in e?e.movementY:pi}}),no=nt(Qn),Dm=H({},Qn,{dataTransfer:0}),Om=nt(Dm),Cm=H({},Xa,{relatedTarget:0}),bi=nt(Cm),Um=H({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Rm=nt(Um),qm=H({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hm=nt(qm),Bm=H({},Ol,{data:0}),uo=nt(Bm),Ym={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gm={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"},Xm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xm[e])?!!t[e]:!1}function vi(){return wm}var Lm=H({},Xa,{key:function(e){if(e.key){var t=Ym[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vi,charCode:function(e){return e.type==="keypress"?Xn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qm=nt(Lm),Zm=H({},Qn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),io=nt(Zm),Vm=H({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vi}),Km=nt(Vm),km=H({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=nt(km),$m=H({},Qn,{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}),Wm=nt($m),Fm=H({},Ol,{newState:0,oldState:0}),Im=nt(Fm),Pm=[9,13,27,32],yi=wt&&"CompositionEvent"in window,La=null;wt&&"documentMode"in document&&(La=document.documentMode);var eh=wt&&"TextEvent"in window&&!La,co=wt&&(!yi||La&&8<La&&11>=La),so=" ",oo=!1;function fo(e,t){switch(e){case"keyup":return Pm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ro(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function th(e,t){switch(e){case"compositionend":return ro(t);case"keypress":return t.which!==32?null:(oo=!0,so);case"textInput":return e=t.data,e===so&&oo?null:e;default:return null}}function lh(e,t){if(aa)return e==="compositionend"||!yi&&fo(e,t)?(e=lo(),Gn=gi=ul=null,aa=!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 co&&t.locale!=="ko"?null:t.data;default:return null}}var ah={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 mo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ah[e.type]:t==="textarea"}function ho(e,t,l,a){ta?la?la.push(a):la=[a]:ta=a,t=Cu(t,"onChange"),0<t.length&&(l=new Ln("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Qa=null,Za=null;function nh(e){Fr(e,0)}function Zn(e){var t=Ba(e);if(Js(t))return e}function go(e,t){if(e==="change")return t}var xo=!1;if(wt){var Si;if(wt){var Ni="oninput"in document;if(!Ni){var po=document.createElement("div");po.setAttribute("oninput","return;"),Ni=typeof po.oninput=="function"}Si=Ni}else Si=!1;xo=Si&&(!document.documentMode||9<document.documentMode)}function bo(){Qa&&(Qa.detachEvent("onpropertychange",vo),Za=Qa=null)}function vo(e){if(e.propertyName==="value"&&Zn(Za)){var t=[];ho(t,Za,e,di(e)),to(nh,t)}}function uh(e,t,l){e==="focusin"?(bo(),Qa=t,Za=l,Qa.attachEvent("onpropertychange",vo)):e==="focusout"&&bo()}function ih(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zn(Za)}function ch(e,t){if(e==="click")return Zn(t)}function sh(e,t){if(e==="input"||e==="change")return Zn(t)}function oh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:oh;function Va(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Pu.call(t,n)||!mt(e[n],t[n]))return!1}return!0}function yo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function So(e,t){var l=yo(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yo(l)}}function No(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?No(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Bn(e.document)}return t}function ji(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 fh=wt&&"documentMode"in document&&11>=document.documentMode,na=null,Ti=null,Ka=null,Mi=!1;function To(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mi||na==null||na!==Bn(a)||(a=na,"selectionStart"in a&&ji(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ka&&Va(Ka,a)||(Ka=a,a=Cu(Ti,"onSelect"),0<a.length&&(t=new Ln("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=na)))}function Cl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ua={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},_i={},Mo={};wt&&(Mo=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Ul(e){if(_i[e])return _i[e];if(!ua[e])return e;var t=ua[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Mo)return _i[e]=t[l];return e}var _o=Ul("animationend"),Eo=Ul("animationiteration"),zo=Ul("animationstart"),rh=Ul("transitionrun"),dh=Ul("transitionstart"),mh=Ul("transitioncancel"),Ao=Ul("transitionend"),Do=new Map,Ei="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(" ");Ei.push("scrollEnd");function Ot(e,t){Do.set(e,t),Dl(t,[e])}var Vn=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)},Nt=[],ia=0,zi=0;function Kn(){for(var e=ia,t=zi=ia=0;t<e;){var l=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var n=Nt[t];Nt[t++]=null;var u=Nt[t];if(Nt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Oo(l,n,u)}}function kn(e,t,l,a){Nt[ia++]=e,Nt[ia++]=t,Nt[ia++]=l,Nt[ia++]=a,zi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ai(e,t,l,a){return kn(e,t,l,a),Jn(e)}function Rl(e,t){return kn(e,null,null,t),Jn(e)}function Oo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-dt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Jn(e){if(50<gn)throw gn=0,Yc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ca={};function hh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,l,a){return new hh(e,t,l,a)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lt(e,t){var l=e.alternate;return l===null?(l=ht(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Co(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $n(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Di(e)&&(c=1);else if(typeof e=="string")c=v0(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=ht(31,l,t,n),e.elementType=Y,e.lanes=u,e;case he:return ql(l.children,n,u,t);case Q:c=8,n|=24;break;case K:return e=ht(12,l,t,n|2),e.elementType=K,e.lanes=u,e;case A:return e=ht(13,l,t,n),e.elementType=A,e.lanes=u,e;case le:return e=ht(19,l,t,n),e.elementType=le,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:c=10;break e;case re:c=9;break e;case ue:c=11;break e;case B:c=14;break e;case W:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=ht(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function ql(e,t,l,a){return e=ht(7,e,a,t),e.lanes=l,e}function Oi(e,t,l){return e=ht(6,e,null,t),e.lanes=l,e}function Uo(e){var t=ht(18,null,null,0);return t.stateNode=e,t}function Ci(e,t,l){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ro=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=Ro.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Cs(t)},Ro.set(e,t),t)}return{value:e,source:t,stack:Cs(t)}}var sa=[],oa=0,Wn=null,ka=0,Tt=[],Mt=0,il=null,qt=1,Ht="";function Qt(e,t){sa[oa++]=ka,sa[oa++]=Wn,Wn=e,ka=t}function qo(e,t,l){Tt[Mt++]=qt,Tt[Mt++]=Ht,Tt[Mt++]=il,il=e;var a=qt;e=Ht;var n=32-dt(a)-1;a&=~(1<<n),l+=1;var u=32-dt(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,qt=1<<32-dt(t)+n|l<<n|a,Ht=u+e}else qt=1<<u|l<<n|a,Ht=e}function Ui(e){e.return!==null&&(Qt(e,1),qo(e,1,0))}function Ri(e){for(;e===Wn;)Wn=sa[--oa],sa[oa]=null,ka=sa[--oa],sa[oa]=null;for(;e===il;)il=Tt[--Mt],Tt[Mt]=null,Ht=Tt[--Mt],Tt[Mt]=null,qt=Tt[--Mt],Tt[Mt]=null}function Ho(e,t){Tt[Mt++]=qt,Tt[Mt++]=Ht,Tt[Mt++]=il,qt=t.id,Ht=t.overflow,il=e}var $e=null,Oe=null,Se=!1,cl=null,_t=!1,qi=Error(r(519));function sl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ja(jt(t,e)),qi}function Bo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[at]=a,l){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(l=0;l<pn.length;l++)pe(pn[l],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),$s(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),Fs(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||td(t.textContent,l)?(a.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),a.onScroll!=null&&pe("scroll",t),a.onScrollEnd!=null&&pe("scrollend",t),a.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||sl(e,!0)}function Yo(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:_t=!1;return;case 27:case 3:_t=!0;return;default:$e=$e.return}}function fa(e){if(e!==$e)return!1;if(!Se)return Yo(e),Se=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Pc(e.type,e.memoizedProps)),l=!l),l&&Oe&&sl(e),Yo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=fd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=fd(e)}else t===27?(t=Oe,Nl(e.type)?(e=ns,ns=null,Oe=e):Oe=t):Oe=$e?zt(e.stateNode.nextSibling):null;return!0}function Hl(){Oe=$e=null,Se=!1}function Hi(){var e=cl;return e!==null&&(st===null?st=e:st.push.apply(st,e),cl=null),e}function Ja(e){cl===null?cl=[e]:cl.push(e)}var Bi=g(null),Bl=null,Zt=null;function ol(e,t,l){G(Bi,t._currentValue),t._currentValue=l}function Vt(e){e._currentValue=Bi.current,E(Bi)}function Yi(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Gi(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var f=u;u=n;for(var d=0;d<t.length;d++)if(f.context===t[d]){u.lanes|=l,f=u.alternate,f!==null&&(f.lanes|=l),Yi(u.return,l,e),a||(c=null);break e}u=f.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),Yi(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ra(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var f=n.type;mt(n.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(n===$.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Nn):e=[Nn])}n=n.return}e!==null&&Gi(t,e,l,a),t.flags|=262144}function Fn(e){for(e=e.firstContext;e!==null;){if(!mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Bl=e,Zt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return Go(Bl,e)}function In(e,t){return Bl===null&&Yl(e),Go(e,t)}function Go(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Zt===null){if(e===null)throw Error(r(308));Zt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zt=Zt.next=t;return l}var gh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},xh=s.unstable_scheduleCallback,ph=s.unstable_NormalPriority,Ge={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xi(){return{controller:new gh,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&xh(ph,function(){e.controller.abort()})}var Wa=null,wi=0,da=0,ma=null;function bh(e,t){if(Wa===null){var l=Wa=[];wi=0,da=Zc(),ma={status:"pending",value:void 0,then:function(a){l.push(a)}}}return wi++,t.then(Xo,Xo),t}function Xo(){if(--wi===0&&Wa!==null){ma!==null&&(ma.status="fulfilled");var e=Wa;Wa=null,da=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var wo=M.S;M.S=function(e,t){Mr=ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bh(e,t),wo!==null&&wo(e,t)};var Gl=g(null);function Li(){var e=Gl.current;return e!==null?e:De.pooledCache}function Pn(e,t){t===null?G(Gl,Gl.current):G(Gl,t.pool)}function Lo(){var e=Li();return e===null?null:{parent:Ge._currentValue,pool:e}}var ha=Error(r(460)),Qi=Error(r(474)),eu=Error(r(542)),tu={then:function(){}};function Qo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Xt,Xt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ko(e),e;default:if(typeof t.status=="string")t.then(Xt,Xt);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ko(e),e}throw wl=t,ha}}function Xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wl=l,ha):l}}var wl=null;function Vo(){if(wl===null)throw Error(r(459));var e=wl;return wl=null,e}function Ko(e){if(e===ha||e===eu)throw Error(r(483))}var ga=null,Fa=0;function lu(e){var t=Fa;return Fa+=1,ga===null&&(ga=[]),Zo(ga,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function au(e,t){throw t.$$typeof===L?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ko(e){function t(b,x){if(e){var y=b.deletions;y===null?(b.deletions=[x],b.flags|=16):y.push(x)}}function l(b,x){if(!e)return null;for(;x!==null;)t(b,x),x=x.sibling;return null}function a(b){for(var x=new Map;b!==null;)b.key!==null?x.set(b.key,b):x.set(b.index,b),b=b.sibling;return x}function n(b,x){return b=Lt(b,x),b.index=0,b.sibling=null,b}function u(b,x,y){return b.index=y,e?(y=b.alternate,y!==null?(y=y.index,y<x?(b.flags|=67108866,x):y):(b.flags|=67108866,x)):(b.flags|=1048576,x)}function c(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function f(b,x,y,U){return x===null||x.tag!==6?(x=Oi(y,b.mode,U),x.return=b,x):(x=n(x,y),x.return=b,x)}function d(b,x,y,U){var te=y.type;return te===he?D(b,x,y.props.children,U,y.key):x!==null&&(x.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===W&&Xl(te)===x.type)?(x=n(x,y.props),Ia(x,y),x.return=b,x):(x=$n(y.type,y.key,y.props,null,b.mode,U),Ia(x,y),x.return=b,x)}function S(b,x,y,U){return x===null||x.tag!==4||x.stateNode.containerInfo!==y.containerInfo||x.stateNode.implementation!==y.implementation?(x=Ci(y,b.mode,U),x.return=b,x):(x=n(x,y.children||[]),x.return=b,x)}function D(b,x,y,U,te){return x===null||x.tag!==7?(x=ql(y,b.mode,U,te),x.return=b,x):(x=n(x,y),x.return=b,x)}function q(b,x,y){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Oi(""+x,b.mode,y),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ne:return y=$n(x.type,x.key,x.props,null,b.mode,y),Ia(y,x),y.return=b,y;case fe:return x=Ci(x,b.mode,y),x.return=b,x;case W:return x=Xl(x),q(b,x,y)}if(I(x)||w(x))return x=ql(x,b.mode,y,null),x.return=b,x;if(typeof x.then=="function")return q(b,lu(x),y);if(x.$$typeof===X)return q(b,In(b,x),y);au(b,x)}return null}function T(b,x,y,U){var te=x!==null?x.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return te!==null?null:f(b,x,""+y,U);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ne:return y.key===te?d(b,x,y,U):null;case fe:return y.key===te?S(b,x,y,U):null;case W:return y=Xl(y),T(b,x,y,U)}if(I(y)||w(y))return te!==null?null:D(b,x,y,U,null);if(typeof y.then=="function")return T(b,x,lu(y),U);if(y.$$typeof===X)return T(b,x,In(b,y),U);au(b,y)}return null}function z(b,x,y,U,te){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return b=b.get(y)||null,f(x,b,""+U,te);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case ne:return b=b.get(U.key===null?y:U.key)||null,d(x,b,U,te);case fe:return b=b.get(U.key===null?y:U.key)||null,S(x,b,U,te);case W:return U=Xl(U),z(b,x,y,U,te)}if(I(U)||w(U))return b=b.get(y)||null,D(x,b,U,te,null);if(typeof U.then=="function")return z(b,x,y,lu(U),te);if(U.$$typeof===X)return z(b,x,y,In(x,U),te);au(x,U)}return null}function J(b,x,y,U){for(var te=null,Ne=null,P=x,me=x=0,ye=null;P!==null&&me<y.length;me++){P.index>me?(ye=P,P=null):ye=P.sibling;var je=T(b,P,y[me],U);if(je===null){P===null&&(P=ye);break}e&&P&&je.alternate===null&&t(b,P),x=u(je,x,me),Ne===null?te=je:Ne.sibling=je,Ne=je,P=ye}if(me===y.length)return l(b,P),Se&&Qt(b,me),te;if(P===null){for(;me<y.length;me++)P=q(b,y[me],U),P!==null&&(x=u(P,x,me),Ne===null?te=P:Ne.sibling=P,Ne=P);return Se&&Qt(b,me),te}for(P=a(P);me<y.length;me++)ye=z(P,b,me,y[me],U),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?me:ye.key),x=u(ye,x,me),Ne===null?te=ye:Ne.sibling=ye,Ne=ye);return e&&P.forEach(function(El){return t(b,El)}),Se&&Qt(b,me),te}function ae(b,x,y,U){if(y==null)throw Error(r(151));for(var te=null,Ne=null,P=x,me=x=0,ye=null,je=y.next();P!==null&&!je.done;me++,je=y.next()){P.index>me?(ye=P,P=null):ye=P.sibling;var El=T(b,P,je.value,U);if(El===null){P===null&&(P=ye);break}e&&P&&El.alternate===null&&t(b,P),x=u(El,x,me),Ne===null?te=El:Ne.sibling=El,Ne=El,P=ye}if(je.done)return l(b,P),Se&&Qt(b,me),te;if(P===null){for(;!je.done;me++,je=y.next())je=q(b,je.value,U),je!==null&&(x=u(je,x,me),Ne===null?te=je:Ne.sibling=je,Ne=je);return Se&&Qt(b,me),te}for(P=a(P);!je.done;me++,je=y.next())je=z(P,b,me,je.value,U),je!==null&&(e&&je.alternate!==null&&P.delete(je.key===null?me:je.key),x=u(je,x,me),Ne===null?te=je:Ne.sibling=je,Ne=je);return e&&P.forEach(function(D0){return t(b,D0)}),Se&&Qt(b,me),te}function Ae(b,x,y,U){if(typeof y=="object"&&y!==null&&y.type===he&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ne:e:{for(var te=y.key;x!==null;){if(x.key===te){if(te=y.type,te===he){if(x.tag===7){l(b,x.sibling),U=n(x,y.props.children),U.return=b,b=U;break e}}else if(x.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===W&&Xl(te)===x.type){l(b,x.sibling),U=n(x,y.props),Ia(U,y),U.return=b,b=U;break e}l(b,x);break}else t(b,x);x=x.sibling}y.type===he?(U=ql(y.props.children,b.mode,U,y.key),U.return=b,b=U):(U=$n(y.type,y.key,y.props,null,b.mode,U),Ia(U,y),U.return=b,b=U)}return c(b);case fe:e:{for(te=y.key;x!==null;){if(x.key===te)if(x.tag===4&&x.stateNode.containerInfo===y.containerInfo&&x.stateNode.implementation===y.implementation){l(b,x.sibling),U=n(x,y.children||[]),U.return=b,b=U;break e}else{l(b,x);break}else t(b,x);x=x.sibling}U=Ci(y,b.mode,U),U.return=b,b=U}return c(b);case W:return y=Xl(y),Ae(b,x,y,U)}if(I(y))return J(b,x,y,U);if(w(y)){if(te=w(y),typeof te!="function")throw Error(r(150));return y=te.call(y),ae(b,x,y,U)}if(typeof y.then=="function")return Ae(b,x,lu(y),U);if(y.$$typeof===X)return Ae(b,x,In(b,y),U);au(b,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,x!==null&&x.tag===6?(l(b,x.sibling),U=n(x,y),U.return=b,b=U):(l(b,x),U=Oi(y,b.mode,U),U.return=b,b=U),c(b)):l(b,x)}return function(b,x,y,U){try{Fa=0;var te=Ae(b,x,y,U);return ga=null,te}catch(P){if(P===ha||P===eu)throw P;var Ne=ht(29,P,null,b.mode);return Ne.lanes=U,Ne.return=b,Ne}finally{}}}var Ll=ko(!0),Jo=ko(!1),fl=!1;function Zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vi(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 rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function dl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Te&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Jn(e),Oo(e,null,l),t}return kn(e,a,t,l),Jn(e)}function Pa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ys(e,l)}}function Ki(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ki=!1;function en(){if(ki){var e=ma;if(e!==null)throw e}}function tn(e,t,l,a){ki=!1;var n=e.updateQueue;fl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var d=f,S=d.next;d.next=null,c===null?u=S:c.next=S,c=d;var D=e.alternate;D!==null&&(D=D.updateQueue,f=D.lastBaseUpdate,f!==c&&(f===null?D.firstBaseUpdate=S:f.next=S,D.lastBaseUpdate=d))}if(u!==null){var q=n.baseState;c=0,D=S=d=null,f=u;do{var T=f.lane&-536870913,z=T!==f.lane;if(z?(ve&T)===T:(a&T)===T){T!==0&&T===da&&(ki=!0),D!==null&&(D=D.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var J=e,ae=f;T=t;var Ae=l;switch(ae.tag){case 1:if(J=ae.payload,typeof J=="function"){q=J.call(Ae,q,T);break e}q=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ae.payload,T=typeof J=="function"?J.call(Ae,q,T):J,T==null)break e;q=H({},q,T);break e;case 2:fl=!0}}T=f.callback,T!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[T]:z.push(T))}else z={lane:T,tag:f.tag,payload:f.payload,callback:f.callback,next:null},D===null?(S=D=z,d=q):D=D.next=z,c|=T;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;z=f,f=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);D===null&&(d=q),n.baseState=d,n.firstBaseUpdate=S,n.lastBaseUpdate=D,u===null&&(n.shared.lanes=0),pl|=c,e.lanes=c,e.memoizedState=q}}function $o(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Wo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)$o(l[e],t)}var xa=g(null),nu=g(0);function Fo(e,t){e=el,G(nu,e),G(xa,t),el=e|t.baseLanes}function Ji(){G(nu,el),G(xa,xa.current)}function $i(){el=nu.current,E(xa),E(nu)}var gt=g(null),Et=null;function ml(e){var t=e.alternate;G(Be,Be.current&1),G(gt,e),Et===null&&(t===null||xa.current!==null||t.memoizedState!==null)&&(Et=e)}function Wi(e){G(Be,Be.current),G(gt,e),Et===null&&(Et=e)}function Io(e){e.tag===22?(G(Be,Be.current),G(gt,e),Et===null&&(Et=e)):hl()}function hl(){G(Be,Be.current),G(gt,gt.current)}function xt(e){E(gt),Et===e&&(Et=null),E(Be)}var Be=g(0);function uu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ls(l)||as(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kt=0,de=null,Ee=null,Xe=null,iu=!1,pa=!1,Ql=!1,cu=0,ln=0,ba=null,yh=0;function Re(){throw Error(r(321))}function Fi(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!mt(e[l],t[l]))return!1;return!0}function Ii(e,t,l,a,n,u){return Kt=u,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Hf:mc,Ql=!1,u=l(a,n),Ql=!1,pa&&(u=ef(t,l,a,n)),Po(e),u}function Po(e){M.H=un;var t=Ee!==null&&Ee.next!==null;if(Kt=0,Xe=Ee=de=null,iu=!1,ln=0,ba=null,t)throw Error(r(300));e===null||we||(e=e.dependencies,e!==null&&Fn(e)&&(we=!0))}function ef(e,t,l,a){de=e;var n=0;do{if(pa&&(ba=null),ln=0,pa=!1,25<=n)throw Error(r(301));if(n+=1,Xe=Ee=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=Bf,u=t(l,a)}while(pa);return u}function Sh(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?an(t):t,e=e.useState()[0],(Ee!==null?Ee.memoizedState:null)!==e&&(de.flags|=1024),t}function Pi(){var e=cu!==0;return cu=0,e}function ec(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function tc(e){if(iu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}iu=!1}Kt=0,Xe=Ee=de=null,pa=!1,ln=cu=0,ba=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?de.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ye(){if(Ee===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Xe===null?de.memoizedState:Xe.next;if(t!==null)Xe=t,Ee=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Xe===null?de.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function an(e){var t=ln;return ln+=1,ba===null&&(ba=[]),e=Zo(ba,e,t),t=de,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Hf:mc),e}function ou(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return an(e);if(e.$$typeof===X)return We(e)}throw Error(r(438,String(e)))}function lc(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=de.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=su(),de.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ee;return t.index++,l}function kt(e,t){return typeof t=="function"?t(e):t}function fu(e){var t=Ye();return ac(t,Ee,e)}function ac(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var f=c=null,d=null,S=t,D=!1;do{var q=S.lane&-536870913;if(q!==S.lane?(ve&q)===q:(Kt&q)===q){var T=S.revertLane;if(T===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),q===da&&(D=!0);else if((Kt&T)===T){S=S.next,T===da&&(D=!0);continue}else q={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},d===null?(f=d=q,c=u):d=d.next=q,de.lanes|=T,pl|=T;q=S.action,Ql&&l(u,q),u=S.hasEagerState?S.eagerState:l(u,q)}else T={lane:q,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},d===null?(f=d=T,c=u):d=d.next=T,de.lanes|=q,pl|=q;S=S.next}while(S!==null&&S!==t);if(d===null?c=u:d.next=f,!mt(u,e.memoizedState)&&(we=!0,D&&(l=ma,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function nc(e){var t=Ye(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);mt(u,t.memoizedState)||(we=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function tf(e,t,l){var a=de,n=Ye(),u=Se;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!mt((Ee||n).memoizedState,l);if(c&&(n.memoizedState=l,we=!0),n=n.queue,cc(nf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,va(9,{destroy:void 0},af.bind(null,a,n,l,t),null),De===null)throw Error(r(349));u||(Kt&127)!==0||lf(a,t,l)}return l}function lf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=su(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function af(e,t,l,a){t.value=l,t.getSnapshot=a,uf(t)&&cf(e)}function nf(e,t,l){return l(function(){uf(t)&&cf(e)})}function uf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!mt(e,l)}catch{return!0}}function cf(e){var t=Rl(e,2);t!==null&&ot(t,e,2)}function uc(e){var t=et();if(typeof e=="function"){var l=e;if(e=l(),Ql){al(!0);try{l()}finally{al(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:e},t}function sf(e,t,l,a){return e.baseState=l,ac(e,Ee,typeof a=="function"?a:kt)}function Nh(e,t,l,a,n){if(mu(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};M.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,of(t,u)):(u.next=l.next,t.pending=l.next=u)}}function of(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=M.T,c={};M.T=c;try{var f=l(n,a),d=M.S;d!==null&&d(c,f),ff(e,t,f)}catch(S){ic(e,t,S)}finally{u!==null&&c.types!==null&&(u.types=c.types),M.T=u}}else try{u=l(n,a),ff(e,t,u)}catch(S){ic(e,t,S)}}function ff(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){rf(e,t,a)},function(a){return ic(e,t,a)}):rf(e,t,l)}function rf(e,t,l){t.status="fulfilled",t.value=l,df(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,of(e,l)))}function ic(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,df(t),t=t.next;while(t!==a)}e.action=null}function df(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mf(e,t){return t}function hf(e,t){if(Se){var l=De.formState;if(l!==null){e:{var a=de;if(Se){if(Oe){t:{for(var n=Oe,u=_t;n.nodeType!==8;){if(!u){n=null;break t}if(n=zt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Oe=zt(n.nextSibling),a=n.data==="F!";break e}}sl(a)}a=!1}a&&(t=l[0])}}return l=et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mf,lastRenderedState:t},l.queue=a,l=Uf.bind(null,de,a),a.dispatch=l,a=uc(!1),u=dc.bind(null,de,!1,a.queue),a=et(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Nh.bind(null,de,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function gf(e){var t=Ye();return xf(t,Ee,e)}function xf(e,t,l){if(t=ac(e,t,mf)[0],e=fu(kt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=an(t)}catch(c){throw c===ha?eu:c}else a=t;t=Ye();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(de.flags|=2048,va(9,{destroy:void 0},jh.bind(null,n,l),null)),[a,u,e]}function jh(e,t){e.action=t}function pf(e){var t=Ye(),l=Ee;if(l!==null)return xf(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=su(),de.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function bf(){return Ye().memoizedState}function ru(e,t,l,a){var n=et();de.flags|=e,n.memoizedState=va(1|t,{destroy:void 0},l,a===void 0?null:a)}function du(e,t,l,a){var n=Ye();a=a===void 0?null:a;var u=n.memoizedState.inst;Ee!==null&&a!==null&&Fi(a,Ee.memoizedState.deps)?n.memoizedState=va(t,u,l,a):(de.flags|=e,n.memoizedState=va(1|t,u,l,a))}function vf(e,t){ru(8390656,8,e,t)}function cc(e,t){du(2048,8,e,t)}function Th(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=su(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function yf(e){var t=Ye().memoizedState;return Th({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Sf(e,t){return du(4,2,e,t)}function Nf(e,t){return du(4,4,e,t)}function jf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Tf(e,t,l){l=l!=null?l.concat([e]):null,du(4,4,jf.bind(null,t,e),l)}function sc(){}function Mf(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Fi(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function _f(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Fi(t,a[1]))return a[0];if(a=e(),Ql){al(!0);try{e()}finally{al(!1)}}return l.memoizedState=[a,t],a}function oc(e,t,l){return l===void 0||(Kt&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Er(),de.lanes|=e,pl|=e,l)}function Ef(e,t,l,a){return mt(l,t)?l:xa.current!==null?(e=oc(e,l,a),mt(e,t)||(we=!0),e):(Kt&42)===0||(Kt&1073741824)!==0&&(ve&261930)===0?(we=!0,e.memoizedState=l):(e=Er(),de.lanes|=e,pl|=e,t)}function zf(e,t,l,a,n){var u=O.p;O.p=u!==0&&8>u?u:8;var c=M.T,f={};M.T=f,dc(e,!1,t,l);try{var d=n(),S=M.S;if(S!==null&&S(f,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var D=vh(d,a);nn(e,t,D,vt(e))}else nn(e,t,a,vt(e))}catch(q){nn(e,t,{then:function(){},status:"rejected",reason:q},vt())}finally{O.p=u,c!==null&&f.types!==null&&(c.types=f.types),M.T=c}}function Mh(){}function fc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Af(e).queue;zf(e,n,t,Z,l===null?Mh:function(){return Df(e),l(a)})}function Af(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:Z},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Df(e){var t=Af(e);t.next===null&&(t=e.alternate.memoizedState),nn(e,t.next.queue,{},vt())}function rc(){return We(Nn)}function Of(){return Ye().memoizedState}function Cf(){return Ye().memoizedState}function _h(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=rl(l);var a=dl(t,e,l);a!==null&&(ot(a,t,l),Pa(a,t,l)),t={cache:Xi()},e.payload=t;return}t=t.return}}function Eh(e,t,l){var a=vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},mu(e)?Rf(t,l):(l=Ai(e,t,l,a),l!==null&&(ot(l,e,a),qf(l,t,a)))}function Uf(e,t,l){var a=vt();nn(e,t,l,a)}function nn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(mu(e))Rf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,f=u(c,l);if(n.hasEagerState=!0,n.eagerState=f,mt(f,c))return kn(e,t,n,0),De===null&&Kn(),!1}catch{}finally{}if(l=Ai(e,t,n,a),l!==null)return ot(l,e,a),qf(l,t,a),!0}return!1}function dc(e,t,l,a){if(a={lane:2,revertLane:Zc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mu(e)){if(t)throw Error(r(479))}else t=Ai(e,l,a,2),t!==null&&ot(t,e,2)}function mu(e){var t=e.alternate;return e===de||t!==null&&t===de}function Rf(e,t){pa=iu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ys(e,l)}}var un={readContext:We,use:ou,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re};un.useEffectEvent=Re;var Hf={readContext:We,use:ou,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:vf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ru(4194308,4,jf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var l=et();t=t===void 0?null:t;var a=e();if(Ql){al(!0);try{e()}finally{al(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=et();if(l!==void 0){var n=l(t);if(Ql){al(!0);try{l(t)}finally{al(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Eh.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=uc(e);var t=e.queue,l=Uf.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:sc,useDeferredValue:function(e,t){var l=et();return oc(l,e,t)},useTransition:function(){var e=uc(!1);return e=zf.bind(null,de,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,n=et();if(Se){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),De===null)throw Error(r(349));(ve&127)!==0||lf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,vf(nf.bind(null,a,u,e),[e]),a.flags|=2048,va(9,{destroy:void 0},af.bind(null,a,u,l,t),null),l},useId:function(){var e=et(),t=De.identifierPrefix;if(Se){var l=Ht,a=qt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=cu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=yh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:hf,useActionState:hf,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=dc.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:lc,useCacheRefresh:function(){return et().memoizedState=_h.bind(null,de)},useEffectEvent:function(e){var t=et(),l={impl:e};return t.memoizedState=l,function(){if((Te&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},mc={readContext:We,use:ou,useCallback:Mf,useContext:We,useEffect:cc,useImperativeHandle:Tf,useInsertionEffect:Sf,useLayoutEffect:Nf,useMemo:_f,useReducer:fu,useRef:bf,useState:function(){return fu(kt)},useDebugValue:sc,useDeferredValue:function(e,t){var l=Ye();return Ef(l,Ee.memoizedState,e,t)},useTransition:function(){var e=fu(kt)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:an(e),t]},useSyncExternalStore:tf,useId:Of,useHostTransitionStatus:rc,useFormState:gf,useActionState:gf,useOptimistic:function(e,t){var l=Ye();return sf(l,Ee,e,t)},useMemoCache:lc,useCacheRefresh:Cf};mc.useEffectEvent=yf;var Bf={readContext:We,use:ou,useCallback:Mf,useContext:We,useEffect:cc,useImperativeHandle:Tf,useInsertionEffect:Sf,useLayoutEffect:Nf,useMemo:_f,useReducer:nc,useRef:bf,useState:function(){return nc(kt)},useDebugValue:sc,useDeferredValue:function(e,t){var l=Ye();return Ee===null?oc(l,e,t):Ef(l,Ee.memoizedState,e,t)},useTransition:function(){var e=nc(kt)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:an(e),t]},useSyncExternalStore:tf,useId:Of,useHostTransitionStatus:rc,useFormState:pf,useActionState:pf,useOptimistic:function(e,t){var l=Ye();return Ee!==null?sf(l,Ee,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:lc,useCacheRefresh:Cf};Bf.useEffectEvent=yf;function hc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:H({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var gc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=vt(),n=rl(a);n.payload=t,l!=null&&(n.callback=l),t=dl(e,n,a),t!==null&&(ot(t,e,a),Pa(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=vt(),n=rl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=dl(e,n,a),t!==null&&(ot(t,e,a),Pa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vt(),a=rl(l);a.tag=2,t!=null&&(a.callback=t),t=dl(e,a,l),t!==null&&(ot(t,e,l),Pa(t,e,l))}};function Yf(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Va(l,a)||!Va(n,u):!0}function Gf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&gc.enqueueReplaceState(t,t.state,null)}function Zl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=H({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Xf(e){Vn(e)}function wf(e){console.error(e)}function Lf(e){Vn(e)}function hu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Qf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function xc(e,t,l){return l=rl(l),l.tag=3,l.payload={element:null},l.callback=function(){hu(e,t)},l}function Zf(e){return e=rl(e),e.tag=3,e}function Vf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Qf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Qf(t,l,a),typeof n!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function zh(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ra(t,l,n,!0),l=gt.current,l!==null){switch(l.tag){case 31:case 13:return Et===null?_u():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===tu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),wc(e,a,n)),!1;case 22:return l.flags|=65536,a===tu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),wc(e,a,n)),!1}throw Error(r(435,l.tag))}return wc(e,a,n),_u(),!1}if(Se)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==qi&&(e=Error(r(422),{cause:a}),Ja(jt(e,l)))):(a!==qi&&(t=Error(r(423),{cause:a}),Ja(jt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=jt(a,l),n=xc(e.stateNode,a,n),Ki(e,n),qe!==4&&(qe=2)),!1;var u=Error(r(520),{cause:a});if(u=jt(u,l),hn===null?hn=[u]:hn.push(u),qe!==4&&(qe=2),t===null)return!0;a=jt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=xc(l.stateNode,a,e),Ki(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(bl===null||!bl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Zf(n),Vf(n,e,l,a),Ki(l,n),!1}l=l.return}while(l!==null);return!1}var pc=Error(r(461)),we=!1;function Fe(e,t,l,a){t.child=e===null?Jo(t,null,l,a):Ll(t,e.child,l,a)}function Kf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return Yl(t),a=Ii(e,t,l,c,u,n),f=Pi(),e!==null&&!we?(ec(e,t,n),Jt(e,t,n)):(Se&&f&&Ui(t),t.flags|=1,Fe(e,t,a,n),t.child)}function kf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Di(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Jf(e,t,u,a,n)):(e=$n(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Mc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Va,l(c,a)&&e.ref===t.ref)return Jt(e,t,n)}return t.flags|=1,e=Lt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Jf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Va(u,a)&&e.ref===t.ref)if(we=!1,t.pendingProps=a=u,Mc(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,Jt(e,t,n)}return bc(e,t,l,a,n)}function $f(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Wf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pn(t,u!==null?u.cachePool:null),u!==null?Fo(t,u):Ji(),Io(t);else return a=t.lanes=536870912,Wf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Pn(t,u.cachePool),Fo(t,u),hl(),t.memoizedState=null):(e!==null&&Pn(t,null),Ji(),hl());return Fe(e,t,n,l),t.child}function cn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wf(e,t,l,a,n){var u=Li();return u=u===null?null:{parent:Ge._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Pn(t,null),Ji(),Io(t),e!==null&&ra(e,t,a,!0),t.childLanes=n,null}function gu(e,t){return t=pu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ff(e,t,l){return Ll(t,e.child,null,l),e=gu(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Ah(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=gu(t,a),t.lanes=536870912,cn(null,e);if(Wi(t),(e=Oe)?(e=od(e,_t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:qt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Uo(e),l.return=t,t.child=l,$e=t,Oe=null)):e=null,e===null)throw sl(t);return t.lanes=536870912,null}return gu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(Wi(t),n)if(t.flags&256)t.flags&=-257,t=Ff(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(we||ra(e,t,l,!1),n=(l&e.childLanes)!==0,we||n){if(a=De,a!==null&&(c=Gs(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Rl(e,c),ot(a,e,c),pc;_u(),t=Ff(e,t,l)}else e=u.treeContext,Oe=zt(c.nextSibling),$e=t,Se=!0,cl=null,_t=!1,e!==null&&Ho(t,e),t=gu(t,a),t.flags|=4096;return t}return e=Lt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function bc(e,t,l,a,n){return Yl(t),l=Ii(e,t,l,a,void 0,n),a=Pi(),e!==null&&!we?(ec(e,t,n),Jt(e,t,n)):(Se&&a&&Ui(t),t.flags|=1,Fe(e,t,l,n),t.child)}function If(e,t,l,a,n,u){return Yl(t),t.updateQueue=null,l=ef(t,a,l,n),Po(e),a=Pi(),e!==null&&!we?(ec(e,t,u),Jt(e,t,u)):(Se&&a&&Ui(t),t.flags|=1,Fe(e,t,l,u),t.child)}function Pf(e,t,l,a,n){if(Yl(t),t.stateNode===null){var u=ca,c=l.contextType;typeof c=="object"&&c!==null&&(u=We(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=gc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Zi(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?We(c):ca,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(hc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&gc.enqueueReplaceState(u,u.state,null),tn(t,a,u,n),en(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var f=t.memoizedProps,d=Zl(l,f);u.props=d;var S=u.context,D=l.contextType;c=ca,typeof D=="object"&&D!==null&&(c=We(D));var q=l.getDerivedStateFromProps;D=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||S!==c)&&Gf(t,u,a,c),fl=!1;var T=t.memoizedState;u.state=T,tn(t,a,u,n),en(),S=t.memoizedState,f||T!==S||fl?(typeof q=="function"&&(hc(t,l,q,a),S=t.memoizedState),(d=fl||Yf(t,l,d,a,T,S,c))?(D||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),u.props=a,u.state=S,u.context=c,a=d):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Vi(e,t),c=t.memoizedProps,D=Zl(l,c),u.props=D,q=t.pendingProps,T=u.context,S=l.contextType,d=ca,typeof S=="object"&&S!==null&&(d=We(S)),f=l.getDerivedStateFromProps,(S=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==q||T!==d)&&Gf(t,u,a,d),fl=!1,T=t.memoizedState,u.state=T,tn(t,a,u,n),en();var z=t.memoizedState;c!==q||T!==z||fl||e!==null&&e.dependencies!==null&&Fn(e.dependencies)?(typeof f=="function"&&(hc(t,l,f,a),z=t.memoizedState),(D=fl||Yf(t,l,D,a,T,z,d)||e!==null&&e.dependencies!==null&&Fn(e.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,z,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,z,d)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=d,a=D):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,xu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ll(t,e.child,null,n),t.child=Ll(t,null,l,n)):Fe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Jt(e,t,n),e}function er(e,t,l,a){return Hl(),t.flags|=256,Fe(e,t,l,a),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(e){return{baseLanes:e,cachePool:Lo()}}function Sc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=bt),e}function tr(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(n?ml(t):hl(),(e=Oe)?(e=od(e,_t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:qt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Uo(e),l.return=t,t.child=l,$e=t,Oe=null)):e=null,e===null)throw sl(t);return as(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(hl(),n=t.mode,f=pu({mode:"hidden",children:f},n),a=ql(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=yc(l),a.childLanes=Sc(e,c,l),t.memoizedState=vc,cn(null,a)):(ml(t),Nc(t,f))}var d=e.memoizedState;if(d!==null&&(f=d.dehydrated,f!==null)){if(u)t.flags&256?(ml(t),t.flags&=-257,t=jc(e,t,l)):t.memoizedState!==null?(hl(),t.child=e.child,t.flags|=128,t=null):(hl(),f=a.fallback,n=t.mode,a=pu({mode:"visible",children:a.children},n),f=ql(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,Ll(t,e.child,null,l),a=t.child,a.memoizedState=yc(l),a.childLanes=Sc(e,c,l),t.memoizedState=vc,t=cn(null,a));else if(ml(t),as(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var S=c.dgst;c=S,a=Error(r(419)),a.stack="",a.digest=c,Ja({value:a,source:null,stack:null}),t=jc(e,t,l)}else if(we||ra(e,t,l,!1),c=(l&e.childLanes)!==0,we||c){if(c=De,c!==null&&(a=Gs(c,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,Rl(e,a),ot(c,e,a),pc;ls(f)||_u(),t=jc(e,t,l)}else ls(f)?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Oe=zt(f.nextSibling),$e=t,Se=!0,cl=null,_t=!1,e!==null&&Ho(t,e),t=Nc(t,a.children),t.flags|=4096);return t}return n?(hl(),f=a.fallback,n=t.mode,d=e.child,S=d.sibling,a=Lt(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,S!==null?f=Lt(S,f):(f=ql(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,cn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=yc(l):(n=f.cachePool,n!==null?(d=Ge._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Lo(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Sc(e,c,l),t.memoizedState=vc,cn(e.child,a)):(ml(t),l=e.child,e=l.sibling,l=Lt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Nc(e,t){return t=pu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function pu(e,t){return e=ht(22,e,null,t),e.lanes=0,e}function jc(e,t,l){return Ll(t,e.child,null,l),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lr(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Yi(e.return,t,l)}function Tc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function ar(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Be.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,G(Be,c),Fe(e,t,a,l),a=Se?ka:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lr(e,l,t);else if(e.tag===19)lr(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&uu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Tc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&uu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Tc(t,!0,l,null,u,a);break;case"together":Tc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Jt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),pl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Lt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Lt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fn(e)))}function Dh(e,t,l){switch(t.tag){case 3:Qe(t,t.stateNode.containerInfo),ol(t,Ge,e.memoizedState.cache),Hl();break;case 27:case 5:Ca(t);break;case 4:Qe(t,t.stateNode.containerInfo);break;case 10:ol(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wi(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ml(t),t.flags|=128,null):(l&t.child.childLanes)!==0?tr(e,t,l):(ml(t),e=Jt(e,t,l),e!==null?e.sibling:null);ml(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ra(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return ar(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(Be,Be.current),a)break;return null;case 22:return t.lanes=0,$f(e,t,l,t.pendingProps);case 24:ol(t,Ge,e.memoizedState.cache)}return Jt(e,t,l)}function nr(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!Mc(e,l)&&(t.flags&128)===0)return we=!1,Dh(e,t,l);we=(e.flags&131072)!==0}else we=!1,Se&&(t.flags&1048576)!==0&&qo(t,ka,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Xl(t.elementType),t.type=e,typeof e=="function")Di(e)?(a=Zl(e,a),t.tag=1,t=Pf(null,t,e,a,l)):(t.tag=0,t=bc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ue){t.tag=11,t=Kf(null,t,e,a,l);break e}else if(n===B){t.tag=14,t=kf(null,t,e,a,l);break e}}throw t=F(e)||e,Error(r(306,t,""))}}return t;case 0:return bc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Zl(a,t.pendingProps),Pf(e,t,a,n,l);case 3:e:{if(Qe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Vi(e,t),tn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,ol(t,Ge,a),a!==u.cache&&Gi(t,[Ge],l,!0),en(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=er(e,t,a,l);break e}else if(a!==n){n=jt(Error(r(424)),t),Ja(n),t=er(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Oe=zt(e.firstChild),$e=t,Se=!0,cl=null,_t=!0,l=Jo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Hl(),a===n){t=Jt(e,t,l);break e}Fe(e,t,a,l)}t=t.child}return t;case 26:return xu(e,t),e===null?(l=gd(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(l=t.type,e=t.pendingProps,a=Uu(ge.current).createElement(l),a[Je]=t,a[at]=e,Ie(a,l,e),Ve(a),t.stateNode=a):t.memoizedState=gd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ca(t),e===null&&Se&&(a=t.stateNode=dd(t.type,t.pendingProps,ge.current),$e=t,_t=!0,n=Oe,Nl(t.type)?(ns=n,Oe=zt(a.firstChild)):Oe=n),Fe(e,t,t.pendingProps.children,l),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((n=a=Oe)&&(a=i0(a,t.type,t.pendingProps,_t),a!==null?(t.stateNode=a,$e=t,Oe=zt(a.firstChild),_t=!1,n=!0):n=!1),n||sl(t)),Ca(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Pc(n,u)?a=null:c!==null&&Pc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Ii(e,t,Sh,null,null,l),Nn._currentValue=n),xu(e,t),Fe(e,t,a,l),t.child;case 6:return e===null&&Se&&((e=l=Oe)&&(l=c0(l,t.pendingProps,_t),l!==null?(t.stateNode=l,$e=t,Oe=null,e=!0):e=!1),e||sl(t)),null;case 13:return tr(e,t,l);case 4:return Qe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ll(t,null,a,l):Fe(e,t,a,l),t.child;case 11:return Kf(e,t,t.type,t.pendingProps,l);case 7:return Fe(e,t,t.pendingProps,l),t.child;case 8:return Fe(e,t,t.pendingProps.children,l),t.child;case 12:return Fe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ol(t,t.type,a.value),Fe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Yl(t),n=We(n),a=a(n),t.flags|=1,Fe(e,t,a,l),t.child;case 14:return kf(e,t,t.type,t.pendingProps,l);case 15:return Jf(e,t,t.type,t.pendingProps,l);case 19:return ar(e,t,l);case 31:return Ah(e,t,l);case 22:return $f(e,t,l,t.pendingProps);case 24:return Yl(t),a=We(Ge),e===null?(n=Li(),n===null&&(n=De,u=Xi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Zi(t),ol(t,Ge,n)):((e.lanes&l)!==0&&(Vi(e,t),tn(t,null,null,l),en()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ol(t,Ge,a)):(a=u.cache,ol(t,Ge,a),a!==n.cache&&Gi(t,[Ge],l,!0))),Fe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function $t(e){e.flags|=4}function _c(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Or())e.flags|=8192;else throw wl=tu,Qi}else e.flags&=-16777217}function ur(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!yd(t))if(Or())e.flags|=8192;else throw wl=tu,Qi}function bu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hs():536870912,e.lanes|=t,ja|=t)}function sn(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Oh(e,t,l){var a=t.pendingProps;switch(Ri(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return Ce(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vt(Ge),He(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(fa(t)?$t(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hi())),Ce(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?($t(t),u!==null?(Ce(t),ur(t,u)):(Ce(t),_c(t,n,null,a,l))):u?u!==e.memoizedState?($t(t),Ce(t),ur(t,u)):(Ce(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$t(t),Ce(t),_c(t,n,e,a,l)),null;case 27:if(An(t),l=ge.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$t(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ce(t),null}e=V.current,fa(t)?Bo(t):(e=dd(n,a,l),t.stateNode=e,$t(t))}return Ce(t),null;case 5:if(An(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$t(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ce(t),null}if(u=V.current,fa(t))Bo(t);else{var c=Uu(ge.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Je]=t,u[at]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Ie(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$t(t)}}return Ce(t),_c(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$t(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ge.current,fa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=$e,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||td(e.nodeValue,l)),e||sl(t,!0)}else e=Uu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Ce(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=fa(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Je]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ce(t),e=!1}else l=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ce(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=fa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Je]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ce(t),n=!1}else n=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),bu(t,t.updateQueue),Ce(t),null);case 4:return He(),e===null&&Jc(t.stateNode.containerInfo),Ce(t),null;case 10:return Vt(t.type),Ce(t),null;case 19:if(E(Be),a=t.memoizedState,a===null)return Ce(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)sn(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=uu(e),u!==null){for(t.flags|=128,sn(a,!1),e=u.updateQueue,t.updateQueue=e,bu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Co(l,e),l=l.sibling;return G(Be,Be.current&1|2),Se&&Qt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ft()>ju&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304)}else{if(!n)if(e=uu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,bu(t,e),sn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Se)return Ce(t),null}else 2*ft()-a.renderingStartTime>ju&&l!==536870912&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ft(),e.sibling=null,l=Be.current,G(Be,n?l&1|2:l&1),Se&&Qt(t,a.treeForkCount),e):(Ce(t),null);case 22:case 23:return xt(t),$i(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),l=t.updateQueue,l!==null&&bu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&E(Gl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vt(Ge),Ce(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Ch(e,t){switch(Ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vt(Ge),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return An(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return E(Be),null;case 4:return He(),null;case 10:return Vt(t.type),null;case 22:case 23:return xt(t),$i(),e!==null&&E(Gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vt(Ge),null;case 25:return null;default:return null}}function ir(e,t){switch(Ri(t),t.tag){case 3:Vt(Ge),He();break;case 26:case 27:case 5:An(t);break;case 4:He();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:E(Be);break;case 10:Vt(t.type);break;case 22:case 23:xt(t),$i(),e!==null&&E(Gl);break;case 24:Vt(Ge)}}function on(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(f){_e(t,t.return,f)}}function gl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,n=t;var d=l,S=f;try{S()}catch(D){_e(n,d,D)}}}a=a.next}while(a!==u)}}catch(D){_e(t,t.return,D)}}function cr(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Wo(t,l)}catch(a){_e(e,e.return,a)}}}function sr(e,t,l){l.props=Zl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){_e(e,t,a)}}function fn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){_e(e,t,n)}}function Bt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){_e(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){_e(e,t,n)}else l.current=null}function or(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){_e(e,e.return,n)}}function Ec(e,t,l){try{var a=e.stateNode;e0(a,e.type,l,t),a[at]=t}catch(n){_e(e,e.return,n)}}function fr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nl(e.type)||e.tag===4}function zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fr(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&&Nl(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 Ac(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Xt));else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ac(e,t,l),e=e.sibling;e!==null;)Ac(e,t,l),e=e.sibling}function vu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(vu(e,t,l),e=e.sibling;e!==null;)vu(e,t,l),e=e.sibling}function rr(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ie(t,a,l),t[Je]=e,t[at]=l}catch(u){_e(e,e.return,u)}}var Wt=!1,Le=!1,Dc=!1,dr=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Uh(e,t){if(e=e.containerInfo,Fc=Xu,e=jo(e),ji(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,f=-1,d=-1,S=0,D=0,q=e,T=null;t:for(;;){for(var z;q!==l||n!==0&&q.nodeType!==3||(f=c+n),q!==u||a!==0&&q.nodeType!==3||(d=c+a),q.nodeType===3&&(c+=q.nodeValue.length),(z=q.firstChild)!==null;)T=q,q=z;for(;;){if(q===e)break t;if(T===l&&++S===n&&(f=c),T===u&&++D===a&&(d=c),(z=q.nextSibling)!==null)break;q=T,T=q.parentNode}q=z}l=f===-1||d===-1?null:{start:f,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ic={focusedElem:e,selectionRange:l},Xu=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){switch(t=Ke,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var J=Zl(l.type,n);e=a.getSnapshotBeforeUpdate(J,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){_e(l,l.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ts(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ts(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}}function mr(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:It(e,l),a&4&&on(5,l);break;case 1:if(It(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){_e(l,l.return,c)}else{var n=Zl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){_e(l,l.return,c)}}a&64&&cr(l),a&512&&fn(l,l.return);break;case 3:if(It(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Wo(e,t)}catch(c){_e(l,l.return,c)}}break;case 27:t===null&&a&4&&rr(l);case 26:case 5:It(e,l),t===null&&a&4&&or(l),a&512&&fn(l,l.return);break;case 12:It(e,l);break;case 31:It(e,l),a&4&&xr(e,l);break;case 13:It(e,l),a&4&&pr(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Lh.bind(null,l),s0(e,l))));break;case 22:if(a=l.memoizedState!==null||Wt,!a){t=t!==null&&t.memoizedState!==null||Le,n=Wt;var u=Le;Wt=a,(Le=t)&&!u?Pt(e,l,(l.subtreeFlags&8772)!==0):It(e,l),Wt=n,Le=u}break;case 30:break;default:It(e,l)}}function hr(e){var t=e.alternate;t!==null&&(e.alternate=null,hr(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ii(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 Ue=null,ut=!1;function Ft(e,t,l){for(l=l.child;l!==null;)gr(e,t,l),l=l.sibling}function gr(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Ua,l)}catch{}switch(l.tag){case 26:Le||Bt(l,t),Ft(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||Bt(l,t);var a=Ue,n=ut;Nl(l.type)&&(Ue=l.stateNode,ut=!1),Ft(e,t,l),vn(l.stateNode),Ue=a,ut=n;break;case 5:Le||Bt(l,t);case 6:if(a=Ue,n=ut,Ue=null,Ft(e,t,l),Ue=a,ut=n,Ue!==null)if(ut)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(u){_e(l,t,u)}else try{Ue.removeChild(l.stateNode)}catch(u){_e(l,t,u)}break;case 18:Ue!==null&&(ut?(e=Ue,cd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Oa(e)):cd(Ue,l.stateNode));break;case 4:a=Ue,n=ut,Ue=l.stateNode.containerInfo,ut=!0,Ft(e,t,l),Ue=a,ut=n;break;case 0:case 11:case 14:case 15:gl(2,l,t),Le||gl(4,l,t),Ft(e,t,l);break;case 1:Le||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&sr(l,t,a)),Ft(e,t,l);break;case 21:Ft(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,Ft(e,t,l),Le=a;break;default:Ft(e,t,l)}}function xr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(l){_e(t,t.return,l)}}}function pr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(l){_e(t,t.return,l)}}function Rh(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dr),t;default:throw Error(r(435,e.tag))}}function yu(e,t){var l=Rh(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Qh.bind(null,e,a);a.then(n,n)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(Nl(f.type)){Ue=f.stateNode,ut=!1;break e}break;case 5:Ue=f.stateNode,ut=!1;break e;case 3:case 4:Ue=f.stateNode.containerInfo,ut=!0;break e}f=f.return}if(Ue===null)throw Error(r(160));gr(u,c,n),Ue=null,ut=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)br(t,e),t=t.sibling}var Ct=null;function br(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ct(e),a&4&&(gl(3,e,e.return),on(3,e),gl(5,e,e.return));break;case 1:it(t,e),ct(e),a&512&&(Le||l===null||Bt(l,l.return)),a&64&&Wt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ct;if(it(t,e),ct(e),a&512&&(Le||l===null||Bt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ha]||u[Je]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ie(u,a,l),u[Je]=e,Ve(u),a=u;break e;case"link":var c=bd("link","href",n).get(a+(l.href||""));if(c){for(var f=0;f<c.length;f++)if(u=c[f],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(f,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;case"meta":if(c=bd("meta","content",n).get(a+(l.content||""))){for(f=0;f<c.length;f++)if(u=c[f],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(f,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Je]=e,Ve(u),a=u}e.stateNode=a}else vd(n,e.type,e.stateNode);else e.stateNode=pd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?vd(n,e.type,e.stateNode):pd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ec(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ct(e),a&512&&(Le||l===null||Bt(l,l.return)),l!==null&&a&4&&Ec(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ct(e),a&512&&(Le||l===null||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{ea(n,"")}catch(J){_e(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Ec(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Dc=!0);break;case 6:if(it(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){_e(e,e.return,J)}}break;case 3:if(Hu=null,n=Ct,Ct=Ru(t.containerInfo),it(t,e),Ct=n,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(J){_e(e,e.return,J)}Dc&&(Dc=!1,vr(e));break;case 4:a=Ct,Ct=Ru(e.stateNode.containerInfo),it(t,e),ct(e),Ct=a;break;case 12:it(t,e),ct(e);break;case 31:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,yu(e,a)));break;case 13:it(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Nu=ft()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,yu(e,a)));break;case 22:n=e.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,S=Wt,D=Le;if(Wt=S||n,Le=D||d,it(t,e),Le=D,Wt=S,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||d||Wt||Le||Vl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){d=l=t;try{if(u=d.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=d.stateNode;var q=d.memoizedProps.style,T=q!=null&&q.hasOwnProperty("display")?q.display:null;f.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(J){_e(d,d.return,J)}}}else if(t.tag===6){if(l===null){d=t;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(J){_e(d,d.return,J)}}}else if(t.tag===18){if(l===null){d=t;try{var z=d.stateNode;n?sd(z,!0):sd(d.stateNode,!1)}catch(J){_e(d,d.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,yu(e,l))));break;case 19:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,yu(e,a)));break;case 30:break;case 21:break;default:it(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(fr(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=zc(e);vu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ea(c,""),l.flags&=-33);var f=zc(e);vu(e,f,c);break;case 3:case 4:var d=l.stateNode.containerInfo,S=zc(e);Ac(e,S,d);break;default:throw Error(r(161))}}catch(D){_e(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vr(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function It(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mr(e,t.alternate,t),t=t.sibling}function Vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:gl(4,t,t.return),Vl(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&sr(t,t.return,l),Vl(t);break;case 27:vn(t.stateNode);case 26:case 5:Bt(t,t.return),Vl(t);break;case 22:t.memoizedState===null&&Vl(t);break;case 30:Vl(t);break;default:Vl(t)}e=e.sibling}}function Pt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:Pt(n,u,l),on(4,u);break;case 1:if(Pt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(S){_e(a,a.return,S)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)$o(d[n],f)}catch(S){_e(a,a.return,S)}}l&&c&64&&cr(u),fn(u,u.return);break;case 27:rr(u);case 26:case 5:Pt(n,u,l),l&&a===null&&c&4&&or(u),fn(u,u.return);break;case 12:Pt(n,u,l);break;case 31:Pt(n,u,l),l&&c&4&&xr(n,u);break;case 13:Pt(n,u,l),l&&c&4&&pr(n,u);break;case 22:u.memoizedState===null&&Pt(n,u,l),fn(u,u.return);break;case 30:break;default:Pt(n,u,l)}t=t.sibling}}function Oc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&$a(l))}function Cc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Ut(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yr(e,t,l,a),t=t.sibling}function yr(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ut(e,t,l,a),n&2048&&on(9,t);break;case 1:Ut(e,t,l,a);break;case 3:Ut(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(n&2048){Ut(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,f=u.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){_e(t,t.return,d)}}else Ut(e,t,l,a);break;case 31:Ut(e,t,l,a);break;case 13:Ut(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Ut(e,t,l,a):rn(e,t):u._visibility&2?Ut(e,t,l,a):(u._visibility|=2,ya(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Oc(c,t);break;case 24:Ut(e,t,l,a),n&2048&&Cc(t.alternate,t);break;default:Ut(e,t,l,a)}}function ya(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,f=l,d=a,S=c.flags;switch(c.tag){case 0:case 11:case 15:ya(u,c,f,d,n),on(8,c);break;case 23:break;case 22:var D=c.stateNode;c.memoizedState!==null?D._visibility&2?ya(u,c,f,d,n):rn(u,c):(D._visibility|=2,ya(u,c,f,d,n)),n&&S&2048&&Oc(c.alternate,c);break;case 24:ya(u,c,f,d,n),n&&S&2048&&Cc(c.alternate,c);break;default:ya(u,c,f,d,n)}t=t.sibling}}function rn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:rn(l,a),n&2048&&Oc(a.alternate,a);break;case 24:rn(l,a),n&2048&&Cc(a.alternate,a);break;default:rn(l,a)}t=t.sibling}}var dn=8192;function Sa(e,t,l){if(e.subtreeFlags&dn)for(e=e.child;e!==null;)Sr(e,t,l),e=e.sibling}function Sr(e,t,l){switch(e.tag){case 26:Sa(e,t,l),e.flags&dn&&e.memoizedState!==null&&y0(l,Ct,e.memoizedState,e.memoizedProps);break;case 5:Sa(e,t,l);break;case 3:case 4:var a=Ct;Ct=Ru(e.stateNode.containerInfo),Sa(e,t,l),Ct=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=dn,dn=16777216,Sa(e,t,l),dn=a):Sa(e,t,l));break;default:Sa(e,t,l)}}function Nr(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 mn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,Tr(a,e)}Nr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jr(e),e=e.sibling}function jr(e){switch(e.tag){case 0:case 11:case 15:mn(e),e.flags&2048&&gl(9,e,e.return);break;case 3:mn(e);break;case 12:mn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Su(e)):mn(e);break;default:mn(e)}}function Su(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,Tr(a,e)}Nr(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:gl(8,t,t.return),Su(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Su(t));break;default:Su(t)}e=e.sibling}}function Tr(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:gl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:$a(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ke=a;else e:for(l=e;Ke!==null;){a=Ke;var n=a.sibling,u=a.return;if(hr(a),a===l){Ke=null;break e}if(n!==null){n.return=u,Ke=n;break e}Ke=u}}}var qh={getCacheForType:function(e){var t=We(Ge),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(Ge).controller.signal}},Hh=typeof WeakMap=="function"?WeakMap:Map,Te=0,De=null,xe=null,ve=0,Me=0,pt=null,xl=!1,Na=!1,Uc=!1,el=0,qe=0,pl=0,Kl=0,Rc=0,bt=0,ja=0,hn=null,st=null,qc=!1,Nu=0,Mr=0,ju=1/0,Tu=null,bl=null,Ze=0,vl=null,Ta=null,tl=0,Hc=0,Bc=null,_r=null,gn=0,Yc=null;function vt(){return(Te&2)!==0&&ve!==0?ve&-ve:M.T!==null?Zc():Xs()}function Er(){if(bt===0)if((ve&536870912)===0||Se){var e=Cn;Cn<<=1,(Cn&3932160)===0&&(Cn=262144),bt=e}else bt=536870912;return e=gt.current,e!==null&&(e.flags|=32),bt}function ot(e,t,l){(e===De&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),yl(e,ve,bt,!1)),qa(e,l),((Te&2)===0||e!==De)&&(e===De&&((Te&2)===0&&(Kl|=l),qe===4&&yl(e,ve,bt,!1)),Yt(e))}function zr(e,t,l){if((Te&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ra(e,t),n=a?Gh(e,t):Xc(e,t,!0),u=a;do{if(n===0){Na&&!a&&yl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Bh(l)){n=Xc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;n=hn;var d=f.current.memoizedState.isDehydrated;if(d&&(Ma(f,c).flags|=256),c=Xc(f,c,!1),c!==2){if(Uc&&!d){f.errorRecoveryDisabledLanes|=u,Kl|=u,n=4;break e}u=st,st=n,u!==null&&(st===null?st=u:st.push.apply(st,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ma(e,0),yl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:yl(a,t,bt,!xl);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Nu+300-ft(),10<n)){if(yl(a,t,bt,!xl),Rn(a,0,!0)!==0)break e;tl=t,a.timeoutHandle=ud(Ar.bind(null,a,l,st,Tu,qc,t,bt,Kl,ja,xl,u,"Throttled",-0,0),n);break e}Ar(a,l,st,Tu,qc,t,bt,Kl,ja,xl,u,null,-0,0)}}break}while(!0);Yt(e)}function Ar(e,t,l,a,n,u,c,f,d,S,D,q,T,z){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xt},Sr(t,u,q);var J=(u&62914560)===u?Nu-ft():(u&4194048)===u?Mr-ft():0;if(J=S0(q,J),J!==null){tl=u,e.cancelPendingCommit=J(Br.bind(null,e,t,u,l,a,n,c,f,d,D,q,null,T,z)),yl(e,u,c,!S);return}}Br(e,t,u,l,a,n,c,f,d)}function Bh(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!mt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yl(e,t,l,a){t&=~Rc,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-dt(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&Bs(e,l,t)}function Mu(){return(Te&6)===0?(xn(0),!1):!0}function Gc(){if(xe!==null){if(Me===0)var e=xe.return;else e=xe,Zt=Bl=null,tc(e),ga=null,Fa=0,e=xe;for(;e!==null;)ir(e.alternate,e),e=e.return;xe=null}}function Ma(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,a0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),tl=0,Gc(),De=e,xe=l=Lt(e.current,null),ve=t,Me=0,pt=null,xl=!1,Na=Ra(e,t),Uc=!1,ja=bt=Rc=Kl=pl=qe=0,st=hn=null,qc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-dt(a),u=1<<n;t|=e[n],a&=~u}return el=t,Kn(),l}function Dr(e,t){de=null,M.H=un,t===ha||t===eu?(t=Vo(),Me=3):t===Qi?(t=Vo(),Me=4):Me=t===pc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,xe===null&&(qe=1,hu(e,jt(t,e.current)))}function Or(){var e=gt.current;return e===null?!0:(ve&4194048)===ve?Et===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Et:!1}function Cr(){var e=M.H;return M.H=un,e===null?un:e}function Ur(){var e=M.A;return M.A=qh,e}function _u(){qe=4,xl||(ve&4194048)!==ve&>.current!==null||(Na=!0),(pl&134217727)===0&&(Kl&134217727)===0||De===null||yl(De,ve,bt,!1)}function Xc(e,t,l){var a=Te;Te|=2;var n=Cr(),u=Ur();(De!==e||ve!==t)&&(Tu=null,Ma(e,t)),t=!1;var c=qe;e:do try{if(Me!==0&&xe!==null){var f=xe,d=pt;switch(Me){case 8:Gc(),c=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var S=Me;if(Me=0,pt=null,_a(e,f,d,S),l&&Na){c=0;break e}break;default:S=Me,Me=0,pt=null,_a(e,f,d,S)}}Yh(),c=qe;break}catch(D){Dr(e,D)}while(!0);return t&&e.shellSuspendCounter++,Zt=Bl=null,Te=a,M.H=n,M.A=u,xe===null&&(De=null,ve=0,Kn()),c}function Yh(){for(;xe!==null;)Rr(xe)}function Gh(e,t){var l=Te;Te|=2;var a=Cr(),n=Ur();De!==e||ve!==t?(Tu=null,ju=ft()+500,Ma(e,t)):Na=Ra(e,t);e:do try{if(Me!==0&&xe!==null){t=xe;var u=pt;t:switch(Me){case 1:Me=0,pt=null,_a(e,t,u,1);break;case 2:case 9:if(Qo(u)){Me=0,pt=null,qr(t);break}t=function(){Me!==2&&Me!==9||De!==e||(Me=7),Yt(e)},u.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Qo(u)?(Me=0,pt=null,qr(t)):(Me=0,pt=null,_a(e,t,u,7));break;case 5:var c=null;switch(xe.tag){case 26:c=xe.memoizedState;case 5:case 27:var f=xe;if(c?yd(c):f.stateNode.complete){Me=0,pt=null;var d=f.sibling;if(d!==null)xe=d;else{var S=f.return;S!==null?(xe=S,Eu(S)):xe=null}break t}}Me=0,pt=null,_a(e,t,u,5);break;case 6:Me=0,pt=null,_a(e,t,u,6);break;case 8:Gc(),qe=6;break e;default:throw Error(r(462))}}Xh();break}catch(D){Dr(e,D)}while(!0);return Zt=Bl=null,M.H=a,M.A=n,Te=l,xe!==null?0:(De=null,ve=0,Kn(),qe)}function Xh(){for(;xe!==null&&!om();)Rr(xe)}function Rr(e){var t=nr(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Eu(e):xe=t}function qr(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=If(l,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=If(l,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:tc(t);default:ir(l,t),t=xe=Co(t,el),t=nr(l,t,el)}e.memoizedProps=e.pendingProps,t===null?Eu(e):xe=t}function _a(e,t,l,a){Zt=Bl=null,tc(t),ga=null,Fa=0;var n=t.return;try{if(zh(e,n,t,l,ve)){qe=1,hu(e,jt(l,e.current)),xe=null;return}}catch(u){if(n!==null)throw xe=n,u;qe=1,hu(e,jt(l,e.current)),xe=null;return}t.flags&32768?(Se||a===1?e=!0:Na||(ve&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Hr(t,e)):Eu(t)}function Eu(e){var t=e;do{if((t.flags&32768)!==0){Hr(t,xl);return}e=t.return;var l=Oh(t.alternate,t,el);if(l!==null){xe=l;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);qe===0&&(qe=5)}function Hr(e,t){do{var l=Ch(e.alternate,e);if(l!==null){l.flags&=32767,xe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=l}while(e!==null);qe=6,xe=null}function Br(e,t,l,a,n,u,c,f,d){e.cancelPendingCommit=null;do zu();while(Ze!==0);if((Te&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=zi,vm(e,l,u,c,f,d),e===De&&(xe=De=null,ve=0),Ta=t,vl=e,tl=l,Hc=u,Bc=n,_r=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Zh(Dn,function(){return Lr(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=O.p,O.p=2,c=Te,Te|=4;try{Uh(e,t,l)}finally{Te=c,O.p=n,M.T=a}}Ze=1,Yr(),Gr(),Xr()}}function Yr(){if(Ze===1){Ze=0;var e=vl,t=Ta,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var a=O.p;O.p=2;var n=Te;Te|=4;try{br(t,e);var u=Ic,c=jo(e.containerInfo),f=u.focusedElem,d=u.selectionRange;if(c!==f&&f&&f.ownerDocument&&No(f.ownerDocument.documentElement,f)){if(d!==null&&ji(f)){var S=d.start,D=d.end;if(D===void 0&&(D=S),"selectionStart"in f)f.selectionStart=S,f.selectionEnd=Math.min(D,f.value.length);else{var q=f.ownerDocument||document,T=q&&q.defaultView||window;if(T.getSelection){var z=T.getSelection(),J=f.textContent.length,ae=Math.min(d.start,J),Ae=d.end===void 0?ae:Math.min(d.end,J);!z.extend&&ae>Ae&&(c=Ae,Ae=ae,ae=c);var b=So(f,ae),x=So(f,Ae);if(b&&x&&(z.rangeCount!==1||z.anchorNode!==b.node||z.anchorOffset!==b.offset||z.focusNode!==x.node||z.focusOffset!==x.offset)){var y=q.createRange();y.setStart(b.node,b.offset),z.removeAllRanges(),ae>Ae?(z.addRange(y),z.extend(x.node,x.offset)):(y.setEnd(x.node,x.offset),z.addRange(y))}}}}for(q=[],z=f;z=z.parentNode;)z.nodeType===1&&q.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<q.length;f++){var U=q[f];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Xu=!!Fc,Ic=Fc=null}finally{Te=n,O.p=a,M.T=l}}e.current=t,Ze=2}}function Gr(){if(Ze===2){Ze=0;var e=vl,t=Ta,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=O.p;O.p=2;var n=Te;Te|=4;try{mr(e,t.alternate,t)}finally{Te=n,O.p=a,M.T=l}}Ze=3}}function Xr(){if(Ze===4||Ze===3){Ze=0,fm();var e=vl,t=Ta,l=tl,a=_r;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Ta=vl=null,wr(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(bl=null),ni(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,n=O.p,O.p=2,M.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];u(f.value,{componentStack:f.stack})}}finally{M.T=t,O.p=n}}(tl&3)!==0&&zu(),Yt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Yc?gn++:(gn=0,Yc=e):gn=0,xn(0)}}function wr(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function zu(){return Yr(),Gr(),Xr(),Lr()}function Lr(){if(Ze!==5)return!1;var e=vl,t=Hc;Hc=0;var l=ni(tl),a=M.T,n=O.p;try{O.p=32>l?32:l,M.T=null,l=Bc,Bc=null;var u=vl,c=tl;if(Ze=0,Ta=vl=null,tl=0,(Te&6)!==0)throw Error(r(331));var f=Te;if(Te|=4,jr(u.current),yr(u,u.current,c,l),Te=f,xn(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ua,u)}catch{}return!0}finally{O.p=n,M.T=a,wr(e,t)}}function Qr(e,t,l){t=jt(l,t),t=xc(e.stateNode,t,2),e=dl(e,t,2),e!==null&&(qa(e,2),Yt(e))}function _e(e,t,l){if(e.tag===3)Qr(e,e,l);else for(;t!==null;){if(t.tag===3){Qr(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(bl===null||!bl.has(a))){e=jt(l,e),l=Zf(2),a=dl(t,l,2),a!==null&&(Vf(l,a,t,e),qa(a,2),Yt(a));break}}t=t.return}}function wc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Hh;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Uc=!0,n.add(l),e=wh.bind(null,e,t,l),t.then(e,e))}function wh(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,De===e&&(ve&l)===l&&(qe===4||qe===3&&(ve&62914560)===ve&&300>ft()-Nu?(Te&2)===0&&Ma(e,0):Rc|=l,ja===ve&&(ja=0)),Yt(e)}function Zr(e,t){t===0&&(t=Hs()),e=Rl(e,t),e!==null&&(qa(e,t),Yt(e))}function Lh(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Zr(e,l)}function Qh(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Zr(e,l)}function Zh(e,t){return ei(e,t)}var Au=null,Ea=null,Lc=!1,Du=!1,Qc=!1,Sl=0;function Yt(e){e!==Ea&&e.next===null&&(Ea===null?Au=Ea=e:Ea=Ea.next=e),Du=!0,Lc||(Lc=!0,Kh())}function xn(e,t){if(!Qc&&Du){Qc=!0;do for(var l=!1,a=Au;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=n&~(c&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Jr(a,u))}else u=ve,u=Rn(a,a===De?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ra(a,u)||(l=!0,Jr(a,u));a=a.next}while(l);Qc=!1}}function Vh(){Vr()}function Vr(){Du=Lc=!1;var e=0;Sl!==0&&l0()&&(e=Sl);for(var t=ft(),l=null,a=Au;a!==null;){var n=a.next,u=Kr(a,t);u===0?(a.next=null,l===null?Au=n:l.next=n,n===null&&(Ea=l)):(l=a,(e!==0||(u&3)!==0)&&(Du=!0)),a=n}Ze!==0&&Ze!==5||xn(e),Sl!==0&&(Sl=0)}function Kr(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-dt(u),f=1<<c,d=n[c];d===-1?((f&l)===0||(f&a)!==0)&&(n[c]=bm(f,t)):d<=t&&(e.expiredLanes|=f),u&=~f}if(t=De,l=ve,l=Rn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ti(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ra(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ti(a),ni(l)){case 2:case 8:l=Rs;break;case 32:l=Dn;break;case 268435456:l=qs;break;default:l=Dn}return a=kr.bind(null,e),l=ei(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ti(a),e.callbackPriority=2,e.callbackNode=null,2}function kr(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(zu()&&e.callbackNode!==l)return null;var a=ve;return a=Rn(e,e===De?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(zr(e,a,t),Kr(e,ft()),e.callbackNode!=null&&e.callbackNode===l?kr.bind(null,e):null)}function Jr(e,t){if(zu())return null;zr(e,t,!0)}function Kh(){n0(function(){(Te&6)!==0?ei(Us,Vh):Vr()})}function Zc(){if(Sl===0){var e=da;e===0&&(e=On,On<<=1,(On&261888)===0&&(On=256)),Sl=e}return Sl}function $r(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Yn(""+e)}function Wr(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function kh(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=$r((n[at]||null).action),c=a.submitter;c&&(t=(t=c[at]||null)?$r(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var f=new Ln("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Sl!==0){var d=c?Wr(n,c):new FormData(n);fc(l,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(f.preventDefault(),d=c?Wr(n,c):new FormData(n),fc(l,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var Vc=0;Vc<Ei.length;Vc++){var Kc=Ei[Vc],Jh=Kc.toLowerCase(),$h=Kc[0].toUpperCase()+Kc.slice(1);Ot(Jh,"on"+$h)}Ot(_o,"onAnimationEnd"),Ot(Eo,"onAnimationIteration"),Ot(zo,"onAnimationStart"),Ot("dblclick","onDoubleClick"),Ot("focusin","onFocus"),Ot("focusout","onBlur"),Ot(rh,"onTransitionRun"),Ot(dh,"onTransitionStart"),Ot(mh,"onTransitionCancel"),Ot(Ao,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pn="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(" "),Wh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pn));function Fr(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var f=a[c],d=f.instance,S=f.currentTarget;if(f=f.listener,d!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=S;try{u(n)}catch(D){Vn(D)}n.currentTarget=null,u=d}else for(c=0;c<a.length;c++){if(f=a[c],d=f.instance,S=f.currentTarget,f=f.listener,d!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=S;try{u(n)}catch(D){Vn(D)}n.currentTarget=null,u=d}}}}function pe(e,t){var l=t[ui];l===void 0&&(l=t[ui]=new Set);var a=e+"__bubble";l.has(a)||(Ir(t,e,2,!1),l.add(a))}function kc(e,t,l){var a=0;t&&(a|=4),Ir(l,e,a,t)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function Jc(e){if(!e[Ou]){e[Ou]=!0,Qs.forEach(function(l){l!=="selectionchange"&&(Wh.has(l)||kc(l,!1,e),kc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ou]||(t[Ou]=!0,kc("selectionchange",!1,t))}}function Ir(e,t,l,a){switch(Ed(t)){case 2:var n=T0;break;case 8:n=M0;break;default:n=os}l=n.bind(null,t,l,e),n=void 0,!hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function $c(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===n)break;if(c===4)for(c=a.return;c!==null;){var d=c.tag;if((d===3||d===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;f!==null;){if(c=$l(f),c===null)return;if(d=c.tag,d===5||d===6||d===26||d===27){a=u=c;continue e}f=f.parentNode}}a=a.return}to(function(){var S=u,D=di(l),q=[];e:{var T=Do.get(e);if(T!==void 0){var z=Ln,J=e;switch(e){case"keypress":if(Xn(l)===0)break e;case"keydown":case"keyup":z=Qm;break;case"focusin":J="focus",z=bi;break;case"focusout":J="blur",z=bi;break;case"beforeblur":case"afterblur":z=bi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=no;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Km;break;case _o:case Eo:case zo:z=Rm;break;case Ao:z=Jm;break;case"scroll":case"scrollend":z=Am;break;case"wheel":z=Wm;break;case"copy":case"cut":case"paste":z=Hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=io;break;case"toggle":case"beforetoggle":z=Im}var ae=(t&4)!==0,Ae=!ae&&(e==="scroll"||e==="scrollend"),b=ae?T!==null?T+"Capture":null:T;ae=[];for(var x=S,y;x!==null;){var U=x;if(y=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||y===null||b===null||(U=Ya(x,b),U!=null&&ae.push(bn(x,U,y))),Ae)break;x=x.return}0<ae.length&&(T=new z(T,J,null,l,D),q.push({event:T,listeners:ae}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",T&&l!==ri&&(J=l.relatedTarget||l.fromElement)&&($l(J)||J[Jl]))break e;if((z||T)&&(T=D.window===D?D:(T=D.ownerDocument)?T.defaultView||T.parentWindow:window,z?(J=l.relatedTarget||l.toElement,z=S,J=J?$l(J):null,J!==null&&(Ae=N(J),ae=J.tag,J!==Ae||ae!==5&&ae!==27&&ae!==6)&&(J=null)):(z=null,J=S),z!==J)){if(ae=no,U="onMouseLeave",b="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ae=io,U="onPointerLeave",b="onPointerEnter",x="pointer"),Ae=z==null?T:Ba(z),y=J==null?T:Ba(J),T=new ae(U,x+"leave",z,l,D),T.target=Ae,T.relatedTarget=y,U=null,$l(D)===S&&(ae=new ae(b,x+"enter",J,l,D),ae.target=y,ae.relatedTarget=Ae,U=ae),Ae=U,z&&J)t:{for(ae=Fh,b=z,x=J,y=0,U=b;U;U=ae(U))y++;U=0;for(var te=x;te;te=ae(te))U++;for(;0<y-U;)b=ae(b),y--;for(;0<U-y;)x=ae(x),U--;for(;y--;){if(b===x||x!==null&&b===x.alternate){ae=b;break t}b=ae(b),x=ae(x)}ae=null}else ae=null;z!==null&&Pr(q,T,z,ae,!1),J!==null&&Ae!==null&&Pr(q,Ae,J,ae,!0)}}e:{if(T=S?Ba(S):window,z=T.nodeName&&T.nodeName.toLowerCase(),z==="select"||z==="input"&&T.type==="file")var Ne=go;else if(mo(T))if(xo)Ne=sh;else{Ne=ih;var P=uh}else z=T.nodeName,!z||z.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?S&&fi(S.elementType)&&(Ne=go):Ne=ch;if(Ne&&(Ne=Ne(e,S))){ho(q,Ne,l,D);break e}P&&P(e,T,S),e==="focusout"&&S&&T.type==="number"&&S.memoizedProps.value!=null&&oi(T,"number",T.value)}switch(P=S?Ba(S):window,e){case"focusin":(mo(P)||P.contentEditable==="true")&&(na=P,Ti=S,Ka=null);break;case"focusout":Ka=Ti=na=null;break;case"mousedown":Mi=!0;break;case"contextmenu":case"mouseup":case"dragend":Mi=!1,To(q,l,D);break;case"selectionchange":if(fh)break;case"keydown":case"keyup":To(q,l,D)}var me;if(yi)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else aa?fo(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(co&&l.locale!=="ko"&&(aa||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&aa&&(me=lo()):(ul=D,gi="value"in ul?ul.value:ul.textContent,aa=!0)),P=Cu(S,ye),0<P.length&&(ye=new uo(ye,e,null,l,D),q.push({event:ye,listeners:P}),me?ye.data=me:(me=ro(l),me!==null&&(ye.data=me)))),(me=eh?th(e,l):lh(e,l))&&(ye=Cu(S,"onBeforeInput"),0<ye.length&&(P=new uo("onBeforeInput","beforeinput",null,l,D),q.push({event:P,listeners:ye}),P.data=me)),kh(q,e,S,l,D)}Fr(q,t)})}function bn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Cu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ya(e,l),n!=null&&a.unshift(bn(e,n,u)),n=Ya(e,t),n!=null&&a.push(bn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Fh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pr(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var f=l,d=f.alternate,S=f.stateNode;if(f=f.tag,d!==null&&d===a)break;f!==5&&f!==26&&f!==27||S===null||(d=S,n?(S=Ya(l,u),S!=null&&c.unshift(bn(l,S,d))):n||(S=Ya(l,u),S!=null&&c.push(bn(l,S,d)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Ih=/\r\n?/g,Ph=/\u0000|\uFFFD/g;function ed(e){return(typeof e=="string"?e:""+e).replace(Ih,`
|
|
49
|
-
`).replace(Ph,"")}function td(e,t){return t=ed(t),ed(e)===t}function ze(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ea(e,""+a);break;case"className":Hn(e,"class",a);break;case"tabIndex":Hn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Hn(e,l,a);break;case"style":Ps(e,a,u);break;case"data":if(t!=="object"){Hn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Yn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&ze(e,t,"name",n.name,n,null),ze(e,t,"formEncType",n.formEncType,n,null),ze(e,t,"formMethod",n.formMethod,n,null),ze(e,t,"formTarget",n.formTarget,n,null)):(ze(e,t,"encType",n.encType,n,null),ze(e,t,"method",n.method,n,null),ze(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Yn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Xt);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Yn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":pe("beforetoggle",e),pe("toggle",e),qn(e,"popover",a);break;case"xlinkActuate":Gt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Gt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Gt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Gt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Gt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Gt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Em.get(l)||l,qn(e,l,a))}}function Wc(e,t,l,a,n,u){switch(l){case"style":Ps(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ea(e,a):(typeof a=="number"||typeof a=="bigint")&&ea(e,""+a);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[at]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):qn(e,l,a)}}}function Ie(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,u,c,l,null)}}n&&ze(e,t,"srcSet",l.srcSet,l,null),a&&ze(e,t,"src",l.src,l,null);return;case"input":pe("invalid",e);var f=u=c=n=null,d=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":n=D;break;case"type":c=D;break;case"checked":d=D;break;case"defaultChecked":S=D;break;case"value":u=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:ze(e,t,a,D,l,null)}}$s(e,u,f,d,S,c,n,!1);return;case"select":pe("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:ze(e,t,n,f,l,null)}t=u,l=c,e.multiple=!!a,t!=null?Pl(e,!!a,t,!1):l!=null&&Pl(e,!!a,l,!0);return;case"textarea":pe("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(f=l[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:ze(e,t,c,f,l,null)}Fs(e,a,n,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,d,a,l,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(a=0;a<pn.length;a++)pe(pn[a],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,S,a,l,null)}return;default:if(fi(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&Wc(e,t,D,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&ze(e,t,f,a,l,null))}function e0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,f=null,d=null,S=null,D=null;for(z in l){var q=l[z];if(l.hasOwnProperty(z)&&q!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":d=q;default:a.hasOwnProperty(z)||ze(e,t,z,null,a,q)}}for(var T in a){var z=a[T];if(q=l[T],a.hasOwnProperty(T)&&(z!=null||q!=null))switch(T){case"type":u=z;break;case"name":n=z;break;case"checked":S=z;break;case"defaultChecked":D=z;break;case"value":c=z;break;case"defaultValue":f=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:z!==q&&ze(e,t,T,z,a,q)}}si(e,c,f,d,S,D,u,n);return;case"select":z=c=f=T=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":z=d;default:a.hasOwnProperty(u)||ze(e,t,u,null,a,d)}for(n in a)if(u=a[n],d=l[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":T=u;break;case"defaultValue":f=u;break;case"multiple":c=u;default:u!==d&&ze(e,t,n,u,a,d)}t=f,l=c,a=z,T!=null?Pl(e,!!l,T,!1):!!a!=!!l&&(t!=null?Pl(e,!!l,t,!0):Pl(e,!!l,l?[]:"",!1));return;case"textarea":z=T=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:ze(e,t,f,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":T=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&ze(e,t,c,n,a,u)}Ws(e,T,z);return;case"option":for(var J in l)if(T=l[J],l.hasOwnProperty(J)&&T!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:ze(e,t,J,null,a,T)}for(d in a)if(T=a[d],z=l[d],a.hasOwnProperty(d)&&T!==z&&(T!=null||z!=null))switch(d){case"selected":e.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:ze(e,t,d,T,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ae in l)T=l[ae],l.hasOwnProperty(ae)&&T!=null&&!a.hasOwnProperty(ae)&&ze(e,t,ae,null,a,T);for(S in a)if(T=a[S],z=l[S],a.hasOwnProperty(S)&&T!==z&&(T!=null||z!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,t));break;default:ze(e,t,S,T,a,z)}return;default:if(fi(t)){for(var Ae in l)T=l[Ae],l.hasOwnProperty(Ae)&&T!==void 0&&!a.hasOwnProperty(Ae)&&Wc(e,t,Ae,void 0,a,T);for(D in a)T=a[D],z=l[D],!a.hasOwnProperty(D)||T===z||T===void 0&&z===void 0||Wc(e,t,D,T,a,z);return}}for(var b in l)T=l[b],l.hasOwnProperty(b)&&T!=null&&!a.hasOwnProperty(b)&&ze(e,t,b,null,a,T);for(q in a)T=a[q],z=l[q],!a.hasOwnProperty(q)||T===z||T==null&&z==null||ze(e,t,q,T,a,z)}function ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function t0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,f=n.duration;if(u&&f&&ld(c)){for(c=0,f=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],S=d.startTime;if(S>f)break;var D=d.transferSize,q=d.initiatorType;D&&ld(q)&&(d=d.responseEnd,c+=D*(d<f?1:(f-S)/(d-S)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Fc=null,Ic=null;function Uu(e){return e.nodeType===9?e:e.ownerDocument}function ad(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 nd(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 Pc(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 es=null;function l0(){var e=window.event;return e&&e.type==="popstate"?e===es?!1:(es=e,!0):(es=null,!1)}var ud=typeof setTimeout=="function"?setTimeout:void 0,a0=typeof clearTimeout=="function"?clearTimeout:void 0,id=typeof Promise=="function"?Promise:void 0,n0=typeof queueMicrotask=="function"?queueMicrotask:typeof id<"u"?function(e){return id.resolve(null).then(e).catch(u0)}:ud;function u0(e){setTimeout(function(){throw e})}function Nl(e){return e==="head"}function cd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Oa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")vn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,vn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,f=u.nodeName;u[Ha]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&vn(e.ownerDocument.body);l=n}while(l);Oa(t)}function sd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function ts(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ts(l),ii(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function i0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ha])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function c0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zt(e.nextSibling),e===null))return null;return e}function od(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function ls(e){return e.data==="$?"||e.data==="$~"}function as(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function s0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function zt(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 ns=null;function fd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function rd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function dd(e,t,l){switch(t=Uu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function vn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ii(e)}var At=new Map,md=new Set;function Ru(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ll=O.d;O.d={f:o0,r:f0,D:r0,C:d0,L:m0,m:h0,X:x0,S:g0,M:p0};function o0(){var e=ll.f(),t=Mu();return e||t}function f0(e){var t=Wl(e);t!==null&&t.tag===5&&t.type==="form"?Df(t):ll.r(e)}var za=typeof document>"u"?null:document;function hd(e,t,l){var a=za;if(a&&typeof t=="string"&&t){var n=St(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),md.has(n)||(md.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function r0(e){ll.D(e),hd("dns-prefetch",e,null)}function d0(e,t){ll.C(e,t),hd("preconnect",e,t)}function m0(e,t,l){ll.L(e,t,l);var a=za;if(a&&e&&t){var n='link[rel="preload"][as="'+St(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+St(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+St(l.imageSizes)+'"]')):n+='[href="'+St(e)+'"]';var u=n;switch(t){case"style":u=Aa(e);break;case"script":u=Da(e)}At.has(u)||(e=H({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),At.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(yn(u))||t==="script"&&a.querySelector(Sn(u))||(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function h0(e,t){ll.m(e,t);var l=za;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+St(a)+'"][href="'+St(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Da(e)}if(!At.has(u)&&(e=H({rel:"modulepreload",href:e},t),At.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Sn(u)))return}a=l.createElement("link"),Ie(a,"link",e),Ve(a),l.head.appendChild(a)}}}function g0(e,t,l){ll.S(e,t,l);var a=za;if(a&&e){var n=Fl(a).hoistableStyles,u=Aa(e);t=t||"default";var c=n.get(u);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(yn(u)))f.loading=5;else{e=H({rel:"stylesheet",href:e,"data-precedence":t},l),(l=At.get(u))&&us(e,l);var d=c=a.createElement("link");Ve(d),Ie(d,"link",e),d._p=new Promise(function(S,D){d.onload=S,d.onerror=D}),d.addEventListener("load",function(){f.loading|=1}),d.addEventListener("error",function(){f.loading|=2}),f.loading|=4,qu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(u,c)}}}function x0(e,t){ll.X(e,t);var l=za;if(l&&e){var a=Fl(l).hoistableScripts,n=Da(e),u=a.get(n);u||(u=l.querySelector(Sn(n)),u||(e=H({src:e,async:!0},t),(t=At.get(n))&&is(e,t),u=l.createElement("script"),Ve(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function p0(e,t){ll.M(e,t);var l=za;if(l&&e){var a=Fl(l).hoistableScripts,n=Da(e),u=a.get(n);u||(u=l.querySelector(Sn(n)),u||(e=H({src:e,async:!0,type:"module"},t),(t=At.get(n))&&is(e,t),u=l.createElement("script"),Ve(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function gd(e,t,l,a){var n=(n=ge.current)?Ru(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Aa(l.href),l=Fl(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Aa(l.href);var u=Fl(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(yn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),At.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},At.set(e,l),u||b0(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Da(l),l=Fl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Aa(e){return'href="'+St(e)+'"'}function yn(e){return'link[rel="stylesheet"]['+e+"]"}function xd(e){return H({},e,{"data-precedence":e.precedence,precedence:null})}function b0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ie(t,"link",l),Ve(t),e.head.appendChild(t))}function Da(e){return'[src="'+St(e)+'"]'}function Sn(e){return"script[async]"+e}function pd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+St(l.href)+'"]');if(a)return t.instance=a,Ve(a),a;var n=H({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ve(a),Ie(a,"style",n),qu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Aa(l.href);var u=e.querySelector(yn(n));if(u)return t.state.loading|=4,t.instance=u,Ve(u),u;a=xd(l),(n=At.get(n))&&us(a,n),u=(e.ownerDocument||e).createElement("link"),Ve(u);var c=u;return c._p=new Promise(function(f,d){c.onload=f,c.onerror=d}),Ie(u,"link",a),t.state.loading|=4,qu(u,l.precedence,e),t.instance=u;case"script":return u=Da(l.src),(n=e.querySelector(Sn(u)))?(t.instance=n,Ve(n),n):(a=l,(n=At.get(u))&&(a=H({},l),is(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ve(n),Ie(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,qu(a,l.precedence,e));return t.instance}function qu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function us(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hu=null;function bd(e,t,l){if(Hu===null){var a=new Map,n=Hu=new Map;n.set(l,a)}else n=Hu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ha]||u[Je]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(u):a.set(c,[u])}}return a}function vd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function v0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function yd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function y0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Aa(a.href),u=t.querySelector(yn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Bu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ve(u);return}u=t.ownerDocument||t,a=xd(a),(n=At.get(n))&&us(a,n),u=u.createElement("link"),Ve(u);var c=u;c._p=new Promise(function(f,d){c.onload=f,c.onerror=d}),Ie(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Bu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var cs=0;function S0(e,t){return e.stylesheets&&e.count===0&&Gu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&cs===0&&(cs=62500*t0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>cs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yu=null;function Gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yu=new Map,t.forEach(N0,e),Yu=null,Bu.call(e))}function N0(e,t){if(!(t.state.loading&4)){var l=Yu.get(e);if(l)var a=l.get(null);else{l=new Map,Yu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Bu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Nn={$$typeof:X,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function j0(e,t,l,a,n,u,c,f,d){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=li(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=li(0),this.hiddenUpdates=li(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Sd(e,t,l,a,n,u,c,f,d,S,D,q){return e=new j0(e,t,l,c,d,S,D,q,f),t=1,u===!0&&(t|=24),u=ht(3,null,null,t),e.current=u,u.stateNode=e,t=Xi(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Zi(u),e}function Nd(e){return e?(e=ca,e):ca}function jd(e,t,l,a,n,u){n=Nd(n),a.context===null?a.context=n:a.pendingContext=n,a=rl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=dl(e,a,t),l!==null&&(ot(l,e,t),Pa(l,e,t))}function Td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ss(e,t){Td(e,t),(e=e.alternate)&&Td(e,t)}function Md(e){if(e.tag===13||e.tag===31){var t=Rl(e,67108864);t!==null&&ot(t,e,67108864),ss(e,67108864)}}function _d(e){if(e.tag===13||e.tag===31){var t=vt();t=ai(t);var l=Rl(e,t);l!==null&&ot(l,e,t),ss(e,t)}}var Xu=!0;function T0(e,t,l,a){var n=M.T;M.T=null;var u=O.p;try{O.p=2,os(e,t,l,a)}finally{O.p=u,M.T=n}}function M0(e,t,l,a){var n=M.T;M.T=null;var u=O.p;try{O.p=8,os(e,t,l,a)}finally{O.p=u,M.T=n}}function os(e,t,l,a){if(Xu){var n=fs(a);if(n===null)$c(e,t,a,wu,l),zd(e,a);else if(E0(n,e,t,l,a))a.stopPropagation();else if(zd(e,a),t&4&&-1<_0.indexOf(e)){for(;n!==null;){var u=Wl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Al(u.pendingLanes);if(c!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var d=1<<31-dt(c);f.entanglements[1]|=d,c&=~d}Yt(u),(Te&6)===0&&(ju=ft()+500,xn(0))}}break;case 31:case 13:f=Rl(u,2),f!==null&&ot(f,u,2),Mu(),ss(u,2)}if(u=fs(a),u===null&&$c(e,t,a,wu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else $c(e,t,a,null,l)}}function fs(e){return e=di(e),rs(e)}var wu=null;function rs(e){if(wu=null,e=$l(e),e!==null){var t=N(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=_(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wu=e,null}function Ed(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(rm()){case Us:return 2;case Rs:return 8;case Dn:case dm:return 32;case qs:return 268435456;default:return 32}default:return 32}}var ds=!1,jl=null,Tl=null,Ml=null,jn=new Map,Tn=new Map,_l=[],_0="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 zd(e,t){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tn.delete(t.pointerId)}}function Mn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Wl(t),t!==null&&Md(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function E0(e,t,l,a,n){switch(t){case"focusin":return jl=Mn(jl,e,t,l,a,n),!0;case"dragenter":return Tl=Mn(Tl,e,t,l,a,n),!0;case"mouseover":return Ml=Mn(Ml,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return jn.set(u,Mn(jn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Tn.set(u,Mn(Tn.get(u)||null,e,t,l,a,n)),!0}return!1}function Ad(e){var t=$l(e.target);if(t!==null){var l=N(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,ws(e.priority,function(){_d(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,ws(e.priority,function(){_d(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=fs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ri=a,l.target.dispatchEvent(a),ri=null}else return t=Wl(l),t!==null&&Md(t),e.blockedOn=l,!1;t.shift()}return!0}function Dd(e,t,l){Lu(e)&&l.delete(t)}function z0(){ds=!1,jl!==null&&Lu(jl)&&(jl=null),Tl!==null&&Lu(Tl)&&(Tl=null),Ml!==null&&Lu(Ml)&&(Ml=null),jn.forEach(Dd),Tn.forEach(Dd)}function Qu(e,t){e.blockedOn===t&&(e.blockedOn=null,ds||(ds=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,z0)))}var Zu=null;function Od(e){Zu!==e&&(Zu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Zu===e&&(Zu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(rs(a||l)===null)continue;break}var u=Wl(l);u!==null&&(e.splice(t,3),t-=3,fc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Oa(e){function t(d){return Qu(d,e)}jl!==null&&Qu(jl,e),Tl!==null&&Qu(Tl,e),Ml!==null&&Qu(Ml,e),jn.forEach(t),Tn.forEach(t);for(var l=0;l<_l.length;l++){var a=_l[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_l.length&&(l=_l[0],l.blockedOn===null);)Ad(l),l.blockedOn===null&&_l.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[at]||null;if(typeof u=="function")c||Od(l);else if(c){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[at]||null)f=c.formAction;else if(rs(n)!==null)continue}else f=c.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Od(l)}}}function Cd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ms(e){this._internalRoot=e}Vu.prototype.render=ms.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=vt();jd(l,a,e,t,null,null)},Vu.prototype.unmount=ms.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jd(e.current,2,null,e,null,null),Mu(),t[Jl]=null}};function Vu(e){this._internalRoot=e}Vu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xs();e={blockedOn:null,target:e,priority:t};for(var l=0;l<_l.length&&t!==0&&t<_l[l].priority;l++);_l.splice(l,0,e),l===0&&Ad(e)}};var Ud=o.version;if(Ud!=="19.2.4")throw Error(r(527,Ud,"19.2.4"));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var A0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{Ua=Ku.inject(A0),rt=Ku}catch{}}return En.createRoot=function(e,t){if(!p(e))throw Error(r(299));var l=!1,a="",n=Xf,u=wf,c=Lf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Sd(e,1,!1,null,null,l,a,null,n,u,c,Cd),e[Jl]=t.current,Jc(e),new ms(t)},En.hydrateRoot=function(e,t,l){if(!p(e))throw Error(r(299));var a=!1,n="",u=Xf,c=wf,f=Lf,d=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),t=Sd(e,1,!0,t,l??null,a,n,d,u,c,f,Cd),t.context=Nd(null),l=t.current,a=vt(),a=ai(a),n=rl(a),n.callback=null,dl(l,n,a),l=a,t.current.lanes=l,qa(t,l),Yt(t),e[Jl]=t.current,Jc(e),new Vu(t)},En.version="19.2.4",En}var Qd;function w0(){if(Qd)return xs.exports;Qd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),xs.exports=X0(),xs.exports}var L0=w0();const kl="/dashboard";function Zd(){const s=window.location.pathname;return s===kl||s===kl+"/"?"/":s.startsWith(kl+"/")?s.slice(kl.length):s||"/"}function Vd(s){return s==="/"||s===""?kl+"/":kl+(s.startsWith("/")?s:"/"+s)}typeof document<"u"&&!window.__dashboardRouterInstalled&&(window.__dashboardRouterInstalled=!0,document.addEventListener("click",s=>{var r,p;if(s.defaultPrevented||s.button!==0||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return;const o=(p=(r=s.target)==null?void 0:r.closest)==null?void 0:p.call(r,"a");if(!o)return;const m=o.getAttribute("href");m&&(o.hasAttribute("target")||o.hasAttribute("download")||m.startsWith(kl)&&(s.preventDefault(),m!==window.location.pathname+window.location.search&&window.history.pushState({},"",m),window.dispatchEvent(new Event("dashboard:navigate"))))}),window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("dashboard:navigate"))}));function tm(){const[s,o]=k.useState(Zd());return k.useEffect(()=>{const m=()=>o(Zd());return window.addEventListener("popstate",m),window.addEventListener("dashboard:navigate",m),()=>{window.removeEventListener("popstate",m),window.removeEventListener("dashboard:navigate",m)}},[]),s}function Q0({onLogin:s,error:o}){const[m,r]=k.useState(""),p=N=>{N.preventDefault(),m.trim()&&s(m.trim())};return i.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:i.jsxs("div",{className:"w-full max-w-sm rounded-xl border border-border bg-card p-8 text-center shadow-2xl",children:[i.jsx("div",{className:"crt-logo mx-auto mb-4",style:{width:"fit-content"},children:i.jsx("img",{src:"/dashboard/assets/gossip-mini.png",alt:"gossipcat",className:"crt-logo-img h-56 w-56 object-contain drop-shadow-[0_0_28px_rgba(139,92,246,0.45)]"})}),i.jsx("p",{className:"mb-1 text-[30px] font-bold tracking-tight text-foreground",style:{fontFamily:"'Space Grotesk', system-ui, sans-serif",letterSpacing:"-0.02em",textShadow:"0 0 24px rgba(139,92,246,0.4)"},children:"Gossipcat"}),i.jsx("p",{className:"mb-6 text-sm text-muted-foreground",children:"Authenticate to access the dashboard"}),i.jsxs("form",{onSubmit:p,children:[i.jsx("input",{type:"password",value:m,onChange:N=>r(N.target.value),placeholder:"Dashboard key",autoFocus:!0,className:"w-full rounded-lg border border-border bg-background px-4 py-3 font-mono text-sm text-foreground outline-none placeholder:text-muted-foreground focus:border-primary focus:ring-2 focus:ring-primary/20"}),i.jsx("button",{type:"submit",className:"mt-4 w-full rounded-lg bg-primary px-4 py-3 text-sm font-semibold text-primary-foreground transition hover:opacity-90",children:"Unlock"})]}),o&&i.jsx("p",{className:"mt-3 text-sm text-destructive",children:"Invalid key. Check your terminal for the correct key."})]})})}let lt=null,ku=3e3,ys=null;const Es=new Set;function lm(){if((lt==null?void 0:lt.readyState)===WebSocket.OPEN||(lt==null?void 0:lt.readyState)===WebSocket.CONNECTING)return;const s=location.protocol==="https:"?"wss:":"ws:";lt=new WebSocket(`${s}//${location.host}/dashboard/ws`),lt.onopen=()=>{ku=3e3},lt.onmessage=o=>{try{const m=JSON.parse(o.data);Es.forEach(r=>r(m))}catch{}},lt.onclose=()=>{lt=null,ys&&clearTimeout(ys),ys=setTimeout(()=>{ku=Math.min(ku*1.5,3e4),lm()},ku)},lt.onerror=()=>{}}function am(s){return Es.add(s),()=>Es.delete(s)}function Z0(){return(lt==null?void 0:lt.readyState)??WebSocket.CLOSED}const V0=[{to:"/",label:"Dashboard",match:s=>s==="/"},{to:"/team",label:"Team",match:s=>s==="/team"||s.startsWith("/agent/")},{to:"/debates",label:"Debates",match:s=>s==="/debates"},{to:"/tasks",label:"Tasks",match:s=>s==="/tasks"},{to:"/logs",label:"Logs",match:s=>s==="/logs"}];function Kd(){const[s,o]=k.useState(!1),m=tm();return k.useEffect(()=>{const r=setInterval(()=>{o(Z0()===WebSocket.OPEN)},2e3);return()=>clearInterval(r)},[]),i.jsxs("nav",{className:"relative flex items-center justify-between border-b border-border px-6 py-3.5",children:[i.jsxs("div",{className:"flex items-center gap-6",children:[i.jsxs("a",{href:Vd("/"),className:"flex items-center gap-3 leading-none",children:[i.jsx("img",{src:"/dashboard/assets/gossip-mini.png",alt:"",className:"h-10 w-10 object-contain"}),i.jsx("span",{className:"text-[17px] font-bold text-primary",children:"gossipcat"})]}),i.jsx("div",{className:"flex gap-1",children:V0.map(r=>{const p=r.match(m);return i.jsx("a",{href:Vd(r.to),className:`rounded-md px-3.5 py-1.5 font-mono text-[13px] transition ${p?"bg-primary/10 font-semibold text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`,children:r.label},r.to)})})]}),i.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-card px-3.5 py-1.5 font-mono text-xs text-muted-foreground",children:[i.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${s?"bg-confirmed shadow-[0_0_6px_rgba(52,211,153,0.5)]":"bg-destructive"}`}),s?"Connected":"Disconnected"]})]})}function K0(s){let o=s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");o=o.replace(/```(\w*)\n?([\s\S]*?)```/g,(N,v,_)=>`<pre class="md-code-block"><code>${_.trimEnd()}</code></pre>`),o=o.replace(/`([^`\n]+)`/g,'<code class="md-inline-code">$1</code>'),o=o.replace(/\*\*([^*\n]+)\*\*/g,"<strong>$1</strong>"),o=o.replace(/(^|[^*])\*([^*\n]+)\*(?!\*)/g,"$1<em>$2</em>");const m=o.split(`
|
|
50
|
-
`),r=[];let p=!1;for(let N=0;N<m.length;N++){const v=m[N],_=v.match(/^###\s+(.+)$/),j=v.match(/^##\s+(.+)$/),h=v.match(/^#\s+(.+)$/);if(_){p&&(r.push("</ul>"),p=!1),r.push(`<h3 class="md-h3">${_[1]}</h3>`);continue}if(j){p&&(r.push("</ul>"),p=!1),r.push(`<h2 class="md-h2">${j[1]}</h2>`);continue}if(h){p&&(r.push("</ul>"),p=!1),r.push(`<h1 class="md-h1">${h[1]}</h1>`);continue}const C=v.match(/^(\s*)[*-]\s+(.+)$/);if(C){p||(r.push('<ul class="md-list">'),p=!0),r.push(`<li>${C[2]}</li>`);continue}if(v.trim()===""){p&&(r.push("</ul>"),p=!1),r.push("");continue}p&&(r.push("</ul>"),p=!1),r.push(v)}return p&&r.push("</ul>"),r.join(`
|
|
51
|
-
`)}function $u(s){let o=s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");return o=o.replace(/^\[(FINDING|SUGGESTION|INSIGHT)\]\s*/i,""),o=o.replace(/<agent_finding[^&]*>/g,""),o=o.replace(/<\/agent_finding>/g,""),o=o.replace(/<cite\s+tag="file">([^&]+)<\/cite>/g,'<code class="cite-file">$1</code>'),o=o.replace(/<cite\s+tag="fn">([^&]+)<\/cite>/g,'<code class="cite-fn">$1</code>'),o=o.replace(/<fn>([^&]+)<\/fn>/g,'<code class="cite-fn">$1</code>'),o=o.replace(/```(\w*)\n?([\s\S]*?)```/g,'<pre class="inline-code-block"><code>$2</code></pre>'),o=o.replace(/`([^`]+)`/g,'<code class="inline-code">$1</code>'),o=o.replace(/\*\*([^*\n]+)\*\*/g,'<strong class="font-semibold text-foreground">$1</strong>'),o=o.replace(/(^|[^*])\*([^*\n]+)\*(?!\*)/g,"$1<em>$2</em>"),o}function Dt(s){const o=Date.now(),m=typeof s=="string"?new Date(s).getTime():s,r=Math.max(0,Math.floor((o-m)/1e3));return r<60?"just now":r<3600?Math.floor(r/60)+"m ago":r<86400?Math.floor(r/3600)+"h ago":Math.floor(r/86400)+"d ago"}function nm(s){if(!s)return"—";const o=Math.round(s/1e3);return o<60?o+"s":Math.floor(o/60)+"m "+o%60+"s"}function k0(s){const o=s.split("-");return o.length>=2?(o[0][0]+o[1][0]).toUpperCase():s.slice(0,2).toUpperCase()}const kd=["#8b5cf6","#06b6d4","#f97316","#34d399","#f43f5e","#fbbf24","#60a5fa","#e879f9"];function um(s){let o=0;for(let m=0;m<s.length;m++)o=o*31+s.charCodeAt(m)>>>0;return kd[o%kd.length]}function J0(s){return s<1e3?`${s}ms`:s<6e4?`${(s/1e3).toFixed(1)}s`:`${(s/6e4).toFixed(1)}m`}function Ju({value:s,unit:o,label:m,valueClass:r,pulse:p}){return i.jsxs("div",{className:"flex flex-col items-center py-4 px-3 text-center",children:[i.jsxs("div",{className:"flex items-baseline gap-1",children:[p&&i.jsxs("span",{className:"relative mr-1 inline-flex h-2 w-2",children:[i.jsx("span",{className:"absolute inline-flex h-2 w-2 animate-ping rounded-full bg-unverified/60"}),i.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-unverified"})]}),i.jsx("span",{className:`font-mono text-2xl font-bold leading-none ${r}`,children:s}),o&&i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:o})]}),i.jsx("div",{className:"mt-1.5 text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:m})]})}function $0({overview:s,activeTasks:o}){const m=s.relayCount+s.nativeCount,r=s.tasksCompleted+s.tasksFailed>0?Math.round(s.tasksCompleted/(s.tasksCompleted+s.tasksFailed)*100):100,p=s.totalFindings>0?Math.round(s.confirmedFindings/s.totalFindings*100):0;return i.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-border bg-primary/[0.03] px-3.5 py-3",children:[i.jsx("div",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-primary",children:"System Pulse"}),i.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-[10px] text-confirmed",children:[i.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-confirmed shadow-[0_0_6px_rgba(52,211,153,0.5)]"}),"LIVE"]})]}),i.jsxs("div",{className:"relative grid grid-cols-2 border-b border-border",children:[i.jsx("span",{className:"pointer-events-none absolute left-0 right-0 top-1/2 h-px bg-border"}),i.jsx("span",{className:"pointer-events-none absolute bottom-0 left-1/2 top-0 w-px bg-border"}),i.jsx(Ju,{value:s.agentsOnline,unit:`/${m}`,label:"Agents Online",valueClass:"text-confirmed"}),i.jsx(Ju,{value:o,label:"Active Tasks",valueClass:o>0?"text-unverified":"text-muted-foreground",pulse:o>0}),i.jsx(Ju,{value:s.consensusRuns,label:"Consensus",valueClass:"text-foreground"}),i.jsx(Ju,{value:`${p}%`,label:"Confirmed",valueClass:"text-confirmed"})]}),i.jsxs("div",{className:"px-3.5 py-3",children:[i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"tasks completed"}),i.jsx("span",{className:"font-semibold text-foreground tabular-nums",children:s.tasksCompleted})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"signals total"}),i.jsx("span",{className:"font-semibold text-foreground tabular-nums",children:s.totalSignals})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"actionable"}),i.jsx("span",{className:"font-semibold text-unverified tabular-nums",children:s.actionableFindings})]}),s.tasksFailed>0&&i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"tasks failed"}),i.jsx("span",{className:"font-semibold text-destructive tabular-nums",children:s.tasksFailed})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"avg duration"}),i.jsx("span",{className:"font-semibold text-foreground tabular-nums",children:J0(s.avgDurationMs)})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"success rate"}),i.jsxs("span",{className:`font-semibold tabular-nums ${r>=95?"text-confirmed":r>=80?"text-unverified":"text-destructive"}`,children:[r,"%"]})]})]}),i.jsx(W0,{hourly:s.hourlyActivity||[]}),s.lastConsensusTimestamp&&i.jsxs("div",{className:"border-t border-border px-3.5 py-2 font-mono text-[10px] text-muted-foreground/60",children:["last consensus ",Dt(s.lastConsensusTimestamp)]})]})}function W0({hourly:s}){const o=s.length===12?s:new Array(12).fill(0),m=Math.max(1,...o);return i.jsxs("div",{className:"border-t border-border bg-primary/[0.02] px-3.5 py-3",children:[i.jsx("div",{className:"mb-2 font-mono text-[9px] font-bold uppercase tracking-widest text-muted-foreground/60",children:"Activity Last 12h"}),i.jsx("div",{className:"flex h-6 items-end gap-0.5",children:o.map((r,p)=>{const N=11-p,v=r/m*100,_=p===11,j=N===0?"last hour":`${N}h ago`;return i.jsx("div",{className:`relative flex-1 cursor-pointer rounded-sm transition-opacity hover:opacity-100 ${_?"bg-chart opacity-90":"bg-chart opacity-40"}`,style:{height:`${Math.max(8,v)}%`},"data-tooltip":`${j}
|
|
52
|
-
${r} task${r===1?"":"s"}`,"data-tooltip-pos":"bottom"},p)})}),i.jsxs("div",{className:"mt-1 flex justify-between font-mono text-[9px] text-muted-foreground/40",children:[i.jsx("span",{children:"12h ago"}),i.jsx("span",{children:"now"})]})]})}function F0({agents:s}){const o=s.filter(m=>m.scores.circuitOpen);return o.length===0?null:i.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-border bg-destructive/[0.04] px-3.5 py-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"inline-flex h-4 w-4 items-center justify-center rounded-sm bg-destructive/15 font-mono text-[11px] font-bold text-destructive",children:"!"}),i.jsx("span",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-destructive",children:"Benched Agents"})]}),i.jsx("span",{className:"rounded-full border border-destructive/20 bg-destructive/10 px-2 py-0.5 font-mono text-xs font-bold text-destructive",children:o.length})]}),i.jsx("div",{children:o.map((m,r)=>{var N;const p=(N=m.lastTask)!=null&&N.timestamp?Dt(m.lastTask.timestamp):"";return i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(m.id)}`,className:`block px-3.5 py-3 transition hover:bg-destructive/[0.03] ${r>0?"border-t border-border/40":""}`,children:[i.jsxs("div",{className:"mb-1 flex items-center gap-2.5",children:[i.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-destructive shadow-[0_0_6px_rgba(248,113,113,0.6)]"}),i.jsx("span",{className:"text-sm font-semibold text-foreground",children:m.id})]}),i.jsxs("div",{className:"flex items-center justify-between pl-4 font-mono text-[10px] text-muted-foreground",children:[i.jsxs("span",{children:[m.scores.consecutiveFailures," consecutive fails"]}),p&&i.jsx("span",{className:"text-muted-foreground/50",children:p})]})]},m.id)})})]})}const As="/dashboard/api";async function Rt(s,o){const m=await fetch(`${As}/${s}`,{credentials:"include",...o});if(m.status===401)throw new Error("unauthorized");if(!m.ok)throw new Error(`API error: ${m.status}`);return m.json()}async function I0(s){return(await fetch(`${As}/auth`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:s})})).ok}async function P0(){try{return(await fetch(`${As}/overview`,{credentials:"include"})).ok}catch{return!1}}const eg=7200*1e3;function tg(s){const o=Date.now()-new Date(s).getTime();return o<0?"0s":o<6e4?`${Math.floor(o/1e3)}s`:o<36e5?`${Math.floor(o/6e4)}m ${Math.floor(o%6e4/1e3)}s`:`${Math.floor(o/36e5)}h ${Math.floor(o%36e5/6e4)}m`}function lg({onCountChange:s}){const[o,m]=k.useState([]),[,r]=k.useState(0);k.useEffect(()=>{let _=!1;const j=async()=>{var C;try{const H=await Rt("active-tasks");_||(m(H.tasks||[]),s==null||s(((C=H.tasks)==null?void 0:C.length)||0))}catch{}};j();const h=setInterval(j,5e3);return()=>{_=!0,clearInterval(h)}},[s]),k.useEffect(()=>{if(o.length===0)return;const _=setInterval(()=>r(j=>j+1),1e3);return()=>clearInterval(_)},[o.length]);const p=Date.now(),N=o.filter(_=>p-new Date(_.startedAt).getTime()<eg),v=o.length-N.length;return N.length===0?null:i.jsxs("div",{className:"rounded-lg border border-border bg-card/60 px-4 py-2.5",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-confirmed shadow-[0_0_6px_rgba(52,211,153,0.5)]"}),i.jsx("span",{className:"font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:"Live"}),i.jsxs("span",{className:"font-mono text-[11px] text-muted-foreground",children:[N.length," active"]}),v>0&&i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:["· ",v," stale"]})]}),i.jsx("div",{className:"max-h-40 space-y-1 overflow-y-auto",children:N.map(_=>i.jsxs("div",{className:"grid items-center gap-3",style:{gridTemplateColumns:"minmax(120px, auto) 1fr auto"},children:[i.jsx("span",{className:"font-mono text-[11px] font-semibold text-foreground truncate",children:_.agentId}),i.jsx("span",{className:"min-w-0 truncate text-[11px] text-muted-foreground",children:_.task}),i.jsx("span",{className:"font-mono text-[11px] text-muted-foreground whitespace-nowrap tabular-nums",children:tg(_.startedAt)})]},_.taskId))})]})}function zn({title:s,hint:o,compact:m=!1}){return i.jsxs("div",{className:`text-center ${m?"py-3":"py-6"}`,children:[i.jsx("div",{className:"font-mono text-xs text-muted-foreground",children:s}),o&&i.jsx("div",{className:"mt-1 font-mono text-[10px] text-muted-foreground/60",children:o})]})}const Ss=5,Ns={agreement:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},consensus_verified:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},disagreement:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},hallucination_caught:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},unverified:{label:"UNVERIFIED",filter:"unverified",cls:"text-unverified bg-unverified/10"},unique_confirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},unique_unconfirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},new_finding:{label:"NEW",filter:"unique",cls:"text-unique bg-unique/10"}},Jd=[{key:"all",label:"All",cls:"text-muted-foreground border-border/40 hover:border-border/60",activeCls:"text-foreground bg-muted border-border"},{key:"confirmed",label:"Confirmed",cls:"text-confirmed/50 border-confirmed/20 hover:border-confirmed/40",activeCls:"text-confirmed bg-confirmed/10 border-confirmed/40"},{key:"unique",label:"Unique",cls:"text-unique/50 border-unique/20 hover:border-unique/40",activeCls:"text-unique bg-unique/10 border-unique/40"},{key:"disputed",label:"Disputed",cls:"text-disputed/50 border-disputed/20 hover:border-disputed/40",activeCls:"text-disputed bg-disputed/10 border-disputed/40"},{key:"unverified",label:"Unverified",cls:"text-unverified/50 border-unverified/20 hover:border-unverified/40",activeCls:"text-unverified bg-unverified/10 border-unverified/40"},{key:"insight",label:"Insight",cls:"text-zinc-500 border-zinc-500/20 hover:border-zinc-500/40",activeCls:"text-zinc-400 bg-zinc-500/10 border-zinc-500/40"}],ag={critical:"text-red-400 bg-red-500/10",high:"text-orange-400 bg-orange-500/10",medium:"text-yellow-400 bg-yellow-500/10",low:"text-muted-foreground bg-muted/50"},ng="[&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:font-mono [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:font-mono [&_.cite-fn]:text-purple-400 [&_.inline-code]:rounded [&_.inline-code]:bg-muted [&_.inline-code]:px-1 [&_.inline-code]:py-0.5 [&_.inline-code]:font-mono [&_.inline-code]:text-[11px] [&_.inline-code]:text-foreground/80 [&_.inline-code-block]:my-1.5 [&_.inline-code-block]:block [&_.inline-code-block]:rounded [&_.inline-code-block]:bg-muted/70 [&_.inline-code-block]:p-2 [&_.inline-code-block]:font-mono [&_.inline-code-block]:text-[11px] [&_.inline-code-block]:text-foreground/70 [&_.inline-code-block]:overflow-x-auto";function ug({f:s}){const o=s.tag==="confirmed"?"text-confirmed bg-confirmed/10 border-confirmed/20":s.tag==="disputed"?"text-disputed bg-disputed/10 border-disputed/20":s.tag==="unverified"?"text-unverified bg-unverified/10 border-unverified/20":"text-unique bg-unique/10 border-unique/20",m=s.severity&&ag[s.severity]||"",r=s.findingType==="suggestion"?"💡 SUGGESTION":s.findingType==="insight"?"INSIGHT":null,p=s.findingType==="suggestion"?"text-blue-400 bg-blue-500/10":s.findingType==="insight"?"text-zinc-400 bg-zinc-500/10":"",N=s.finding.match(/<cite\s+tag="file">([^<]+)<\/cite>/),v=N?N[1]:null;return i.jsxs("div",{className:"rounded-md border border-border/30 bg-card/30 px-3 py-2.5",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[i.jsx("span",{className:`shrink-0 rounded border px-1.5 py-0.5 font-mono text-[9px] font-bold ${o}`,children:s.tag.toUpperCase()}),s.severity&&i.jsx("span",{className:`shrink-0 rounded px-1.5 py-0.5 font-mono text-[9px] font-bold ${m}`,children:s.severity.toUpperCase()}),r&&i.jsx("span",{className:`shrink-0 rounded px-1.5 py-0.5 font-mono text-[9px] font-bold ${p}`,children:r}),v&&i.jsx("span",{className:"rounded bg-blue-500/10 px-1.5 py-0.5 font-mono text-[9px] text-blue-400",children:v}),i.jsx("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground/40",children:s.originalAgentId}),s.confirmedBy&&s.confirmedBy.length>0&&(()=>{const _=[...new Set(s.confirmedBy)];return i.jsxs("span",{className:"cursor-help rounded px-1 py-0.5 font-mono text-[10px] text-confirmed/50 transition hover:bg-confirmed/10","data-tooltip":`Verified by:
|
|
53
|
-
${_.join(", ")}`,"data-tooltip-pos":"left",children:["+",_.length," ✓"]})})(),s.disputedBy&&s.disputedBy.length>0&&i.jsxs("span",{className:"cursor-help rounded px-1 py-0.5 font-mono text-[10px] text-disputed/50 transition hover:bg-disputed/10","data-tooltip":`Disputed by:
|
|
54
|
-
${s.disputedBy.map(_=>_.agentId).join(", ")}`,"data-tooltip-pos":"left",children:[s.disputedBy.length," ⚡"]})]}),s.disputedBy&&s.disputedBy.length>0&&i.jsx("div",{className:"mt-1.5 mb-1 rounded border border-disputed/10 bg-disputed/5 px-2.5 py-1.5",children:s.disputedBy.map((_,j)=>i.jsxs("div",{className:"text-[11px]",children:[i.jsx("span",{className:"font-mono font-bold text-disputed/70",children:_.agentId}),i.jsxs("span",{className:"text-muted-foreground/60",children:[" — ",_.reason||_.evidence||"No reason given"]})]},j))}),i.jsx("div",{className:`text-xs leading-relaxed text-muted-foreground ${ng}`,dangerouslySetInnerHTML:{__html:$u(s.finding)}})]})}function im({consensus:s,reports:o,showAll:m=!1,hideHeader:r=!1}){const p=m?s.runs:s.runs.slice(0,Ss);!m&&s.runs.length>Ss;const[N,v]=k.useState(null),[_,j]=k.useState("all"),[h,C]=k.useState(1),[H,L]=k.useState([]),[ne,fe]=k.useState(0),[he,Q]=k.useState(!1);k.useEffect(()=>{o!=null&&o.reports&&(L(o.reports),fe(o.totalReports??o.reports.length),C(1))},[o]),k.useEffect(()=>{if(!m)return;let Y=!1;return(async()=>{var ee;try{const ie=await Rt("consensus-reports?page=1&pageSize=200");if(Y)return;L(ie.reports||[]),fe(ie.totalReports??(((ee=ie.reports)==null?void 0:ee.length)||0)),C(1)}catch{}})(),()=>{Y=!0}},[m]);const K=H.slice().sort((Y,ee)=>ee.timestamp.localeCompare(Y.timestamp)),re=10,[X,ue]=k.useState(0),A=Math.max(1,Math.ceil(K.length/re)),le=Math.min(X,A-1),B=m?K.slice(le*re,(le+1)*re):K.slice(0,Ss),W=Y=>{const ee=new Date,ie=new Date(Y),w=F=>new Date(F.getFullYear(),F.getMonth(),F.getDate()).getTime(),R=Math.round((w(ee)-w(ie))/864e5);return R<=0?"Today":R===1?"Yesterday":R<7?`${R} days ago`:R<30?`${Math.floor(R/7)} weeks ago`:ie.toISOString().slice(0,10)};return i.jsxs("section",{children:[!r&&i.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["Consensus Rounds ",i.jsx("span",{className:"text-foreground",children:s.totalRuns??s.runs.length})]}),!m&&i.jsx("a",{href:"/dashboard/debates",className:"font-mono text-xs text-muted-foreground transition hover:text-primary",children:"view all"})]}),B.length>0?i.jsxs("div",{className:"space-y-2",children:[B.map((Y,ee)=>{const ie=ee>0?B[ee-1]:null,w=m?W(Y.timestamp):null,R=m&&ie?W(ie.timestamp):null,F=m&&w!==R,I=[...Y.confirmed,...Y.disputed,...Y.unverified,...Y.unique,...Y.insights||[]],M=_==="all"?I:_==="insight"?I.filter($=>$.findingType==="insight"||$.findingType==="suggestion"):I.filter($=>$.tag===_),O=N===Y.id,Z=I.length||1,ce=Y.confirmed.length,be=Y.disputed.length,g=Y.unverified.length,E=Y.unique.length,G=(Y.insights||[]).length,V=(()=>{if(Z<=1)return"border-l-border/40";const $=ce/Z,Qe=be/Z;return $>=.5?"border-l-confirmed/60":Qe>=.4?"border-l-disputed/60":"border-l-unverified/50"})(),se=[{count:ce,textCls:"text-confirmed",label:"confirmed"},{count:be,textCls:"text-disputed",label:"disputed"},{count:g,textCls:"text-unverified",label:"unverified"},{count:E,textCls:"text-unique",label:"unique"},{count:G,textCls:"text-zinc-400",label:"insights"}].filter($=>$.count>0),ge=[...new Set(I.map($=>$.originalAgentId).filter(Boolean))].slice(0,5);return i.jsxs("div",{children:[F&&i.jsxs("div",{className:`mb-2 flex items-center gap-3 ${ee>0?"mt-4":""}`,children:[i.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:w}),i.jsx("div",{className:"h-px flex-1 bg-border/30"})]}),i.jsxs("div",{className:`group rounded-md border-l-2 border border-border/40 transition-all duration-150
|
|
55
|
-
${V}
|
|
56
|
-
${O?"bg-card border-r-border/60 border-t-border/60 border-b-border/60":"bg-card/50 hover:bg-card/70 hover:border-r-border/60 hover:border-t-border/60 hover:border-b-border/60 hover:shadow-sm hover:shadow-black/20 hover:-translate-y-px"}`,children:[i.jsxs("button",{className:"flex w-full items-start gap-3 px-3 py-2.5 text-left",onClick:()=>v(O?null:Y.id),children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-sm font-bold text-foreground",children:I.length}),i.jsx("span",{className:"text-[11px] text-muted-foreground/70",children:"findings"}),i.jsx("span",{className:"text-muted-foreground/30 text-[10px]",children:"·"}),i.jsxs("span",{className:"text-[11px] text-muted-foreground/60",children:[Y.rounds,"r"]}),ge.length>0&&i.jsxs("div",{className:"flex items-center gap-1 ml-1",children:[ge.map($=>i.jsx("span",{title:$,className:"inline-flex h-4 w-4 items-center justify-center rounded-full font-mono text-[8px] font-bold text-background",style:{backgroundColor:um($)},children:k0($)},$)),I.length>0&&[...new Set(I.map($=>$.originalAgentId).filter(Boolean))].length>5&&i.jsxs("span",{className:"font-mono text-[9px] text-muted-foreground/40",children:["+",[...new Set(I.map($=>$.originalAgentId).filter(Boolean))].length-5]})]}),i.jsx("span",{className:"shrink-0 rounded border border-border/30 bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] font-semibold text-muted-foreground",title:Y.id,children:Y.id.slice(0,8)}),i.jsx("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground/50 shrink-0",children:Dt(Y.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex items-center gap-3",children:se.map($=>i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${$.textCls}`,children:[$.count," ",$.label]},$.label))})]}),i.jsx("span",{className:`mt-1 shrink-0 font-mono text-[10px] text-muted-foreground/40 transition-transform duration-150 ${O?"rotate-90 text-primary/60":"group-hover:text-muted-foreground/60"}`,children:"▸"})]}),O&&i.jsxs("div",{className:"border-t border-border/20 px-4 pb-4 pt-3",children:[i.jsx("div",{className:"mb-2 flex gap-2",children:Jd.map($=>i.jsx("button",{onClick:()=>j($.key),className:`rounded-full border px-2.5 py-1 font-mono text-[10px] font-medium transition ${_===$.key?$.activeCls:$.cls}`,children:$.label},$.key))}),i.jsx("div",{className:"space-y-2",children:M.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):M.map(($,Qe)=>i.jsx(ug,{f:$},Qe))})]})]})]},Y.id)}),m&&A>1&&i.jsxs("div",{className:"flex items-center justify-center gap-3 pt-4 font-mono text-[11px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>ue(Y=>Math.max(0,Y-1)),disabled:le===0,className:"rounded-sm border border-border/40 bg-card px-3 py-1 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Prev"}),i.jsxs("span",{children:["Page ",le+1," of ",A]}),i.jsx("button",{onClick:()=>ue(Y=>Math.min(A-1,Y+1)),disabled:le>=A-1,className:"rounded-sm border border-border/40 bg-card px-3 py-1 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}):p.length===0?i.jsx(zn,{title:"No consensus runs yet",hint:"Dispatch a consensus round with gossip_dispatch to populate this view."}):i.jsx("div",{className:"space-y-2",children:p.map((Y,ee)=>{const ie=Y.counts,w=(ie.agreement||0)+(ie.disagreement||0)+(ie.hallucination||0)+(ie.unverified||0)+(ie.unique||0)+(ie.new||0),R=w||1,F=N===Y.taskId,I=[{key:"confirmed",count:ie.agreement||0,color:"bg-confirmed",text:"text-confirmed",label:"confirmed"},{key:"disputed",count:(ie.disagreement||0)+(ie.hallucination||0),color:"bg-disputed",text:"text-disputed",label:"disputed"},{key:"unverified",count:ie.unverified||0,color:"bg-unverified",text:"text-unverified",label:"unverified"},{key:"unique",count:(ie.unique||0)+(ie.new||0),color:"bg-unique",text:"text-unique",label:"unique"}],M=Y.signals.filter(O=>{if(O.signal==="signal_retracted")return!1;if(_==="all")return!!Ns[O.signal];const Z=Ns[O.signal];return Z&&Z.filter===_});return i.jsxs("div",{className:`rounded-md border bg-card transition ${F?"border-primary/25":"border-border"}`,children:[i.jsxs("button",{onClick:()=>v(F?null:Y.taskId),className:"flex w-full items-center p-3 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`mr-3 font-mono text-xs text-muted-foreground transition ${F?"text-primary":""}`,children:F?"▾":"▸"}),i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"font-mono text-[10px] text-primary/50",children:Y.taskId}),i.jsxs("span",{className:"font-mono text-sm font-semibold text-foreground",children:[w," findings"]}),i.jsxs("div",{className:"flex gap-1.5",children:[Y.agents.slice(0,4).map(O=>i.jsx("span",{className:"rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:O.split("-").map(Z=>Z[0]).join("").toUpperCase().slice(0,2)},O)),Y.agents.length>4&&i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground",children:["+",Y.agents.length-4]})]})]}),i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Dt(Y.timestamp)})]}),i.jsx("div",{className:"mt-2 flex gap-2",children:I.map(O=>O.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${O.text}`,children:[O.count," ",O.label]},O.key))}),i.jsx("div",{className:"mt-2 flex h-1.5 overflow-hidden rounded-sm",children:I.map(O=>O.count>0&&i.jsx("div",{className:`${O.color} transition-all`,style:{width:`${O.count/R*100}%`}},O.key))})]})]}),F&&i.jsxs("div",{className:"border-t border-border px-4 pb-3 pt-3",children:[i.jsx("div",{className:"mb-3 flex gap-1.5",children:Jd.map(O=>i.jsx("button",{onClick:()=>j(O.key),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${_===O.key?O.activeCls:O.cls} hover:opacity-80`,children:O.label},O.key))}),M.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):i.jsx("div",{className:"space-y-2",children:M.map((O,Z)=>{const ce=Ns[O.signal];return ce?i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx("span",{className:`shrink-0 rounded-sm px-1.5 py-0.5 font-mono text-[9px] font-bold ${ce.cls}`,children:ce.label}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground [&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:font-mono [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:font-mono [&_.cite-fn]:text-purple-400",children:i.jsx("span",{dangerouslySetInnerHTML:{__html:$u(O.evidence||"")}})}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[O.agentId,O.counterpartId?` + ${O.counterpartId}`:""]})]})]},Z):null})})]})]},Y.taskId+ee)})})]})}function ig(s){let o=0;for(let m=0;m<s.length;m++)o=(o<<5)-o+s.charCodeAt(m)|0;return Math.abs(o)}class cg{constructor(o){ke(this,"s");this.s=o}next(){return this.s=this.s*1103515245+12345&2147483647,this.s%1e4/1e4}range(o,m){return o+this.next()*(m-o)}}function tt(s,o){const m=parseInt(s.slice(1,3),16),r=parseInt(s.slice(3,5),16),p=parseInt(s.slice(5,7),16);return`rgba(${m},${r},${p},${Math.max(0,Math.min(1,o))})`}function sg(s){const o=Math.max(0,s);return Math.min(1.4,Math.pow(o/2e3,.55))}class og{constructor(o,m,r,p,N,v,_=.5){ke(this,"ctx");ke(this,"size");ke(this,"accuracy");ke(this,"uniqueness");ke(this,"impact");ke(this,"colorHex");ke(this,"time",0);ke(this,"variant");ke(this,"scale");ke(this,"exp");ke(this,"particles",[]);ke(this,"baseRotation");ke(this,"armSeeds");ke(this,"binaryCenters");ke(this,"jetAxis");ke(this,"tailAngle");const j=o.getContext("2d");if(!j)throw new Error("Canvas 2D context unavailable");this.ctx=j,this.size=o.width/2,this.accuracy=Math.max(0,Math.min(1,p)),this.uniqueness=Math.max(0,Math.min(1,N)),this.impact=Math.max(0,Math.min(1,_)),this.colorHex=v;const h=ig(m);this.variant=h%12;const C=new cg(h),H=sg(r);this.exp=H,this.scale=.2+H*.95;const L=Math.max(3,Math.round(4+H*180));this._buildVariant(C,L),this.baseRotation=C.next()*Math.PI*2}_buildVariant(o,m){const r=this.variant;if(r===0){this.armSeeds=[];for(let N=0;N<2;N++)this.armSeeds.push(o.next()*Math.PI*2);for(let N=0;N<m;N++){const v=N%2,_=o.next(),j=this.armSeeds[v]+_*Math.PI*2.4,h=o.range(-.04,.04)*Math.PI*2,C=j+h,H=(.08+_*.38)*this.size*this.scale;this.particles.push(this._mkParticle(o,H,C,1,1))}}else if(r===1)for(let p=0;p<m;p++){const N=o.range(.34,.42)*this.size*this.scale,v=o.next()*Math.PI*2;this.particles.push(this._mkParticle(o,N,v,1,1))}else if(r===2){const p=[.16,.28,.42];for(let N=0;N<m;N++){const v=N%3,_=(p[v]+o.range(-.015,.015))*this.size*this.scale,j=o.next()*Math.PI*2;this.particles.push(this._mkParticle(o,_,j,1,1))}}else if(r===3){const p=.18*this.size*this.scale;this.binaryCenters=[{x:-p,y:0},{x:p,y:0}];for(let N=0;N<m;N++){const v=N%2,_=o.range(.04,.22)*this.size*this.scale,j=o.next()*Math.PI*2,h=this._mkParticle(o,_,j,1,1);h.binaryCore=v,h.angularVelocity*=v===0?1:-1,this.particles.push(h)}}else if(r===4)for(let p=0;p<m;p++){const N=o.range(.05,.32)*this.size*this.scale,v=o.next()*Math.PI*2,_=o.range(.7,1.3),j=o.range(.7,1.3),h=this._mkParticle(o,N,v,_,j);h.orbitTilt=o.range(0,Math.PI),this.particles.push(h)}else if(r===5){this.jetAxis=o.next()*Math.PI*2;const p=Math.floor(m*.7),N=m-p;for(let v=0;v<p;v++){const _=v%2===0?1:-1,j=o.next(),h=o.range(-.18,.18),C=this._mkParticle(o,j*.44*this.size*this.scale,0,1,1);C.jetSide=_,C.jetProgress=j,C.jetSpread=h,C.jetSpeed=o.range(.15,.35)*.001,C.size=o.range(.6,1.4),this.particles.push(C)}for(let v=0;v<N;v++){const _=o.range(.35,.42)*this.size*this.scale,j=o.next()*Math.PI*2,h=this._mkParticle(o,_,j,1,1);h.isDisk=!0,h.brightness*=.35,this.particles.push(h)}}else if(r===6)for(let p=0;p<m;p++){const N=o.next()*Math.PI*2,v=o.range(.05,.45)*this.size*this.scale,_=this._mkParticle(o,v,N,1,1);_.isNebula=!0,_.driftAngle=o.next()*Math.PI*2,_.driftSpeed=o.range(6e-4,.0014),_.driftPhase=o.next()*Math.PI*2,_.size=o.range(.8,2.2),_.brightness*=.6,this.particles.push(_)}else if(r===7){this.tailAngle=o.next()*Math.PI*2;const p=.1*this.size*this.scale,N=Math.floor(m*.3);for(let _=0;_<N;_++){const j=o.range(0,p),h=o.next()*Math.PI*2,C=this._mkParticle(o,j,h,1,1);C.size=o.range(.8,1.8),this.particles.push(C)}const v=m-N;for(let _=0;_<v;_++){const j=o.next(),h=p+j*.26*this.size*this.scale,C=(1-j*.5)*o.range(-.05,.05)*this.size*this.scale,H=this._mkParticle(o,0,0,1,1);H.isComet=!0,H.cometTailDist=h,H.cometPerp=C,H.cometT=j,H.brightness*=1-j*.6,H.size=(1-j*.5)*o.range(.6,1.2),this.particles.push(H)}}else if(r===8)for(let p=0;p<m;p++){const N=p%3,v=o.range(.3,.42)*this.size*this.scale,_=o.next()*Math.PI*2,j=this._mkParticle(o,v,_,1,1);j.gyroPlane=N,j.gyroAxis=N===0?"z":N===1?"x":"y",this.particles.push(j)}else if(r===9)for(let p=0;p<m;p++){const N=o.range(.06,.42)*this.size*this.scale,_=N/(.42*this.size*this.scale)*4*Math.PI+o.range(-.2,.2),j=this._mkParticle(o,N,_,1,1);j.isMaelstrom=!0,this.particles.push(j)}else if(r===10)for(let p=0;p<m;p++){const N=p/m,v=o.range(.35,.4)*this.size*this.scale,_=N*Math.PI*2+o.range(-.03,.03),j=this._mkParticle(o,v,_,1,1);j.ouroT=N,this.particles.push(j)}else for(let p=0;p<m;p++){const N=p%2,v=o.next(),_=this._mkParticle(o,0,0,1,1);_.isHelix=!0,_.helixStrand=N,_.helixT=v,_.helixSpeed=o.range(.3,.6)*.001,this.particles.push(_)}}_mkParticle(o,m,r,p,N){const v=8e-4+(.42*this.size-m)*4e-5,_=o.next()*Math.PI*2,j=o.range(.05,.3)*this.size;return{baseRadius:m,angle:r,angularVelocity:v*(o.next()>.5?1:.85),size:o.range(.5,1.8),brightness:o.range(.4,1),wobblePhase:o.next()*Math.PI*2,wobbleSpeed:o.range(.5,1.2),ellipX:p,ellipY:N,orbitTilt:0,binaryCore:0,chaosX:Math.cos(_)*j,chaosY:Math.sin(_)*j,chaosDriftPhase:o.next()*Math.PI*2,chaosDriftSpeed:o.range(3e-4,8e-4)}}update(o){this.time+=o}draw(){const{ctx:o,size:m,time:r,accuracy:p,uniqueness:N,impact:v,colorHex:_,variant:j}=this,h=m/2,C=m/2;o.clearRect(0,0,m,m);const H=.4+this.exp*.6,L=p*H,ne=N*H,fe=v*H,he=.2+L*.8,Q=.3+fe*1.9,K=ne,re=Math.min(1,Math.max(0,(this.exp-.15)*1.8)),X=1-re,ue=o.createRadialGradient(h,C,0,h,C,m*.45);if(ue.addColorStop(0,tt(_,.05*he)),ue.addColorStop(.4,tt(_,.015)),ue.addColorStop(1,"transparent"),o.fillStyle=ue,o.fillRect(0,0,m,m),j===0&&this.armSeeds){const A=r*5e-4*Q;for(const le of this.armSeeds){const B=le+A;o.beginPath();for(let W=0;W<1;W+=.02){const Y=B+W*Math.PI*2.4,ee=(.08+W*.38)*m*this.scale,ie=h+Math.cos(Y)*ee,w=C+Math.sin(Y)*ee;W===0?o.moveTo(ie,w):o.lineTo(ie,w)}o.strokeStyle=tt(_,.12*he),o.lineWidth=1,o.stroke()}}for(const A of this.particles){const le=Math.sin(r*A.wobbleSpeed*.001+A.wobblePhase)*1.2,B=A.baseRadius+le,W=A.angle+r*A.angularVelocity*Q;let Y,ee;if(j===3&&this.binaryCenters){const w=this.binaryCenters[A.binaryCore];Y=h+w.x+Math.cos(W)*B,ee=C+w.y+Math.sin(W)*B}else if(j===4){const w=Math.cos(A.orbitTilt),R=Math.sin(A.orbitTilt),F=Math.cos(W)*B*A.ellipX,I=Math.sin(W)*B*A.ellipY;Y=h+F*w-I*R,ee=C+F*R+I*w}else if(j===5&&A.jetSide!==void 0&&!A.isDisk&&this.jetAxis!==void 0){const w=(A.jetProgress+r*A.jetSpeed*Q)%1,R=w*.44*m*this.scale,F=this.jetAxis+Math.PI/2;Y=h+Math.cos(this.jetAxis)*R*A.jetSide+Math.cos(F)*A.jetSpread*R,ee=C+Math.sin(this.jetAxis)*R*A.jetSide+Math.sin(F)*A.jetSpread*R,A._fadeMul=Math.sin(w*Math.PI)*.9+.1}else if(j===6&&A.isNebula){const w=r*A.driftSpeed*Q,R=Math.sin(w+A.driftPhase)*2;Y=h+Math.cos(A.angle+w*.3)*B+Math.cos(A.driftAngle)*R,ee=C+Math.sin(A.angle+w*.3)*B+Math.sin(A.driftAngle)*R}else if(j===7&&A.isComet&&this.tailAngle!==void 0){const w=(A.cometT+r*3e-4*Q)%1,R=A.cometTailDist+w*.06*m*this.scale,F=this.tailAngle+Math.PI/2;Y=h+Math.cos(this.tailAngle)*R+Math.cos(F)*A.cometPerp,ee=C+Math.sin(this.tailAngle)*R+Math.sin(F)*A.cometPerp}else if(j===8&&A.gyroAxis){const w=r*1e-4*Q;A.gyroAxis==="z"?(Y=h+Math.cos(W)*B,ee=C+Math.sin(W)*B*.3):A.gyroAxis==="x"?(Y=h+Math.cos(W)*B*.3+Math.sin(w)*B*.1,ee=C+Math.sin(W)*B):(Y=h+Math.sin(W+w)*B*.6,ee=C+Math.cos(W+w)*B*.8)}else if(j===9){const w=(r*5e-4*Q+A.wobblePhase)%1,R=B*(1-w*.85);Y=h+Math.cos(W)*R,ee=C+Math.sin(W)*R,A._fadeMul=1-w}else if(j===10&&A.ouroT!==void 0){const w=(A.ouroT+r*3e-4*Q)%1,R=w*Math.PI*2;Y=h+Math.cos(R)*B,ee=C+Math.sin(R)*B;const F=Math.cos(w*Math.PI*2)*.5+.5;A._fadeMul=.3+F*.9}else if(j===11&&A.helixT!==void 0){const w=(A.helixT+r*A.helixSpeed*Q)%1,R=(w-.5)*.65*m*this.scale,F=A.helixStrand===0?0:Math.PI,I=.15*m*this.scale,M=Math.sin(w*Math.PI*3+F)*I;Y=h+M,ee=C+R,A._fadeMul=.4+(Math.cos(w*Math.PI*3+F)+1)/2*.6}else Y=h+Math.cos(W)*B*A.ellipX,ee=C+Math.sin(W)*B*A.ellipY;if(X>.01){const w=r*A.chaosDriftSpeed,R=Math.cos(w+A.chaosDriftPhase)*2,F=Math.sin(w*1.13+A.chaosDriftPhase)*2,I=h+A.chaosX+R,M=C+A.chaosY+F;Y=I*X+Y*re,ee=M*X+ee*re}const ie=A._fadeMul!==void 0?A._fadeMul:1;if(j<=4&&re>.5){const w=2+Math.floor(v*3);for(let R=0;R<w;R++){const F=A.angularVelocity*Q*(R+1)*80,I=W-F;let M,O;if(j===3&&this.binaryCenters){const ce=this.binaryCenters[A.binaryCore];M=h+ce.x+Math.cos(I)*B,O=C+ce.y+Math.sin(I)*B}else if(j===4){const ce=Math.cos(A.orbitTilt),be=Math.sin(A.orbitTilt),g=Math.cos(I)*B*A.ellipX,E=Math.sin(I)*B*A.ellipY;M=h+g*ce-E*be,O=C+g*be+E*ce}else M=h+Math.cos(I)*B*A.ellipX,O=C+Math.sin(I)*B*A.ellipY;const Z=(1-R/w)*.3*A.brightness*he*re;o.beginPath(),o.arc(M,O,A.size*(1-R*.25),0,Math.PI*2),o.fillStyle=tt(_,Z),o.fill()}}else if(j===6&&A.isNebula){const w=A.size*3,R=o.createRadialGradient(Y,ee,0,Y,ee,w);R.addColorStop(0,tt(_,A.brightness*he*.4)),R.addColorStop(1,"transparent"),o.fillStyle=R,o.beginPath(),o.arc(Y,ee,w,0,Math.PI*2),o.fill()}o.beginPath(),o.arc(Y,ee,A.size,0,Math.PI*2),o.fillStyle=tt(_,A.brightness*he*ie),o.fill()}if(K>.05)for(let le=0;le<3;le++){const B=(r*7e-4*K+le*.33)%1;if(B>.5)continue;const W=(le*1.618*Math.PI+r*1e-4)%(Math.PI*2),Y=m*.5*(1-B*1.6);if(Y<3)continue;const ee=h+Math.cos(W)*Y,ie=C+Math.sin(W)*Y,w=B<.2?B/.2:1-(B-.2)/.3,R=5+(1-B)*4,F=o.createRadialGradient(ee,ie,0,ee,ie,R);F.addColorStop(0,tt("#ffffff",w*.95)),F.addColorStop(.3,tt(_,w*.7)),F.addColorStop(1,"transparent"),o.fillStyle=F,o.beginPath(),o.arc(ee,ie,R,0,Math.PI*2),o.fill()}if(j!==3){const A=.9+.1*Math.sin(r*.003),le=(1+this.exp*9+p*2)*this.scale,B=Math.min(le*(3+v*2),m*.4),W=o.createRadialGradient(h,C,0,h,C,B);W.addColorStop(0,tt("#ffffff",.95*A*he)),W.addColorStop(.2,tt(_,.75*A*he)),W.addColorStop(.5,tt(_,.2*he)),W.addColorStop(1,"transparent"),o.fillStyle=W,o.beginPath(),o.arc(h,C,B,0,Math.PI*2),o.fill(),o.beginPath(),o.arc(h,C,le*A,0,Math.PI*2),o.fillStyle=tt("#ffffff",.95),o.fill()}else if(this.binaryCenters)for(const A of this.binaryCenters){const le=h+A.x,B=C+A.y,W=(.8+this.exp*5+p*1.5)*this.scale,Y=Math.min(W*3.5,m*.22),ee=o.createRadialGradient(le,B,0,le,B,Y);ee.addColorStop(0,tt("#ffffff",.9*he)),ee.addColorStop(.3,tt(_,.6*he)),ee.addColorStop(1,"transparent"),o.fillStyle=ee,o.beginPath(),o.arc(le,B,Y,0,Math.PI*2),o.fill(),o.beginPath(),o.arc(le,B,W,0,Math.PI*2),o.fillStyle=tt("#ffffff",.9),o.fill()}}}function Ds({agentId:s,size:o=64,signals:m=0,accuracy:r=.5,uniqueness:p=.5,impact:N=.5}){const v=k.useRef(null),_=k.useRef(null),j=k.useRef(0),h=k.useRef(!0);return k.useEffect(()=>{const C=v.current;if(!C)return;C.width=o*2,C.height=o*2;const H=C.getContext("2d");if(!H)return;H.scale(2,2);const L=um(s),ne=new og(C,s,m,r,p,L,N);_.current=ne,ne.draw();const fe=()=>{h.current&&(ne.update(16),ne.draw()),j.current=requestAnimationFrame(fe)};return j.current=requestAnimationFrame(fe),()=>{cancelAnimationFrame(j.current),_.current=null}},[s,o,m,r,p,N]),k.useEffect(()=>{const C=v.current;if(!C)return;const H=new IntersectionObserver(([L])=>{h.current=L.isIntersecting},{threshold:.1});return H.observe(C),()=>H.disconnect()},[]),i.jsx("canvas",{ref:v,"aria-hidden":"true",className:"shrink-0",style:{width:o,height:o,borderRadius:"50%"}})}function js(s){return`${Math.round(s*100)}%`}function fg(s){return s>=1.2?"good":s>=.8?"mid":"low"}function rg(s){return s>=.7?"good":s>=.4?"mid":"low"}function dg({agent:s}){var _;const o=s.scores,m=(_=s.lastTask)!=null&&_.timestamp?Dt(s.lastTask.timestamp):"",r=fg(o.dispatchWeight),p=r==="good"?"text-confirmed":r==="low"?"text-disputed":"text-foreground",N=rg(o.accuracy),v=N==="good"?"bg-confirmed":N==="mid"?"bg-unverified":"bg-disputed";return i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(s.id)}`,className:"group relative block rounded-xl border border-border bg-card p-4 transition-all hover:-translate-y-0.5 hover:border-primary/30 hover:bg-card/90",children:[i.jsxs("div",{className:"mb-3.5 flex items-center gap-3",children:[i.jsx("div",{className:"relative shrink-0",children:i.jsx(Ds,{agentId:s.id,size:60,animate:s.online,signals:o.signals,accuracy:o.accuracy,uniqueness:o.uniqueness,impact:o.impactScore})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-foreground",children:s.id}),o.circuitOpen&&i.jsx("span",{className:"shrink-0 rounded-sm bg-destructive/10 px-1 py-0.5 font-mono text-[8px] font-bold text-destructive","data-tooltip":"Benched: too many consecutive failures. Deprioritized until new clean signals recover the score.",children:"BENCHED"})]}),i.jsxs("div",{className:"mt-1 flex items-center gap-2 font-mono text-[10px] text-muted-foreground/60",children:[i.jsxs("span",{className:`rounded-sm border border-border/60 bg-background/60 px-1.5 py-0.5 font-bold tabular-nums ${p}`,"data-tooltip":`Dispatch weight ${o.dispatchWeight.toFixed(2)}
|
|
57
|
-
Scale 0.3 → 2.0`,"data-tooltip-pos":"bottom",children:[o.dispatchWeight.toFixed(2)," wt"]}),i.jsxs("span",{className:"truncate",children:[o.signals," signals",m?` · ${m}`:""]})]})]})]}),i.jsxs("div",{className:"space-y-2 rounded-lg border border-border/30 bg-background/40 px-3.5 py-3",children:[i.jsx(Ts,{label:"accuracy",value:o.accuracy,fillClass:v,tooltip:`Accuracy ${js(o.accuracy)}
|
|
58
|
-
Ratio of confirmed findings.
|
|
59
|
-
Higher = more trustworthy.`}),i.jsx(Ts,{label:"unique",value:o.uniqueness,fillClass:"bg-unique",tooltip:`Uniqueness ${js(o.uniqueness)}
|
|
60
|
-
Findings others missed.
|
|
61
|
-
Higher = this agent sees what peers don't.`}),i.jsx(Ts,{label:"impact",value:o.impactScore,fillClass:"bg-[var(--color-impact)]",tooltip:`Impact ${js(o.impactScore)}
|
|
62
|
-
Severity-weighted findings.
|
|
63
|
-
Critical and high findings count more.`})]})]})}function Ts({label:s,value:o,fillClass:m,tooltip:r}){return i.jsxs("div",{className:"grid grid-cols-[60px_1fr_38px] items-center gap-2.5",children:[i.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-muted-foreground","data-tooltip":r,children:s}),i.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-background/80",children:i.jsx("div",{className:`h-full rounded-full transition-all ${m}`,style:{width:`${Math.max(0,Math.min(100,o*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(o*100),"%"]})]})}function mg({agents:s}){const o=[...s].sort((p,N)=>{var C,H,L,ne;const v=((C=p.lastTask)==null?void 0:C.timestamp)??"",_=((H=N.lastTask)==null?void 0:H.timestamp)??"";if(v!==_)return _.localeCompare(v);const j=((L=p.scores)==null?void 0:L.signals)||0,h=((ne=N.scores)==null?void 0:ne.signals)||0;return j!==h?h-j:p.id.localeCompare(N.id)}),m=o.slice(0,4),r=o.length>4;return i.jsxs("section",{children:[i.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Team ",i.jsx("span",{className:"text-primary",children:s.length})]}),r&&i.jsx("a",{href:"/dashboard/team",className:"font-mono text-xs text-muted-foreground transition hover:text-primary",children:"view all"})]}),i.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:m.map(p=>i.jsx(dg,{agent:p},p.id))})]})}const hg={completed:{label:"COMPLETED",cls:"text-confirmed bg-confirmed/10"},failed:{label:"FAILED",cls:"text-destructive bg-destructive/10"},cancelled:{label:"CANCELLED",cls:"text-muted-foreground bg-muted/30"},running:{label:"RUNNING",cls:"text-unverified bg-unverified/10 animate-pulse"}};function gg({task:s,onClose:o}){if(k.useEffect(()=>{if(!s)return;const p=N=>{N.key==="Escape"&&o()};return document.addEventListener("keydown",p),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",p),document.body.style.overflow=""}},[s,o]),!s)return null;const m=hg[s.status],r=(s.inputTokens||0)+(s.outputTokens||0);return i.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center overflow-y-auto bg-background/80 p-6 backdrop-blur-sm",onClick:o,children:i.jsxs("div",{className:"relative mt-12 w-full max-w-3xl rounded-lg border border-border bg-card shadow-2xl",onClick:p=>p.stopPropagation(),children:[i.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border/60 px-5 py-4",children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`shrink-0 rounded-sm px-1.5 py-0.5 font-mono text-[9px] font-bold ${m.cls}`,children:m.label}),i.jsx("span",{className:"shrink-0 rounded border border-amber-500/30 bg-amber-500/10 px-1.5 py-0.5 font-mono text-[10px] font-semibold text-amber-400",children:s.taskId.slice(0,8)}),i.jsx("a",{href:`/dashboard/agent/${encodeURIComponent(s.agentId)}`,className:"truncate font-mono text-xs text-muted-foreground transition hover:text-primary",children:s.agentId})]}),i.jsxs("div",{className:"mt-2 flex flex-wrap gap-3 font-mono text-[10px] text-muted-foreground",children:[i.jsx("span",{children:Dt(s.timestamp)}),s.duration!=null&&i.jsxs("span",{children:["· ",nm(s.duration)]}),r>0&&i.jsxs("span",{children:["· ",r.toLocaleString()," tokens (",(s.inputTokens||0).toLocaleString()," in / ",(s.outputTokens||0).toLocaleString()," out)"]})]})]}),i.jsx("button",{onClick:o,className:"shrink-0 rounded-md border border-border/40 bg-card px-2 py-1 font-mono text-xs text-muted-foreground transition hover:bg-accent/50 hover:text-foreground","aria-label":"Close",children:"✕"})]}),i.jsxs("div",{className:"max-h-[calc(100vh-220px)] space-y-5 overflow-y-auto px-5 py-4",children:[i.jsxs("section",{children:[i.jsx("h3",{className:"mb-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Task"}),i.jsx("div",{className:"task-md rounded-md border border-border/40 bg-background/40 p-3 text-xs leading-relaxed text-foreground/90 overflow-x-auto",dangerouslySetInnerHTML:{__html:K0(s.task)}})]}),s.result?i.jsxs("section",{children:[i.jsx("h3",{className:"mb-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Result"}),i.jsx("div",{className:"rounded-md border border-border/40 bg-background/40 p-3 font-mono text-xs leading-relaxed text-foreground/90 whitespace-pre-wrap [&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:text-purple-400 [&_.inline-code]:rounded [&_.inline-code]:bg-muted/40 [&_.inline-code]:px-1 [&_.inline-code-block]:my-2 [&_.inline-code-block]:block [&_.inline-code-block]:rounded [&_.inline-code-block]:bg-muted/30 [&_.inline-code-block]:p-2",dangerouslySetInnerHTML:{__html:$u(s.result)}})]}):i.jsxs("section",{children:[i.jsx("h3",{className:"mb-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Result"}),i.jsx("div",{className:"rounded-md border border-border/40 bg-background/40 p-3 text-center font-mono text-xs text-muted-foreground",children:s.status==="running"?"Task is still running...":"No result recorded."})]})]})]})})}const $d=8,xg={completed:"bg-confirmed",failed:"bg-destructive",running:"bg-unverified animate-pulse",cancelled:"bg-muted-foreground"};function pg(s,o){return s.length>o?s.slice(0,o)+"…":s}function bg({tasks:s}){const o=s.items.slice(0,$d),m=s.items.length>$d;return i.jsxs("section",{className:"flex h-full flex-col",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["Tasks ",i.jsx("span",{className:"text-foreground",children:s.total})]}),m&&i.jsx("a",{href:"/dashboard/tasks",className:"font-mono text-xs text-muted-foreground transition hover:text-foreground",children:"view all"})]}),i.jsx("div",{className:"flex-1 rounded-md border border-border/40 bg-card/80",children:o.length===0?i.jsx(zn,{title:"No tasks yet",hint:"Dispatch with gossip_run to populate this view."}):o.map((r,p)=>i.jsxs("div",{className:`flex h-11 items-center gap-3 px-3.5 ${p>0?"border-t border-border/20":""}`,children:[i.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${xg[r.status]||"bg-muted"}`}),i.jsx("span",{className:"shrink-0 font-mono text-xs font-bold text-foreground",children:r.agentId}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground",children:pg(r.task,50)}),i.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Dt(r.timestamp)})]},r.taskId))})]})}function vg(s){var r,p,N,v;const o=(r=s.frontmatter)==null?void 0:r.type;if(o&&o!=="unknown")return o;const m=[s.filename,((p=s.frontmatter)==null?void 0:p.name)||"",((N=s.frontmatter)==null?void 0:N.description)||"",s.content.slice(0,200)].join(" ").toLowerCase();return m.includes("session")||m.includes("next-session")?"session":m.includes("cognitive")||m.includes("session-gossip")?"cognitive":m.includes("skill")||m.includes("gap")?"skill":m.includes("consensus")||m.includes("finding")||m.includes("review")||m.includes("cross-review")?"review":m.includes("dispatch")||m.includes("implement")?"task":m.includes("design")||m.includes("architecture")?"review":m.includes("bug")||m.includes("fix")||m.includes("debug")?"task":(v=s.frontmatter)!=null&&v.name?"knowledge":"note"}const Wd={cognitive:"text-muted-foreground bg-muted/40",knowledge:"text-muted-foreground bg-muted/40",skill:"text-confirmed bg-confirmed/10",review:"text-muted-foreground bg-muted/40",task:"text-muted-foreground bg-muted/40",session:"text-primary bg-primary/10",note:"text-muted-foreground bg-muted/40"},yg={cognitive:"cognitive",knowledge:"knowledge",skill:"skill",review:"review",task:"task",session:"session",note:"memory"};function Sg({memories:s}){const[o,m]=k.useState(null),r=s.filter((N,v,_)=>_.findIndex(j=>j.filename===N.filename)===v),p=r.slice(0,8);return i.jsxs("section",{className:"flex h-full flex-col",children:[i.jsxs("h2",{className:"mb-3 font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["Recent Memories ",i.jsx("span",{className:"text-foreground",children:r.length})]}),p.length===0?i.jsx("div",{className:"flex-1",children:i.jsx(zn,{title:"No memories yet",hint:"Memories populate after gossip_session_save() or consensus rounds."})}):i.jsx("div",{className:"flex-1 rounded-md border border-border/40 bg-card/80",children:p.map((N,v)=>{var H,L;const _=vg(N),j=((H=N.frontmatter)==null?void 0:H.name)||((L=N.content.split(`
|
|
64
|
-
`)[0])==null?void 0:L.slice(0,80))||N.filename.replace(/\.md$/,""),h=o===v,C=N.agentId||"_unknown";return i.jsxs("div",{className:v>0?"border-t border-border/20":"",children:[i.jsxs("button",{onClick:()=>m(h?null:v),className:"flex h-11 w-full items-center gap-2 px-3.5 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`font-mono text-xs ${h?"text-primary":"text-muted-foreground/40"}`,children:h?"▾":"▸"}),i.jsx("span",{className:`shrink-0 rounded-sm px-1 py-0.5 font-mono text-[9px] font-bold ${Wd[_]||Wd.note}`,children:yg[_]||"NOTE"}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-foreground",children:j}),i.jsx("span",{className:"shrink-0 rounded-sm border border-border/40 bg-card px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:C==="_project"?"project":C})]}),h&&i.jsx("div",{className:"border-t border-border/10 px-4 py-2",children:i.jsx("pre",{className:"max-h-40 overflow-y-auto whitespace-pre-wrap font-mono text-[11px] leading-relaxed text-muted-foreground",children:N.content})})]},N.filename)})})]})}const Fd=5;function Ms(s){return!Number.isFinite(s)||s<0?0:s>1?1:s}function Ng({strengths:s,accuracy:o,correctCounts:m,hallucinatedCounts:r}){const p=new Set([...Object.keys(s),...o?Object.keys(o):[],...m?Object.keys(m):[],...r?Object.keys(r):[]]),N=[];for(const v of p){const _=(m==null?void 0:m[v])??0,j=(r==null?void 0:r[v])??0,h=_+j,C=h<Fd;let H;o&&o[v]!==void 0?H=Ms(o[v]):h>0?H=Ms(_/h):H=Ms(s[v]??0),N.push({category:v,score:H,c:_,n:h,sparse:C})}return N.sort((v,_)=>v.sparse!==_.sparse?v.sparse?1:-1:_.score-v.score),N.length===0?i.jsx(zn,{title:"No category data yet",hint:"Category signals accrue after the first consensus round.",compact:!0}):i.jsx("div",{className:"space-y-2",children:N.map(v=>i.jsxs("div",{className:`flex items-center gap-3 ${v.sparse?"opacity-40":""}`,title:v.sparse?`Only ${v.n} signal${v.n===1?"":"s"} in this category — needs ≥${Fd} for a trustworthy accuracy.`:`${v.c} correct / ${v.n} total`,children:[i.jsx("span",{className:"w-32 shrink-0 truncate font-mono text-[11px] text-muted-foreground",children:v.category.replace(/_/g," ")}),i.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted/30",children:i.jsx("div",{className:"h-full rounded-full bg-chart/70 transition-all",style:{width:`${v.score*100}%`}})}),i.jsx("span",{className:"shrink-0 text-right font-mono text-[10px] tabular-nums text-muted-foreground/70 w-16",children:v.sparse&&v.n===0?"—":`${v.c}/${v.n}`}),i.jsx("span",{className:"w-10 shrink-0 text-right font-mono text-[11px] tabular-nums text-foreground",children:v.sparse?i.jsx("span",{className:"text-muted-foreground/50",children:"sparse"}):`${Math.round(v.score*100)}%`})]},v.category))})}const jg={agreement:"bg-confirmed",consensus_verified:"bg-confirmed",unique_confirmed:"bg-unique",unique_unconfirmed:"bg-unique/50",disagreement:"bg-disputed/70",hallucination_caught:"bg-disputed",new_finding:"bg-unique",unverified:"bg-unverified"},Tg={agreement:"Confirmed",consensus_verified:"Confirmed",unique_confirmed:"Unique (confirmed)",unique_unconfirmed:"Unique",disagreement:"Disputed",hallucination_caught:"Hallucination",new_finding:"New finding",unverified:"Unverified"};function Mg({agentId:s}){const[o,m]=k.useState([]),[r,p]=k.useState(0);if(k.useEffect(()=>{Rt(`signals?agent=${encodeURIComponent(s)}&limit=100`).then(h=>{m(h.items||[]),p(h.total||0)}).catch(()=>{})},[s]),o.length===0)return i.jsx("div",{className:"rounded-md border border-border/40 bg-card/80 px-4 py-3",children:i.jsx(zn,{title:"No signal history yet",hint:"Signals are recorded during consensus rounds.",compact:!0})});const N=[...o].reverse(),v={confirmed:0,disputed:0,unique:0,unverified:0};for(const h of o)h.signal==="agreement"||h.signal==="consensus_verified"?v.confirmed++:h.signal==="disagreement"||h.signal==="hallucination_caught"?v.disputed++:h.signal==="unique_confirmed"||h.signal==="unique_unconfirmed"||h.signal==="new_finding"?v.unique++:h.signal==="unverified"&&v.unverified++;const _=o.length,j=r>_;return i.jsxs("div",{className:"rounded-md border border-border/40 bg-card/80 px-4 py-3",children:[i.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-baseline gap-2",children:[i.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Signal Timeline"}),i.jsx("span",{className:"font-mono text-[9px] text-muted-foreground/50",children:j?`last ${_} of ${r}`:`${r} total`})]}),i.jsxs("div",{className:"flex items-center gap-3 font-mono text-[10px]",children:[i.jsxs("span",{className:"text-confirmed",children:[v.confirmed," confirmed"]}),v.disputed>0&&i.jsxs("span",{className:"text-disputed",children:[v.disputed," disputed"]}),v.unique>0&&i.jsxs("span",{className:"text-unique",children:[v.unique," unique"]}),v.unverified>0&&i.jsxs("span",{className:"text-unverified",children:[v.unverified," unverified"]})]})]}),i.jsx("div",{className:"flex items-center gap-0.5",children:N.map((h,C)=>i.jsx("div",{className:`h-4 w-1.5 rounded-sm transition-opacity hover:opacity-80 ${jg[h.signal]||"bg-muted"}`,title:`${Tg[h.signal]||h.signal} — ${Dt(h.timestamp)}`},C))}),i.jsx("div",{className:"mt-2 flex flex-wrap gap-3",children:[{color:"bg-confirmed",label:"Confirmed"},{color:"bg-disputed",label:"Disputed"},{color:"bg-unique",label:"Unique"},{color:"bg-unverified",label:"Unverified"}].map(h=>i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("div",{className:`h-2 w-2 rounded-sm ${h.color}`}),i.jsx("span",{className:"font-mono text-[9px] text-muted-foreground/60",children:h.label})]},h.label))})]})}const Id={completed:{dot:"bg-confirmed",label:"●"},failed:{dot:"bg-destructive",label:"✕"},running:{dot:"bg-unverified animate-pulse",label:"◌"},cancelled:{dot:"bg-muted-foreground/40",label:"—"}};function cm({task:s,onClick:o}){const m=Id[s.status]??Id.cancelled;return i.jsxs("tr",{className:`border-b border-border transition hover:bg-accent/50 ${o?"cursor-pointer":""}`,onClick:o?r=>{r.target.closest("a")||o(s)}:void 0,children:[i.jsx("td",{className:"py-2.5 pl-4 pr-2",children:i.jsx("span",{className:`inline-block h-2.5 w-2.5 rounded-full ${m.dot}`})}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:s.taskId.slice(0,8)}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:i.jsx("a",{href:`/dashboard/agent/${encodeURIComponent(s.agentId)}`,className:"transition hover:text-primary",children:s.agentId})}),i.jsx("td",{className:"py-2.5 pr-3 text-sm text-foreground/80",children:(()=>{const r=s.task.replace(/\n.*/s,"");return r.length>100?r.slice(0,100)+"…":r})()}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:s.status==="running"?"running":nm(s.duration)}),i.jsx("td",{className:"py-2.5 pr-4 text-right font-mono text-xs text-muted-foreground",children:Dt(s.timestamp)})]})}function _g({agentId:s,agents:o,tasks:m,consensus:r}){const p=o.find(R=>R.id===s),[N,v]=k.useState([]),[_,j]=k.useState(null),[h,C]=k.useState(null),[H,L]=k.useState("all"),[ne,fe]=k.useState(0),[he,Q]=k.useState(0);if(k.useEffect(()=>{Rt(`memory/${s}`).then(R=>{v(R.knowledge||[])}).catch(()=>v([]))},[s]),!p)return i.jsxs("div",{className:"py-20 text-center text-muted-foreground",children:["Agent not found: ",s]});const K=p.scores,re=(m==null?void 0:m.items.filter(R=>R.agentId===s))||[],X=(r==null?void 0:r.runs.filter(R=>R.agents.includes(s)))||[],ue=[{label:"accuracy",value:K.accuracy,fill:K.accuracy>=.7?"bg-confirmed":K.accuracy>=.4?"bg-unverified":"bg-disputed"},{label:"reliability",value:K.reliability,fill:"bg-chart"},{label:"unique",value:K.uniqueness,fill:"bg-unique"},{label:"impact",value:K.impactScore,fill:"bg-[var(--color-impact)]"}],A=[{label:"Signals",value:String(K.signals),color:"text-foreground"},{label:"Agreements",value:String(K.agreements),color:"text-confirmed"},{label:"Disagreements",value:String(K.disagreements),color:"text-disputed"},{label:"Hallucinations",value:String(K.hallucinations),color:K.hallucinations>0?"text-disputed":"text-muted-foreground"},{label:"Tokens",value:p.totalTokens.toLocaleString(),color:"text-foreground"}],le=10,B=Math.max(1,Math.ceil(re.length/le)),W=Math.min(ne,B-1),Y=re.slice(W*le,(W+1)*le),ee=k.useMemo(()=>{const R=new Map;for(const F of N){const I=F.filename.match(/^(\d{4}-\d{2}-\d{2})/),M=I?I[1]:"undated",O=R.get(M)||[];O.push(F),R.set(M,O)}return Array.from(R.entries()).sort(([F],[I])=>F==="undated"?1:I==="undated"?-1:I.localeCompare(F)).map(([F,I])=>({day:F,items:I}))},[N]),ie=Math.min(he,Math.max(0,ee.length-1)),w=ee[ie];return i.jsxs(i.Fragment,{children:[K.circuitOpen&&i.jsx("div",{className:"mb-6 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-xs font-bold text-destructive",children:"CIRCUIT OPEN"}),i.jsxs("span",{className:"text-xs text-destructive/70",children:[K.consecutiveFailures,"+ consecutive failures. Agent will be deprioritized until clean signals recorded."]})]})}),i.jsx("div",{className:"relative mb-6 rounded-xl border border-border bg-card p-5",children:i.jsxs("div",{className:"flex items-center gap-6",children:[i.jsx("div",{className:"relative shrink-0",children:i.jsx(Ds,{agentId:p.id,size:120,signals:K.signals,accuracy:K.accuracy,uniqueness:K.uniqueness,impact:K.impactScore})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("h1",{className:"truncate font-mono text-2xl font-bold text-foreground",children:p.id}),i.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:[p.provider,"/",p.model]}),i.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[i.jsx("span",{className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold ${p.native?"text-primary bg-primary/10":"text-confirmed bg-confirmed/10"}`,children:p.native?"NATIVE":"RELAY"}),p.preset&&i.jsx("span",{className:"rounded-sm bg-muted px-2 py-0.5 font-mono text-[10px] text-muted-foreground",children:p.preset}),K.consecutiveFailures>0&&!K.circuitOpen&&i.jsxs("span",{className:"rounded-sm bg-unverified/10 px-2 py-0.5 font-mono text-[10px] font-bold text-unverified",children:[K.consecutiveFailures," CONSECUTIVE FAILS"]}),i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/60",children:[K.signals," signals",p.lastTask?` · ${Dt(p.lastTask.timestamp)}`:""]})]})]}),i.jsxs("div",{className:"flex shrink-0 flex-col items-end rounded-md border border-border bg-background/60 px-3 py-2","data-tooltip":`Dispatch weight ${K.dispatchWeight.toFixed(2)}
|
|
65
|
-
Scale 0.3 → 2.0`,"data-tooltip-pos":"left",children:[i.jsx("span",{className:"font-mono text-2xl font-bold tabular-nums leading-none text-foreground",children:K.dispatchWeight.toFixed(2)}),i.jsx("span",{className:"mt-1 font-mono text-[9px] uppercase text-muted-foreground/50",children:"weight"})]})]})}),i.jsx("section",{className:"mb-6",children:i.jsx(Mg,{agentId:s})}),i.jsxs("section",{className:"mb-8 grid grid-cols-1 gap-6 lg:grid-cols-2",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:"Metrics"}),i.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/80 p-4 shadow-[inset_0_1px_3px_rgba(0,0,0,0.35)]",children:[i.jsx("div",{className:"space-y-2.5",children:ue.map(R=>i.jsxs("div",{className:"grid grid-cols-[72px_1fr_44px] items-center gap-3",children:[i.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-muted-foreground",children:R.label}),i.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-background/80",children:i.jsx("div",{className:`h-full rounded-full transition-all ${R.fill}`,style:{width:`${Math.max(0,Math.min(100,R.value*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(R.value*100),"%"]})]},R.label))}),i.jsx("div",{className:"mt-4 grid grid-cols-5 gap-px overflow-hidden rounded-md border border-border/30 bg-border/30",children:A.map(R=>i.jsxs("div",{className:"bg-background/60 px-2 py-2 text-center",children:[i.jsx("div",{className:`font-mono text-sm font-bold tabular-nums ${R.color}`,children:R.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[9px] uppercase tracking-wider text-muted-foreground/70",children:R.label})]},R.label))})]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:"Category Strengths"}),i.jsx(Ng,{strengths:K.categoryStrengths,accuracy:K.categoryAccuracy,correctCounts:K.categoryCorrect,hallucinatedCounts:K.categoryHallucinated})]})]}),(p.skillSlots.length>0||p.skills.length>0)&&i.jsxs("section",{className:"mb-8",children:[i.jsxs("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Skills ",i.jsx("span",{className:"text-primary",children:p.skillSlots.length||p.skills.length})]}),i.jsx("div",{className:"flex flex-wrap gap-1.5",children:p.skillSlots.length>0?p.skillSlots.map(R=>i.jsxs("span",{className:`rounded-sm border px-2.5 py-1 font-mono text-xs ${R.enabled?R.mode==="contextual"?"border-amber-500/30 bg-amber-500/10 text-amber-400":"border-border bg-card text-muted-foreground":"border-border/50 text-muted-foreground/50 line-through"}`,title:`${R.mode} · ${R.source} · ${R.enabled?"enabled":"disabled"}`,children:[R.mode==="contextual"&&"⚡ ",R.name]},R.name)):p.skills.map(R=>i.jsx("span",{className:"rounded-sm border border-border bg-card px-2.5 py-1 font-mono text-xs text-muted-foreground",children:R},R))})]}),i.jsxs("section",{className:"mb-8",children:[i.jsxs("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Consensus Runs ",i.jsx("span",{className:"text-primary",children:X.length})]}),X.length>0?i.jsx("div",{className:"space-y-2",children:X.slice(0,20).map((R,F)=>{const I=R.counts,M=(I.agreement||0)+(I.disagreement||0)+(I.hallucination||0)+(I.unverified||0)+(I.unique||0)+(I.new||0),O=M||1,Z=h===F,ce=[{key:"confirmed",count:I.agreement||0,color:"bg-confirmed",text:"text-confirmed"},{key:"disputed",count:(I.disagreement||0)+(I.hallucination||0),color:"bg-disputed",text:"text-disputed"},{key:"unverified",count:I.unverified||0,color:"bg-unverified",text:"text-unverified"},{key:"unique",count:(I.unique||0)+(I.new||0),color:"bg-unique",text:"text-unique"}],be={agreement:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},consensus_verified:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},disagreement:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},hallucination_caught:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},unverified:{label:"UNVERIFIED",filter:"unverified",cls:"text-unverified bg-unverified/10"},unique_confirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},unique_unconfirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},new_finding:{label:"NEW",filter:"unique",cls:"text-unique bg-unique/10"}},g=R.signals.filter(E=>{if(E.signal==="signal_retracted")return!1;const G=be[E.signal];return G?H==="all"||G.filter===H:!1});return i.jsxs("div",{className:`rounded-md border bg-card transition ${Z?"border-primary/25":"border-border/40"}`,children:[i.jsxs("button",{onClick:()=>{C(Z?null:F),L("all")},className:"flex w-full items-center p-3 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`mr-3 font-mono text-xs ${Z?"text-primary":"text-muted-foreground"}`,children:Z?"▾":"▸"}),i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:"font-mono text-sm font-semibold text-foreground",children:[M," findings"]}),i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Dt(R.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex gap-2",children:ce.map(E=>E.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${E.text}`,children:[E.count," ",E.key]},E.key))}),i.jsx("div",{className:"mt-1.5 flex h-1.5 overflow-hidden rounded-sm",children:ce.map(E=>E.count>0&&i.jsx("div",{className:E.color,style:{width:`${E.count/O*100}%`}},E.key))})]})]}),Z&&i.jsxs("div",{className:"border-t border-border px-4 pb-3 pt-3",children:[i.jsx("div",{className:"mb-3 flex gap-1.5",children:["all","confirmed","disputed","unverified","unique"].map(E=>i.jsx("button",{onClick:()=>L(E),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${H===E?"text-foreground bg-muted":"text-muted-foreground hover:text-foreground"}`,children:E.charAt(0).toUpperCase()+E.slice(1)},E))}),g.length===0?i.jsx("div",{className:"py-3 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):i.jsx("div",{className:"space-y-1.5",children:g.map((E,G)=>{const V=be[E.signal];return V?i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx("span",{className:`shrink-0 rounded-sm px-1.5 py-0.5 font-mono text-[9px] font-bold ${V.cls}`,children:V.label}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground [&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:font-mono [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:font-mono [&_.cite-fn]:text-purple-400",dangerouslySetInnerHTML:{__html:$u(E.evidence||"")}}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[E.agentId,E.counterpartId?` + ${E.counterpartId}`:""]})]})]},G):null})})]})]},R.taskId+F)})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No consensus participation recorded."})]}),i.jsxs("section",{className:"mb-8",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Tasks ",i.jsx("span",{className:"text-primary",children:re.length})]}),B>1&&i.jsxs("div",{className:"flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>fe(R=>Math.max(0,R-1)),disabled:W===0,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Prev"}),i.jsxs("span",{children:[W+1," / ",B]}),i.jsx("button",{onClick:()=>fe(R=>Math.min(B-1,R+1)),disabled:W>=B-1,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}),re.length>0?i.jsx("div",{className:"overflow-hidden rounded-md border border-border/40",children:i.jsxs("table",{className:"w-full text-left",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-border bg-card",children:[i.jsx("th",{className:"py-2 pl-4 pr-2 text-xs font-medium text-muted-foreground",style:{width:32}}),i.jsx("th",{className:"py-2 pr-3 font-mono text-xs font-medium text-muted-foreground",children:"ID"}),i.jsx("th",{className:"py-2 pr-3 font-mono text-xs font-medium text-muted-foreground",children:"Agent"}),i.jsx("th",{className:"py-2 pr-3 text-xs font-medium text-muted-foreground",children:"Description"}),i.jsx("th",{className:"py-2 pr-3 font-mono text-xs font-medium text-muted-foreground",children:"Duration"}),i.jsx("th",{className:"py-2 pr-4 text-right font-mono text-xs font-medium text-muted-foreground",children:"When"})]})}),i.jsx("tbody",{children:Y.map(R=>i.jsx(cm,{task:R},R.taskId))})]})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No tasks recorded."})]}),i.jsxs("section",{className:"mb-8",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Memory ",i.jsxs("span",{className:"text-primary",children:[N.length," files"]}),w&&i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground",children:["· ",w.day," (",w.items.length,")"]})]}),ee.length>1&&i.jsxs("div",{className:"flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>Q(R=>Math.max(0,R-1)),disabled:ie===0,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Newer"}),i.jsxs("span",{children:[ie+1," / ",ee.length]}),i.jsx("button",{onClick:()=>Q(R=>Math.min(ee.length-1,R+1)),disabled:ie>=ee.length-1,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"Older ▸"})]})]}),w&&w.items.length>0?i.jsx("div",{className:"space-y-1.5",children:w.items.map(R=>{var O,Z;const F=_===R.filename,I=((O=R.frontmatter)==null?void 0:O.type)||"memory",M=((Z=R.frontmatter)==null?void 0:Z.name)||R.filename.replace(/\.md$/,"");return i.jsxs("div",{className:"rounded-md border border-border/40 bg-card/80",children:[i.jsxs("button",{onClick:()=>j(F?null:R.filename),className:"flex w-full items-center gap-2 p-3 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`font-mono text-xs ${F?"text-primary":"text-muted-foreground"}`,children:F?"▾":"▸"}),i.jsx("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[9px] font-bold uppercase text-muted-foreground",children:I}),i.jsx("span",{className:"truncate font-mono text-xs font-semibold text-foreground",children:M}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground",children:R.filename})]}),F&&i.jsx("div",{className:"border-t border-border px-4 py-3",children:i.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs leading-relaxed text-muted-foreground",children:R.content})})]},R.filename)})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No memory files."})]})]})}const Pd={dispatch:"text-muted-foreground/80",consensus:"text-primary/70",error:"text-disputed",timeout:"text-unverified",worker:"text-muted-foreground/70",gemini:"text-muted-foreground/70",skill:"text-muted-foreground/80",boot:"text-muted-foreground/50",relay:"text-muted-foreground/80",gossip:"text-muted-foreground/80",utility:"text-muted-foreground/60",memory:"text-muted-foreground/80",persist:"text-muted-foreground/50",toolserver:"text-muted-foreground/50",other:"text-muted-foreground/70"},Eg=[[/^\[gossipcat\]\s*\[worker:/,"worker"],[/^\[gossipcat\]\s*\[Gemini\]/,"gemini"],[/^\[gossipcat\]\s*\[ToolServer\]/,"toolserver"],[/^\[gossipcat\]\s*dispatch\b/,"dispatch"],[/^\[gossipcat\]\s*relay\b/,"relay"],[/^\[gossipcat\]\s*Cross-review\b/,"consensus"],[/^\[gossipcat\]\s*Consensus\b/,"consensus"],[/^\[gossipcat\]\s*Skill\b/,"skill"],[/^\[gossipcat\]\s*Bootstrap\b/,"boot"],[/^\[gossipcat\]\s*Booted:/,"boot"],[/^\[gossipcat\]\s*Dashboard:/,"boot"],[/^\[gossipcat\]\s*Adaptive\b/,"boot"],[/^\[gossipcat\]\s*Gossip\b/,"gossip"],[/^\[gossipcat\]\s*utility\b/,"utility"],[/^\[gossipcat\]\s*Compacted\b/,"memory"],[/native agent/,"boot"],[/persist|Persist/,"persist"],[/timeout|Timeout|timed.out/,"timeout"],[/^\[gossipcat\].*(?:Error|error|failed|Failed)/,"error"]];function zg(s){for(const[o,m]of Eg)if(o.test(s))return m;return"other"}const Ag=[{key:"all",label:"All"},{key:"dispatch",label:"Dispatch"},{key:"consensus",label:"Consensus"},{key:"error",label:"Errors"},{key:"timeout",label:"Timeouts"},{key:"worker",label:"Workers"},{key:"skill",label:"Skills"},{key:"relay",label:"Relay"},{key:"boot",label:"Boot"}],em=1e3;function Dg(){const[s,o]=k.useState([]),[m,r]=k.useState(0),[p,N]=k.useState(0),[v,_]=k.useState("all"),[j,h]=k.useState(!0),[C,H]=k.useState(!0),L=k.useRef(null),ne=k.useRef(0);k.useEffect(()=>{let Q=!1;return(async()=>{try{const re=await Rt("logs?tail=500");if(Q)return;o(re.entries),r(re.totalLines),N(re.fileSize),ne.current=re.totalLines+1}catch{}})(),()=>{Q=!0}},[]),k.useEffect(()=>{if(C)return am(Q=>{var re;if(Q.type!=="log_lines")return;const K=(re=Q.data)==null?void 0:re.lines;K!=null&&K.length&&o(X=>{const ue=K.map((le,B)=>({line:ne.current+B,text:le,category:zg(le)}));ne.current+=K.length,r(le=>le+K.length);const A=[...X,...ue];return A.length>em?A.slice(-em):A})})},[C]),k.useEffect(()=>{j&&L.current&&L.current.scrollIntoView({behavior:"smooth"})},[s,j]);const fe=v==="all"?s:s.filter(Q=>Q.category===v),he=k.useCallback(Q=>Q<1024?`${Q} B`:Q<1048576?`${(Q/1024).toFixed(1)} KB`:`${(Q/1048576).toFixed(1)} MB`,[]);return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[i.jsxs("h2",{className:"font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["MCP Log ",i.jsxs("span",{className:"text-primary",children:[m," lines"]})]}),i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:he(p)}),C&&i.jsxs("span",{className:"flex items-center gap-1 font-mono text-[10px] text-confirmed",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 animate-pulse rounded-full bg-confirmed"}),"live"]})]}),i.jsxs("div",{className:"mb-3 flex items-center gap-1.5",children:[Ag.map(Q=>i.jsx("button",{onClick:()=>_(Q.key),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${v===Q.key?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:Q.label},Q.key)),i.jsxs("div",{className:"ml-auto flex gap-1.5",children:[i.jsx("button",{onClick:()=>H(!C),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${C?"bg-confirmed/10 text-confirmed":"text-muted-foreground"}`,children:C?"● Live":"○ Paused"}),i.jsx("button",{onClick:()=>h(!j),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${j?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:j?"⤓ Auto":"⤓ Scroll"})]})]}),i.jsx("div",{className:"overflow-hidden rounded-md border border-border bg-card",children:i.jsxs("div",{className:"max-h-[70vh] overflow-y-auto p-3 font-mono text-xs leading-relaxed",children:[fe.map(Q=>i.jsxs("div",{className:"flex gap-2 hover:bg-muted/30",children:[i.jsx("span",{className:"w-10 shrink-0 select-none text-right text-muted-foreground/30",children:Q.line}),i.jsx("span",{className:Pd[Q.category]||Pd.other,children:Q.text})]},Q.line)),fe.length===0&&i.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:s.length===0?"Loading...":"No matching log entries."}),i.jsx("div",{ref:L})]})})]})}function Og(){const[s,o]=k.useState(null),[m,r]=k.useState(!1);k.useEffect(()=>{P0().then(o)},[]);const p=k.useCallback(async N=>{r(!1),await I0(N)?o(!0):r(!0)},[]);return{authed:s,login:p,error:m}}function Cg(s){k.useEffect(()=>(lm(),am(s)),[s])}function Ug(){const[s,o]=k.useState({overview:null,agents:null,tasks:null,consensus:null,consensusReports:null,memories:null,loading:!0,error:null}),m=k.useCallback(async()=>{try{const[r,p,N,v,_]=await Promise.all([Rt("overview"),Rt("agents"),Rt("tasks?limit=50"),Rt("consensus?pageSize=50"),Rt("consensus-reports?page=1&pageSize=5").catch(()=>({reports:[]}))]),j=p.slice(0,5).map(L=>L.id).concat(["_project"]),h=await Promise.allSettled(j.map(L=>Rt(`memory/${L}`))),C=[];for(let L=0;L<h.length;L++){const ne=h[L],fe=j[L];if(ne.status==="fulfilled"&&ne.value.knowledge)for(const he of ne.value.knowledge)C.push({...he,agentId:fe})}C.sort((L,ne)=>ne.filename>L.filename?1:-1);const H=C.slice(0,20);o({overview:r,agents:p,tasks:N,consensus:v,consensusReports:_,memories:H,loading:!1,error:null})}catch(r){o(p=>({...p,loading:!1,error:r.message}))}},[]);return k.useEffect(()=>{m()},[m]),{...s,refresh:m}}function Rg({agents:s,tasks:o}){const[m,r]=k.useState("weight"),[p,N]=k.useState("desc"),[v,_]=k.useState(""),j=new Map;if(o)for(const X of o.items){const ue=j.get(X.agentId);(!ue||X.timestamp>ue.timestamp)&&j.set(X.agentId,X)}const h=s.filter(X=>X.scores.circuitOpen).length,C=s.filter(X=>X.scores.accuracy>=.5).length,H=s.reduce((X,ue)=>X+ue.scores.signals,0),L=s.reduce((X,ue)=>X+ue.totalTokens,0),ne=v.trim().toLowerCase(),fe=ne?s.filter(X=>X.id.toLowerCase().includes(ne)||X.provider.toLowerCase().includes(ne)||X.model.toLowerCase().includes(ne)):s,he=X=>{const ue=X.scores;switch(m){case"weight":return ue.dispatchWeight;case"accuracy":return ue.accuracy;case"uniqueness":return ue.uniqueness;case"impact":return ue.impactScore;case"signals":return ue.signals;case"agreements":return ue.agreements;case"hallucinations":return ue.hallucinations;case"lastTask":{const A=j.get(X.id);return A?new Date(A.timestamp).getTime():0}}},Q=[...fe].sort((X,ue)=>{const A=he(X),le=he(ue);return p==="desc"?le-A:A-le}),K=X=>{m===X?N(ue=>ue==="desc"?"asc":"desc"):(r(X),N("desc"))},re=X=>m===X?p==="desc"?"▾":"▴":"";return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("h1",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Team ",i.jsx("span",{className:"ml-2 text-primary",children:s.length})]}),i.jsx("div",{className:"mt-2 grid grid-cols-2 gap-px overflow-hidden rounded-md border border-border/40 bg-border/30 sm:grid-cols-4",children:[{label:"Healthy",value:C,color:"text-confirmed"},{label:"Benched",value:h,color:h>0?"text-destructive":"text-muted-foreground"},{label:"Total Signals",value:H.toLocaleString(),color:"text-foreground"},{label:"Tokens Used",value:L.toLocaleString(),color:"text-foreground"}].map(X=>i.jsxs("div",{className:"bg-card/80 px-4 py-3",children:[i.jsx("div",{className:`font-mono text-lg font-bold tabular-nums ${X.color}`,children:X.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[10px] uppercase tracking-wider text-muted-foreground/70",children:X.label})]},X.label))})]}),i.jsx("div",{className:"mb-3",children:i.jsx("input",{type:"text",value:v,onChange:X=>_(X.target.value),placeholder:"Search agents by id, provider, or model...",className:"w-full max-w-md rounded-md border border-border/40 bg-card/80 px-3 py-1.5 font-mono text-xs text-foreground placeholder:text-muted-foreground/50 focus:border-primary/40 focus:outline-none"})}),i.jsx("div",{className:"overflow-hidden rounded-md border border-border/40 bg-card/80",children:i.jsxs("table",{className:"w-full text-left",children:[i.jsxs("colgroup",{children:[i.jsx("col",{style:{width:44}}),i.jsx("col",{}),i.jsx("col",{style:{width:80}}),i.jsx("col",{style:{width:260}}),i.jsx("col",{style:{width:80}}),i.jsx("col",{style:{width:60}}),i.jsx("col",{})]}),i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-border/40 bg-muted/20 font-mono text-[10px] uppercase tracking-wider text-muted-foreground/80",children:[i.jsx("th",{className:"py-2.5 pl-5 pr-2 text-center",children:"#"}),i.jsx("th",{className:"py-2.5 pr-3 text-left",children:"Agent"}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>K("weight"),children:["Weight ",re("weight")]}),i.jsx("th",{className:"py-2.5 pr-4 text-left align-top",children:i.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[i.jsxs("button",{onClick:()=>K("accuracy"),className:"flex items-center gap-1 hover:text-foreground",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-confirmed"}),"Acc",re("accuracy")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>K("uniqueness"),className:"flex items-center gap-1 hover:text-foreground",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-unique"}),"Unq",re("uniqueness")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>K("impact"),className:"flex items-center gap-1 hover:text-foreground",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-[var(--color-impact)]"}),"Imp",re("impact")]})]})}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>K("signals"),children:["Signals ",re("signals")]}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>K("hallucinations"),"data-tooltip":"Hallucinations — fabricated findings caught by cross-review",children:["Halluc ",re("hallucinations")]}),i.jsxs("th",{className:"py-2.5 pr-5 text-left cursor-pointer select-none hover:text-foreground",onClick:()=>K("lastTask"),children:["Last Task ",re("lastTask")]})]})}),i.jsx("tbody",{children:Q.map((X,ue)=>{const A=X.scores,le=j.get(X.id),B=A.dispatchWeight>=1.2?"text-confirmed":A.dispatchWeight>=.8?"text-foreground":"text-disputed",W=p==="desc"&&(m==="weight"||m==="accuracy"||m==="impact")?ue+1:null;return i.jsxs("tr",{className:"group border-t border-border/20 align-top transition hover:bg-accent/20",children:[i.jsx("td",{className:"py-3 pl-5 pr-2 text-center align-top",children:i.jsx("span",{className:`font-mono text-[11px] tabular-nums ${W===1?"font-bold text-primary":W===2||W===3?"font-semibold text-foreground/80":"text-muted-foreground/40"}`,children:W??"·"})}),i.jsx("td",{className:"py-2.5 pr-3 align-top",children:i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(X.id)}`,className:"flex items-center gap-3",children:[i.jsx(Ds,{agentId:X.id,size:32,signals:A.signals,accuracy:A.accuracy,uniqueness:A.uniqueness,impact:A.impactScore}),i.jsxs("div",{className:"min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"truncate font-mono text-xs font-semibold text-foreground group-hover:text-primary",children:X.id}),A.circuitOpen&&i.jsx("span",{className:"shrink-0 rounded bg-destructive/15 px-1 font-mono text-[8px] font-bold uppercase tracking-wider text-destructive","data-tooltip":"Benched: too many consecutive failures. Deprioritized until new clean signals recover the score.",children:"benched"})]}),i.jsxs("div",{className:"truncate font-mono text-[10px] text-muted-foreground/50",children:[X.provider,"/",X.model]})]})]})}),i.jsx("td",{className:"py-3 pr-4 text-right align-top",children:i.jsx("span",{className:`font-mono text-sm font-bold tabular-nums ${B}`,children:A.dispatchWeight.toFixed(2)})}),i.jsx("td",{className:"py-3 pr-4 align-top",children:i.jsxs("div",{className:"space-y-1",children:[i.jsx(_s,{label:"A",value:A.accuracy,fillClass:A.accuracy>=.7?"bg-confirmed":A.accuracy>=.4?"bg-unverified":"bg-disputed"}),i.jsx(_s,{label:"U",value:A.uniqueness,fillClass:"bg-unique"}),i.jsx(_s,{label:"I",value:A.impactScore,fillClass:"bg-[var(--color-impact)]"})]})}),i.jsx("td",{className:"py-3 pr-4 text-right align-top font-mono text-xs tabular-nums text-foreground",children:A.signals.toLocaleString()}),i.jsx("td",{className:"py-3 pr-4 text-right align-top font-mono text-xs tabular-nums",children:i.jsx("span",{className:A.hallucinations>0?"font-bold text-destructive":"text-muted-foreground/40","data-tooltip":`Agreements ${A.agreements} · Disagreements ${A.disagreements} · Hallucinations ${A.hallucinations}`,children:A.hallucinations})}),i.jsx("td",{className:"py-3 pr-5 align-top",children:le?i.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[i.jsx("span",{className:"shrink-0 rounded border border-amber-500/30 bg-amber-500/10 px-1.5 py-0.5 font-mono text-[9px] font-semibold text-amber-400",children:le.taskId.slice(0,8)}),i.jsx("span",{className:"truncate font-mono text-[11px] text-muted-foreground/80",style:{maxWidth:260},children:le.task}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Dt(le.timestamp)})]}):i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/30",children:"no tasks"})})]},X.id)})})]})})]})}function _s({label:s,value:o,fillClass:m}){return i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"w-2 font-mono text-[8px] uppercase text-muted-foreground/50",children:s}),i.jsx("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-background/60",children:i.jsx("div",{className:`h-full rounded-full ${m}`,style:{width:`${Math.max(0,Math.min(100,o*100))}%`}})}),i.jsxs("span",{className:"w-8 text-right font-mono text-[10px] tabular-nums text-foreground/80",children:[Math.round(o*100),"%"]})]})}function qg({tasks:s}){const[o,m]=k.useState(""),[r,p]=k.useState(0),[N,v]=k.useState(null),_=50,j=s.items.filter(Q=>Q.status==="completed").length,h=s.items.filter(Q=>Q.status==="failed").length,C=s.items.filter(Q=>Q.status==="running").length,H=o.trim().toLowerCase(),L=H?s.items.filter(Q=>{var K,re,X,ue;return((K=Q.task)==null?void 0:K.toLowerCase().includes(H))||((re=Q.agentId)==null?void 0:re.toLowerCase().includes(H))||((X=Q.taskId)==null?void 0:X.toLowerCase().includes(H))||((ue=Q.status)==null?void 0:ue.toLowerCase().includes(H))}):s.items,ne=Math.max(1,Math.ceil(L.length/_)),fe=Math.min(r,ne-1),he=L.slice(fe*_,(fe+1)*_);return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("h1",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Tasks ",i.jsx("span",{className:"ml-2 text-primary",children:s.total})]}),i.jsxs("div",{className:"mt-2 flex gap-4 font-mono text-[11px] text-muted-foreground",children:[i.jsxs("span",{children:[i.jsx("span",{className:"text-confirmed",children:j})," completed"]}),h>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-destructive",children:h})," failed"]}),C>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:C})," running"]}),i.jsxs("span",{children:["showing ",he.length," of ",L.length,H&&` (filtered from ${s.items.length})`]})]})]}),i.jsxs("div",{className:"mb-3 flex items-center justify-between gap-3",children:[i.jsx("input",{type:"text",value:o,onChange:Q=>{m(Q.target.value),p(0)},placeholder:"Search tasks by description, agent, id, status...",className:"w-full max-w-md rounded-md border border-border/40 bg-card/80 px-3 py-1.5 font-mono text-xs text-foreground placeholder:text-muted-foreground/50 focus:border-primary/40 focus:outline-none"}),ne>1&&i.jsxs("div",{className:"flex shrink-0 items-center gap-2 font-mono text-[11px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>p(Q=>Math.max(0,Q-1)),disabled:fe===0,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Prev"}),i.jsxs("span",{children:[fe+1," / ",ne]}),i.jsx("button",{onClick:()=>p(Q=>Math.min(ne-1,Q+1)),disabled:fe>=ne-1,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}),i.jsx("div",{className:"overflow-hidden rounded-md border border-border/40 bg-card/80",children:he.length===0?i.jsx("div",{className:"py-12 text-center text-sm text-muted-foreground",children:H?"No tasks match your search.":"No tasks yet."}):i.jsxs("table",{className:"w-full text-left",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-border/40 bg-muted/30",children:[i.jsx("th",{className:"py-2.5 pl-4 pr-2 text-xs font-medium text-muted-foreground",style:{width:32}}),i.jsx("th",{className:"py-2.5 pr-3 font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"ID"}),i.jsx("th",{className:"py-2.5 pr-3 font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Agent"}),i.jsx("th",{className:"py-2.5 pr-3 text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Description"}),i.jsx("th",{className:"py-2.5 pr-3 font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Duration"}),i.jsx("th",{className:"py-2.5 pr-4 text-right font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"When"})]})}),i.jsx("tbody",{children:he.map(Q=>i.jsx(cm,{task:Q,onClick:v},Q.taskId))})]})}),i.jsx(gg,{task:N,onClose:()=>v(null)})]})}function Hg({consensus:s,consensusReports:o}){const m=s.runs.reduce((N,v)=>N+(v.counts.agreement||0),0),r=s.runs.reduce((N,v)=>N+((v.counts.disagreement||0)+(v.counts.hallucination||0)),0),p=s.runs.reduce((N,v)=>N+(v.counts.unverified||0),0);return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("h1",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Debates ",i.jsx("span",{className:"ml-2 text-foreground",children:s.totalRuns??s.runs.length})]}),i.jsxs("div",{className:"mt-2 flex gap-4 font-mono text-[11px] text-muted-foreground",children:[i.jsxs("span",{children:[i.jsx("span",{className:"text-confirmed",children:m})," confirmed"]}),i.jsxs("span",{children:[i.jsx("span",{className:"text-disputed",children:r})," disputed"]}),p>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:p})," unverified"]}),i.jsxs("span",{children:[s.totalSignals," total signals"]})]})]}),i.jsx(im,{consensus:s,reports:o,showAll:!0,hideHeader:!0})]})}function Bg(){const s=tm(),{overview:o,agents:m,tasks:r,consensus:p,consensusReports:N,memories:v,loading:_,refresh:j}=Ug(),[h,C]=k.useState(0),H=k.useCallback(fe=>{fe.type!=="log_lines"&&j()},[j]);if(Cg(H),_||!o||!p)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Kd,{}),i.jsx("div",{className:"flex items-center justify-center py-20 text-muted-foreground",children:"Loading dashboard..."})]});let L;const ne=s.match(/^\/agent\/(.+)$/);if(ne&&m){const fe=decodeURIComponent(ne[1]);L=i.jsx(_g,{agentId:fe,agents:m,tasks:r,consensus:p})}else s==="/team"&&m?L=i.jsx(Rg,{agents:m,tasks:r}):s==="/tasks"&&r?L=i.jsx(qg,{tasks:r}):s==="/debates"&&p?L=i.jsx(Hg,{consensus:p,consensusReports:N}):s==="/logs"?L=i.jsx(Dg,{}):L=i.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[280px_1fr] lg:items-start",children:[i.jsxs("aside",{className:"space-y-4 lg:sticky lg:top-4",children:[i.jsx($0,{overview:o,activeTasks:h}),m&&i.jsx(F0,{agents:m})]}),i.jsxs("main",{className:"min-w-0 space-y-6",children:[i.jsx(lg,{onCountChange:C}),m&&i.jsx(mg,{agents:m}),i.jsx(im,{consensus:p,reports:N}),i.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[r&&i.jsx(bg,{tasks:r}),v&&i.jsx(Sg,{memories:v})]})]})]});return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Kd,{}),i.jsx("main",{className:"mx-auto max-w-7xl space-y-6 px-6 py-6",children:L})]})}function Yg(){const{authed:s,login:o,error:m}=Og();return s===null?i.jsx("div",{className:"flex min-h-screen items-center justify-center text-muted-foreground",children:"Loading..."}):s?i.jsx(Bg,{}):i.jsx(Q0,{onLogin:o,error:m})}L0.createRoot(document.getElementById("root")).render(i.jsx(k.StrictMode,{children:i.jsx(Yg,{})}));
|