gossipcat 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var O0=Object.defineProperty;var C0=(s,o,d)=>o in s?O0(s,o,{enumerable:!0,configurable:!0,writable:!0,value:d}):s[o]=d;var Je=(s,o,d)=>C0(s,typeof o!="symbol"?o+"":o,d);(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))f(h);new MutationObserver(h=>{for(const S of h)if(S.type==="childList")for(const y of S.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&f(y)}).observe(document,{childList:!0,subtree:!0});function d(h){const S={};return h.integrity&&(S.integrity=h.integrity),h.referrerPolicy&&(S.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?S.credentials="include":h.crossOrigin==="anonymous"?S.credentials="omit":S.credentials="same-origin",S}function f(h){if(h.ep)return;h.ep=!0;const S=d(h);fetch(h.href,S)}})();var bs={exports:{}},Ra={};/**
1
+ var O0=Object.defineProperty;var C0=(s,o,d)=>o in s?O0(s,o,{enumerable:!0,configurable:!0,writable:!0,value:d}):s[o]=d;var $e=(s,o,d)=>C0(s,typeof o!="symbol"?o+"":o,d);(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))f(h);new MutationObserver(h=>{for(const S of h)if(S.type==="childList")for(const y of S.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&f(y)}).observe(document,{childList:!0,subtree:!0});function d(h){const S={};return h.integrity&&(S.integrity=h.integrity),h.referrerPolicy&&(S.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?S.credentials="include":h.crossOrigin==="anonymous"?S.credentials="omit":S.credentials="same-origin",S}function f(h){if(h.ep)return;h.ep=!0;const S=d(h);fetch(h.href,S)}})();var bs={exports:{}},Ra={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -14,7 +14,7 @@ var O0=Object.defineProperty;var C0=(s,o,d)=>o in s?O0(s,o,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Gd;function q0(){if(Gd)return oe;Gd=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),y=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),Q=Symbol.iterator;function le(x){return x===null||typeof x!="object"?null:(x=Q&&x[Q]||x["@@iterator"],typeof x=="function"?x:null)}var fe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},he=Object.assign,Z={};function W(x,_,Y){this.props=x,this.context=_,this.refs=Z,this.updater=Y||fe}W.prototype.isReactComponent={},W.prototype.setState=function(x,_){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,_,"setState")},W.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function ge(){}ge.prototype=W.prototype;function L(x,_,Y){this.props=x,this.context=_,this.refs=Z,this.updater=Y||fe}var ne=L.prototype=new ge;ne.constructor=L,he(ne,W.prototype),ne.isPureReactComponent=!0;var D=Array.isArray;function ae(){}var B={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ce(x,_,Y){var k=Y.ref;return{$$typeof:s,type:x,key:_,ref:k!==void 0?k:null,props:Y}}function ie(x,_){return ce(x.type,_,x.props)}function G(x){return typeof x=="object"&&x!==null&&x.$$typeof===s}function w(x){var _={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(Y){return _[Y]})}var z=/\/+/g;function P(x,_){return typeof x=="object"&&x!==null&&x.key!=null?w(""+x.key):_.toString(36)}function I(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ae,ae):(x.status="pending",x.then(function(_){x.status==="pending"&&(x.status="fulfilled",x.value=_)},function(_){x.status==="pending"&&(x.status="rejected",x.reason=_)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function T(x,_,Y,k,se){var xe=typeof x;(xe==="undefined"||xe==="boolean")&&(x=null);var Ne=!1;if(x===null)Ne=!0;else switch(xe){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(x.$$typeof){case s:case o:Ne=!0;break;case C:return Ne=x._init,T(Ne(x._payload),_,Y,k,se)}}if(Ne)return se=se(x),Ne=k===""?"."+P(x,0):k,D(se)?(Y="",Ne!=null&&(Y=Ne.replace(z,"$&/")+"/"),T(se,_,Y,"",function(Zt){return Zt})):se!=null&&(G(se)&&(se=ie(se,Y+(se.key==null||x&&x.key===se.key?"":(""+se.key).replace(z,"$&/")+"/")+Ne)),_.push(se)),1;Ne=0;var $e=k===""?".":k+":";if(D(x))for(var qe=0;qe<x.length;qe++)k=x[qe],xe=$e+P(k,qe),Ne+=T(k,_,Y,xe,se);else if(qe=le(x),typeof qe=="function")for(x=qe.call(x),qe=0;!(k=x.next()).done;)k=k.value,xe=$e+P(k,qe++),Ne+=T(k,_,Y,xe,se);else if(xe==="object"){if(typeof x.then=="function")return T(I(x),_,Y,k,se);throw _=String(x),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function H(x,_,Y){if(x==null)return x;var k=[],se=0;return T(x,k,"","",function(xe){return _.call(Y,xe,se++)}),k}function V(x){if(x._status===-1){var _=x._result;_=_(),_.then(function(Y){(x._status===0||x._status===-1)&&(x._status=1,x._result=Y)},function(Y){(x._status===0||x._status===-1)&&(x._status=2,x._result=Y)}),x._status===-1&&(x._status=0,x._result=_)}if(x._status===1)return x._result.default;throw x._result}var X=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},re={map:H,forEach:function(x,_,Y){H(x,function(){_.apply(this,arguments)},Y)},count:function(x){var _=0;return H(x,function(){_++}),_},toArray:function(x){return H(x,function(_){return _})||[]},only:function(x){if(!G(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return oe.Activity=q,oe.Children=re,oe.Component=W,oe.Fragment=d,oe.Profiler=h,oe.PureComponent=L,oe.StrictMode=f,oe.Suspense=v,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,oe.__COMPILER_RUNTIME={__proto__:null,c:function(x){return B.H.useMemoCache(x)}},oe.cache=function(x){return function(){return x.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(x,_,Y){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var k=he({},x.props),se=x.key;if(_!=null)for(xe in _.key!==void 0&&(se=""+_.key),_)!J.call(_,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&_.ref===void 0||(k[xe]=_[xe]);var xe=arguments.length-2;if(xe===1)k.children=Y;else if(1<xe){for(var Ne=Array(xe),$e=0;$e<xe;$e++)Ne[$e]=arguments[$e+2];k.children=Ne}return ce(x.type,se,k)},oe.createContext=function(x){return x={$$typeof:y,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:S,_context:x},x},oe.createElement=function(x,_,Y){var k,se={},xe=null;if(_!=null)for(k in _.key!==void 0&&(xe=""+_.key),_)J.call(_,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(se[k]=_[k]);var Ne=arguments.length-2;if(Ne===1)se.children=Y;else if(1<Ne){for(var $e=Array(Ne),qe=0;qe<Ne;qe++)$e[qe]=arguments[qe+2];se.children=$e}if(x&&x.defaultProps)for(k in Ne=x.defaultProps,Ne)se[k]===void 0&&(se[k]=Ne[k]);return ce(x,xe,se)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(x){return{$$typeof:A,render:x}},oe.isValidElement=G,oe.lazy=function(x){return{$$typeof:C,_payload:{_status:-1,_result:x},_init:V}},oe.memo=function(x,_){return{$$typeof:g,type:x,compare:_===void 0?null:_}},oe.startTransition=function(x){var _=B.T,Y={};B.T=Y;try{var k=x(),se=B.S;se!==null&&se(Y,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(ae,X)}catch(xe){X(xe)}finally{_!==null&&Y.types!==null&&(_.types=Y.types),B.T=_}},oe.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},oe.use=function(x){return B.H.use(x)},oe.useActionState=function(x,_,Y){return B.H.useActionState(x,_,Y)},oe.useCallback=function(x,_){return B.H.useCallback(x,_)},oe.useContext=function(x){return B.H.useContext(x)},oe.useDebugValue=function(){},oe.useDeferredValue=function(x,_){return B.H.useDeferredValue(x,_)},oe.useEffect=function(x,_){return B.H.useEffect(x,_)},oe.useEffectEvent=function(x){return B.H.useEffectEvent(x)},oe.useId=function(){return B.H.useId()},oe.useImperativeHandle=function(x,_,Y){return B.H.useImperativeHandle(x,_,Y)},oe.useInsertionEffect=function(x,_){return B.H.useInsertionEffect(x,_)},oe.useLayoutEffect=function(x,_){return B.H.useLayoutEffect(x,_)},oe.useMemo=function(x,_){return B.H.useMemo(x,_)},oe.useOptimistic=function(x,_){return B.H.useOptimistic(x,_)},oe.useReducer=function(x,_,Y){return B.H.useReducer(x,_,Y)},oe.useRef=function(x){return B.H.useRef(x)},oe.useState=function(x){return B.H.useState(x)},oe.useSyncExternalStore=function(x,_,Y){return B.H.useSyncExternalStore(x,_,Y)},oe.useTransition=function(){return B.H.useTransition()},oe.version="19.2.4",oe}var wd;function Us(){return wd||(wd=1,vs.exports=q0()),vs.exports}var K=Us(),ys={exports:{}},qa={},Ss={exports:{}},Ns={};/**
17
+ */var Gd;function q0(){if(Gd)return oe;Gd=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),y=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),Q=Symbol.iterator;function le(x){return x===null||typeof x!="object"?null:(x=Q&&x[Q]||x["@@iterator"],typeof x=="function"?x:null)}var fe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},he=Object.assign,Z={};function W(x,_,G){this.props=x,this.context=_,this.refs=Z,this.updater=G||fe}W.prototype.isReactComponent={},W.prototype.setState=function(x,_){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,_,"setState")},W.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function ge(){}ge.prototype=W.prototype;function L(x,_,G){this.props=x,this.context=_,this.refs=Z,this.updater=G||fe}var ne=L.prototype=new ge;ne.constructor=L,he(ne,W.prototype),ne.isPureReactComponent=!0;var D=Array.isArray;function ae(){}var B={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ce(x,_,G){var k=G.ref;return{$$typeof:s,type:x,key:_,ref:k!==void 0?k:null,props:G}}function ie(x,_){return ce(x.type,_,x.props)}function Y(x){return typeof x=="object"&&x!==null&&x.$$typeof===s}function w(x){var _={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return _[G]})}var z=/\/+/g;function P(x,_){return typeof x=="object"&&x!==null&&x.key!=null?w(""+x.key):_.toString(36)}function I(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ae,ae):(x.status="pending",x.then(function(_){x.status==="pending"&&(x.status="fulfilled",x.value=_)},function(_){x.status==="pending"&&(x.status="rejected",x.reason=_)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function T(x,_,G,k,se){var xe=typeof x;(xe==="undefined"||xe==="boolean")&&(x=null);var je=!1;if(x===null)je=!0;else switch(xe){case"bigint":case"string":case"number":je=!0;break;case"object":switch(x.$$typeof){case s:case o:je=!0;break;case C:return je=x._init,T(je(x._payload),_,G,k,se)}}if(je)return se=se(x),je=k===""?"."+P(x,0):k,D(se)?(G="",je!=null&&(G=je.replace(z,"$&/")+"/"),T(se,_,G,"",function(Vt){return Vt})):se!=null&&(Y(se)&&(se=ie(se,G+(se.key==null||x&&x.key===se.key?"":(""+se.key).replace(z,"$&/")+"/")+je)),_.push(se)),1;je=0;var We=k===""?".":k+":";if(D(x))for(var qe=0;qe<x.length;qe++)k=x[qe],xe=We+P(k,qe),je+=T(k,_,G,xe,se);else if(qe=le(x),typeof qe=="function")for(x=qe.call(x),qe=0;!(k=x.next()).done;)k=k.value,xe=We+P(k,qe++),je+=T(k,_,G,xe,se);else if(xe==="object"){if(typeof x.then=="function")return T(I(x),_,G,k,se);throw _=String(x),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return je}function H(x,_,G){if(x==null)return x;var k=[],se=0;return T(x,k,"","",function(xe){return _.call(G,xe,se++)}),k}function V(x){if(x._status===-1){var _=x._result;_=_(),_.then(function(G){(x._status===0||x._status===-1)&&(x._status=1,x._result=G)},function(G){(x._status===0||x._status===-1)&&(x._status=2,x._result=G)}),x._status===-1&&(x._status=0,x._result=_)}if(x._status===1)return x._result.default;throw x._result}var X=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},re={map:H,forEach:function(x,_,G){H(x,function(){_.apply(this,arguments)},G)},count:function(x){var _=0;return H(x,function(){_++}),_},toArray:function(x){return H(x,function(_){return _})||[]},only:function(x){if(!Y(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return oe.Activity=q,oe.Children=re,oe.Component=W,oe.Fragment=d,oe.Profiler=h,oe.PureComponent=L,oe.StrictMode=f,oe.Suspense=v,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,oe.__COMPILER_RUNTIME={__proto__:null,c:function(x){return B.H.useMemoCache(x)}},oe.cache=function(x){return function(){return x.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(x,_,G){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var k=he({},x.props),se=x.key;if(_!=null)for(xe in _.key!==void 0&&(se=""+_.key),_)!J.call(_,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&_.ref===void 0||(k[xe]=_[xe]);var xe=arguments.length-2;if(xe===1)k.children=G;else if(1<xe){for(var je=Array(xe),We=0;We<xe;We++)je[We]=arguments[We+2];k.children=je}return ce(x.type,se,k)},oe.createContext=function(x){return x={$$typeof:y,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:S,_context:x},x},oe.createElement=function(x,_,G){var k,se={},xe=null;if(_!=null)for(k in _.key!==void 0&&(xe=""+_.key),_)J.call(_,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(se[k]=_[k]);var je=arguments.length-2;if(je===1)se.children=G;else if(1<je){for(var We=Array(je),qe=0;qe<je;qe++)We[qe]=arguments[qe+2];se.children=We}if(x&&x.defaultProps)for(k in je=x.defaultProps,je)se[k]===void 0&&(se[k]=je[k]);return ce(x,xe,se)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(x){return{$$typeof:A,render:x}},oe.isValidElement=Y,oe.lazy=function(x){return{$$typeof:C,_payload:{_status:-1,_result:x},_init:V}},oe.memo=function(x,_){return{$$typeof:g,type:x,compare:_===void 0?null:_}},oe.startTransition=function(x){var _=B.T,G={};B.T=G;try{var k=x(),se=B.S;se!==null&&se(G,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(ae,X)}catch(xe){X(xe)}finally{_!==null&&G.types!==null&&(_.types=G.types),B.T=_}},oe.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},oe.use=function(x){return B.H.use(x)},oe.useActionState=function(x,_,G){return B.H.useActionState(x,_,G)},oe.useCallback=function(x,_){return B.H.useCallback(x,_)},oe.useContext=function(x){return B.H.useContext(x)},oe.useDebugValue=function(){},oe.useDeferredValue=function(x,_){return B.H.useDeferredValue(x,_)},oe.useEffect=function(x,_){return B.H.useEffect(x,_)},oe.useEffectEvent=function(x){return B.H.useEffectEvent(x)},oe.useId=function(){return B.H.useId()},oe.useImperativeHandle=function(x,_,G){return B.H.useImperativeHandle(x,_,G)},oe.useInsertionEffect=function(x,_){return B.H.useInsertionEffect(x,_)},oe.useLayoutEffect=function(x,_){return B.H.useLayoutEffect(x,_)},oe.useMemo=function(x,_){return B.H.useMemo(x,_)},oe.useOptimistic=function(x,_){return B.H.useOptimistic(x,_)},oe.useReducer=function(x,_,G){return B.H.useReducer(x,_,G)},oe.useRef=function(x){return B.H.useRef(x)},oe.useState=function(x){return B.H.useState(x)},oe.useSyncExternalStore=function(x,_,G){return B.H.useSyncExternalStore(x,_,G)},oe.useTransition=function(){return B.H.useTransition()},oe.version="19.2.4",oe}var wd;function Us(){return wd||(wd=1,vs.exports=q0()),vs.exports}var K=Us(),ys={exports:{}},qa={},Ss={exports:{}},js={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var O0=Object.defineProperty;var C0=(s,o,d)=>o in s?O0(s,o,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Ld;function H0(){return Ld||(Ld=1,(function(s){function o(T,H){var V=T.length;T.push(H);e:for(;0<V;){var X=V-1>>>1,re=T[X];if(0<h(re,H))T[X]=H,T[V]=re,V=X;else break e}}function d(T){return T.length===0?null:T[0]}function f(T){if(T.length===0)return null;var H=T[0],V=T.pop();if(V!==H){T[0]=V;e:for(var X=0,re=T.length,x=re>>>1;X<x;){var _=2*(X+1)-1,Y=T[_],k=_+1,se=T[k];if(0>h(Y,V))k<re&&0>h(se,Y)?(T[X]=se,T[k]=V,X=k):(T[X]=Y,T[_]=V,X=_);else if(k<re&&0>h(se,V))T[X]=se,T[k]=V,X=k;else break e}}return H}function h(T,H){var V=T.sortIndex-H.sortIndex;return V!==0?V:T.id-H.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;s.unstable_now=function(){return S.now()}}else{var y=Date,A=y.now();s.unstable_now=function(){return y.now()-A}}var v=[],g=[],C=1,q=null,Q=3,le=!1,fe=!1,he=!1,Z=!1,W=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var H=d(g);H!==null;){if(H.callback===null)f(g);else if(H.startTime<=T)f(g),H.sortIndex=H.expirationTime,o(v,H);else break;H=d(g)}}function D(T){if(he=!1,ne(T),!fe)if(d(v)!==null)fe=!0,ae||(ae=!0,w());else{var H=d(g);H!==null&&I(D,H.startTime-T)}}var ae=!1,B=-1,J=5,ce=-1;function ie(){return Z?!0:!(s.unstable_now()-ce<J)}function G(){if(Z=!1,ae){var T=s.unstable_now();ce=T;var H=!0;try{e:{fe=!1,he&&(he=!1,ge(B),B=-1),le=!0;var V=Q;try{t:{for(ne(T),q=d(v);q!==null&&!(q.expirationTime>T&&ie());){var X=q.callback;if(typeof X=="function"){q.callback=null,Q=q.priorityLevel;var re=X(q.expirationTime<=T);if(T=s.unstable_now(),typeof re=="function"){q.callback=re,ne(T),H=!0;break t}q===d(v)&&f(v),ne(T)}else f(v);q=d(v)}if(q!==null)H=!0;else{var x=d(g);x!==null&&I(D,x.startTime-T),H=!1}}break e}finally{q=null,Q=V,le=!1}H=void 0}}finally{H?w():ae=!1}}}var w;if(typeof L=="function")w=function(){L(G)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,P=z.port2;z.port1.onmessage=G,w=function(){P.postMessage(null)}}else w=function(){W(G,0)};function I(T,H){B=W(function(){T(s.unstable_now())},H)}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(T){T.callback=null},s.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<T?Math.floor(1e3/T):5},s.unstable_getCurrentPriorityLevel=function(){return Q},s.unstable_next=function(T){switch(Q){case 1:case 2:case 3:var H=3;break;default:H=Q}var V=Q;Q=H;try{return T()}finally{Q=V}},s.unstable_requestPaint=function(){Z=!0},s.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var V=Q;Q=T;try{return H()}finally{Q=V}},s.unstable_scheduleCallback=function(T,H,V){var X=s.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?X+V:X):V=X,T){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=V+re,T={id:C++,callback:H,priorityLevel:T,startTime:V,expirationTime:re,sortIndex:-1},V>X?(T.sortIndex=V,o(g,T),d(v)===null&&T===d(g)&&(he?(ge(B),B=-1):he=!0,I(D,V-X))):(T.sortIndex=re,o(v,T),fe||le||(fe=!0,ae||(ae=!0,w()))),T},s.unstable_shouldYield=ie,s.unstable_wrapCallback=function(T){var H=Q;return function(){var V=Q;Q=H;try{return T.apply(this,arguments)}finally{Q=V}}}})(Ns)),Ns}var Xd;function B0(){return Xd||(Xd=1,Ss.exports=H0()),Ss.exports}var js={exports:{}},lt={};/**
25
+ */var Ld;function H0(){return Ld||(Ld=1,(function(s){function o(T,H){var V=T.length;T.push(H);e:for(;0<V;){var X=V-1>>>1,re=T[X];if(0<h(re,H))T[X]=H,T[V]=re,V=X;else break e}}function d(T){return T.length===0?null:T[0]}function f(T){if(T.length===0)return null;var H=T[0],V=T.pop();if(V!==H){T[0]=V;e:for(var X=0,re=T.length,x=re>>>1;X<x;){var _=2*(X+1)-1,G=T[_],k=_+1,se=T[k];if(0>h(G,V))k<re&&0>h(se,G)?(T[X]=se,T[k]=V,X=k):(T[X]=G,T[_]=V,X=_);else if(k<re&&0>h(se,V))T[X]=se,T[k]=V,X=k;else break e}}return H}function h(T,H){var V=T.sortIndex-H.sortIndex;return V!==0?V:T.id-H.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;s.unstable_now=function(){return S.now()}}else{var y=Date,A=y.now();s.unstable_now=function(){return y.now()-A}}var v=[],g=[],C=1,q=null,Q=3,le=!1,fe=!1,he=!1,Z=!1,W=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var H=d(g);H!==null;){if(H.callback===null)f(g);else if(H.startTime<=T)f(g),H.sortIndex=H.expirationTime,o(v,H);else break;H=d(g)}}function D(T){if(he=!1,ne(T),!fe)if(d(v)!==null)fe=!0,ae||(ae=!0,w());else{var H=d(g);H!==null&&I(D,H.startTime-T)}}var ae=!1,B=-1,J=5,ce=-1;function ie(){return Z?!0:!(s.unstable_now()-ce<J)}function Y(){if(Z=!1,ae){var T=s.unstable_now();ce=T;var H=!0;try{e:{fe=!1,he&&(he=!1,ge(B),B=-1),le=!0;var V=Q;try{t:{for(ne(T),q=d(v);q!==null&&!(q.expirationTime>T&&ie());){var X=q.callback;if(typeof X=="function"){q.callback=null,Q=q.priorityLevel;var re=X(q.expirationTime<=T);if(T=s.unstable_now(),typeof re=="function"){q.callback=re,ne(T),H=!0;break t}q===d(v)&&f(v),ne(T)}else f(v);q=d(v)}if(q!==null)H=!0;else{var x=d(g);x!==null&&I(D,x.startTime-T),H=!1}}break e}finally{q=null,Q=V,le=!1}H=void 0}}finally{H?w():ae=!1}}}var w;if(typeof L=="function")w=function(){L(Y)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,P=z.port2;z.port1.onmessage=Y,w=function(){P.postMessage(null)}}else w=function(){W(Y,0)};function I(T,H){B=W(function(){T(s.unstable_now())},H)}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(T){T.callback=null},s.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<T?Math.floor(1e3/T):5},s.unstable_getCurrentPriorityLevel=function(){return Q},s.unstable_next=function(T){switch(Q){case 1:case 2:case 3:var H=3;break;default:H=Q}var V=Q;Q=H;try{return T()}finally{Q=V}},s.unstable_requestPaint=function(){Z=!0},s.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var V=Q;Q=T;try{return H()}finally{Q=V}},s.unstable_scheduleCallback=function(T,H,V){var X=s.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?X+V:X):V=X,T){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=V+re,T={id:C++,callback:H,priorityLevel:T,startTime:V,expirationTime:re,sortIndex:-1},V>X?(T.sortIndex=V,o(g,T),d(v)===null&&T===d(g)&&(he?(ge(B),B=-1):he=!0,I(D,V-X))):(T.sortIndex=re,o(v,T),fe||le||(fe=!0,ae||(ae=!0,w()))),T},s.unstable_shouldYield=ie,s.unstable_wrapCallback=function(T){var H=Q;return function(){var V=Q;Q=H;try{return T.apply(this,arguments)}finally{Q=V}}}})(js)),js}var Xd;function B0(){return Xd||(Xd=1,Ss.exports=H0()),Ss.exports}var Ns={exports:{}},nt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var O0=Object.defineProperty;var C0=(s,o,d)=>o in s?O0(s,o,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Qd;function Y0(){if(Qd)return lt;Qd=1;var s=Us();function o(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)g+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var f={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},h=Symbol.for("react.portal");function S(v,g,C){var q=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:q==null?null:""+q,children:v,containerInfo:g,implementation:C}}var y=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,lt.createPortal=function(v,g){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(o(299));return S(v,g,null,C)},lt.flushSync=function(v){var g=y.T,C=f.p;try{if(y.T=null,f.p=2,v)return v()}finally{y.T=g,f.p=C,f.d.f()}},lt.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,f.d.C(v,g))},lt.prefetchDNS=function(v){typeof v=="string"&&f.d.D(v)},lt.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var C=g.as,q=A(C,g.crossOrigin),Q=typeof g.integrity=="string"?g.integrity:void 0,le=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;C==="style"?f.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:q,integrity:Q,fetchPriority:le}):C==="script"&&f.d.X(v,{crossOrigin:q,integrity:Q,fetchPriority:le,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},lt.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var C=A(g.as,g.crossOrigin);f.d.M(v,{crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&f.d.M(v)},lt.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var C=g.as,q=A(C,g.crossOrigin);f.d.L(v,C,{crossOrigin:q,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},lt.preloadModule=function(v,g){if(typeof v=="string")if(g){var C=A(g.as,g.crossOrigin);f.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else f.d.m(v)},lt.requestFormReset=function(v){f.d.r(v)},lt.unstable_batchedUpdates=function(v,g){return v(g)},lt.useFormState=function(v,g,C){return y.H.useFormState(v,g,C)},lt.useFormStatus=function(){return y.H.useHostTransitionStatus()},lt.version="19.2.4",lt}var Zd;function G0(){if(Zd)return js.exports;Zd=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(),js.exports=Y0(),js.exports}/**
33
+ */var Qd;function Y0(){if(Qd)return nt;Qd=1;var s=Us();function o(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)g+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var f={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},h=Symbol.for("react.portal");function S(v,g,C){var q=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:q==null?null:""+q,children:v,containerInfo:g,implementation:C}}var y=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,nt.createPortal=function(v,g){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(o(299));return S(v,g,null,C)},nt.flushSync=function(v){var g=y.T,C=f.p;try{if(y.T=null,f.p=2,v)return v()}finally{y.T=g,f.p=C,f.d.f()}},nt.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,f.d.C(v,g))},nt.prefetchDNS=function(v){typeof v=="string"&&f.d.D(v)},nt.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var C=g.as,q=A(C,g.crossOrigin),Q=typeof g.integrity=="string"?g.integrity:void 0,le=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;C==="style"?f.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:q,integrity:Q,fetchPriority:le}):C==="script"&&f.d.X(v,{crossOrigin:q,integrity:Q,fetchPriority:le,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},nt.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var C=A(g.as,g.crossOrigin);f.d.M(v,{crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&f.d.M(v)},nt.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var C=g.as,q=A(C,g.crossOrigin);f.d.L(v,C,{crossOrigin:q,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},nt.preloadModule=function(v,g){if(typeof v=="string")if(g){var C=A(g.as,g.crossOrigin);f.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else f.d.m(v)},nt.requestFormReset=function(v){f.d.r(v)},nt.unstable_batchedUpdates=function(v,g){return v(g)},nt.useFormState=function(v,g,C){return y.H.useFormState(v,g,C)},nt.useFormStatus=function(){return y.H.useHostTransitionStatus()},nt.version="19.2.4",nt}var Zd;function G0(){if(Zd)return Ns.exports;Zd=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(),Ns.exports=Y0(),Ns.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,28 +38,28 @@ var O0=Object.defineProperty;var C0=(s,o,d)=>o in s?O0(s,o,{enumerable:!0,config
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Vd;function w0(){if(Vd)return qa;Vd=1;var s=B0(),o=Us(),d=G0();function f(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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function S(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 y(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 A(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 v(e){if(S(e)!==e)throw Error(f(188))}function g(e){var t=e.alternate;if(!t){if(t=S(e),t===null)throw Error(f(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return v(a),e;if(u===n)return v(a),t;u=u.sibling}throw Error(f(188))}if(l.return!==n.return)l=a,n=u;else{for(var c=!1,r=a.child;r;){if(r===l){c=!0,l=a,n=u;break}if(r===n){c=!0,n=a,l=u;break}r=r.sibling}if(!c){for(r=u.child;r;){if(r===l){c=!0,l=u,n=a;break}if(r===n){c=!0,n=u,l=a;break}r=r.sibling}if(!c)throw Error(f(189))}}if(l.alternate!==n)throw Error(f(190))}if(l.tag!==3)throw Error(f(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 q=Object.assign,Q=Symbol.for("react.element"),le=Symbol.for("react.transitional.element"),fe=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ge=Symbol.for("react.consumer"),L=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function w(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var z=Symbol.for("react.client.reference");function P(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case W:return"Profiler";case Z:return"StrictMode";case D:return"Suspense";case ae:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case fe:return"Portal";case L:return e.displayName||"Context";case ge:return(e._context.displayName||"Context")+".Consumer";case ne: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:P(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var I=Array.isArray,T=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},X=[],re=-1;function x(e){return{current:e}}function _(e){0>re||(e.current=X[re],X[re]=null,re--)}function Y(e,t){re++,X[re]=e.current,e.current=t}var k=x(null),se=x(null),xe=x(null),Ne=x(null);function $e(e,t){switch(Y(xe,t),Y(se,e),Y(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=id(t),e=cd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(k),Y(k,e)}function qe(){_(k),_(se),_(xe)}function Zt(e){e.memoizedState!==null&&Y(Ne,e);var t=k.current,l=cd(t,e.type);t!==l&&(Y(se,e),Y(k,l))}function ql(e){se.current===e&&(_(k),_(se)),Ne.current===e&&(_(Ne),Da._currentValue=V)}var ee,Ve;function tt(e){if(ee===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ee=t&&t[1]||"",Ve=-1<l.stack.indexOf(`
41
+ */var Vd;function w0(){if(Vd)return qa;Vd=1;var s=B0(),o=Us(),d=G0();function f(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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function S(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 y(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 A(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 v(e){if(S(e)!==e)throw Error(f(188))}function g(e){var t=e.alternate;if(!t){if(t=S(e),t===null)throw Error(f(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return v(a),e;if(u===n)return v(a),t;u=u.sibling}throw Error(f(188))}if(l.return!==n.return)l=a,n=u;else{for(var c=!1,r=a.child;r;){if(r===l){c=!0,l=a,n=u;break}if(r===n){c=!0,n=a,l=u;break}r=r.sibling}if(!c){for(r=u.child;r;){if(r===l){c=!0,l=u,n=a;break}if(r===n){c=!0,n=u,l=a;break}r=r.sibling}if(!c)throw Error(f(189))}}if(l.alternate!==n)throw Error(f(190))}if(l.tag!==3)throw Error(f(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 q=Object.assign,Q=Symbol.for("react.element"),le=Symbol.for("react.transitional.element"),fe=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ge=Symbol.for("react.consumer"),L=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function w(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var z=Symbol.for("react.client.reference");function P(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case W:return"Profiler";case Z:return"StrictMode";case D:return"Suspense";case ae:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case fe:return"Portal";case L:return e.displayName||"Context";case ge:return(e._context.displayName||"Context")+".Consumer";case ne: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:P(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var I=Array.isArray,T=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},X=[],re=-1;function x(e){return{current:e}}function _(e){0>re||(e.current=X[re],X[re]=null,re--)}function G(e,t){re++,X[re]=e.current,e.current=t}var k=x(null),se=x(null),xe=x(null),je=x(null);function We(e,t){switch(G(xe,t),G(se,e),G(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=id(t),e=cd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(k),G(k,e)}function qe(){_(k),_(se),_(xe)}function Vt(e){e.memoizedState!==null&&G(je,e);var t=k.current,l=cd(t,e.type);t!==l&&(G(se,e),G(k,l))}function Hl(e){se.current===e&&(_(k),_(se)),je.current===e&&(_(je),Da._currentValue=V)}var ee,we;function ke(e){if(ee===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ee=t&&t[1]||"",we=-1<l.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ee+e+Ve}var jt=!1;function tn(e,t){if(!e||jt)return"";jt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(E){var M=E}Reflect.construct(e,[],R)}else{try{R.call()}catch(E){M=E}e.call(R.prototype)}}else{try{throw Error()}catch(E){M=E}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(E){if(E&&M&&typeof E.stack=="string")return[E.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),c=u[0],r=u[1];if(c&&r){var m=c.split(`
44
- `),j=r.split(`
45
- `);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<j.length&&!j[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===j.length)for(n=m.length-1,a=j.length-1;1<=n&&0<=a&&m[n]!==j[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==j[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==j[a]){var O=`
46
- `+m[n].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=n&&0<=a);break}}}finally{jt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?tt(l):""}function Gt(e,t){switch(e.tag){case 26:case 27:case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return e.child!==t&&t!==null?tt("Suspense Fallback"):tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return tn(e.type,!1);case 11:return tn(e.type.render,!1);case 1:return tn(e.type,!0);case 31:return tt("Activity");default:return""}}function Ln(e){try{var t="",l=null;do t+=Gt(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
43
+ `+ee+e+we}var lt=!1;function Gt(e,t){if(!e||lt)return"";lt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(E){var M=E}Reflect.construct(e,[],R)}else{try{R.call()}catch(E){M=E}e.call(R.prototype)}}else{try{throw Error()}catch(E){M=E}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(E){if(E&&M&&typeof E.stack=="string")return[E.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),c=u[0],r=u[1];if(c&&r){var m=c.split(`
44
+ `),N=r.split(`
45
+ `);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===N.length)for(n=m.length-1,a=N.length-1;1<=n&&0<=a&&m[n]!==N[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==N[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==N[a]){var O=`
46
+ `+m[n].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=n&&0<=a);break}}}finally{lt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ke(l):""}function wt(e,t){switch(e.tag){case 26:case 27:case 5:return ke(e.type);case 16:return ke("Lazy");case 13:return e.child!==t&&t!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Gt(e.type,!1);case 11:return Gt(e.type.render,!1);case 1:return Gt(e.type,!0);case 31:return ke("Activity");default:return""}}function Ln(e){try{var t="",l=null;do t+=wt(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
47
47
  Error generating stack: `+n.message+`
48
- `+n.stack}}var ol=Object.prototype.hasOwnProperty,ai=s.unstable_scheduleCallback,ui=s.unstable_cancelCallback,om=s.unstable_shouldYield,rm=s.unstable_requestPaint,mt=s.unstable_now,fm=s.unstable_getCurrentPriorityLevel,Hs=s.unstable_ImmediatePriority,Bs=s.unstable_UserBlockingPriority,Ya=s.unstable_NormalPriority,dm=s.unstable_LowPriority,Ys=s.unstable_IdlePriority,mm=s.log,hm=s.unstable_setDisableYieldValue,Xn=null,ht=null;function rl(e){if(typeof mm=="function"&&hm(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Xn,e)}catch{}}var gt=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 Ga=256,wa=262144,La=4194304;function Hl(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 Xa(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=n&134217727;return r!==0?(n=r&~u,n!==0?a=Hl(n):(c&=r,c!==0?a=Hl(c):l||(l=r&~e,l!==0&&(a=Hl(l))))):(r=n&~u,r!==0?a=Hl(r):c!==0?a=Hl(c):l||(l=n&~e,l!==0&&(a=Hl(l)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:a}function Qn(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 Gs(){var e=La;return La<<=1,(La&62914560)===0&&(La=4194304),e}function ii(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Zn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vm(e,t,l,n,a,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 r=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=c&~l;0<l;){var O=31-gt(l),R=1<<O;r[O]=0,m[O]=-1;var M=j[O];if(M!==null)for(j[O]=null,O=0;O<M.length;O++){var E=M[O];E!==null&&(E.lane&=-536870913)}l&=~R}n!==0&&ws(e,n,0),u!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function ws(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-gt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Ls(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-gt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Xs(e,t){var l=t&-t;return l=(l&42)!==0?1:ci(l),(l&(e.suspendedLanes|t))!==0?0:l}function ci(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 si(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qs(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:Dd(e.type))}function Zs(e,t){var l=H.p;try{return H.p=e,t()}finally{H.p=l}}var fl=Math.random().toString(36).slice(2),We="__reactFiber$"+fl,it="__reactProps$"+fl,ln="__reactContainer$"+fl,oi="__reactEvents$"+fl,ym="__reactListeners$"+fl,Sm="__reactHandles$"+fl,Vs="__reactResources$"+fl,Vn="__reactMarker$"+fl;function ri(e){delete e[We],delete e[it],delete e[oi],delete e[ym],delete e[Sm]}function nn(e){var t=e[We];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ln]||l[We]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=hd(e);e!==null;){if(l=e[We])return l;e=hd(e)}return t}e=l,l=e.parentNode}return null}function an(e){if(e=e[We]||e[ln]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function un(e){var t=e[Vs];return t||(t=e[Vs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ke(e){e[Vn]=!0}var ks=new Set,Ks={};function Bl(e,t){cn(e,t),cn(e+"Capture",t)}function cn(e,t){for(Ks[e]=t,e=0;e<t.length;e++)ks.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]*$"),Js={},$s={};function jm(e){return ol.call($s,e)?!0:ol.call(Js,e)?!1:Nm.test(e)?$s[e]=!0:(Js[e]=!0,!1)}function Qa(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 n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Za(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Vt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ws(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tm(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){if(!e._valueTracker){var t=Ws(e)?"checked":"value";e._valueTracker=Tm(e,t,""+e[t])}}function Fs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Ws(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Va(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 Mt(e){return e.replace(Mm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function di(e,t,l,n,a,u,c,r){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=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?mi(e,c,Tt(t)):l!=null?mi(e,c,Tt(l)):n!=null&&e.removeAttribute("value"),a==null&&u!=null&&(e.defaultChecked=!!u),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Tt(r):e.removeAttribute("name")}function Is(e,t,l,n,a,u,c,r){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)){fi(e);return}l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=r?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),fi(e)}function mi(e,t,l){t==="number"&&Va(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function sn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Ps(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function eo(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(f(92));if(I(n)){if(1<n.length)throw Error(f(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),fi(e)}function on(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 to(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?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 lo(e,t,l){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&to(e,a,n)}else for(var u in t)t.hasOwnProperty(u)&&to(e,u,t[u])}function hi(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"]]),Am=/^[\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 ka(e){return Am.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kt(){}var gi=null;function xi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,fn=null;function no(e){var t=an(e);if(t&&(e=t.stateNode)){var l=e[it]||null;e:switch(e=t.stateNode,t.type){case"input":if(di(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="'+Mt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[it]||null;if(!a)throw Error(f(90));di(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Fs(n)}break e;case"textarea":Ps(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&sn(e,!!l.multiple,t,!1)}}}var pi=!1;function ao(e,t,l){if(pi)return e(t,l);pi=!0;try{var n=e(t);return n}finally{if(pi=!1,(rn!==null||fn!==null)&&(Uu(),rn&&(t=rn,e=fn,fn=rn=null,no(t),e)))for(t=0;t<e.length;t++)no(e[t])}}function Kn(e,t){var l=e.stateNode;if(l===null)return null;var n=l[it]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(f(231,t,typeof l));return l}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bi=!1;if(Kt)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){bi=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{bi=!1}var dl=null,vi=null,Ka=null;function uo(){if(Ka)return Ka;var e,t=vi,l=t.length,n,a="value"in dl?dl.value:dl.textContent,u=a.length;for(e=0;e<l&&t[e]===a[e];e++);var c=l-e;for(n=1;n<=c&&t[l-n]===a[u-n];n++);return Ka=a.slice(e,1<n?1-n:void 0)}function Ja(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 $a(){return!0}function io(){return!1}function ct(e){function t(l,n,a,u,c){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(u):u[r]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?$a:io,this.isPropagationStopped=io,this}return q(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=$a)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=$a)},persist:function(){},isPersistent:$a}),t}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wa=ct(Yl),$n=q({},Yl,{view:0,detail:0}),zm=ct($n),yi,Si,Wn,Fa=q({},$n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ji,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!==Wn&&(Wn&&e.type==="mousemove"?(yi=e.screenX-Wn.screenX,Si=e.screenY-Wn.screenY):Si=yi=0,Wn=e),yi)},movementY:function(e){return"movementY"in e?e.movementY:Si}}),co=ct(Fa),Dm=q({},Fa,{dataTransfer:0}),Om=ct(Dm),Cm=q({},$n,{relatedTarget:0}),Ni=ct(Cm),Um=q({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),Rm=ct(Um),qm=q({},Yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hm=ct(qm),Bm=q({},Yl,{data:0}),so=ct(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"},wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wm[e])?!!t[e]:!1}function ji(){return Lm}var Xm=q({},$n,{key:function(e){if(e.key){var t=Ym[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ja(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:ji,charCode:function(e){return e.type==="keypress"?Ja(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ja(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qm=ct(Xm),Zm=q({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oo=ct(Zm),Vm=q({},$n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ji}),km=ct(Vm),Km=q({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=ct(Km),$m=q({},Fa,{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=ct($m),Fm=q({},Yl,{newState:0,oldState:0}),Im=ct(Fm),Pm=[9,13,27,32],Ti=Kt&&"CompositionEvent"in window,Fn=null;Kt&&"documentMode"in document&&(Fn=document.documentMode);var eh=Kt&&"TextEvent"in window&&!Fn,ro=Kt&&(!Ti||Fn&&8<Fn&&11>=Fn),fo=" ",mo=!1;function ho(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 go(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function th(e,t){switch(e){case"compositionend":return go(t);case"keypress":return t.which!==32?null:(mo=!0,fo);case"textInput":return e=t.data,e===fo&&mo?null:e;default:return null}}function lh(e,t){if(dn)return e==="compositionend"||!Ti&&ho(e,t)?(e=uo(),Ka=vi=dl=null,dn=!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 ro&&t.locale!=="ko"?null:t.data;default:return null}}var nh={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 xo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nh[e.type]:t==="textarea"}function po(e,t,l,n){rn?fn?fn.push(n):fn=[n]:rn=n,t=wu(t,"onChange"),0<t.length&&(l=new Wa("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var In=null,Pn=null;function ah(e){ed(e,0)}function Ia(e){var t=kn(e);if(Fs(t))return e}function bo(e,t){if(e==="change")return t}var vo=!1;if(Kt){var Mi;if(Kt){var _i="oninput"in document;if(!_i){var yo=document.createElement("div");yo.setAttribute("oninput","return;"),_i=typeof yo.oninput=="function"}Mi=_i}else Mi=!1;vo=Mi&&(!document.documentMode||9<document.documentMode)}function So(){In&&(In.detachEvent("onpropertychange",No),Pn=In=null)}function No(e){if(e.propertyName==="value"&&Ia(Pn)){var t=[];po(t,Pn,e,xi(e)),ao(ah,t)}}function uh(e,t,l){e==="focusin"?(So(),In=t,Pn=l,In.attachEvent("onpropertychange",No)):e==="focusout"&&So()}function ih(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Pn)}function ch(e,t){if(e==="click")return Ia(t)}function sh(e,t){if(e==="input"||e==="change")return Ia(t)}function oh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:oh;function ea(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!ol.call(t,a)||!xt(e[a],t[a]))return!1}return!0}function jo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function To(e,t){var l=jo(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=jo(l)}}function Mo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _o(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Va(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=Va(e.document)}return t}function Ei(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 rh=Kt&&"documentMode"in document&&11>=document.documentMode,mn=null,Ai=null,ta=null,zi=!1;function Eo(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zi||mn==null||mn!==Va(n)||(n=mn,"selectionStart"in n&&Ei(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ta&&ea(ta,n)||(ta=n,n=wu(Ai,"onSelect"),0<n.length&&(t=new Wa("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=mn)))}function Gl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var hn={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},Di={},Ao={};Kt&&(Ao=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function wl(e){if(Di[e])return Di[e];if(!hn[e])return e;var t=hn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ao)return Di[e]=t[l];return e}var zo=wl("animationend"),Do=wl("animationiteration"),Oo=wl("animationstart"),fh=wl("transitionrun"),dh=wl("transitionstart"),mh=wl("transitioncancel"),Co=wl("transitionend"),Uo=new Map,Oi="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(" ");Oi.push("scrollEnd");function qt(e,t){Uo.set(e,t),Bl(t,[e])}var Pa=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)},_t=[],gn=0,Ci=0;function eu(){for(var e=gn,t=Ci=gn=0;t<e;){var l=_t[t];_t[t++]=null;var n=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var u=_t[t];if(_t[t++]=null,n!==null&&a!==null){var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}u!==0&&Ro(l,a,u)}}function tu(e,t,l,n){_t[gn++]=e,_t[gn++]=t,_t[gn++]=l,_t[gn++]=n,Ci|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Ui(e,t,l,n){return tu(e,t,l,n),lu(e)}function Ll(e,t){return tu(e,null,null,t),lu(e)}function Ro(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=e.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(a=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,a&&t!==null&&(a=31-gt(l),e=u.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),u):null}function lu(e){if(50<ja)throw ja=0,Xc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var xn={};function hh(e,t,l,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,l,n){return new hh(e,t,l,n)}function Ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var l=e.alternate;return l===null?(l=pt(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 qo(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 nu(e,t,l,n,a,u){var c=0;if(n=e,typeof e=="function")Ri(e)&&(c=1);else if(typeof e=="string")c=v0(e,l,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=pt(31,l,t,a),e.elementType=ce,e.lanes=u,e;case he:return Xl(l.children,a,u,t);case Z:c=8,a|=24;break;case W:return e=pt(12,l,t,a|2),e.elementType=W,e.lanes=u,e;case D:return e=pt(13,l,t,a),e.elementType=D,e.lanes=u,e;case ae:return e=pt(19,l,t,a),e.elementType=ae,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:c=10;break e;case ge:c=9;break e;case ne:c=11;break e;case B:c=14;break e;case J:c=16,n=null;break e}c=29,l=Error(f(130,e===null?"null":typeof e,"")),n=null}return t=pt(c,l,t,a),t.elementType=e,t.type=n,t.lanes=u,t}function Xl(e,t,l,n){return e=pt(7,e,n,t),e.lanes=l,e}function qi(e,t,l){return e=pt(6,e,null,t),e.lanes=l,e}function Ho(e){var t=pt(18,null,null,0);return t.stateNode=e,t}function Hi(e,t,l){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bo=new WeakMap;function Et(e,t){if(typeof e=="object"&&e!==null){var l=Bo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ln(t)},Bo.set(e,t),t)}return{value:e,source:t,stack:Ln(t)}}var pn=[],bn=0,au=null,la=0,At=[],zt=0,ml=null,wt=1,Lt="";function $t(e,t){pn[bn++]=la,pn[bn++]=au,au=e,la=t}function Yo(e,t,l){At[zt++]=wt,At[zt++]=Lt,At[zt++]=ml,ml=e;var n=wt;e=Lt;var a=32-gt(n)-1;n&=~(1<<a),l+=1;var u=32-gt(t)+a;if(30<u){var c=a-a%5;u=(n&(1<<c)-1).toString(32),n>>=c,a-=c,wt=1<<32-gt(t)+a|l<<a|n,Lt=u+e}else wt=1<<u|l<<a|n,Lt=e}function Bi(e){e.return!==null&&($t(e,1),Yo(e,1,0))}function Yi(e){for(;e===au;)au=pn[--bn],pn[bn]=null,la=pn[--bn],pn[bn]=null;for(;e===ml;)ml=At[--zt],At[zt]=null,Lt=At[--zt],At[zt]=null,wt=At[--zt],At[zt]=null}function Go(e,t){At[zt++]=wt,At[zt++]=Lt,At[zt++]=ml,wt=t.id,Lt=t.overflow,ml=e}var Fe=null,Ce=null,Se=!1,hl=null,Dt=!1,Gi=Error(f(519));function gl(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw na(Et(t,e)),Gi}function wo(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[We]=e,t[it]=n,l){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(l=0;l<Ma.length;l++)be(Ma[l],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Is(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),eo(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||ad(t.textContent,l)?(n.popover!=null&&(be("beforetoggle",t),be("toggle",t)),n.onScroll!=null&&be("scroll",t),n.onScrollEnd!=null&&be("scrollend",t),n.onClick!=null&&(t.onclick=kt),t=!0):t=!1,t||gl(e,!0)}function Lo(e){for(Fe=e.return;Fe;)switch(Fe.tag){case 5:case 31:case 13:Dt=!1;return;case 27:case 3:Dt=!0;return;default:Fe=Fe.return}}function vn(e){if(e!==Fe)return!1;if(!Se)return Lo(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")||ns(e.type,e.memoizedProps)),l=!l),l&&Ce&&gl(e),Lo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Ce=md(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Ce=md(e)}else t===27?(t=Ce,zl(e.type)?(e=ss,ss=null,Ce=e):Ce=t):Ce=Fe?Ct(e.stateNode.nextSibling):null;return!0}function Ql(){Ce=Fe=null,Se=!1}function wi(){var e=hl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),hl=null),e}function na(e){hl===null?hl=[e]:hl.push(e)}var Li=x(null),Zl=null,Wt=null;function xl(e,t,l){Y(Li,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=Li.current,_(Li)}function Xi(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Qi(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var u=a.dependencies;if(u!==null){var c=a.child;u=u.firstContext;e:for(;u!==null;){var r=u;u=a;for(var m=0;m<t.length;m++)if(r.context===t[m]){u.lanes|=l,r=u.alternate,r!==null&&(r.lanes|=l),Xi(u.return,l,e),n||(c=null);break e}u=r.next}}else if(a.tag===18){if(c=a.return,c===null)throw Error(f(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),Xi(c,l,e),c=null}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===e){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}}function yn(e,t,l,n){e=null;for(var a=t,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var c=a.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=a.type;xt(a.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(a===Ne.current){if(c=a.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Da):e=[Da])}a=a.return}e!==null&&Qi(t,e,l,n),t.flags|=262144}function uu(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vl(e){Zl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Xo(Zl,e)}function iu(e,t){return Zl===null&&Vl(e),Xo(e,t)}function Xo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(f(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var gh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},xh=s.unstable_scheduleCallback,ph=s.unstable_NormalPriority,we={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zi(){return{controller:new gh,data:new Map,refCount:0}}function aa(e){e.refCount--,e.refCount===0&&xh(ph,function(){e.controller.abort()})}var ua=null,Vi=0,Sn=0,Nn=null;function bh(e,t){if(ua===null){var l=ua=[];Vi=0,Sn=Jc(),Nn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Vi++,t.then(Qo,Qo),t}function Qo(){if(--Vi===0&&ua!==null){Nn!==null&&(Nn.status="fulfilled");var e=ua;ua=null,Sn=0,Nn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vh(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Zo=T.S;T.S=function(e,t){Af=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bh(e,t),Zo!==null&&Zo(e,t)};var kl=x(null);function ki(){var e=kl.current;return e!==null?e:Oe.pooledCache}function cu(e,t){t===null?Y(kl,kl.current):Y(kl,t.pool)}function Vo(){var e=ki();return e===null?null:{parent:we._currentValue,pool:e}}var jn=Error(f(460)),Ki=Error(f(474)),su=Error(f(542)),ou={then:function(){}};function ko(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ko(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kt,kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e;default:if(typeof t.status=="string")t.then(kt,kt);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e}throw Jl=t,jn}}function Kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Jl=l,jn):l}}var Jl=null;function Jo(){if(Jl===null)throw Error(f(459));var e=Jl;return Jl=null,e}function $o(e){if(e===jn||e===su)throw Error(f(483))}var Tn=null,ia=0;function ru(e){var t=ia;return ia+=1,Tn===null&&(Tn=[]),Ko(Tn,e,t)}function ca(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===Q?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wo(e){function t(b,p){if(e){var N=b.deletions;N===null?(b.deletions=[p],b.flags|=16):N.push(p)}}function l(b,p){if(!e)return null;for(;p!==null;)t(b,p),p=p.sibling;return null}function n(b){for(var p=new Map;b!==null;)b.key!==null?p.set(b.key,b):p.set(b.index,b),b=b.sibling;return p}function a(b,p){return b=Jt(b,p),b.index=0,b.sibling=null,b}function u(b,p,N){return b.index=N,e?(N=b.alternate,N!==null?(N=N.index,N<p?(b.flags|=67108866,p):N):(b.flags|=67108866,p)):(b.flags|=1048576,p)}function c(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function r(b,p,N,U){return p===null||p.tag!==6?(p=qi(N,b.mode,U),p.return=b,p):(p=a(p,N),p.return=b,p)}function m(b,p,N,U){var te=N.type;return te===he?O(b,p,N.props.children,U,N.key):p!==null&&(p.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Kl(te)===p.type)?(p=a(p,N.props),ca(p,N),p.return=b,p):(p=nu(N.type,N.key,N.props,null,b.mode,U),ca(p,N),p.return=b,p)}function j(b,p,N,U){return p===null||p.tag!==4||p.stateNode.containerInfo!==N.containerInfo||p.stateNode.implementation!==N.implementation?(p=Hi(N,b.mode,U),p.return=b,p):(p=a(p,N.children||[]),p.return=b,p)}function O(b,p,N,U,te){return p===null||p.tag!==7?(p=Xl(N,b.mode,U,te),p.return=b,p):(p=a(p,N),p.return=b,p)}function R(b,p,N){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=qi(""+p,b.mode,N),p.return=b,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case le:return N=nu(p.type,p.key,p.props,null,b.mode,N),ca(N,p),N.return=b,N;case fe:return p=Hi(p,b.mode,N),p.return=b,p;case J:return p=Kl(p),R(b,p,N)}if(I(p)||w(p))return p=Xl(p,b.mode,N,null),p.return=b,p;if(typeof p.then=="function")return R(b,ru(p),N);if(p.$$typeof===L)return R(b,iu(b,p),N);fu(b,p)}return null}function M(b,p,N,U){var te=p!==null?p.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return te!==null?null:r(b,p,""+N,U);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case le:return N.key===te?m(b,p,N,U):null;case fe:return N.key===te?j(b,p,N,U):null;case J:return N=Kl(N),M(b,p,N,U)}if(I(N)||w(N))return te!==null?null:O(b,p,N,U,null);if(typeof N.then=="function")return M(b,p,ru(N),U);if(N.$$typeof===L)return M(b,p,iu(b,N),U);fu(b,N)}return null}function E(b,p,N,U,te){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return b=b.get(N)||null,r(p,b,""+U,te);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case le:return b=b.get(U.key===null?N:U.key)||null,m(p,b,U,te);case fe:return b=b.get(U.key===null?N:U.key)||null,j(p,b,U,te);case J:return U=Kl(U),E(b,p,N,U,te)}if(I(U)||w(U))return b=b.get(N)||null,O(p,b,U,te,null);if(typeof U.then=="function")return E(b,p,N,ru(U),te);if(U.$$typeof===L)return E(b,p,N,iu(p,U),te);fu(p,U)}return null}function $(b,p,N,U){for(var te=null,je=null,F=p,me=p=0,ye=null;F!==null&&me<N.length;me++){F.index>me?(ye=F,F=null):ye=F.sibling;var Te=M(b,F,N[me],U);if(Te===null){F===null&&(F=ye);break}e&&F&&Te.alternate===null&&t(b,F),p=u(Te,p,me),je===null?te=Te:je.sibling=Te,je=Te,F=ye}if(me===N.length)return l(b,F),Se&&$t(b,me),te;if(F===null){for(;me<N.length;me++)F=R(b,N[me],U),F!==null&&(p=u(F,p,me),je===null?te=F:je.sibling=F,je=F);return Se&&$t(b,me),te}for(F=n(F);me<N.length;me++)ye=E(F,b,me,N[me],U),ye!==null&&(e&&ye.alternate!==null&&F.delete(ye.key===null?me:ye.key),p=u(ye,p,me),je===null?te=ye:je.sibling=ye,je=ye);return e&&F.forEach(function(Rl){return t(b,Rl)}),Se&&$t(b,me),te}function ue(b,p,N,U){if(N==null)throw Error(f(151));for(var te=null,je=null,F=p,me=p=0,ye=null,Te=N.next();F!==null&&!Te.done;me++,Te=N.next()){F.index>me?(ye=F,F=null):ye=F.sibling;var Rl=M(b,F,Te.value,U);if(Rl===null){F===null&&(F=ye);break}e&&F&&Rl.alternate===null&&t(b,F),p=u(Rl,p,me),je===null?te=Rl:je.sibling=Rl,je=Rl,F=ye}if(Te.done)return l(b,F),Se&&$t(b,me),te;if(F===null){for(;!Te.done;me++,Te=N.next())Te=R(b,Te.value,U),Te!==null&&(p=u(Te,p,me),je===null?te=Te:je.sibling=Te,je=Te);return Se&&$t(b,me),te}for(F=n(F);!Te.done;me++,Te=N.next())Te=E(F,b,me,Te.value,U),Te!==null&&(e&&Te.alternate!==null&&F.delete(Te.key===null?me:Te.key),p=u(Te,p,me),je===null?te=Te:je.sibling=Te,je=Te);return e&&F.forEach(function(D0){return t(b,D0)}),Se&&$t(b,me),te}function De(b,p,N,U){if(typeof N=="object"&&N!==null&&N.type===he&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case le:e:{for(var te=N.key;p!==null;){if(p.key===te){if(te=N.type,te===he){if(p.tag===7){l(b,p.sibling),U=a(p,N.props.children),U.return=b,b=U;break e}}else if(p.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Kl(te)===p.type){l(b,p.sibling),U=a(p,N.props),ca(U,N),U.return=b,b=U;break e}l(b,p);break}else t(b,p);p=p.sibling}N.type===he?(U=Xl(N.props.children,b.mode,U,N.key),U.return=b,b=U):(U=nu(N.type,N.key,N.props,null,b.mode,U),ca(U,N),U.return=b,b=U)}return c(b);case fe:e:{for(te=N.key;p!==null;){if(p.key===te)if(p.tag===4&&p.stateNode.containerInfo===N.containerInfo&&p.stateNode.implementation===N.implementation){l(b,p.sibling),U=a(p,N.children||[]),U.return=b,b=U;break e}else{l(b,p);break}else t(b,p);p=p.sibling}U=Hi(N,b.mode,U),U.return=b,b=U}return c(b);case J:return N=Kl(N),De(b,p,N,U)}if(I(N))return $(b,p,N,U);if(w(N)){if(te=w(N),typeof te!="function")throw Error(f(150));return N=te.call(N),ue(b,p,N,U)}if(typeof N.then=="function")return De(b,p,ru(N),U);if(N.$$typeof===L)return De(b,p,iu(b,N),U);fu(b,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,p!==null&&p.tag===6?(l(b,p.sibling),U=a(p,N),U.return=b,b=U):(l(b,p),U=qi(N,b.mode,U),U.return=b,b=U),c(b)):l(b,p)}return function(b,p,N,U){try{ia=0;var te=De(b,p,N,U);return Tn=null,te}catch(F){if(F===jn||F===su)throw F;var je=pt(29,F,null,b.mode);return je.lanes=U,je.return=b,je}finally{}}}var $l=Wo(!0),Fo=Wo(!1),pl=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $i(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 bl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Me&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=lu(e),Ro(e,null,l),t}return tu(e,n,t,l),lu(e)}function sa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ls(e,l)}}function Wi(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=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?a=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?a=u=t:u=u.next=t}else a=u=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Fi=!1;function oa(){if(Fi){var e=Nn;if(e!==null)throw e}}function ra(e,t,l,n){Fi=!1;var a=e.updateQueue;pl=!1;var u=a.firstBaseUpdate,c=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var m=r,j=m.next;m.next=null,c===null?u=j:c.next=j,c=m;var O=e.alternate;O!==null&&(O=O.updateQueue,r=O.lastBaseUpdate,r!==c&&(r===null?O.firstBaseUpdate=j:r.next=j,O.lastBaseUpdate=m))}if(u!==null){var R=a.baseState;c=0,O=j=m=null,r=u;do{var M=r.lane&-536870913,E=M!==r.lane;if(E?(ve&M)===M:(n&M)===M){M!==0&&M===Sn&&(Fi=!0),O!==null&&(O=O.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var $=e,ue=r;M=t;var De=l;switch(ue.tag){case 1:if($=ue.payload,typeof $=="function"){R=$.call(De,R,M);break e}R=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ue.payload,M=typeof $=="function"?$.call(De,R,M):$,M==null)break e;R=q({},R,M);break e;case 2:pl=!0}}M=r.callback,M!==null&&(e.flags|=64,E&&(e.flags|=8192),E=a.callbacks,E===null?a.callbacks=[M]:E.push(M))}else E={lane:M,tag:r.tag,payload:r.payload,callback:r.callback,next:null},O===null?(j=O=E,m=R):O=O.next=E,c|=M;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;E=r,r=E.next,E.next=null,a.lastBaseUpdate=E,a.shared.pending=null}}while(!0);O===null&&(m=R),a.baseState=m,a.firstBaseUpdate=j,a.lastBaseUpdate=O,u===null&&(a.shared.lanes=0),Tl|=c,e.lanes=c,e.memoizedState=R}}function Io(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Po(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Io(l[e],t)}var Mn=x(null),du=x(0);function er(e,t){e=il,Y(du,e),Y(Mn,t),il=e|t.baseLanes}function Ii(){Y(du,il),Y(Mn,Mn.current)}function Pi(){il=du.current,_(Mn),_(du)}var bt=x(null),Ot=null;function yl(e){var t=e.alternate;Y(Ye,Ye.current&1),Y(bt,e),Ot===null&&(t===null||Mn.current!==null||t.memoizedState!==null)&&(Ot=e)}function ec(e){Y(Ye,Ye.current),Y(bt,e),Ot===null&&(Ot=e)}function tr(e){e.tag===22?(Y(Ye,Ye.current),Y(bt,e),Ot===null&&(Ot=e)):Sl()}function Sl(){Y(Ye,Ye.current),Y(bt,bt.current)}function vt(e){_(bt),Ot===e&&(Ot=null),_(Ye)}var Ye=x(0);function mu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||is(l)||cs(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 It=0,de=null,Ae=null,Le=null,hu=!1,_n=!1,Wl=!1,gu=0,fa=0,En=null,yh=0;function He(){throw Error(f(321))}function tc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!xt(e[l],t[l]))return!1;return!0}function lc(e,t,l,n,a,u){return It=u,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Yr:pc,Wl=!1,u=l(n,a),Wl=!1,_n&&(u=nr(t,l,n,a)),lr(e),u}function lr(e){T.H=ha;var t=Ae!==null&&Ae.next!==null;if(It=0,Le=Ae=de=null,hu=!1,fa=0,En=null,t)throw Error(f(300));e===null||Xe||(e=e.dependencies,e!==null&&uu(e)&&(Xe=!0))}function nr(e,t,l,n){de=e;var a=0;do{if(_n&&(En=null),fa=0,_n=!1,25<=a)throw Error(f(301));if(a+=1,Le=Ae=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=Gr,u=t(l,n)}while(_n);return u}function Sh(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?da(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(de.flags|=1024),t}function nc(){var e=gu!==0;return gu=0,e}function ac(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function uc(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}It=0,Le=Ae=de=null,_n=!1,fa=gu=0,En=null}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?de.memoizedState=Le=e:Le=Le.next=e,Le}function Ge(){if(Ae===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Le===null?de.memoizedState:Le.next;if(t!==null)Le=t,Ae=e;else{if(e===null)throw de.alternate===null?Error(f(467)):Error(f(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Le===null?de.memoizedState=Le=e:Le=Le.next=e}return Le}function xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function da(e){var t=fa;return fa+=1,En===null&&(En=[]),e=Ko(En,e,t),t=de,(Le===null?t.memoizedState:Le.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Yr:pc),e}function pu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return da(e);if(e.$$typeof===L)return Ie(e)}throw Error(f(438,String(e)))}function ic(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=de.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=xu(),de.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=ie;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function bu(e){var t=Ge();return cc(t,Ae,e)}function cc(e,t,l){var n=e.queue;if(n===null)throw Error(f(311));n.lastRenderedReducer=l;var a=e.baseQueue,u=n.pending;if(u!==null){if(a!==null){var c=a.next;a.next=u.next,u.next=c}t.baseQueue=a=u,n.pending=null}if(u=e.baseState,a===null)e.memoizedState=u;else{t=a.next;var r=c=null,m=null,j=t,O=!1;do{var R=j.lane&-536870913;if(R!==j.lane?(ve&R)===R:(It&R)===R){var M=j.revertLane;if(M===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),R===Sn&&(O=!0);else if((It&M)===M){j=j.next,M===Sn&&(O=!0);continue}else R={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(r=m=R,c=u):m=m.next=R,de.lanes|=M,Tl|=M;R=j.action,Wl&&l(u,R),u=j.hasEagerState?j.eagerState:l(u,R)}else M={lane:R,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(r=m=M,c=u):m=m.next=M,de.lanes|=R,Tl|=R;j=j.next}while(j!==null&&j!==t);if(m===null?c=u:m.next=r,!xt(u,e.memoizedState)&&(Xe=!0,O&&(l=Nn,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=m,n.lastRenderedState=u}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function sc(e){var t=Ge(),l=t.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,u=t.memoizedState;if(a!==null){l.pending=null;var c=a=a.next;do u=e(u,c.action),c=c.next;while(c!==a);xt(u,t.memoizedState)||(Xe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,n]}function ar(e,t,l){var n=de,a=Ge(),u=Se;if(u){if(l===void 0)throw Error(f(407));l=l()}else l=t();var c=!xt((Ae||a).memoizedState,l);if(c&&(a.memoizedState=l,Xe=!0),a=a.queue,fc(cr.bind(null,n,a,e),[e]),a.getSnapshot!==t||c||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,An(9,{destroy:void 0},ir.bind(null,n,a,l,t),null),Oe===null)throw Error(f(349));u||(It&127)!==0||ur(n,t,l)}return l}function ur(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=xu(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ir(e,t,l,n){t.value=l,t.getSnapshot=n,sr(t)&&or(e)}function cr(e,t,l){return l(function(){sr(t)&&or(e)})}function sr(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!xt(e,l)}catch{return!0}}function or(e){var t=Ll(e,2);t!==null&&dt(t,e,2)}function oc(e){var t=nt();if(typeof e=="function"){var l=e;if(e=l(),Wl){rl(!0);try{l()}finally{rl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function rr(e,t,l,n){return e.baseState=l,cc(e,Ae,typeof n=="function"?n:Pt)}function Nh(e,t,l,n,a){if(Su(e))throw Error(f(485));if(e=t.action,e!==null){var u={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};T.T!==null?l(!0):u.isTransition=!1,n(u),l=t.pending,l===null?(u.next=t.pending=u,fr(t,u)):(u.next=l.next,t.pending=l.next=u)}}function fr(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var u=T.T,c={};T.T=c;try{var r=l(a,n),m=T.S;m!==null&&m(c,r),dr(e,t,r)}catch(j){rc(e,t,j)}finally{u!==null&&c.types!==null&&(u.types=c.types),T.T=u}}else try{u=l(a,n),dr(e,t,u)}catch(j){rc(e,t,j)}}function dr(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){mr(e,t,n)},function(n){return rc(e,t,n)}):mr(e,t,l)}function mr(e,t,l){t.status="fulfilled",t.value=l,hr(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fr(e,l)))}function rc(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,hr(t),t=t.next;while(t!==n)}e.action=null}function hr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gr(e,t){return t}function xr(e,t){if(Se){var l=Oe.formState;if(l!==null){e:{var n=de;if(Se){if(Ce){t:{for(var a=Ce,u=Dt;a.nodeType!==8;){if(!u){a=null;break t}if(a=Ct(a.nextSibling),a===null){a=null;break t}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Ce=Ct(a.nextSibling),n=a.data==="F!";break e}}gl(n)}n=!1}n&&(t=l[0])}}return l=nt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:t},l.queue=n,l=qr.bind(null,de,n),n.dispatch=l,n=oc(!1),u=xc.bind(null,de,!1,n.queue),n=nt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=Nh.bind(null,de,a,u,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function pr(e){var t=Ge();return br(t,Ae,e)}function br(e,t,l){if(t=cc(e,t,gr)[0],e=bu(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=da(t)}catch(c){throw c===jn?su:c}else n=t;t=Ge();var a=t.queue,u=a.dispatch;return l!==t.memoizedState&&(de.flags|=2048,An(9,{destroy:void 0},jh.bind(null,a,l),null)),[n,u,e]}function jh(e,t){e.action=t}function vr(e){var t=Ge(),l=Ae;if(l!==null)return br(t,l,e);Ge(),t=t.memoizedState,l=Ge();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function An(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=de.updateQueue,t===null&&(t=xu(),de.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function yr(){return Ge().memoizedState}function vu(e,t,l,n){var a=nt();de.flags|=e,a.memoizedState=An(1|t,{destroy:void 0},l,n===void 0?null:n)}function yu(e,t,l,n){var a=Ge();n=n===void 0?null:n;var u=a.memoizedState.inst;Ae!==null&&n!==null&&tc(n,Ae.memoizedState.deps)?a.memoizedState=An(t,u,l,n):(de.flags|=e,a.memoizedState=An(1|t,u,l,n))}function Sr(e,t){vu(8390656,8,e,t)}function fc(e,t){yu(2048,8,e,t)}function Th(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=xu(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Nr(e){var t=Ge().memoizedState;return Th({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function jr(e,t){return yu(4,2,e,t)}function Tr(e,t){return yu(4,4,e,t)}function Mr(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 _r(e,t,l){l=l!=null?l.concat([e]):null,yu(4,4,Mr.bind(null,t,e),l)}function dc(){}function Er(e,t){var l=Ge();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&tc(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Ar(e,t){var l=Ge();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&tc(t,n[1]))return n[0];if(n=e(),Wl){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[n,t],n}function mc(e,t,l){return l===void 0||(It&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Df(),de.lanes|=e,Tl|=e,l)}function zr(e,t,l,n){return xt(l,t)?l:Mn.current!==null?(e=mc(e,l,n),xt(e,t)||(Xe=!0),e):(It&42)===0||(It&1073741824)!==0&&(ve&261930)===0?(Xe=!0,e.memoizedState=l):(e=Df(),de.lanes|=e,Tl|=e,t)}function Dr(e,t,l,n,a){var u=H.p;H.p=u!==0&&8>u?u:8;var c=T.T,r={};T.T=r,xc(e,!1,t,l);try{var m=a(),j=T.S;if(j!==null&&j(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=vh(m,n);ma(e,t,O,Nt(e))}else ma(e,t,n,Nt(e))}catch(R){ma(e,t,{then:function(){},status:"rejected",reason:R},Nt())}finally{H.p=u,c!==null&&r.types!==null&&(c.types=r.types),T.T=c}}function Mh(){}function hc(e,t,l,n){if(e.tag!==5)throw Error(f(476));var a=Or(e).queue;Dr(e,a,t,V,l===null?Mh:function(){return Cr(e),l(n)})}function Or(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:V},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cr(e){var t=Or(e);t.next===null&&(t=e.alternate.memoizedState),ma(e,t.next.queue,{},Nt())}function gc(){return Ie(Da)}function Ur(){return Ge().memoizedState}function Rr(){return Ge().memoizedState}function _h(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Nt();e=bl(l);var n=vl(t,e,l);n!==null&&(dt(n,t,l),sa(n,t,l)),t={cache:Zi()},e.payload=t;return}t=t.return}}function Eh(e,t,l){var n=Nt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Su(e)?Hr(t,l):(l=Ui(e,t,l,n),l!==null&&(dt(l,e,n),Br(l,t,n)))}function qr(e,t,l){var n=Nt();ma(e,t,l,n)}function ma(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Su(e))Hr(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,r=u(c,l);if(a.hasEagerState=!0,a.eagerState=r,xt(r,c))return tu(e,t,a,0),Oe===null&&eu(),!1}catch{}finally{}if(l=Ui(e,t,a,n),l!==null)return dt(l,e,n),Br(l,t,n),!0}return!1}function xc(e,t,l,n){if(n={lane:2,revertLane:Jc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Su(e)){if(t)throw Error(f(479))}else t=Ui(e,l,n,2),t!==null&&dt(t,e,2)}function Su(e){var t=e.alternate;return e===de||t!==null&&t===de}function Hr(e,t){_n=hu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Br(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ls(e,l)}}var ha={readContext:Ie,use:pu,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};ha.useEffectEvent=He;var Yr={readContext:Ie,use:pu,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Sr,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,vu(4194308,4,Mr.bind(null,t,e),l)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var l=nt();t=t===void 0?null:t;var n=e();if(Wl){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=nt();if(l!==void 0){var a=l(t);if(Wl){rl(!0);try{l(t)}finally{rl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=Eh.bind(null,de,e),[n.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=oc(e);var t=e.queue,l=qr.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:dc,useDeferredValue:function(e,t){var l=nt();return mc(l,e,t)},useTransition:function(){var e=oc(!1);return e=Dr.bind(null,de,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=de,a=nt();if(Se){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),Oe===null)throw Error(f(349));(ve&127)!==0||ur(n,t,l)}a.memoizedState=l;var u={value:l,getSnapshot:t};return a.queue=u,Sr(cr.bind(null,n,u,e),[e]),n.flags|=2048,An(9,{destroy:void 0},ir.bind(null,n,u,l,t),null),l},useId:function(){var e=nt(),t=Oe.identifierPrefix;if(Se){var l=Lt,n=wt;l=(n&~(1<<32-gt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=gu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=yh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gc,useFormState:xr,useActionState:xr,useOptimistic:function(e){var t=nt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=xc.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return nt().memoizedState=_h.bind(null,de)},useEffectEvent:function(e){var t=nt(),l={impl:e};return t.memoizedState=l,function(){if((Me&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}},pc={readContext:Ie,use:pu,useCallback:Er,useContext:Ie,useEffect:fc,useImperativeHandle:_r,useInsertionEffect:jr,useLayoutEffect:Tr,useMemo:Ar,useReducer:bu,useRef:yr,useState:function(){return bu(Pt)},useDebugValue:dc,useDeferredValue:function(e,t){var l=Ge();return zr(l,Ae.memoizedState,e,t)},useTransition:function(){var e=bu(Pt)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:da(e),t]},useSyncExternalStore:ar,useId:Ur,useHostTransitionStatus:gc,useFormState:pr,useActionState:pr,useOptimistic:function(e,t){var l=Ge();return rr(l,Ae,e,t)},useMemoCache:ic,useCacheRefresh:Rr};pc.useEffectEvent=Nr;var Gr={readContext:Ie,use:pu,useCallback:Er,useContext:Ie,useEffect:fc,useImperativeHandle:_r,useInsertionEffect:jr,useLayoutEffect:Tr,useMemo:Ar,useReducer:sc,useRef:yr,useState:function(){return sc(Pt)},useDebugValue:dc,useDeferredValue:function(e,t){var l=Ge();return Ae===null?mc(l,e,t):zr(l,Ae.memoizedState,e,t)},useTransition:function(){var e=sc(Pt)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:da(e),t]},useSyncExternalStore:ar,useId:Ur,useHostTransitionStatus:gc,useFormState:vr,useActionState:vr,useOptimistic:function(e,t){var l=Ge();return Ae!==null?rr(l,Ae,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ic,useCacheRefresh:Rr};Gr.useEffectEvent=Nr;function bc(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:q({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var vc={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Nt(),a=bl(n);a.payload=t,l!=null&&(a.callback=l),t=vl(e,a,n),t!==null&&(dt(t,e,n),sa(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Nt(),a=bl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=vl(e,a,n),t!==null&&(dt(t,e,n),sa(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Nt(),n=bl(l);n.tag=2,t!=null&&(n.callback=t),t=vl(e,n,l),t!==null&&(dt(t,e,l),sa(t,e,l))}};function wr(e,t,l,n,a,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,c):t.prototype&&t.prototype.isPureReactComponent?!ea(l,n)||!ea(a,u):!0}function Lr(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function Fl(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=q({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Xr(e){Pa(e)}function Qr(e){console.error(e)}function Zr(e){Pa(e)}function Nu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Vr(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function yc(e,t,l){return l=bl(l),l.tag=3,l.payload={element:null},l.callback=function(){Nu(e,t)},l}function kr(e){return e=bl(e),e.tag=3,e}function Kr(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;e.payload=function(){return a(u)},e.callback=function(){Vr(t,l,n)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Vr(t,l,n),typeof a!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var r=n.stack;this.componentDidCatch(n.value,{componentStack:r!==null?r:""})})}function Ah(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&yn(t,l,a,!0),l=bt.current,l!==null){switch(l.tag){case 31:case 13:return Ot===null?Ru():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ou?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Vc(e,n,a)),!1;case 22:return l.flags|=65536,n===ou?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Vc(e,n,a)),!1}throw Error(f(435,l.tag))}return Vc(e,n,a),Ru(),!1}if(Se)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Gi&&(e=Error(f(422),{cause:n}),na(Et(e,l)))):(n!==Gi&&(t=Error(f(423),{cause:n}),na(Et(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Et(n,l),a=yc(e.stateNode,n,a),Wi(e,a),Be!==4&&(Be=2)),!1;var u=Error(f(520),{cause:n});if(u=Et(u,l),Na===null?Na=[u]:Na.push(u),Be!==4&&(Be=2),t===null)return!0;n=Et(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=yc(l.stateNode,n,e),Wi(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"&&(Ml===null||!Ml.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=kr(a),Kr(a,e,l,n),Wi(l,a),!1}l=l.return}while(l!==null);return!1}var Sc=Error(f(461)),Xe=!1;function Pe(e,t,l,n){t.child=e===null?Fo(t,null,l,n):$l(t,e.child,l,n)}function Jr(e,t,l,n,a){l=l.render;var u=t.ref;if("ref"in n){var c={};for(var r in n)r!=="ref"&&(c[r]=n[r])}else c=n;return Vl(t),n=lc(e,t,l,c,u,a),r=nc(),e!==null&&!Xe?(ac(e,t,a),el(e,t,a)):(Se&&r&&Bi(t),t.flags|=1,Pe(e,t,n,a),t.child)}function $r(e,t,l,n,a){if(e===null){var u=l.type;return typeof u=="function"&&!Ri(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Wr(e,t,u,n,a)):(e=nu(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!zc(e,a)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:ea,l(c,n)&&e.ref===t.ref)return el(e,t,a)}return t.flags|=1,e=Jt(u,n),e.ref=t.ref,e.return=t,t.child=e}function Wr(e,t,l,n,a){if(e!==null){var u=e.memoizedProps;if(ea(u,n)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=n=u,zc(e,a))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,el(e,t,a)}return Nc(e,t,l,n,a)}function Fr(e,t,l,n){var a=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,t.child=null;return Ir(e,t,u,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cu(t,u!==null?u.cachePool:null),u!==null?er(t,u):Ii(),tr(t);else return n=t.lanes=536870912,Ir(e,t,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(cu(t,u.cachePool),er(t,u),Sl(),t.memoizedState=null):(e!==null&&cu(t,null),Ii(),Sl());return Pe(e,t,a,l),t.child}function ga(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ir(e,t,l,n,a){var u=ki();return u=u===null?null:{parent:we._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&cu(t,null),Ii(),tr(t),e!==null&&yn(e,t,n,!0),t.childLanes=a,null}function ju(e,t){return t=Mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pr(e,t,l){return $l(t,e.child,null,l),e=ju(t,t.pendingProps),e.flags|=2,vt(t),t.memoizedState=null,e}function zh(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(n.mode==="hidden")return e=ju(t,n),t.lanes=536870912,ga(null,e);if(ec(t),(e=Ce)?(e=dd(e,Dt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ml!==null?{id:wt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=Ho(e),l.return=t,t.child=l,Fe=t,Ce=null)):e=null,e===null)throw gl(t);return t.lanes=536870912,null}return ju(t,n)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(ec(t),a)if(t.flags&256)t.flags&=-257,t=Pr(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Xe||yn(e,t,l,!1),a=(l&e.childLanes)!==0,Xe||a){if(n=Oe,n!==null&&(c=Xs(n,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Ll(e,c),dt(n,e,c),Sc;Ru(),t=Pr(e,t,l)}else e=u.treeContext,Ce=Ct(c.nextSibling),Fe=t,Se=!0,hl=null,Dt=!1,e!==null&&Go(t,e),t=ju(t,n),t.flags|=4096;return t}return e=Jt(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(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(f(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Nc(e,t,l,n,a){return Vl(t),l=lc(e,t,l,n,void 0,a),n=nc(),e!==null&&!Xe?(ac(e,t,a),el(e,t,a)):(Se&&n&&Bi(t),t.flags|=1,Pe(e,t,l,a),t.child)}function ef(e,t,l,n,a,u){return Vl(t),t.updateQueue=null,l=nr(t,n,l,a),lr(e),n=nc(),e!==null&&!Xe?(ac(e,t,u),el(e,t,u)):(Se&&n&&Bi(t),t.flags|=1,Pe(e,t,l,u),t.child)}function tf(e,t,l,n,a){if(Vl(t),t.stateNode===null){var u=xn,c=l.contextType;typeof c=="object"&&c!==null&&(u=Ie(c)),u=new l(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=vc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},Ji(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Ie(c):xn,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(bc(t,l,c,n),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&&vc.enqueueReplaceState(u,u.state,null),ra(t,n,u,a),oa(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var r=t.memoizedProps,m=Fl(l,r);u.props=m;var j=u.context,O=l.contextType;c=xn,typeof O=="object"&&O!==null&&(c=Ie(O));var R=l.getDerivedStateFromProps;O=typeof R=="function"||typeof u.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r||j!==c)&&Lr(t,u,n,c),pl=!1;var M=t.memoizedState;u.state=M,ra(t,n,u,a),oa(),j=t.memoizedState,r||M!==j||pl?(typeof R=="function"&&(bc(t,l,R,n),j=t.memoizedState),(m=pl||wr(t,l,m,n,M,j,c))?(O||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=n,t.memoizedState=j),u.props=n,u.state=j,u.context=c,n=m):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,$i(e,t),c=t.memoizedProps,O=Fl(l,c),u.props=O,R=t.pendingProps,M=u.context,j=l.contextType,m=xn,typeof j=="object"&&j!==null&&(m=Ie(j)),r=l.getDerivedStateFromProps,(j=typeof r=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==R||M!==m)&&Lr(t,u,n,m),pl=!1,M=t.memoizedState,u.state=M,ra(t,n,u,a),oa();var E=t.memoizedState;c!==R||M!==E||pl||e!==null&&e.dependencies!==null&&uu(e.dependencies)?(typeof r=="function"&&(bc(t,l,r,n),E=t.memoizedState),(O=pl||wr(t,l,O,n,M,E,m)||e!==null&&e.dependencies!==null&&uu(e.dependencies))?(j||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,E,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,E,m)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=E),u.props=n,u.state=E,u.context=m,n=O):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,Tu(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=$l(t,e.child,null,a),t.child=$l(t,null,l,a)):Pe(e,t,l,a),t.memoizedState=u.state,e=t.child):e=el(e,t,a),e}function lf(e,t,l,n){return Ql(),t.flags|=256,Pe(e,t,l,n),t.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:Vo()}}function Mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function nf(e,t,l){var n=t.pendingProps,a=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(a=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(a?yl(t):Sl(),(e=Ce)?(e=dd(e,Dt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ml!==null?{id:wt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=Ho(e),l.return=t,t.child=l,Fe=t,Ce=null)):e=null,e===null)throw gl(t);return cs(e)?t.lanes=32:t.lanes=536870912,null}var r=n.children;return n=n.fallback,a?(Sl(),a=t.mode,r=Mu({mode:"hidden",children:r},a),n=Xl(n,a,l,null),r.return=t,n.return=t,r.sibling=n,t.child=r,n=t.child,n.memoizedState=Tc(l),n.childLanes=Mc(e,c,l),t.memoizedState=jc,ga(null,n)):(yl(t),_c(t,r))}var m=e.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(u)t.flags&256?(yl(t),t.flags&=-257,t=Ec(e,t,l)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),r=n.fallback,a=t.mode,n=Mu({mode:"visible",children:n.children},a),r=Xl(r,a,l,null),r.flags|=2,n.return=t,r.return=t,n.sibling=r,t.child=n,$l(t,e.child,null,l),n=t.child,n.memoizedState=Tc(l),n.childLanes=Mc(e,c,l),t.memoizedState=jc,t=ga(null,n));else if(yl(t),cs(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var j=c.dgst;c=j,n=Error(f(419)),n.stack="",n.digest=c,na({value:n,source:null,stack:null}),t=Ec(e,t,l)}else if(Xe||yn(e,t,l,!1),c=(l&e.childLanes)!==0,Xe||c){if(c=Oe,c!==null&&(n=Xs(c,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,Ll(e,n),dt(c,e,n),Sc;is(r)||Ru(),t=Ec(e,t,l)}else is(r)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ce=Ct(r.nextSibling),Fe=t,Se=!0,hl=null,Dt=!1,e!==null&&Go(t,e),t=_c(t,n.children),t.flags|=4096);return t}return a?(Sl(),r=n.fallback,a=t.mode,m=e.child,j=m.sibling,n=Jt(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,j!==null?r=Jt(j,r):(r=Xl(r,a,l,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,ga(null,n),n=t.child,r=e.child.memoizedState,r===null?r=Tc(l):(a=r.cachePool,a!==null?(m=we._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Vo(),r={baseLanes:r.baseLanes|l,cachePool:a}),n.memoizedState=r,n.childLanes=Mc(e,c,l),t.memoizedState=jc,ga(e.child,n)):(yl(t),l=e.child,e=l.sibling,l=Jt(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function _c(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=pt(22,e,null,t),e.lanes=0,e}function Ec(e,t,l){return $l(t,e.child,null,l),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function af(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Xi(e.return,t,l)}function Ac(e,t,l,n,a,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=l,c.tailMode=a,c.treeForkCount=u)}function uf(e,t,l){var n=t.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var c=Ye.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,Y(Ye,c),Pe(e,t,n,l),n=Se?la:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&af(e,l,t);else if(e.tag===19)af(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(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&mu(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Ac(t,!1,a,l,u,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&mu(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Ac(t,!0,l,null,u,n);break;case"together":Ac(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(yn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,l=Jt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Jt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uu(e)))}function Dh(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),xl(t,we,e.memoizedState.cache),Ql();break;case 27:case 5:Zt(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ec(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(yl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?nf(e,t,l):(yl(t),e=el(e,t,l),e!==null?e.sibling:null);yl(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(yn(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return uf(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Y(Ye,Ye.current),n)break;return null;case 22:return t.lanes=0,Fr(e,t,l,t.pendingProps);case 24:xl(t,we,e.memoizedState.cache)}return el(e,t,l)}function cf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!zc(e,l)&&(t.flags&128)===0)return Xe=!1,Dh(e,t,l);Xe=(e.flags&131072)!==0}else Xe=!1,Se&&(t.flags&1048576)!==0&&Yo(t,la,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Kl(t.elementType),t.type=e,typeof e=="function")Ri(e)?(n=Fl(e,n),t.tag=1,t=tf(null,t,e,n,l)):(t.tag=0,t=Nc(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===ne){t.tag=11,t=Jr(null,t,e,n,l);break e}else if(a===B){t.tag=14,t=$r(null,t,e,n,l);break e}}throw t=P(e)||e,Error(f(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Fl(n,t.pendingProps),tf(e,t,n,a,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(f(387));n=t.pendingProps;var u=t.memoizedState;a=u.element,$i(e,t),ra(t,n,null,l);var c=t.memoizedState;if(n=c.cache,xl(t,we,n),n!==u.cache&&Qi(t,[we],l,!0),oa(),n=c.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=lf(e,t,n,l);break e}else if(n!==a){a=Et(Error(f(424)),t),na(a),t=lf(e,t,n,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(Ce=Ct(e.firstChild),Fe=t,Se=!0,hl=null,Dt=!0,l=Fo(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ql(),n===a){t=el(e,t,l);break e}Pe(e,t,n,l)}t=t.child}return t;case 26:return Tu(e,t),e===null?(l=bd(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(l=t.type,e=t.pendingProps,n=Lu(xe.current).createElement(l),n[We]=t,n[it]=e,et(n,l,e),ke(n),t.stateNode=n):t.memoizedState=bd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zt(t),e===null&&Se&&(n=t.stateNode=gd(t.type,t.pendingProps,xe.current),Fe=t,Dt=!0,a=Ce,zl(t.type)?(ss=a,Ce=Ct(n.firstChild)):Ce=a),Pe(e,t,t.pendingProps.children,l),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((a=n=Ce)&&(n=i0(n,t.type,t.pendingProps,Dt),n!==null?(t.stateNode=n,Fe=t,Ce=Ct(n.firstChild),Dt=!1,a=!0):a=!1),a||gl(t)),Zt(t),a=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,n=u.children,ns(a,u)?n=null:c!==null&&ns(a,c)&&(t.flags|=32),t.memoizedState!==null&&(a=lc(e,t,Sh,null,null,l),Da._currentValue=a),Tu(e,t),Pe(e,t,n,l),t.child;case 6:return e===null&&Se&&((e=l=Ce)&&(l=c0(l,t.pendingProps,Dt),l!==null?(t.stateNode=l,Fe=t,Ce=null,e=!0):e=!1),e||gl(t)),null;case 13:return nf(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$l(t,null,n,l):Pe(e,t,n,l),t.child;case 11:return Jr(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,xl(t,t.type,n.value),Pe(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Vl(t),a=Ie(a),n=n(a),t.flags|=1,Pe(e,t,n,l),t.child;case 14:return $r(e,t,t.type,t.pendingProps,l);case 15:return Wr(e,t,t.type,t.pendingProps,l);case 19:return uf(e,t,l);case 31:return zh(e,t,l);case 22:return Fr(e,t,l,t.pendingProps);case 24:return Vl(t),n=Ie(we),e===null?(a=ki(),a===null&&(a=Oe,u=Zi(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),t.memoizedState={parent:n,cache:a},Ji(t),xl(t,we,a)):((e.lanes&l)!==0&&($i(e,t),ra(t,null,null,l),oa()),a=e.memoizedState,u=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),xl(t,we,n)):(n=u.cache,xl(t,we,n),n!==a.cache&&Qi(t,[we],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function tl(e){e.flags|=4}function Dc(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Rf())e.flags|=8192;else throw Jl=ou,Ki}else e.flags&=-16777217}function sf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jd(t))if(Rf())e.flags|=8192;else throw Jl=ou,Ki}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gs():536870912,e.lanes|=t,Cn|=t)}function xa(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 n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Oh(e,t,l){var n=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ft(we),qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vn(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wi())),Ue(t),null;case 26:var a=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(Ue(t),sf(t,u)):(Ue(t),Dc(t,a,null,n,l))):u?u!==e.memoizedState?(tl(t),Ue(t),sf(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&tl(t),Ue(t),Dc(t,a,e,n,l)),null;case 27:if(ql(t),l=xe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&tl(t);else{if(!n){if(t.stateNode===null)throw Error(f(166));return Ue(t),null}e=k.current,vn(t)?wo(t):(e=gd(a,n,l),t.stateNode=e,tl(t))}return Ue(t),null;case 5:if(ql(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&tl(t);else{if(!n){if(t.stateNode===null)throw Error(f(166));return Ue(t),null}if(u=k.current,vn(t))wo(t);else{var c=Lu(xe.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?c.createElement(a,{is:n.is}):c.createElement(a)}}u[We]=t,u[it]=n;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(et(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&tl(t)}}return Ue(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&tl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(f(166));if(e=xe.current,vn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=Fe,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[We]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||ad(e.nodeValue,l)),e||gl(t,!0)}else e=Lu(e).createTextNode(n),e[We]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=vn(t),l!==null){if(e===null){if(!n)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[We]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(vt(t),t):(vt(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=vn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(f(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(f(317));a[We]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(vt(t),t):(vt(t),null)}return vt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),_u(t,t.updateQueue),Ue(t),null);case 4:return qe(),e===null&&Ic(t.stateNode.containerInfo),Ue(t),null;case 10:return Ft(t.type),Ue(t),null;case 19:if(_(Ye),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,u=n.rendering,u===null)if(a)xa(n,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=mu(e),u!==null){for(t.flags|=128,xa(n,!1),e=u.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)qo(l,e),l=l.sibling;return Y(Ye,Ye.current&1|2),Se&&$t(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&mt()>Ou&&(t.flags|=128,a=!0,xa(n,!1),t.lanes=4194304)}else{if(!a)if(e=mu(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),xa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!Se)return Ue(t),null}else 2*mt()-n.renderingStartTime>Ou&&l!==536870912&&(t.flags|=128,a=!0,xa(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=mt(),e.sibling=null,l=Ye.current,Y(Ye,a?l&1|2:l&1),Se&&$t(t,n.treeForkCount),e):(Ue(t),null);case 22:case 23:return vt(t),Pi(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&_u(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&_(kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(we),Ue(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function Ch(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(we),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ql(t),null;case 31:if(t.memoizedState!==null){if(vt(t),t.alternate===null)throw Error(f(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(Ye),null;case 4:return qe(),null;case 10:return Ft(t.type),null;case 22:case 23:return vt(t),Pi(),e!==null&&_(kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(we),null;case 25:return null;default:return null}}function of(e,t){switch(Yi(t),t.tag){case 3:Ft(we),qe();break;case 26:case 27:case 5:ql(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&vt(t);break;case 13:vt(t);break;case 19:_(Ye);break;case 10:Ft(t.type);break;case 22:case 23:vt(t),Pi(),e!==null&&_(kl);break;case 24:Ft(we)}}function pa(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var u=l.create,c=l.inst;n=u(),c.destroy=n}l=l.next}while(l!==a)}}catch(r){Ee(t,t.return,r)}}function Nl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){var c=n.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,a=t;var m=l,j=r;try{j()}catch(O){Ee(a,m,O)}}}n=n.next}while(n!==u)}}catch(O){Ee(t,t.return,O)}}function rf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Po(t,l)}catch(n){Ee(e,e.return,n)}}}function ff(e,t,l){l.props=Fl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ee(e,t,n)}}function ba(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Ee(e,t,a)}}function Xt(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Ee(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Ee(e,t,a)}else l.current=null}function df(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Ee(e,e.return,a)}}function Oc(e,t,l){try{var n=e.stateNode;e0(n,e.type,l,t),n[it]=t}catch(a){Ee(e,e.return,a)}}function mf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zl(e.type)||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mf(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&&zl(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 Uc(e,t,l){var n=e.tag;if(n===5||n===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=kt));else if(n!==4&&(n===27&&zl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,l),e=e.sibling;e!==null;)Uc(e,t,l),e=e.sibling}function Eu(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&zl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Eu(e,t,l),e=e.sibling;e!==null;)Eu(e,t,l),e=e.sibling}function hf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);et(t,n,l),t[We]=e,t[it]=l}catch(u){Ee(e,e.return,u)}}var ll=!1,Qe=!1,Rc=!1,gf=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Uh(e,t){if(e=e.containerInfo,ts=Ju,e=_o(e),Ei(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,r=-1,m=-1,j=0,O=0,R=e,M=null;t:for(;;){for(var E;R!==l||a!==0&&R.nodeType!==3||(r=c+a),R!==u||n!==0&&R.nodeType!==3||(m=c+n),R.nodeType===3&&(c+=R.nodeValue.length),(E=R.firstChild)!==null;)M=R,R=E;for(;;){if(R===e)break t;if(M===l&&++j===a&&(r=c),M===u&&++O===n&&(m=c),(E=R.nextSibling)!==null)break;R=M,M=R.parentNode}R=E}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ls={focusedElem:e,selectionRange:l},Ju=!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++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var $=Fl(l.type,a);e=n.getSnapshotBeforeUpdate($,u),n.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Ee(l,l.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)us(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":us(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(f(163))}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}}function xf(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:al(e,l),n&4&&pa(5,l);break;case 1:if(al(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ee(l,l.return,c)}else{var a=Fl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ee(l,l.return,c)}}n&64&&rf(l),n&512&&ba(l,l.return);break;case 3:if(al(e,l),n&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{Po(e,t)}catch(c){Ee(l,l.return,c)}}break;case 27:t===null&&n&4&&hf(l);case 26:case 5:al(e,l),t===null&&n&4&&df(l),n&512&&ba(l,l.return);break;case 12:al(e,l);break;case 31:al(e,l),n&4&&vf(e,l);break;case 13:al(e,l),n&4&&yf(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Xh.bind(null,l),s0(e,l))));break;case 22:if(n=l.memoizedState!==null||ll,!n){t=t!==null&&t.memoizedState!==null||Qe,a=ll;var u=Qe;ll=n,(Qe=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):al(e,l),ll=a,Qe=u}break;case 30:break;default:al(e,l)}}function pf(e){var t=e.alternate;t!==null&&(e.alternate=null,pf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ri(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 Re=null,st=!1;function nl(e,t,l){for(l=l.child;l!==null;)bf(e,t,l),l=l.sibling}function bf(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Xn,l)}catch{}switch(l.tag){case 26:Qe||Xt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qe||Xt(l,t);var n=Re,a=st;zl(l.type)&&(Re=l.stateNode,st=!1),nl(e,t,l),Ea(l.stateNode),Re=n,st=a;break;case 5:Qe||Xt(l,t);case 6:if(n=Re,a=st,Re=null,nl(e,t,l),Re=n,st=a,Re!==null)if(st)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(u){Ee(l,t,u)}else try{Re.removeChild(l.stateNode)}catch(u){Ee(l,t,u)}break;case 18:Re!==null&&(st?(e=Re,rd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wn(e)):rd(Re,l.stateNode));break;case 4:n=Re,a=st,Re=l.stateNode.containerInfo,st=!0,nl(e,t,l),Re=n,st=a;break;case 0:case 11:case 14:case 15:Nl(2,l,t),Qe||Nl(4,l,t),nl(e,t,l);break;case 1:Qe||(Xt(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&ff(l,t,n)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:Qe=(n=Qe)||l.memoizedState!==null,nl(e,t,l),Qe=n;break;default:nl(e,t,l)}}function vf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wn(e)}catch(l){Ee(t,t.return,l)}}}function yf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wn(e)}catch(l){Ee(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 gf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gf),t;default:throw Error(f(435,e.tag))}}function Au(e,t){var l=Rh(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Qh.bind(null,e,n);n.then(a,a)}})}function ot(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(zl(r.type)){Re=r.stateNode,st=!1;break e}break;case 5:Re=r.stateNode,st=!1;break e;case 3:case 4:Re=r.stateNode.containerInfo,st=!0;break e}r=r.return}if(Re===null)throw Error(f(160));bf(u,c,a),Re=null,st=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sf(t,e),t=t.sibling}var Ht=null;function Sf(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ot(t,e),rt(e),n&4&&(Nl(3,e,e.return),pa(3,e),Nl(5,e,e.return));break;case 1:ot(t,e),rt(e),n&512&&(Qe||l===null||Xt(l,l.return)),n&64&&ll&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Ht;if(ot(t,e),rt(e),n&512&&(Qe||l===null||Xt(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Vn]||u[We]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),et(u,n,l),u[We]=e,ke(u),n=u;break e;case"link":var c=Sd("link","href",a).get(n+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(u=c[r],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(r,1);break t}}u=a.createElement(n),et(u,n,l),a.head.appendChild(u);break;case"meta":if(c=Sd("meta","content",a).get(n+(l.content||""))){for(r=0;r<c.length;r++)if(u=c[r],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(r,1);break t}}u=a.createElement(n),et(u,n,l),a.head.appendChild(u);break;default:throw Error(f(468,n))}u[We]=e,ke(u),n=u}e.stateNode=n}else Nd(a,e.type,e.stateNode);else e.stateNode=yd(a,n,e.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Nd(a,e.type,e.stateNode):yd(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Oc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ot(t,e),rt(e),n&512&&(Qe||l===null||Xt(l,l.return)),l!==null&&n&4&&Oc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ot(t,e),rt(e),n&512&&(Qe||l===null||Xt(l,l.return)),e.flags&32){a=e.stateNode;try{on(a,"")}catch($){Ee(e,e.return,$)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Oc(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Rc=!0);break;case 6:if(ot(t,e),rt(e),n&4){if(e.stateNode===null)throw Error(f(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch($){Ee(e,e.return,$)}}break;case 3:if(Zu=null,a=Ht,Ht=Xu(t.containerInfo),ot(t,e),Ht=a,rt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{wn(t.containerInfo)}catch($){Ee(e,e.return,$)}Rc&&(Rc=!1,Nf(e));break;case 4:n=Ht,Ht=Xu(e.stateNode.containerInfo),ot(t,e),rt(e),Ht=n;break;case 12:ot(t,e),rt(e);break;case 31:ot(t,e),rt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Au(e,n)));break;case 13:ot(t,e),rt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=mt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Au(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=ll,O=Qe;if(ll=j||a,Qe=O||m,ot(t,e),Qe=O,ll=j,rt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||ll||Qe||Il(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(u=m.stateNode,a)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=m.stateNode;var R=m.memoizedProps.style,M=R!=null&&R.hasOwnProperty("display")?R.display:null;r.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch($){Ee(m,m.return,$)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch($){Ee(m,m.return,$)}}}else if(t.tag===18){if(l===null){m=t;try{var E=m.stateNode;a?fd(E,!0):fd(m.stateNode,!1)}catch($){Ee(m,m.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Au(e,l))));break;case 19:ot(t,e),rt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Au(e,n)));break;case 30:break;case 21:break;default:ot(t,e),rt(e)}}function rt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(mf(n)){l=n;break}n=n.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var a=l.stateNode,u=Cc(e);Eu(e,u,a);break;case 5:var c=l.stateNode;l.flags&32&&(on(c,""),l.flags&=-33);var r=Cc(e);Eu(e,r,c);break;case 3:case 4:var m=l.stateNode.containerInfo,j=Cc(e);Uc(e,j,m);break;default:throw Error(f(161))}}catch(O){Ee(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function al(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xf(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nl(4,t,t.return),Il(t);break;case 1:Xt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ff(t,t.return,l),Il(t);break;case 27:Ea(t.stateNode);case 26:case 5:Xt(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:ul(a,u,l),pa(4,u);break;case 1:if(ul(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(j){Ee(n,n.return,j)}if(n=u,a=n.updateQueue,a!==null){var r=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)Io(m[a],r)}catch(j){Ee(n,n.return,j)}}l&&c&64&&rf(u),ba(u,u.return);break;case 27:hf(u);case 26:case 5:ul(a,u,l),l&&n===null&&c&4&&df(u),ba(u,u.return);break;case 12:ul(a,u,l);break;case 31:ul(a,u,l),l&&c&4&&vf(a,u);break;case 13:ul(a,u,l),l&&c&4&&yf(a,u);break;case 22:u.memoizedState===null&&ul(a,u,l),ba(u,u.return);break;case 30:break;default:ul(a,u,l)}t=t.sibling}}function qc(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&&aa(l))}function Hc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e))}function Bt(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jf(e,t,l,n),t=t.sibling}function jf(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,n),a&2048&&pa(9,t);break;case 1:Bt(e,t,l,n);break;case 3:Bt(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e)));break;case 12:if(a&2048){Bt(e,t,l,n),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,r=u.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Ee(t,t.return,m)}}else Bt(e,t,l,n);break;case 31:Bt(e,t,l,n);break;case 13:Bt(e,t,l,n);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Bt(e,t,l,n):va(e,t):u._visibility&2?Bt(e,t,l,n):(u._visibility|=2,zn(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&qc(c,t);break;case 24:Bt(e,t,l,n),a&2048&&Hc(t.alternate,t);break;default:Bt(e,t,l,n)}}function zn(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,r=l,m=n,j=c.flags;switch(c.tag){case 0:case 11:case 15:zn(u,c,r,m,a),pa(8,c);break;case 23:break;case 22:var O=c.stateNode;c.memoizedState!==null?O._visibility&2?zn(u,c,r,m,a):va(u,c):(O._visibility|=2,zn(u,c,r,m,a)),a&&j&2048&&qc(c.alternate,c);break;case 24:zn(u,c,r,m,a),a&&j&2048&&Hc(c.alternate,c);break;default:zn(u,c,r,m,a)}t=t.sibling}}function va(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:va(l,n),a&2048&&qc(n.alternate,n);break;case 24:va(l,n),a&2048&&Hc(n.alternate,n);break;default:va(l,n)}t=t.sibling}}var ya=8192;function Dn(e,t,l){if(e.subtreeFlags&ya)for(e=e.child;e!==null;)Tf(e,t,l),e=e.sibling}function Tf(e,t,l){switch(e.tag){case 26:Dn(e,t,l),e.flags&ya&&e.memoizedState!==null&&y0(l,Ht,e.memoizedState,e.memoizedProps);break;case 5:Dn(e,t,l);break;case 3:case 4:var n=Ht;Ht=Xu(e.stateNode.containerInfo),Dn(e,t,l),Ht=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ya,ya=16777216,Dn(e,t,l),ya=n):Dn(e,t,l));break;default:Dn(e,t,l)}}function Mf(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 Sa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Ke=n,Ef(n,e)}Mf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_f(e),e=e.sibling}function _f(e){switch(e.tag){case 0:case 11:case 15:Sa(e),e.flags&2048&&Nl(9,e,e.return);break;case 3:Sa(e);break;case 12:Sa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zu(e)):Sa(e);break;default:Sa(e)}}function zu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Ke=n,Ef(n,e)}Mf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nl(8,t,t.return),zu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,zu(t));break;default:zu(t)}e=e.sibling}}function Ef(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:Nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:aa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Ke=n;else e:for(l=e;Ke!==null;){n=Ke;var a=n.sibling,u=n.return;if(pf(n),n===l){Ke=null;break e}if(a!==null){a.return=u,Ke=a;break e}Ke=u}}}var qh={getCacheForType:function(e){var t=Ie(we),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(we).controller.signal}},Hh=typeof WeakMap=="function"?WeakMap:Map,Me=0,Oe=null,pe=null,ve=0,_e=0,yt=null,jl=!1,On=!1,Bc=!1,il=0,Be=0,Tl=0,Pl=0,Yc=0,St=0,Cn=0,Na=null,ft=null,Gc=!1,Du=0,Af=0,Ou=1/0,Cu=null,Ml=null,Ze=0,_l=null,Un=null,cl=0,wc=0,Lc=null,zf=null,ja=0,Xc=null;function Nt(){return(Me&2)!==0&&ve!==0?ve&-ve:T.T!==null?Jc():Qs()}function Df(){if(St===0)if((ve&536870912)===0||Se){var e=wa;wa<<=1,(wa&3932160)===0&&(wa=262144),St=e}else St=536870912;return e=bt.current,e!==null&&(e.flags|=32),St}function dt(e,t,l){(e===Oe&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(Rn(e,0),El(e,ve,St,!1)),Zn(e,l),((Me&2)===0||e!==Oe)&&(e===Oe&&((Me&2)===0&&(Pl|=l),Be===4&&El(e,ve,St,!1)),Qt(e))}function Of(e,t,l){if((Me&6)!==0)throw Error(f(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Qn(e,t),a=n?Gh(e,t):Zc(e,t,!0),u=n;do{if(a===0){On&&!n&&El(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Bh(l)){a=Zc(e,t,!1),u=!1;continue}if(a===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 r=e;a=Na;var m=r.current.memoizedState.isDehydrated;if(m&&(Rn(r,c).flags|=256),c=Zc(r,c,!1),c!==2){if(Bc&&!m){r.errorRecoveryDisabledLanes|=u,Pl|=u,a=4;break e}u=ft,ft=a,u!==null&&(ft===null?ft=u:ft.push.apply(ft,u))}a=c}if(u=!1,a!==2)continue}}if(a===1){Rn(e,0),El(e,t,0,!0);break}e:{switch(n=e,u=a,u){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:El(n,t,St,!jl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(a=Du+300-mt(),10<a)){if(El(n,t,St,!jl),Xa(n,0,!0)!==0)break e;cl=t,n.timeoutHandle=sd(Cf.bind(null,n,l,ft,Cu,Gc,t,St,Pl,Cn,jl,u,"Throttled",-0,0),a);break e}Cf(n,l,ft,Cu,Gc,t,St,Pl,Cn,jl,u,null,-0,0)}}break}while(!0);Qt(e)}function Cf(e,t,l,n,a,u,c,r,m,j,O,R,M,E){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kt},Tf(t,u,R);var $=(u&62914560)===u?Du-mt():(u&4194048)===u?Af-mt():0;if($=S0(R,$),$!==null){cl=u,e.cancelPendingCommit=$(wf.bind(null,e,t,u,l,n,a,c,r,m,O,R,null,M,E)),El(e,u,c,!j);return}}wf(e,t,u,l,n,a,c,r,m)}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 n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!xt(u(),a))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 El(e,t,l,n){t&=~Yc,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var u=31-gt(a),c=1<<u;n[u]=-1,a&=~c}l!==0&&ws(e,l,t)}function Uu(){return(Me&6)===0?(Ta(0),!1):!0}function Qc(){if(pe!==null){if(_e===0)var e=pe.return;else e=pe,Wt=Zl=null,uc(e),Tn=null,ia=0,e=pe;for(;e!==null;)of(e.alternate,e),e=e.return;pe=null}}function Rn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,n0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,Qc(),Oe=e,pe=l=Jt(e.current,null),ve=t,_e=0,yt=null,jl=!1,On=Qn(e,t),Bc=!1,Cn=St=Yc=Pl=Tl=Be=0,ft=Na=null,Gc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-gt(n),u=1<<a;t|=e[a],n&=~u}return il=t,eu(),l}function Uf(e,t){de=null,T.H=ha,t===jn||t===su?(t=Jo(),_e=3):t===Ki?(t=Jo(),_e=4):_e=t===Sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yt=t,pe===null&&(Be=1,Nu(e,Et(t,e.current)))}function Rf(){var e=bt.current;return e===null?!0:(ve&4194048)===ve?Ot===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Ot:!1}function qf(){var e=T.H;return T.H=ha,e===null?ha:e}function Hf(){var e=T.A;return T.A=qh,e}function Ru(){Be=4,jl||(ve&4194048)!==ve&&bt.current!==null||(On=!0),(Tl&134217727)===0&&(Pl&134217727)===0||Oe===null||El(Oe,ve,St,!1)}function Zc(e,t,l){var n=Me;Me|=2;var a=qf(),u=Hf();(Oe!==e||ve!==t)&&(Cu=null,Rn(e,t)),t=!1;var c=Be;e:do try{if(_e!==0&&pe!==null){var r=pe,m=yt;switch(_e){case 8:Qc(),c=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var j=_e;if(_e=0,yt=null,qn(e,r,m,j),l&&On){c=0;break e}break;default:j=_e,_e=0,yt=null,qn(e,r,m,j)}}Yh(),c=Be;break}catch(O){Uf(e,O)}while(!0);return t&&e.shellSuspendCounter++,Wt=Zl=null,Me=n,T.H=a,T.A=u,pe===null&&(Oe=null,ve=0,eu()),c}function Yh(){for(;pe!==null;)Bf(pe)}function Gh(e,t){var l=Me;Me|=2;var n=qf(),a=Hf();Oe!==e||ve!==t?(Cu=null,Ou=mt()+500,Rn(e,t)):On=Qn(e,t);e:do try{if(_e!==0&&pe!==null){t=pe;var u=yt;t:switch(_e){case 1:_e=0,yt=null,qn(e,t,u,1);break;case 2:case 9:if(ko(u)){_e=0,yt=null,Yf(t);break}t=function(){_e!==2&&_e!==9||Oe!==e||(_e=7),Qt(e)},u.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:ko(u)?(_e=0,yt=null,Yf(t)):(_e=0,yt=null,qn(e,t,u,7));break;case 5:var c=null;switch(pe.tag){case 26:c=pe.memoizedState;case 5:case 27:var r=pe;if(c?jd(c):r.stateNode.complete){_e=0,yt=null;var m=r.sibling;if(m!==null)pe=m;else{var j=r.return;j!==null?(pe=j,qu(j)):pe=null}break t}}_e=0,yt=null,qn(e,t,u,5);break;case 6:_e=0,yt=null,qn(e,t,u,6);break;case 8:Qc(),Be=6;break e;default:throw Error(f(462))}}wh();break}catch(O){Uf(e,O)}while(!0);return Wt=Zl=null,T.H=n,T.A=a,Me=l,pe!==null?0:(Oe=null,ve=0,eu(),Be)}function wh(){for(;pe!==null&&!om();)Bf(pe)}function Bf(e){var t=cf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?qu(e):pe=t}function Yf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ef(l,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=ef(l,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:uc(t);default:of(l,t),t=pe=qo(t,il),t=cf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?qu(e):pe=t}function qn(e,t,l,n){Wt=Zl=null,uc(t),Tn=null,ia=0;var a=t.return;try{if(Ah(e,a,t,l,ve)){Be=1,Nu(e,Et(l,e.current)),pe=null;return}}catch(u){if(a!==null)throw pe=a,u;Be=1,Nu(e,Et(l,e.current)),pe=null;return}t.flags&32768?(Se||n===1?e=!0:On||(ve&536870912)!==0?e=!1:(jl=e=!0,(n===2||n===9||n===3||n===6)&&(n=bt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Gf(t,e)):qu(t)}function qu(e){var t=e;do{if((t.flags&32768)!==0){Gf(t,jl);return}e=t.return;var l=Oh(t.alternate,t,il);if(l!==null){pe=l;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);Be===0&&(Be=5)}function Gf(e,t){do{var l=Ch(e.alternate,e);if(l!==null){l.flags&=32767,pe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=l}while(e!==null);Be=6,pe=null}function wf(e,t,l,n,a,u,c,r,m){e.cancelPendingCommit=null;do Hu();while(Ze!==0);if((Me&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(u=t.lanes|t.childLanes,u|=Ci,vm(e,l,u,c,r,m),e===Oe&&(pe=Oe=null,ve=0),Un=t,_l=e,cl=l,wc=u,Lc=a,zf=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Zh(Ya,function(){return Vf(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=T.T,T.T=null,a=H.p,H.p=2,c=Me,Me|=4;try{Uh(e,t,l)}finally{Me=c,H.p=a,T.T=n}}Ze=1,Lf(),Xf(),Qf()}}function Lf(){if(Ze===1){Ze=0;var e=_l,t=Un,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var a=Me;Me|=4;try{Sf(t,e);var u=ls,c=_o(e.containerInfo),r=u.focusedElem,m=u.selectionRange;if(c!==r&&r&&r.ownerDocument&&Mo(r.ownerDocument.documentElement,r)){if(m!==null&&Ei(r)){var j=m.start,O=m.end;if(O===void 0&&(O=j),"selectionStart"in r)r.selectionStart=j,r.selectionEnd=Math.min(O,r.value.length);else{var R=r.ownerDocument||document,M=R&&R.defaultView||window;if(M.getSelection){var E=M.getSelection(),$=r.textContent.length,ue=Math.min(m.start,$),De=m.end===void 0?ue:Math.min(m.end,$);!E.extend&&ue>De&&(c=De,De=ue,ue=c);var b=To(r,ue),p=To(r,De);if(b&&p&&(E.rangeCount!==1||E.anchorNode!==b.node||E.anchorOffset!==b.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)){var N=R.createRange();N.setStart(b.node,b.offset),E.removeAllRanges(),ue>De?(E.addRange(N),E.extend(p.node,p.offset)):(N.setEnd(p.node,p.offset),E.addRange(N))}}}}for(R=[],E=r;E=E.parentNode;)E.nodeType===1&&R.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<R.length;r++){var U=R[r];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Ju=!!ts,ls=ts=null}finally{Me=a,H.p=n,T.T=l}}e.current=t,Ze=2}}function Xf(){if(Ze===2){Ze=0;var e=_l,t=Un,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var a=Me;Me|=4;try{xf(e,t.alternate,t)}finally{Me=a,H.p=n,T.T=l}}Ze=3}}function Qf(){if(Ze===4||Ze===3){Ze=0,rm();var e=_l,t=Un,l=cl,n=zf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Un=_l=null,Zf(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Ml=null),si(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Xn,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=T.T,a=H.p,H.p=2,T.T=null;try{for(var u=e.onRecoverableError,c=0;c<n.length;c++){var r=n[c];u(r.value,{componentStack:r.stack})}}finally{T.T=t,H.p=a}}(cl&3)!==0&&Hu(),Qt(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===Xc?ja++:(ja=0,Xc=e):ja=0,Ta(0)}}function Zf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,aa(t)))}function Hu(){return Lf(),Xf(),Qf(),Vf()}function Vf(){if(Ze!==5)return!1;var e=_l,t=wc;wc=0;var l=si(cl),n=T.T,a=H.p;try{H.p=32>l?32:l,T.T=null,l=Lc,Lc=null;var u=_l,c=cl;if(Ze=0,Un=_l=null,cl=0,(Me&6)!==0)throw Error(f(331));var r=Me;if(Me|=4,_f(u.current),jf(u,u.current,c,l),Me=r,Ta(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Xn,u)}catch{}return!0}finally{H.p=a,T.T=n,Zf(e,t)}}function kf(e,t,l){t=Et(l,t),t=yc(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(Zn(e,2),Qt(e))}function Ee(e,t,l){if(e.tag===3)kf(e,e,l);else for(;t!==null;){if(t.tag===3){kf(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ml===null||!Ml.has(n))){e=Et(l,e),l=kr(2),n=vl(t,l,2),n!==null&&(Kr(l,n,t,e),Zn(n,2),Qt(n));break}}t=t.return}}function Vc(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Hh;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Bc=!0,a.add(l),e=Lh.bind(null,e,t,l),t.then(e,e))}function Lh(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Oe===e&&(ve&l)===l&&(Be===4||Be===3&&(ve&62914560)===ve&&300>mt()-Du?(Me&2)===0&&Rn(e,0):Yc|=l,Cn===ve&&(Cn=0)),Qt(e)}function Kf(e,t){t===0&&(t=Gs()),e=Ll(e,t),e!==null&&(Zn(e,t),Qt(e))}function Xh(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kf(e,l)}function Qh(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(f(314))}n!==null&&n.delete(t),Kf(e,l)}function Zh(e,t){return ai(e,t)}var Bu=null,Hn=null,kc=!1,Yu=!1,Kc=!1,Al=0;function Qt(e){e!==Hn&&e.next===null&&(Hn===null?Bu=Hn=e:Hn=Hn.next=e),Yu=!0,kc||(kc=!0,kh())}function Ta(e,t){if(!Kc&&Yu){Kc=!0;do for(var l=!1,n=Bu;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var c=n.suspendedLanes,r=n.pingedLanes;u=(1<<31-gt(42|e)+1)-1,u&=a&~(c&~r),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ff(n,u))}else u=ve,u=Xa(n,n===Oe?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Qn(n,u)||(l=!0,Ff(n,u));n=n.next}while(l);Kc=!1}}function Vh(){Jf()}function Jf(){Yu=kc=!1;var e=0;Al!==0&&l0()&&(e=Al);for(var t=mt(),l=null,n=Bu;n!==null;){var a=n.next,u=$f(n,t);u===0?(n.next=null,l===null?Bu=a:l.next=a,a===null&&(Hn=l)):(l=n,(e!==0||(u&3)!==0)&&(Yu=!0)),n=a}Ze!==0&&Ze!==5||Ta(e),Al!==0&&(Al=0)}function $f(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-gt(u),r=1<<c,m=a[c];m===-1?((r&l)===0||(r&n)!==0)&&(a[c]=bm(r,t)):m<=t&&(e.expiredLanes|=r),u&=~r}if(t=Oe,l=ve,l=Xa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ui(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Qn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&ui(n),si(l)){case 2:case 8:l=Bs;break;case 32:l=Ya;break;case 268435456:l=Ys;break;default:l=Ya}return n=Wf.bind(null,e),l=ai(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&ui(n),e.callbackPriority=2,e.callbackNode=null,2}function Wf(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hu()&&e.callbackNode!==l)return null;var n=ve;return n=Xa(e,e===Oe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Of(e,n,t),$f(e,mt()),e.callbackNode!=null&&e.callbackNode===l?Wf.bind(null,e):null)}function Ff(e,t){if(Hu())return null;Of(e,t,!0)}function kh(){a0(function(){(Me&6)!==0?ai(Hs,Vh):Jf()})}function Jc(){if(Al===0){var e=Sn;e===0&&(e=Ga,Ga<<=1,(Ga&261888)===0&&(Ga=256)),Al=e}return Al}function If(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ka(""+e)}function Pf(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,n,a){if(t==="submit"&&l&&l.stateNode===a){var u=If((a[it]||null).action),c=n.submitter;c&&(t=(t=c[it]||null)?If(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var r=new Wa("action","action",null,n,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Al!==0){var m=c?Pf(a,c):new FormData(a);hc(l,{pending:!0,data:m,method:a.method,action:u},null,m)}}else typeof u=="function"&&(r.preventDefault(),m=c?Pf(a,c):new FormData(a),hc(l,{pending:!0,data:m,method:a.method,action:u},u,m))},currentTarget:a}]})}}for(var $c=0;$c<Oi.length;$c++){var Wc=Oi[$c],Jh=Wc.toLowerCase(),$h=Wc[0].toUpperCase()+Wc.slice(1);qt(Jh,"on"+$h)}qt(zo,"onAnimationEnd"),qt(Do,"onAnimationIteration"),qt(Oo,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(fh,"onTransitionRun"),qt(dh,"onTransitionStart"),qt(mh,"onTransitionCancel"),qt(Co,"onTransitionEnd"),cn("onMouseEnter",["mouseout","mouseover"]),cn("onMouseLeave",["mouseout","mouseover"]),cn("onPointerEnter",["pointerout","pointerover"]),cn("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ma="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(Ma));function ed(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var c=n.length-1;0<=c;c--){var r=n[c],m=r.instance,j=r.currentTarget;if(r=r.listener,m!==u&&a.isPropagationStopped())break e;u=r,a.currentTarget=j;try{u(a)}catch(O){Pa(O)}a.currentTarget=null,u=m}else for(c=0;c<n.length;c++){if(r=n[c],m=r.instance,j=r.currentTarget,r=r.listener,m!==u&&a.isPropagationStopped())break e;u=r,a.currentTarget=j;try{u(a)}catch(O){Pa(O)}a.currentTarget=null,u=m}}}}function be(e,t){var l=t[oi];l===void 0&&(l=t[oi]=new Set);var n=e+"__bubble";l.has(n)||(td(t,e,2,!1),l.add(n))}function Fc(e,t,l){var n=0;t&&(n|=4),td(l,e,n,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function Ic(e){if(!e[Gu]){e[Gu]=!0,ks.forEach(function(l){l!=="selectionchange"&&(Wh.has(l)||Fc(l,!1,e),Fc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,Fc("selectionchange",!1,t))}}function td(e,t,l,n){switch(Dd(t)){case 2:var a=T0;break;case 8:a=M0;break;default:a=ms}l=a.bind(null,t,l,e),a=void 0,!bi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Pc(e,t,l,n,a){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var r=n.stateNode.containerInfo;if(r===a)break;if(c===4)for(c=n.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===a)return;c=c.return}for(;r!==null;){if(c=nn(r),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){n=u=c;continue e}r=r.parentNode}}n=n.return}ao(function(){var j=u,O=xi(l),R=[];e:{var M=Uo.get(e);if(M!==void 0){var E=Wa,$=e;switch(e){case"keypress":if(Ja(l)===0)break e;case"keydown":case"keyup":E=Qm;break;case"focusin":$="focus",E=Ni;break;case"focusout":$="blur",E=Ni;break;case"beforeblur":case"afterblur":E=Ni;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":E=co;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=km;break;case zo:case Do:case Oo:E=Rm;break;case Co:E=Jm;break;case"scroll":case"scrollend":E=zm;break;case"wheel":E=Wm;break;case"copy":case"cut":case"paste":E=Hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=oo;break;case"toggle":case"beforetoggle":E=Im}var ue=(t&4)!==0,De=!ue&&(e==="scroll"||e==="scrollend"),b=ue?M!==null?M+"Capture":null:M;ue=[];for(var p=j,N;p!==null;){var U=p;if(N=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||N===null||b===null||(U=Kn(p,b),U!=null&&ue.push(_a(p,U,N))),De)break;p=p.return}0<ue.length&&(M=new E(M,$,null,l,O),R.push({event:M,listeners:ue}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",M&&l!==gi&&($=l.relatedTarget||l.fromElement)&&(nn($)||$[ln]))break e;if((E||M)&&(M=O.window===O?O:(M=O.ownerDocument)?M.defaultView||M.parentWindow:window,E?($=l.relatedTarget||l.toElement,E=j,$=$?nn($):null,$!==null&&(De=S($),ue=$.tag,$!==De||ue!==5&&ue!==27&&ue!==6)&&($=null)):(E=null,$=j),E!==$)){if(ue=co,U="onMouseLeave",b="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(ue=oo,U="onPointerLeave",b="onPointerEnter",p="pointer"),De=E==null?M:kn(E),N=$==null?M:kn($),M=new ue(U,p+"leave",E,l,O),M.target=De,M.relatedTarget=N,U=null,nn(O)===j&&(ue=new ue(b,p+"enter",$,l,O),ue.target=N,ue.relatedTarget=De,U=ue),De=U,E&&$)t:{for(ue=Fh,b=E,p=$,N=0,U=b;U;U=ue(U))N++;U=0;for(var te=p;te;te=ue(te))U++;for(;0<N-U;)b=ue(b),N--;for(;0<U-N;)p=ue(p),U--;for(;N--;){if(b===p||p!==null&&b===p.alternate){ue=b;break t}b=ue(b),p=ue(p)}ue=null}else ue=null;E!==null&&ld(R,M,E,ue,!1),$!==null&&De!==null&&ld(R,De,$,ue,!0)}}e:{if(M=j?kn(j):window,E=M.nodeName&&M.nodeName.toLowerCase(),E==="select"||E==="input"&&M.type==="file")var je=bo;else if(xo(M))if(vo)je=sh;else{je=ih;var F=uh}else E=M.nodeName,!E||E.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?j&&hi(j.elementType)&&(je=bo):je=ch;if(je&&(je=je(e,j))){po(R,je,l,O);break e}F&&F(e,M,j),e==="focusout"&&j&&M.type==="number"&&j.memoizedProps.value!=null&&mi(M,"number",M.value)}switch(F=j?kn(j):window,e){case"focusin":(xo(F)||F.contentEditable==="true")&&(mn=F,Ai=j,ta=null);break;case"focusout":ta=Ai=mn=null;break;case"mousedown":zi=!0;break;case"contextmenu":case"mouseup":case"dragend":zi=!1,Eo(R,l,O);break;case"selectionchange":if(rh)break;case"keydown":case"keyup":Eo(R,l,O)}var me;if(Ti)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 dn?ho(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(ro&&l.locale!=="ko"&&(dn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&dn&&(me=uo()):(dl=O,vi="value"in dl?dl.value:dl.textContent,dn=!0)),F=wu(j,ye),0<F.length&&(ye=new so(ye,e,null,l,O),R.push({event:ye,listeners:F}),me?ye.data=me:(me=go(l),me!==null&&(ye.data=me)))),(me=eh?th(e,l):lh(e,l))&&(ye=wu(j,"onBeforeInput"),0<ye.length&&(F=new so("onBeforeInput","beforeinput",null,l,O),R.push({event:F,listeners:ye}),F.data=me)),Kh(R,e,j,l,O)}ed(R,t)})}function _a(e,t,l){return{instance:e,listener:t,currentTarget:l}}function wu(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Kn(e,l),a!=null&&n.unshift(_a(e,a,u)),a=Kn(e,t),a!=null&&n.push(_a(e,a,u))),e.tag===3)return n;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 ld(e,t,l,n,a){for(var u=t._reactName,c=[];l!==null&&l!==n;){var r=l,m=r.alternate,j=r.stateNode;if(r=r.tag,m!==null&&m===n)break;r!==5&&r!==26&&r!==27||j===null||(m=j,a?(j=Kn(l,u),j!=null&&c.unshift(_a(l,j,m))):a||(j=Kn(l,u),j!=null&&c.push(_a(l,j,m)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Ih=/\r\n?/g,Ph=/\u0000|\uFFFD/g;function nd(e){return(typeof e=="string"?e:""+e).replace(Ih,`
49
- `).replace(Ph,"")}function ad(e,t){return t=nd(t),nd(e)===t}function ze(e,t,l,n,a,u){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||on(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&on(e,""+n);break;case"className":Za(e,"class",n);break;case"tabIndex":Za(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Za(e,l,n);break;case"style":lo(e,n,u);break;case"data":if(t!=="object"){Za(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ka(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="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",a.name,a,null),ze(e,t,"formEncType",a.formEncType,a,null),ze(e,t,"formMethod",a.formMethod,a,null),ze(e,t,"formTarget",a.formTarget,a,null)):(ze(e,t,"encType",a.encType,a,null),ze(e,t,"method",a.method,a,null),ze(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ka(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=kt);break;case"onScroll":n!=null&&be("scroll",e);break;case"onScrollEnd":n!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=ka(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":be("beforetoggle",e),be("toggle",e),Qa(e,"popover",n);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Qa(e,"is",n);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,Qa(e,l,n))}}function es(e,t,l,n,a,u){switch(l){case"style":lo(e,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"children":typeof n=="string"?on(e,n):(typeof n=="number"||typeof n=="bigint")&&on(e,""+n);break;case"onScroll":n!=null&&be("scroll",e);break;case"onScrollEnd":n!=null&&be("scrollend",e);break;case"onClick":n!=null&&(e.onclick=kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ks.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),u=e[it]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):Qa(e,l,n)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ze(e,t,u,c,l,null)}}a&&ze(e,t,"srcSet",l.srcSet,l,null),n&&ze(e,t,"src",l.src,l,null);return;case"input":be("invalid",e);var r=u=c=a=null,m=null,j=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":c=O;break;case"checked":m=O;break;case"defaultChecked":j=O;break;case"value":u=O;break;case"defaultValue":r=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(f(137,t));break;default:ze(e,t,n,O,l,null)}}Is(e,u,r,m,j,c,a,!1);return;case"select":be("invalid",e),n=c=u=null;for(a in l)if(l.hasOwnProperty(a)&&(r=l[a],r!=null))switch(a){case"value":u=r;break;case"defaultValue":c=r;break;case"multiple":n=r;default:ze(e,t,a,r,l,null)}t=u,l=c,e.multiple=!!n,t!=null?sn(e,!!n,t,!1):l!=null&&sn(e,!!n,l,!0);return;case"textarea":be("invalid",e),u=a=n=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":n=r;break;case"defaultValue":a=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:ze(e,t,c,r,l,null)}eo(e,n,a,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ze(e,t,m,n,l,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(n=0;n<Ma.length;n++)be(Ma[n],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(j in l)if(l.hasOwnProperty(j)&&(n=l[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ze(e,t,j,n,l,null)}return;default:if(hi(t)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&es(e,t,O,n,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(n=l[r],n!=null&&ze(e,t,r,n,l,null))}function e0(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,c=null,r=null,m=null,j=null,O=null;for(E in l){var R=l[E];if(l.hasOwnProperty(E)&&R!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":m=R;default:n.hasOwnProperty(E)||ze(e,t,E,null,n,R)}}for(var M in n){var E=n[M];if(R=l[M],n.hasOwnProperty(M)&&(E!=null||R!=null))switch(M){case"type":u=E;break;case"name":a=E;break;case"checked":j=E;break;case"defaultChecked":O=E;break;case"value":c=E;break;case"defaultValue":r=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(f(137,t));break;default:E!==R&&ze(e,t,M,E,n,R)}}di(e,c,r,m,j,O,u,a);return;case"select":E=c=r=M=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":E=m;default:n.hasOwnProperty(u)||ze(e,t,u,null,n,m)}for(a in n)if(u=n[a],m=l[a],n.hasOwnProperty(a)&&(u!=null||m!=null))switch(a){case"value":M=u;break;case"defaultValue":r=u;break;case"multiple":c=u;default:u!==m&&ze(e,t,a,u,n,m)}t=r,l=c,n=E,M!=null?sn(e,!!l,M,!1):!!n!=!!l&&(t!=null?sn(e,!!l,t,!0):sn(e,!!l,l?[]:"",!1));return;case"textarea":E=M=null;for(r in l)if(a=l[r],l.hasOwnProperty(r)&&a!=null&&!n.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ze(e,t,r,null,n,a)}for(c in n)if(a=n[c],u=l[c],n.hasOwnProperty(c)&&(a!=null||u!=null))switch(c){case"value":M=a;break;case"defaultValue":E=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(f(91));break;default:a!==u&&ze(e,t,c,a,n,u)}Ps(e,M,E);return;case"option":for(var $ in l)if(M=l[$],l.hasOwnProperty($)&&M!=null&&!n.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:ze(e,t,$,null,n,M)}for(m in n)if(M=n[m],E=l[m],n.hasOwnProperty(m)&&M!==E&&(M!=null||E!=null))switch(m){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:ze(e,t,m,M,n,E)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in l)M=l[ue],l.hasOwnProperty(ue)&&M!=null&&!n.hasOwnProperty(ue)&&ze(e,t,ue,null,n,M);for(j in n)if(M=n[j],E=l[j],n.hasOwnProperty(j)&&M!==E&&(M!=null||E!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(f(137,t));break;default:ze(e,t,j,M,n,E)}return;default:if(hi(t)){for(var De in l)M=l[De],l.hasOwnProperty(De)&&M!==void 0&&!n.hasOwnProperty(De)&&es(e,t,De,void 0,n,M);for(O in n)M=n[O],E=l[O],!n.hasOwnProperty(O)||M===E||M===void 0&&E===void 0||es(e,t,O,M,n,E);return}}for(var b in l)M=l[b],l.hasOwnProperty(b)&&M!=null&&!n.hasOwnProperty(b)&&ze(e,t,b,null,n,M);for(R in n)M=n[R],E=l[R],!n.hasOwnProperty(R)||M===E||M==null&&E==null||ze(e,t,R,M,n,E)}function ud(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"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,c=a.initiatorType,r=a.duration;if(u&&r&&ud(c)){for(c=0,r=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],j=m.startTime;if(j>r)break;var O=m.transferSize,R=m.initiatorType;O&&ud(R)&&(m=m.responseEnd,c+=O*(m<r?1:(r-j)/(m-j)))}if(--n,t+=8*(u+c)/(a.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 ts=null,ls=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function id(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 cd(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 ns(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var as=null;function l0(){var e=window.event;return e&&e.type==="popstate"?e===as?!1:(as=e,!0):(as=null,!1)}var sd=typeof setTimeout=="function"?setTimeout:void 0,n0=typeof clearTimeout=="function"?clearTimeout:void 0,od=typeof Promise=="function"?Promise:void 0,a0=typeof queueMicrotask=="function"?queueMicrotask:typeof od<"u"?function(e){return od.resolve(null).then(e).catch(u0)}:sd;function u0(e){setTimeout(function(){throw e})}function zl(e){return e==="head"}function rd(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),wn(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ea(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ea(l);for(var u=l.firstChild;u;){var c=u.nextSibling,r=u.nodeName;u[Vn]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Ea(e.ownerDocument.body);l=a}while(l);wn(t)}function fd(e,t){var l=e;e=0;do{var n=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||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function us(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":us(l),ri(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function i0(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Vn])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!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Ct(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=Ct(e.nextSibling),e===null))return null;return e}function dd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ct(e.nextSibling),e===null))return null;return e}function is(e){return e.data==="$?"||e.data==="$~"}function cs(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 n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ct(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 ss=null;function md(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Ct(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function hd(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 gd(e,t,l){switch(t=Lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Ea(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ri(e)}var Ut=new Map,xd=new Set;function Xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=H.d;H.d={f:o0,r:r0,D:f0,C:d0,L:m0,m:h0,X:x0,S:g0,M:p0};function o0(){var e=sl.f(),t=Uu();return e||t}function r0(e){var t=an(e);t!==null&&t.tag===5&&t.type==="form"?Cr(t):sl.r(e)}var Bn=typeof document>"u"?null:document;function pd(e,t,l){var n=Bn;if(n&&typeof t=="string"&&t){var a=Mt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),xd.has(a)||(xd.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),et(t,"link",e),ke(t),n.head.appendChild(t)))}}function f0(e){sl.D(e),pd("dns-prefetch",e,null)}function d0(e,t){sl.C(e,t),pd("preconnect",e,t)}function m0(e,t,l){sl.L(e,t,l);var n=Bn;if(n&&e&&t){var a='link[rel="preload"][as="'+Mt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Mt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Mt(l.imageSizes)+'"]')):a+='[href="'+Mt(e)+'"]';var u=a;switch(t){case"style":u=Yn(e);break;case"script":u=Gn(e)}Ut.has(u)||(e=q({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(u,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Aa(u))||t==="script"&&n.querySelector(za(u))||(t=n.createElement("link"),et(t,"link",e),ke(t),n.head.appendChild(t)))}}function h0(e,t){sl.m(e,t);var l=Bn;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Mt(n)+'"][href="'+Mt(e)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Gn(e)}if(!Ut.has(u)&&(e=q({rel:"modulepreload",href:e},t),Ut.set(u,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(za(u)))return}n=l.createElement("link"),et(n,"link",e),ke(n),l.head.appendChild(n)}}}function g0(e,t,l){sl.S(e,t,l);var n=Bn;if(n&&e){var a=un(n).hoistableStyles,u=Yn(e);t=t||"default";var c=a.get(u);if(!c){var r={loading:0,preload:null};if(c=n.querySelector(Aa(u)))r.loading=5;else{e=q({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(u))&&os(e,l);var m=c=n.createElement("link");ke(m),et(m,"link",e),m._p=new Promise(function(j,O){m.onload=j,m.onerror=O}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Qu(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:r},a.set(u,c)}}}function x0(e,t){sl.X(e,t);var l=Bn;if(l&&e){var n=un(l).hoistableScripts,a=Gn(e),u=n.get(a);u||(u=l.querySelector(za(a)),u||(e=q({src:e,async:!0},t),(t=Ut.get(a))&&rs(e,t),u=l.createElement("script"),ke(u),et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function p0(e,t){sl.M(e,t);var l=Bn;if(l&&e){var n=un(l).hoistableScripts,a=Gn(e),u=n.get(a);u||(u=l.querySelector(za(a)),u||(e=q({src:e,async:!0,type:"module"},t),(t=Ut.get(a))&&rs(e,t),u=l.createElement("script"),ke(u),et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function bd(e,t,l,n){var a=(a=xe.current)?Xu(a):null;if(!a)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Yn(l.href),l=un(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Yn(l.href);var u=un(a).hoistableStyles,c=u.get(e);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=a.querySelector(Aa(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Ut.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},Ut.set(e,l),u||b0(a,e,l,c.state))),t&&n===null)throw Error(f(528,""));return c}if(t&&n!==null)throw Error(f(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gn(l),l=un(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function Yn(e){return'href="'+Mt(e)+'"'}function Aa(e){return'link[rel="stylesheet"]['+e+"]"}function vd(e){return q({},e,{"data-precedence":e.precedence,precedence:null})}function b0(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),et(t,"link",l),ke(t),e.head.appendChild(t))}function Gn(e){return'[src="'+Mt(e)+'"]'}function za(e){return"script[async]"+e}function yd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Mt(l.href)+'"]');if(n)return t.instance=n,ke(n),n;var a=q({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ke(n),et(n,"style",a),Qu(n,l.precedence,e),t.instance=n;case"stylesheet":a=Yn(l.href);var u=e.querySelector(Aa(a));if(u)return t.state.loading|=4,t.instance=u,ke(u),u;n=vd(l),(a=Ut.get(a))&&os(n,a),u=(e.ownerDocument||e).createElement("link"),ke(u);var c=u;return c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),et(u,"link",n),t.state.loading|=4,Qu(u,l.precedence,e),t.instance=u;case"script":return u=Gn(l.src),(a=e.querySelector(za(u)))?(t.instance=a,ke(a),a):(n=l,(a=Ut.get(u))&&(n=q({},l),rs(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),ke(a),et(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Qu(n,l.precedence,e));return t.instance}function Qu(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,c=0;c<n.length;c++){var r=n[c];if(r.dataset.precedence===t)u=r;else if(u!==a)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function rs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zu=null;function Sd(e,t,l){if(Zu===null){var n=new Map,a=Zu=new Map;a.set(l,n)}else a=Zu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var u=l[a];if(!(u[Vn]||u[We]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var r=n.get(c);r?r.push(u):n.set(c,[u])}}return n}function Nd(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 jd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function y0(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Yn(n.href),u=t.querySelector(Aa(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ke(u);return}u=t.ownerDocument||t,n=vd(n),(a=Ut.get(a))&&os(n,a),u=u.createElement("link"),ke(u);var c=u;c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),et(u,"link",n),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=Vu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var fs=0;function S0(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&fs===0&&(fs=62500*t0());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>fs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ku=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ku=new Map,t.forEach(N0,e),ku=null,Vu.call(e))}function N0(e,t){if(!(t.state.loading&4)){var l=ku.get(e);if(l)var n=l.get(null);else{l=new Map,ku.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var c=a[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),n=c)}n&&l.set(null,n)}a=t.instance,c=a.getAttribute("data-precedence"),u=l.get(c)||n,u===n&&l.set(null,a),l.set(c,a),this.count++,n=Vu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Da={$$typeof:L,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function j0(e,t,l,n,a,u,c,r,m){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=ii(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.hiddenUpdates=ii(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Td(e,t,l,n,a,u,c,r,m,j,O,R){return e=new j0(e,t,l,c,m,j,O,R,r),t=1,u===!0&&(t|=24),u=pt(3,null,null,t),e.current=u,u.stateNode=e,t=Zi(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:t},Ji(u),e}function Md(e){return e?(e=xn,e):xn}function _d(e,t,l,n,a,u){a=Md(a),n.context===null?n.context=a:n.pendingContext=a,n=bl(t),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=vl(e,n,t),l!==null&&(dt(l,e,t),sa(l,e,t))}function Ed(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ds(e,t){Ed(e,t),(e=e.alternate)&&Ed(e,t)}function Ad(e){if(e.tag===13||e.tag===31){var t=Ll(e,67108864);t!==null&&dt(t,e,67108864),ds(e,67108864)}}function zd(e){if(e.tag===13||e.tag===31){var t=Nt();t=ci(t);var l=Ll(e,t);l!==null&&dt(l,e,t),ds(e,t)}}var Ju=!0;function T0(e,t,l,n){var a=T.T;T.T=null;var u=H.p;try{H.p=2,ms(e,t,l,n)}finally{H.p=u,T.T=a}}function M0(e,t,l,n){var a=T.T;T.T=null;var u=H.p;try{H.p=8,ms(e,t,l,n)}finally{H.p=u,T.T=a}}function ms(e,t,l,n){if(Ju){var a=hs(n);if(a===null)Pc(e,t,n,$u,l),Od(e,n);else if(E0(a,e,t,l,n))n.stopPropagation();else if(Od(e,n),t&4&&-1<_0.indexOf(e)){for(;a!==null;){var u=an(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Hl(u.pendingLanes);if(c!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var m=1<<31-gt(c);r.entanglements[1]|=m,c&=~m}Qt(u),(Me&6)===0&&(Ou=mt()+500,Ta(0))}}break;case 31:case 13:r=Ll(u,2),r!==null&&dt(r,u,2),Uu(),ds(u,2)}if(u=hs(n),u===null&&Pc(e,t,n,$u,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Pc(e,t,n,null,l)}}function hs(e){return e=xi(e),gs(e)}var $u=null;function gs(e){if($u=null,e=nn(e),e!==null){var t=S(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=A(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 $u=e,null}function Dd(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(fm()){case Hs:return 2;case Bs:return 8;case Ya:case dm:return 32;case Ys:return 268435456;default:return 32}default:return 32}}var xs=!1,Dl=null,Ol=null,Cl=null,Oa=new Map,Ca=new Map,Ul=[],_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 Od(e,t){switch(e){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":Ol=null;break;case"mouseover":case"mouseout":Cl=null;break;case"pointerover":case"pointerout":Oa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ca.delete(t.pointerId)}}function Ua(e,t,l,n,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},t!==null&&(t=an(t),t!==null&&Ad(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function E0(e,t,l,n,a){switch(t){case"focusin":return Dl=Ua(Dl,e,t,l,n,a),!0;case"dragenter":return Ol=Ua(Ol,e,t,l,n,a),!0;case"mouseover":return Cl=Ua(Cl,e,t,l,n,a),!0;case"pointerover":var u=a.pointerId;return Oa.set(u,Ua(Oa.get(u)||null,e,t,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Ca.set(u,Ua(Ca.get(u)||null,e,t,l,n,a)),!0}return!1}function Cd(e){var t=nn(e.target);if(t!==null){var l=S(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,Zs(e.priority,function(){zd(l)});return}}else if(t===31){if(t=A(l),t!==null){e.blockedOn=t,Zs(e.priority,function(){zd(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 Wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=hs(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);gi=n,l.target.dispatchEvent(n),gi=null}else return t=an(l),t!==null&&Ad(t),e.blockedOn=l,!1;t.shift()}return!0}function Ud(e,t,l){Wu(e)&&l.delete(t)}function A0(){xs=!1,Dl!==null&&Wu(Dl)&&(Dl=null),Ol!==null&&Wu(Ol)&&(Ol=null),Cl!==null&&Wu(Cl)&&(Cl=null),Oa.forEach(Ud),Ca.forEach(Ud)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,xs||(xs=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,A0)))}var Iu=null;function Rd(e){Iu!==e&&(Iu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Iu===e&&(Iu=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(gs(n||l)===null)continue;break}var u=an(l);u!==null&&(e.splice(t,3),t-=3,hc(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function wn(e){function t(m){return Fu(m,e)}Dl!==null&&Fu(Dl,e),Ol!==null&&Fu(Ol,e),Cl!==null&&Fu(Cl,e),Oa.forEach(t),Ca.forEach(t);for(var l=0;l<Ul.length;l++){var n=Ul[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)Cd(l),l.blockedOn===null&&Ul.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],c=a[it]||null;if(typeof u=="function")c||Rd(l);else if(c){var r=null;if(u&&u.hasAttribute("formAction")){if(a=u,c=u[it]||null)r=c.formAction;else if(gs(a)!==null)continue}else r=c.action;typeof r=="function"?l[n+1]=r:(l.splice(n,3),n-=3),Rd(l)}}}function qd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return a=c})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!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 n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function ps(e){this._internalRoot=e}Pu.prototype.render=ps.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,n=Nt();_d(l,n,e,t,null,null)},Pu.prototype.unmount=ps.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_d(e.current,2,null,e,null,null),Uu(),t[ln]=null}};function Pu(e){this._internalRoot=e}Pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qs();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ul.length&&t!==0&&t<Ul[l].priority;l++);Ul.splice(l,0,e),l===0&&Cd(e)}};var Hd=o.version;if(Hd!=="19.2.4")throw Error(f(527,Hd,"19.2.4"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=g(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var z0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{Xn=ei.inject(z0),ht=ei}catch{}}return qa.createRoot=function(e,t){if(!h(e))throw Error(f(299));var l=!1,n="",a=Xr,u=Qr,c=Zr;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Td(e,1,!1,null,null,l,n,null,a,u,c,qd),e[ln]=t.current,Ic(e),new ps(t)},qa.hydrateRoot=function(e,t,l){if(!h(e))throw Error(f(299));var n=!1,a="",u=Xr,c=Qr,r=Zr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=Td(e,1,!0,t,l??null,n,a,m,u,c,r,qd),t.context=Md(null),l=t.current,n=Nt(),n=ci(n),a=bl(n),a.callback=null,vl(l,a,n),l=n,t.current.lanes=l,Zn(t,l),Qt(t),e[ln]=t.current,Ic(e),new Pu(t)},qa.version="19.2.4",qa}var kd;function L0(){if(kd)return ys.exports;kd=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(),ys.exports=w0(),ys.exports}var X0=L0();const en="/dashboard";function Kd(){const s=window.location.pathname;return s===en||s===en+"/"?"/":s.startsWith(en+"/")?s.slice(en.length):s||"/"}function Jd(s){return s==="/"||s===""?en+"/":en+(s.startsWith("/")?s:"/"+s)}typeof document<"u"&&!window.__dashboardRouterInstalled&&(window.__dashboardRouterInstalled=!0,document.addEventListener("click",s=>{var f,h;if(s.defaultPrevented||s.button!==0||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return;const o=(h=(f=s.target)==null?void 0:f.closest)==null?void 0:h.call(f,"a");if(!o)return;const d=o.getAttribute("href");d&&(o.hasAttribute("target")||o.hasAttribute("download")||d.startsWith(en)&&(s.preventDefault(),d!==window.location.pathname+window.location.search&&window.history.pushState({},"",d),window.dispatchEvent(new Event("dashboard:navigate"))))}),window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("dashboard:navigate"))}));function am(){const[s,o]=K.useState(Kd());return K.useEffect(()=>{const d=()=>o(Kd());return window.addEventListener("popstate",d),window.addEventListener("dashboard:navigate",d),()=>{window.removeEventListener("popstate",d),window.removeEventListener("dashboard:navigate",d)}},[]),s}function Q0({onLogin:s,error:o}){const[d,f]=K.useState(""),h=S=>{S.preventDefault(),d.trim()&&s(d.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:h,children:[i.jsx("input",{type:"password",value:d,onChange:S=>f(S.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 ut=null,ti=3e3,Ts=null;const Os=new Set;function um(){if((ut==null?void 0:ut.readyState)===WebSocket.OPEN||(ut==null?void 0:ut.readyState)===WebSocket.CONNECTING)return;const s=location.protocol==="https:"?"wss:":"ws:";ut=new WebSocket(`${s}//${location.host}/dashboard/ws`),ut.onopen=()=>{ti=3e3},ut.onmessage=o=>{try{const d=JSON.parse(o.data);Os.forEach(f=>f(d))}catch{}},ut.onclose=()=>{ut=null,Ts&&clearTimeout(Ts),Ts=setTimeout(()=>{ti=Math.min(ti*1.5,3e4),um()},ti)},ut.onerror=()=>{}}function im(s){return Os.add(s),()=>Os.delete(s)}function Z0(){return(ut==null?void 0:ut.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 $d(){const[s,o]=K.useState(!1),d=am();return K.useEffect(()=>{const f=setInterval(()=>{o(Z0()===WebSocket.OPEN)},2e3);return()=>clearInterval(f)},[]),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:Jd("/"),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(f=>{const h=f.match(d);return i.jsx("a",{href:Jd(f.to),className:`rounded-md px-3.5 py-1.5 font-mono text-[13px] transition ${h?"bg-primary/10 font-semibold text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`,children:f.label},f.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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");o=o.replace(/```(\w*)\n?([\s\S]*?)```/g,(S,y,A)=>`<pre class="md-code-block"><code>${A.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 d=o.split(`
48
+ `+n.stack}}var rl=Object.prototype.hasOwnProperty,ai=s.unstable_scheduleCallback,ui=s.unstable_cancelCallback,om=s.unstable_shouldYield,rm=s.unstable_requestPaint,ht=s.unstable_now,fm=s.unstable_getCurrentPriorityLevel,Hs=s.unstable_ImmediatePriority,Bs=s.unstable_UserBlockingPriority,Ya=s.unstable_NormalPriority,dm=s.unstable_LowPriority,Ys=s.unstable_IdlePriority,mm=s.log,hm=s.unstable_setDisableYieldValue,Xn=null,gt=null;function fl(e){if(typeof mm=="function"&&hm(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Xn,e)}catch{}}var xt=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 Ga=256,wa=262144,La=4194304;function Bl(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 Xa(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=n&134217727;return r!==0?(n=r&~u,n!==0?a=Bl(n):(c&=r,c!==0?a=Bl(c):l||(l=r&~e,l!==0&&(a=Bl(l))))):(r=n&~u,r!==0?a=Bl(r):c!==0?a=Bl(c):l||(l=n&~e,l!==0&&(a=Bl(l)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:a}function Qn(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 Gs(){var e=La;return La<<=1,(La&62914560)===0&&(La=4194304),e}function ii(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Zn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vm(e,t,l,n,a,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 r=e.entanglements,m=e.expirationTimes,N=e.hiddenUpdates;for(l=c&~l;0<l;){var O=31-xt(l),R=1<<O;r[O]=0,m[O]=-1;var M=N[O];if(M!==null)for(N[O]=null,O=0;O<M.length;O++){var E=M[O];E!==null&&(E.lane&=-536870913)}l&=~R}n!==0&&ws(e,n,0),u!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function ws(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-xt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Ls(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-xt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Xs(e,t){var l=t&-t;return l=(l&42)!==0?1:ci(l),(l&(e.suspendedLanes|t))!==0?0:l}function ci(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 si(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qs(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:Dd(e.type))}function Zs(e,t){var l=H.p;try{return H.p=e,t()}finally{H.p=l}}var dl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+dl,ct="__reactProps$"+dl,ln="__reactContainer$"+dl,oi="__reactEvents$"+dl,ym="__reactListeners$"+dl,Sm="__reactHandles$"+dl,Vs="__reactResources$"+dl,Vn="__reactMarker$"+dl;function ri(e){delete e[Fe],delete e[ct],delete e[oi],delete e[ym],delete e[Sm]}function nn(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ln]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=hd(e);e!==null;){if(l=e[Fe])return l;e=hd(e)}return t}e=l,l=e.parentNode}return null}function an(e){if(e=e[Fe]||e[ln]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function un(e){var t=e[Vs];return t||(t=e[Vs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Vn]=!0}var ks=new Set,Ks={};function Yl(e,t){cn(e,t),cn(e+"Capture",t)}function cn(e,t){for(Ks[e]=t,e=0;e<t.length;e++)ks.add(t[e])}var jm=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]*$"),Js={},$s={};function Nm(e){return rl.call($s,e)?!0:rl.call(Js,e)?!1:jm.test(e)?$s[e]=!0:(Js[e]=!0,!1)}function Qa(e,t,l){if(Nm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Za(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 kt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ws(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tm(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){if(!e._valueTracker){var t=Ws(e)?"checked":"value";e._valueTracker=Tm(e,t,""+e[t])}}function Fs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Ws(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Va(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 Mt(e){return e.replace(Mm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function di(e,t,l,n,a,u,c,r){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=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?mi(e,c,Tt(t)):l!=null?mi(e,c,Tt(l)):n!=null&&e.removeAttribute("value"),a==null&&u!=null&&(e.defaultChecked=!!u),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Tt(r):e.removeAttribute("name")}function Is(e,t,l,n,a,u,c,r){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)){fi(e);return}l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=r?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),fi(e)}function mi(e,t,l){t==="number"&&Va(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function sn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Ps(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function eo(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(f(92));if(I(n)){if(1<n.length)throw Error(f(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),fi(e)}function on(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 to(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?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 lo(e,t,l){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&to(e,a,n)}else for(var u in t)t.hasOwnProperty(u)&&to(e,u,t[u])}function hi(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"]]),Am=/^[\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 ka(e){return Am.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var gi=null;function xi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,fn=null;function no(e){var t=an(e);if(t&&(e=t.stateNode)){var l=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(di(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="'+Mt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[ct]||null;if(!a)throw Error(f(90));di(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Fs(n)}break e;case"textarea":Ps(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&sn(e,!!l.multiple,t,!1)}}}var pi=!1;function ao(e,t,l){if(pi)return e(t,l);pi=!0;try{var n=e(t);return n}finally{if(pi=!1,(rn!==null||fn!==null)&&(Uu(),rn&&(t=rn,e=fn,fn=rn=null,no(t),e)))for(t=0;t<e.length;t++)no(e[t])}}function Kn(e,t){var l=e.stateNode;if(l===null)return null;var n=l[ct]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(f(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bi=!1;if(Jt)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){bi=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{bi=!1}var ml=null,vi=null,Ka=null;function uo(){if(Ka)return Ka;var e,t=vi,l=t.length,n,a="value"in ml?ml.value:ml.textContent,u=a.length;for(e=0;e<l&&t[e]===a[e];e++);var c=l-e;for(n=1;n<=c&&t[l-n]===a[u-n];n++);return Ka=a.slice(e,1<n?1-n:void 0)}function Ja(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 $a(){return!0}function io(){return!1}function st(e){function t(l,n,a,u,c){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(u):u[r]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?$a:io,this.isPropagationStopped=io,this}return q(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=$a)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=$a)},persist:function(){},isPersistent:$a}),t}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wa=st(Gl),$n=q({},Gl,{view:0,detail:0}),zm=st($n),yi,Si,Wn,Fa=q({},$n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ni,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!==Wn&&(Wn&&e.type==="mousemove"?(yi=e.screenX-Wn.screenX,Si=e.screenY-Wn.screenY):Si=yi=0,Wn=e),yi)},movementY:function(e){return"movementY"in e?e.movementY:Si}}),co=st(Fa),Dm=q({},Fa,{dataTransfer:0}),Om=st(Dm),Cm=q({},$n,{relatedTarget:0}),ji=st(Cm),Um=q({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Rm=st(Um),qm=q({},Gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hm=st(qm),Bm=q({},Gl,{data:0}),so=st(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"},wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wm[e])?!!t[e]:!1}function Ni(){return Lm}var Xm=q({},$n,{key:function(e){if(e.key){var t=Ym[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ja(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:Ni,charCode:function(e){return e.type==="keypress"?Ja(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ja(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qm=st(Xm),Zm=q({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oo=st(Zm),Vm=q({},$n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ni}),km=st(Vm),Km=q({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=st(Km),$m=q({},Fa,{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=st($m),Fm=q({},Gl,{newState:0,oldState:0}),Im=st(Fm),Pm=[9,13,27,32],Ti=Jt&&"CompositionEvent"in window,Fn=null;Jt&&"documentMode"in document&&(Fn=document.documentMode);var eh=Jt&&"TextEvent"in window&&!Fn,ro=Jt&&(!Ti||Fn&&8<Fn&&11>=Fn),fo=" ",mo=!1;function ho(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 go(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function th(e,t){switch(e){case"compositionend":return go(t);case"keypress":return t.which!==32?null:(mo=!0,fo);case"textInput":return e=t.data,e===fo&&mo?null:e;default:return null}}function lh(e,t){if(dn)return e==="compositionend"||!Ti&&ho(e,t)?(e=uo(),Ka=vi=ml=null,dn=!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 ro&&t.locale!=="ko"?null:t.data;default:return null}}var nh={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 xo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nh[e.type]:t==="textarea"}function po(e,t,l,n){rn?fn?fn.push(n):fn=[n]:rn=n,t=wu(t,"onChange"),0<t.length&&(l=new Wa("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var In=null,Pn=null;function ah(e){ed(e,0)}function Ia(e){var t=kn(e);if(Fs(t))return e}function bo(e,t){if(e==="change")return t}var vo=!1;if(Jt){var Mi;if(Jt){var _i="oninput"in document;if(!_i){var yo=document.createElement("div");yo.setAttribute("oninput","return;"),_i=typeof yo.oninput=="function"}Mi=_i}else Mi=!1;vo=Mi&&(!document.documentMode||9<document.documentMode)}function So(){In&&(In.detachEvent("onpropertychange",jo),Pn=In=null)}function jo(e){if(e.propertyName==="value"&&Ia(Pn)){var t=[];po(t,Pn,e,xi(e)),ao(ah,t)}}function uh(e,t,l){e==="focusin"?(So(),In=t,Pn=l,In.attachEvent("onpropertychange",jo)):e==="focusout"&&So()}function ih(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Pn)}function ch(e,t){if(e==="click")return Ia(t)}function sh(e,t){if(e==="input"||e==="change")return Ia(t)}function oh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:oh;function ea(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!rl.call(t,a)||!pt(e[a],t[a]))return!1}return!0}function No(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function To(e,t){var l=No(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=No(l)}}function Mo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _o(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Va(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=Va(e.document)}return t}function Ei(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 rh=Jt&&"documentMode"in document&&11>=document.documentMode,mn=null,Ai=null,ta=null,zi=!1;function Eo(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zi||mn==null||mn!==Va(n)||(n=mn,"selectionStart"in n&&Ei(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ta&&ea(ta,n)||(ta=n,n=wu(Ai,"onSelect"),0<n.length&&(t=new Wa("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=mn)))}function wl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var hn={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},Di={},Ao={};Jt&&(Ao=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function Ll(e){if(Di[e])return Di[e];if(!hn[e])return e;var t=hn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ao)return Di[e]=t[l];return e}var zo=Ll("animationend"),Do=Ll("animationiteration"),Oo=Ll("animationstart"),fh=Ll("transitionrun"),dh=Ll("transitionstart"),mh=Ll("transitioncancel"),Co=Ll("transitionend"),Uo=new Map,Oi="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(" ");Oi.push("scrollEnd");function qt(e,t){Uo.set(e,t),Yl(t,[e])}var Pa=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)},_t=[],gn=0,Ci=0;function eu(){for(var e=gn,t=Ci=gn=0;t<e;){var l=_t[t];_t[t++]=null;var n=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var u=_t[t];if(_t[t++]=null,n!==null&&a!==null){var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}u!==0&&Ro(l,a,u)}}function tu(e,t,l,n){_t[gn++]=e,_t[gn++]=t,_t[gn++]=l,_t[gn++]=n,Ci|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Ui(e,t,l,n){return tu(e,t,l,n),lu(e)}function Xl(e,t){return tu(e,null,null,t),lu(e)}function Ro(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=e.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(a=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,a&&t!==null&&(a=31-xt(l),e=u.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),u):null}function lu(e){if(50<Na)throw Na=0,Xc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var xn={};function hh(e,t,l,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,n){return new hh(e,t,l,n)}function Ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var l=e.alternate;return l===null?(l=bt(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 qo(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 nu(e,t,l,n,a,u){var c=0;if(n=e,typeof e=="function")Ri(e)&&(c=1);else if(typeof e=="string")c=v0(e,l,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=bt(31,l,t,a),e.elementType=ce,e.lanes=u,e;case he:return Ql(l.children,a,u,t);case Z:c=8,a|=24;break;case W:return e=bt(12,l,t,a|2),e.elementType=W,e.lanes=u,e;case D:return e=bt(13,l,t,a),e.elementType=D,e.lanes=u,e;case ae:return e=bt(19,l,t,a),e.elementType=ae,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:c=10;break e;case ge:c=9;break e;case ne:c=11;break e;case B:c=14;break e;case J:c=16,n=null;break e}c=29,l=Error(f(130,e===null?"null":typeof e,"")),n=null}return t=bt(c,l,t,a),t.elementType=e,t.type=n,t.lanes=u,t}function Ql(e,t,l,n){return e=bt(7,e,n,t),e.lanes=l,e}function qi(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Ho(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Hi(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bo=new WeakMap;function Et(e,t){if(typeof e=="object"&&e!==null){var l=Bo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ln(t)},Bo.set(e,t),t)}return{value:e,source:t,stack:Ln(t)}}var pn=[],bn=0,au=null,la=0,At=[],zt=0,hl=null,Lt=1,Xt="";function Wt(e,t){pn[bn++]=la,pn[bn++]=au,au=e,la=t}function Yo(e,t,l){At[zt++]=Lt,At[zt++]=Xt,At[zt++]=hl,hl=e;var n=Lt;e=Xt;var a=32-xt(n)-1;n&=~(1<<a),l+=1;var u=32-xt(t)+a;if(30<u){var c=a-a%5;u=(n&(1<<c)-1).toString(32),n>>=c,a-=c,Lt=1<<32-xt(t)+a|l<<a|n,Xt=u+e}else Lt=1<<u|l<<a|n,Xt=e}function Bi(e){e.return!==null&&(Wt(e,1),Yo(e,1,0))}function Yi(e){for(;e===au;)au=pn[--bn],pn[bn]=null,la=pn[--bn],pn[bn]=null;for(;e===hl;)hl=At[--zt],At[zt]=null,Xt=At[--zt],At[zt]=null,Lt=At[--zt],At[zt]=null}function Go(e,t){At[zt++]=Lt,At[zt++]=Xt,At[zt++]=hl,Lt=t.id,Xt=t.overflow,hl=e}var Ie=null,Ce=null,Se=!1,gl=null,Dt=!1,Gi=Error(f(519));function xl(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw na(Et(t,e)),Gi}function wo(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[Fe]=e,t[ct]=n,l){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(l=0;l<Ma.length;l++)be(Ma[l],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Is(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),eo(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||ad(t.textContent,l)?(n.popover!=null&&(be("beforetoggle",t),be("toggle",t)),n.onScroll!=null&&be("scroll",t),n.onScrollEnd!=null&&be("scrollend",t),n.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||xl(e,!0)}function Lo(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 31:case 13:Dt=!1;return;case 27:case 3:Dt=!0;return;default:Ie=Ie.return}}function vn(e){if(e!==Ie)return!1;if(!Se)return Lo(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")||ns(e.type,e.memoizedProps)),l=!l),l&&Ce&&xl(e),Lo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Ce=md(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Ce=md(e)}else t===27?(t=Ce,Dl(e.type)?(e=ss,ss=null,Ce=e):Ce=t):Ce=Ie?Ct(e.stateNode.nextSibling):null;return!0}function Zl(){Ce=Ie=null,Se=!1}function wi(){var e=gl;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),gl=null),e}function na(e){gl===null?gl=[e]:gl.push(e)}var Li=x(null),Vl=null,Ft=null;function pl(e,t,l){G(Li,t._currentValue),t._currentValue=l}function It(e){e._currentValue=Li.current,_(Li)}function Xi(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Qi(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var u=a.dependencies;if(u!==null){var c=a.child;u=u.firstContext;e:for(;u!==null;){var r=u;u=a;for(var m=0;m<t.length;m++)if(r.context===t[m]){u.lanes|=l,r=u.alternate,r!==null&&(r.lanes|=l),Xi(u.return,l,e),n||(c=null);break e}u=r.next}}else if(a.tag===18){if(c=a.return,c===null)throw Error(f(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),Xi(c,l,e),c=null}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===e){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}}function yn(e,t,l,n){e=null;for(var a=t,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var c=a.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=a.type;pt(a.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(a===je.current){if(c=a.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Da):e=[Da])}a=a.return}e!==null&&Qi(t,e,l,n),t.flags|=262144}function uu(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){Vl=e,Ft=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return Xo(Vl,e)}function iu(e,t){return Vl===null&&kl(e),Xo(e,t)}function Xo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ft===null){if(e===null)throw Error(f(308));Ft=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ft=Ft.next=t;return l}var gh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},xh=s.unstable_scheduleCallback,ph=s.unstable_NormalPriority,Le={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zi(){return{controller:new gh,data:new Map,refCount:0}}function aa(e){e.refCount--,e.refCount===0&&xh(ph,function(){e.controller.abort()})}var ua=null,Vi=0,Sn=0,jn=null;function bh(e,t){if(ua===null){var l=ua=[];Vi=0,Sn=Jc(),jn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Vi++,t.then(Qo,Qo),t}function Qo(){if(--Vi===0&&ua!==null){jn!==null&&(jn.status="fulfilled");var e=ua;ua=null,Sn=0,jn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vh(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Zo=T.S;T.S=function(e,t){Af=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bh(e,t),Zo!==null&&Zo(e,t)};var Kl=x(null);function ki(){var e=Kl.current;return e!==null?e:Oe.pooledCache}function cu(e,t){t===null?G(Kl,Kl.current):G(Kl,t.pool)}function Vo(){var e=ki();return e===null?null:{parent:Le._currentValue,pool:e}}var Nn=Error(f(460)),Ki=Error(f(474)),su=Error(f(542)),ou={then:function(){}};function ko(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ko(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Kt,Kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e}throw $l=t,Nn}}function Jl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?($l=l,Nn):l}}var $l=null;function Jo(){if($l===null)throw Error(f(459));var e=$l;return $l=null,e}function $o(e){if(e===Nn||e===su)throw Error(f(483))}var Tn=null,ia=0;function ru(e){var t=ia;return ia+=1,Tn===null&&(Tn=[]),Ko(Tn,e,t)}function ca(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===Q?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wo(e){function t(b,p){if(e){var j=b.deletions;j===null?(b.deletions=[p],b.flags|=16):j.push(p)}}function l(b,p){if(!e)return null;for(;p!==null;)t(b,p),p=p.sibling;return null}function n(b){for(var p=new Map;b!==null;)b.key!==null?p.set(b.key,b):p.set(b.index,b),b=b.sibling;return p}function a(b,p){return b=$t(b,p),b.index=0,b.sibling=null,b}function u(b,p,j){return b.index=j,e?(j=b.alternate,j!==null?(j=j.index,j<p?(b.flags|=67108866,p):j):(b.flags|=67108866,p)):(b.flags|=1048576,p)}function c(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function r(b,p,j,U){return p===null||p.tag!==6?(p=qi(j,b.mode,U),p.return=b,p):(p=a(p,j),p.return=b,p)}function m(b,p,j,U){var te=j.type;return te===he?O(b,p,j.props.children,U,j.key):p!==null&&(p.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Jl(te)===p.type)?(p=a(p,j.props),ca(p,j),p.return=b,p):(p=nu(j.type,j.key,j.props,null,b.mode,U),ca(p,j),p.return=b,p)}function N(b,p,j,U){return p===null||p.tag!==4||p.stateNode.containerInfo!==j.containerInfo||p.stateNode.implementation!==j.implementation?(p=Hi(j,b.mode,U),p.return=b,p):(p=a(p,j.children||[]),p.return=b,p)}function O(b,p,j,U,te){return p===null||p.tag!==7?(p=Ql(j,b.mode,U,te),p.return=b,p):(p=a(p,j),p.return=b,p)}function R(b,p,j){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=qi(""+p,b.mode,j),p.return=b,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case le:return j=nu(p.type,p.key,p.props,null,b.mode,j),ca(j,p),j.return=b,j;case fe:return p=Hi(p,b.mode,j),p.return=b,p;case J:return p=Jl(p),R(b,p,j)}if(I(p)||w(p))return p=Ql(p,b.mode,j,null),p.return=b,p;if(typeof p.then=="function")return R(b,ru(p),j);if(p.$$typeof===L)return R(b,iu(b,p),j);fu(b,p)}return null}function M(b,p,j,U){var te=p!==null?p.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return te!==null?null:r(b,p,""+j,U);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case le:return j.key===te?m(b,p,j,U):null;case fe:return j.key===te?N(b,p,j,U):null;case J:return j=Jl(j),M(b,p,j,U)}if(I(j)||w(j))return te!==null?null:O(b,p,j,U,null);if(typeof j.then=="function")return M(b,p,ru(j),U);if(j.$$typeof===L)return M(b,p,iu(b,j),U);fu(b,j)}return null}function E(b,p,j,U,te){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return b=b.get(j)||null,r(p,b,""+U,te);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case le:return b=b.get(U.key===null?j:U.key)||null,m(p,b,U,te);case fe:return b=b.get(U.key===null?j:U.key)||null,N(p,b,U,te);case J:return U=Jl(U),E(b,p,j,U,te)}if(I(U)||w(U))return b=b.get(j)||null,O(p,b,U,te,null);if(typeof U.then=="function")return E(b,p,j,ru(U),te);if(U.$$typeof===L)return E(b,p,j,iu(p,U),te);fu(p,U)}return null}function $(b,p,j,U){for(var te=null,Ne=null,F=p,me=p=0,ye=null;F!==null&&me<j.length;me++){F.index>me?(ye=F,F=null):ye=F.sibling;var Te=M(b,F,j[me],U);if(Te===null){F===null&&(F=ye);break}e&&F&&Te.alternate===null&&t(b,F),p=u(Te,p,me),Ne===null?te=Te:Ne.sibling=Te,Ne=Te,F=ye}if(me===j.length)return l(b,F),Se&&Wt(b,me),te;if(F===null){for(;me<j.length;me++)F=R(b,j[me],U),F!==null&&(p=u(F,p,me),Ne===null?te=F:Ne.sibling=F,Ne=F);return Se&&Wt(b,me),te}for(F=n(F);me<j.length;me++)ye=E(F,b,me,j[me],U),ye!==null&&(e&&ye.alternate!==null&&F.delete(ye.key===null?me:ye.key),p=u(ye,p,me),Ne===null?te=ye:Ne.sibling=ye,Ne=ye);return e&&F.forEach(function(ql){return t(b,ql)}),Se&&Wt(b,me),te}function ue(b,p,j,U){if(j==null)throw Error(f(151));for(var te=null,Ne=null,F=p,me=p=0,ye=null,Te=j.next();F!==null&&!Te.done;me++,Te=j.next()){F.index>me?(ye=F,F=null):ye=F.sibling;var ql=M(b,F,Te.value,U);if(ql===null){F===null&&(F=ye);break}e&&F&&ql.alternate===null&&t(b,F),p=u(ql,p,me),Ne===null?te=ql:Ne.sibling=ql,Ne=ql,F=ye}if(Te.done)return l(b,F),Se&&Wt(b,me),te;if(F===null){for(;!Te.done;me++,Te=j.next())Te=R(b,Te.value,U),Te!==null&&(p=u(Te,p,me),Ne===null?te=Te:Ne.sibling=Te,Ne=Te);return Se&&Wt(b,me),te}for(F=n(F);!Te.done;me++,Te=j.next())Te=E(F,b,me,Te.value,U),Te!==null&&(e&&Te.alternate!==null&&F.delete(Te.key===null?me:Te.key),p=u(Te,p,me),Ne===null?te=Te:Ne.sibling=Te,Ne=Te);return e&&F.forEach(function(D0){return t(b,D0)}),Se&&Wt(b,me),te}function De(b,p,j,U){if(typeof j=="object"&&j!==null&&j.type===he&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case le:e:{for(var te=j.key;p!==null;){if(p.key===te){if(te=j.type,te===he){if(p.tag===7){l(b,p.sibling),U=a(p,j.props.children),U.return=b,b=U;break e}}else if(p.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Jl(te)===p.type){l(b,p.sibling),U=a(p,j.props),ca(U,j),U.return=b,b=U;break e}l(b,p);break}else t(b,p);p=p.sibling}j.type===he?(U=Ql(j.props.children,b.mode,U,j.key),U.return=b,b=U):(U=nu(j.type,j.key,j.props,null,b.mode,U),ca(U,j),U.return=b,b=U)}return c(b);case fe:e:{for(te=j.key;p!==null;){if(p.key===te)if(p.tag===4&&p.stateNode.containerInfo===j.containerInfo&&p.stateNode.implementation===j.implementation){l(b,p.sibling),U=a(p,j.children||[]),U.return=b,b=U;break e}else{l(b,p);break}else t(b,p);p=p.sibling}U=Hi(j,b.mode,U),U.return=b,b=U}return c(b);case J:return j=Jl(j),De(b,p,j,U)}if(I(j))return $(b,p,j,U);if(w(j)){if(te=w(j),typeof te!="function")throw Error(f(150));return j=te.call(j),ue(b,p,j,U)}if(typeof j.then=="function")return De(b,p,ru(j),U);if(j.$$typeof===L)return De(b,p,iu(b,j),U);fu(b,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,p!==null&&p.tag===6?(l(b,p.sibling),U=a(p,j),U.return=b,b=U):(l(b,p),U=qi(j,b.mode,U),U.return=b,b=U),c(b)):l(b,p)}return function(b,p,j,U){try{ia=0;var te=De(b,p,j,U);return Tn=null,te}catch(F){if(F===Nn||F===su)throw F;var Ne=bt(29,F,null,b.mode);return Ne.lanes=U,Ne.return=b,Ne}finally{}}}var Wl=Wo(!0),Fo=Wo(!1),bl=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $i(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 vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function yl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Me&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=lu(e),Ro(e,null,l),t}return tu(e,n,t,l),lu(e)}function sa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ls(e,l)}}function Wi(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=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?a=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?a=u=t:u=u.next=t}else a=u=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Fi=!1;function oa(){if(Fi){var e=jn;if(e!==null)throw e}}function ra(e,t,l,n){Fi=!1;var a=e.updateQueue;bl=!1;var u=a.firstBaseUpdate,c=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var m=r,N=m.next;m.next=null,c===null?u=N:c.next=N,c=m;var O=e.alternate;O!==null&&(O=O.updateQueue,r=O.lastBaseUpdate,r!==c&&(r===null?O.firstBaseUpdate=N:r.next=N,O.lastBaseUpdate=m))}if(u!==null){var R=a.baseState;c=0,O=N=m=null,r=u;do{var M=r.lane&-536870913,E=M!==r.lane;if(E?(ve&M)===M:(n&M)===M){M!==0&&M===Sn&&(Fi=!0),O!==null&&(O=O.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var $=e,ue=r;M=t;var De=l;switch(ue.tag){case 1:if($=ue.payload,typeof $=="function"){R=$.call(De,R,M);break e}R=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ue.payload,M=typeof $=="function"?$.call(De,R,M):$,M==null)break e;R=q({},R,M);break e;case 2:bl=!0}}M=r.callback,M!==null&&(e.flags|=64,E&&(e.flags|=8192),E=a.callbacks,E===null?a.callbacks=[M]:E.push(M))}else E={lane:M,tag:r.tag,payload:r.payload,callback:r.callback,next:null},O===null?(N=O=E,m=R):O=O.next=E,c|=M;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;E=r,r=E.next,E.next=null,a.lastBaseUpdate=E,a.shared.pending=null}}while(!0);O===null&&(m=R),a.baseState=m,a.firstBaseUpdate=N,a.lastBaseUpdate=O,u===null&&(a.shared.lanes=0),Ml|=c,e.lanes=c,e.memoizedState=R}}function Io(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Po(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Io(l[e],t)}var Mn=x(null),du=x(0);function er(e,t){e=cl,G(du,e),G(Mn,t),cl=e|t.baseLanes}function Ii(){G(du,cl),G(Mn,Mn.current)}function Pi(){cl=du.current,_(Mn),_(du)}var vt=x(null),Ot=null;function Sl(e){var t=e.alternate;G(Ye,Ye.current&1),G(vt,e),Ot===null&&(t===null||Mn.current!==null||t.memoizedState!==null)&&(Ot=e)}function ec(e){G(Ye,Ye.current),G(vt,e),Ot===null&&(Ot=e)}function tr(e){e.tag===22?(G(Ye,Ye.current),G(vt,e),Ot===null&&(Ot=e)):jl()}function jl(){G(Ye,Ye.current),G(vt,vt.current)}function yt(e){_(vt),Ot===e&&(Ot=null),_(Ye)}var Ye=x(0);function mu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||is(l)||cs(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 Pt=0,de=null,Ae=null,Xe=null,hu=!1,_n=!1,Fl=!1,gu=0,fa=0,En=null,yh=0;function He(){throw Error(f(321))}function tc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function lc(e,t,l,n,a,u){return Pt=u,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Yr:pc,Fl=!1,u=l(n,a),Fl=!1,_n&&(u=nr(t,l,n,a)),lr(e),u}function lr(e){T.H=ha;var t=Ae!==null&&Ae.next!==null;if(Pt=0,Xe=Ae=de=null,hu=!1,fa=0,En=null,t)throw Error(f(300));e===null||Qe||(e=e.dependencies,e!==null&&uu(e)&&(Qe=!0))}function nr(e,t,l,n){de=e;var a=0;do{if(_n&&(En=null),fa=0,_n=!1,25<=a)throw Error(f(301));if(a+=1,Xe=Ae=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=Gr,u=t(l,n)}while(_n);return u}function Sh(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?da(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(de.flags|=1024),t}function nc(){var e=gu!==0;return gu=0,e}function ac(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function uc(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}Pt=0,Xe=Ae=de=null,_n=!1,fa=gu=0,En=null}function at(){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 Ge(){if(Ae===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Xe===null?de.memoizedState:Xe.next;if(t!==null)Xe=t,Ae=e;else{if(e===null)throw de.alternate===null?Error(f(467)):Error(f(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Xe===null?de.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function da(e){var t=fa;return fa+=1,En===null&&(En=[]),e=Ko(En,e,t),t=de,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Yr:pc),e}function pu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return da(e);if(e.$$typeof===L)return Pe(e)}throw Error(f(438,String(e)))}function ic(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=de.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=xu(),de.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=ie;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function bu(e){var t=Ge();return cc(t,Ae,e)}function cc(e,t,l){var n=e.queue;if(n===null)throw Error(f(311));n.lastRenderedReducer=l;var a=e.baseQueue,u=n.pending;if(u!==null){if(a!==null){var c=a.next;a.next=u.next,u.next=c}t.baseQueue=a=u,n.pending=null}if(u=e.baseState,a===null)e.memoizedState=u;else{t=a.next;var r=c=null,m=null,N=t,O=!1;do{var R=N.lane&-536870913;if(R!==N.lane?(ve&R)===R:(Pt&R)===R){var M=N.revertLane;if(M===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),R===Sn&&(O=!0);else if((Pt&M)===M){N=N.next,M===Sn&&(O=!0);continue}else R={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},m===null?(r=m=R,c=u):m=m.next=R,de.lanes|=M,Ml|=M;R=N.action,Fl&&l(u,R),u=N.hasEagerState?N.eagerState:l(u,R)}else M={lane:R,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},m===null?(r=m=M,c=u):m=m.next=M,de.lanes|=R,Ml|=R;N=N.next}while(N!==null&&N!==t);if(m===null?c=u:m.next=r,!pt(u,e.memoizedState)&&(Qe=!0,O&&(l=jn,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=m,n.lastRenderedState=u}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function sc(e){var t=Ge(),l=t.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,u=t.memoizedState;if(a!==null){l.pending=null;var c=a=a.next;do u=e(u,c.action),c=c.next;while(c!==a);pt(u,t.memoizedState)||(Qe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,n]}function ar(e,t,l){var n=de,a=Ge(),u=Se;if(u){if(l===void 0)throw Error(f(407));l=l()}else l=t();var c=!pt((Ae||a).memoizedState,l);if(c&&(a.memoizedState=l,Qe=!0),a=a.queue,fc(cr.bind(null,n,a,e),[e]),a.getSnapshot!==t||c||Xe!==null&&Xe.memoizedState.tag&1){if(n.flags|=2048,An(9,{destroy:void 0},ir.bind(null,n,a,l,t),null),Oe===null)throw Error(f(349));u||(Pt&127)!==0||ur(n,t,l)}return l}function ur(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=xu(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ir(e,t,l,n){t.value=l,t.getSnapshot=n,sr(t)&&or(e)}function cr(e,t,l){return l(function(){sr(t)&&or(e)})}function sr(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function or(e){var t=Xl(e,2);t!==null&&mt(t,e,2)}function oc(e){var t=at();if(typeof e=="function"){var l=e;if(e=l(),Fl){fl(!0);try{l()}finally{fl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function rr(e,t,l,n){return e.baseState=l,cc(e,Ae,typeof n=="function"?n:el)}function jh(e,t,l,n,a){if(Su(e))throw Error(f(485));if(e=t.action,e!==null){var u={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};T.T!==null?l(!0):u.isTransition=!1,n(u),l=t.pending,l===null?(u.next=t.pending=u,fr(t,u)):(u.next=l.next,t.pending=l.next=u)}}function fr(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var u=T.T,c={};T.T=c;try{var r=l(a,n),m=T.S;m!==null&&m(c,r),dr(e,t,r)}catch(N){rc(e,t,N)}finally{u!==null&&c.types!==null&&(u.types=c.types),T.T=u}}else try{u=l(a,n),dr(e,t,u)}catch(N){rc(e,t,N)}}function dr(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){mr(e,t,n)},function(n){return rc(e,t,n)}):mr(e,t,l)}function mr(e,t,l){t.status="fulfilled",t.value=l,hr(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fr(e,l)))}function rc(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,hr(t),t=t.next;while(t!==n)}e.action=null}function hr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gr(e,t){return t}function xr(e,t){if(Se){var l=Oe.formState;if(l!==null){e:{var n=de;if(Se){if(Ce){t:{for(var a=Ce,u=Dt;a.nodeType!==8;){if(!u){a=null;break t}if(a=Ct(a.nextSibling),a===null){a=null;break t}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Ce=Ct(a.nextSibling),n=a.data==="F!";break e}}xl(n)}n=!1}n&&(t=l[0])}}return l=at(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:t},l.queue=n,l=qr.bind(null,de,n),n.dispatch=l,n=oc(!1),u=xc.bind(null,de,!1,n.queue),n=at(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=jh.bind(null,de,a,u,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function pr(e){var t=Ge();return br(t,Ae,e)}function br(e,t,l){if(t=cc(e,t,gr)[0],e=bu(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=da(t)}catch(c){throw c===Nn?su:c}else n=t;t=Ge();var a=t.queue,u=a.dispatch;return l!==t.memoizedState&&(de.flags|=2048,An(9,{destroy:void 0},Nh.bind(null,a,l),null)),[n,u,e]}function Nh(e,t){e.action=t}function vr(e){var t=Ge(),l=Ae;if(l!==null)return br(t,l,e);Ge(),t=t.memoizedState,l=Ge();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function An(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=de.updateQueue,t===null&&(t=xu(),de.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function yr(){return Ge().memoizedState}function vu(e,t,l,n){var a=at();de.flags|=e,a.memoizedState=An(1|t,{destroy:void 0},l,n===void 0?null:n)}function yu(e,t,l,n){var a=Ge();n=n===void 0?null:n;var u=a.memoizedState.inst;Ae!==null&&n!==null&&tc(n,Ae.memoizedState.deps)?a.memoizedState=An(t,u,l,n):(de.flags|=e,a.memoizedState=An(1|t,u,l,n))}function Sr(e,t){vu(8390656,8,e,t)}function fc(e,t){yu(2048,8,e,t)}function Th(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=xu(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function jr(e){var t=Ge().memoizedState;return Th({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function Nr(e,t){return yu(4,2,e,t)}function Tr(e,t){return yu(4,4,e,t)}function Mr(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 _r(e,t,l){l=l!=null?l.concat([e]):null,yu(4,4,Mr.bind(null,t,e),l)}function dc(){}function Er(e,t){var l=Ge();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&tc(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Ar(e,t){var l=Ge();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&tc(t,n[1]))return n[0];if(n=e(),Fl){fl(!0);try{e()}finally{fl(!1)}}return l.memoizedState=[n,t],n}function mc(e,t,l){return l===void 0||(Pt&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Df(),de.lanes|=e,Ml|=e,l)}function zr(e,t,l,n){return pt(l,t)?l:Mn.current!==null?(e=mc(e,l,n),pt(e,t)||(Qe=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(ve&261930)===0?(Qe=!0,e.memoizedState=l):(e=Df(),de.lanes|=e,Ml|=e,t)}function Dr(e,t,l,n,a){var u=H.p;H.p=u!==0&&8>u?u:8;var c=T.T,r={};T.T=r,xc(e,!1,t,l);try{var m=a(),N=T.S;if(N!==null&&N(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=vh(m,n);ma(e,t,O,Nt(e))}else ma(e,t,n,Nt(e))}catch(R){ma(e,t,{then:function(){},status:"rejected",reason:R},Nt())}finally{H.p=u,c!==null&&r.types!==null&&(c.types=r.types),T.T=c}}function Mh(){}function hc(e,t,l,n){if(e.tag!==5)throw Error(f(476));var a=Or(e).queue;Dr(e,a,t,V,l===null?Mh:function(){return Cr(e),l(n)})}function Or(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:V},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cr(e){var t=Or(e);t.next===null&&(t=e.alternate.memoizedState),ma(e,t.next.queue,{},Nt())}function gc(){return Pe(Da)}function Ur(){return Ge().memoizedState}function Rr(){return Ge().memoizedState}function _h(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Nt();e=vl(l);var n=yl(t,e,l);n!==null&&(mt(n,t,l),sa(n,t,l)),t={cache:Zi()},e.payload=t;return}t=t.return}}function Eh(e,t,l){var n=Nt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Su(e)?Hr(t,l):(l=Ui(e,t,l,n),l!==null&&(mt(l,e,n),Br(l,t,n)))}function qr(e,t,l){var n=Nt();ma(e,t,l,n)}function ma(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Su(e))Hr(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,r=u(c,l);if(a.hasEagerState=!0,a.eagerState=r,pt(r,c))return tu(e,t,a,0),Oe===null&&eu(),!1}catch{}finally{}if(l=Ui(e,t,a,n),l!==null)return mt(l,e,n),Br(l,t,n),!0}return!1}function xc(e,t,l,n){if(n={lane:2,revertLane:Jc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Su(e)){if(t)throw Error(f(479))}else t=Ui(e,l,n,2),t!==null&&mt(t,e,2)}function Su(e){var t=e.alternate;return e===de||t!==null&&t===de}function Hr(e,t){_n=hu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Br(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ls(e,l)}}var ha={readContext:Pe,use:pu,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};ha.useEffectEvent=He;var Yr={readContext:Pe,use:pu,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:Sr,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,vu(4194308,4,Mr.bind(null,t,e),l)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var l=at();t=t===void 0?null:t;var n=e();if(Fl){fl(!0);try{e()}finally{fl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=at();if(l!==void 0){var a=l(t);if(Fl){fl(!0);try{l(t)}finally{fl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=Eh.bind(null,de,e),[n.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:function(e){e=oc(e);var t=e.queue,l=qr.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:dc,useDeferredValue:function(e,t){var l=at();return mc(l,e,t)},useTransition:function(){var e=oc(!1);return e=Dr.bind(null,de,e.queue,!0,!1),at().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=de,a=at();if(Se){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),Oe===null)throw Error(f(349));(ve&127)!==0||ur(n,t,l)}a.memoizedState=l;var u={value:l,getSnapshot:t};return a.queue=u,Sr(cr.bind(null,n,u,e),[e]),n.flags|=2048,An(9,{destroy:void 0},ir.bind(null,n,u,l,t),null),l},useId:function(){var e=at(),t=Oe.identifierPrefix;if(Se){var l=Xt,n=Lt;l=(n&~(1<<32-xt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=gu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=yh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gc,useFormState:xr,useActionState:xr,useOptimistic:function(e){var t=at();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=xc.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return at().memoizedState=_h.bind(null,de)},useEffectEvent:function(e){var t=at(),l={impl:e};return t.memoizedState=l,function(){if((Me&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}},pc={readContext:Pe,use:pu,useCallback:Er,useContext:Pe,useEffect:fc,useImperativeHandle:_r,useInsertionEffect:Nr,useLayoutEffect:Tr,useMemo:Ar,useReducer:bu,useRef:yr,useState:function(){return bu(el)},useDebugValue:dc,useDeferredValue:function(e,t){var l=Ge();return zr(l,Ae.memoizedState,e,t)},useTransition:function(){var e=bu(el)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:da(e),t]},useSyncExternalStore:ar,useId:Ur,useHostTransitionStatus:gc,useFormState:pr,useActionState:pr,useOptimistic:function(e,t){var l=Ge();return rr(l,Ae,e,t)},useMemoCache:ic,useCacheRefresh:Rr};pc.useEffectEvent=jr;var Gr={readContext:Pe,use:pu,useCallback:Er,useContext:Pe,useEffect:fc,useImperativeHandle:_r,useInsertionEffect:Nr,useLayoutEffect:Tr,useMemo:Ar,useReducer:sc,useRef:yr,useState:function(){return sc(el)},useDebugValue:dc,useDeferredValue:function(e,t){var l=Ge();return Ae===null?mc(l,e,t):zr(l,Ae.memoizedState,e,t)},useTransition:function(){var e=sc(el)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:da(e),t]},useSyncExternalStore:ar,useId:Ur,useHostTransitionStatus:gc,useFormState:vr,useActionState:vr,useOptimistic:function(e,t){var l=Ge();return Ae!==null?rr(l,Ae,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ic,useCacheRefresh:Rr};Gr.useEffectEvent=jr;function bc(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:q({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var vc={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Nt(),a=vl(n);a.payload=t,l!=null&&(a.callback=l),t=yl(e,a,n),t!==null&&(mt(t,e,n),sa(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Nt(),a=vl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=yl(e,a,n),t!==null&&(mt(t,e,n),sa(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Nt(),n=vl(l);n.tag=2,t!=null&&(n.callback=t),t=yl(e,n,l),t!==null&&(mt(t,e,l),sa(t,e,l))}};function wr(e,t,l,n,a,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,c):t.prototype&&t.prototype.isPureReactComponent?!ea(l,n)||!ea(a,u):!0}function Lr(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function Il(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=q({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Xr(e){Pa(e)}function Qr(e){console.error(e)}function Zr(e){Pa(e)}function ju(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Vr(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function yc(e,t,l){return l=vl(l),l.tag=3,l.payload={element:null},l.callback=function(){ju(e,t)},l}function kr(e){return e=vl(e),e.tag=3,e}function Kr(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;e.payload=function(){return a(u)},e.callback=function(){Vr(t,l,n)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Vr(t,l,n),typeof a!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var r=n.stack;this.componentDidCatch(n.value,{componentStack:r!==null?r:""})})}function Ah(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&yn(t,l,a,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return Ot===null?Ru():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ou?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Vc(e,n,a)),!1;case 22:return l.flags|=65536,n===ou?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Vc(e,n,a)),!1}throw Error(f(435,l.tag))}return Vc(e,n,a),Ru(),!1}if(Se)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Gi&&(e=Error(f(422),{cause:n}),na(Et(e,l)))):(n!==Gi&&(t=Error(f(423),{cause:n}),na(Et(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Et(n,l),a=yc(e.stateNode,n,a),Wi(e,a),Be!==4&&(Be=2)),!1;var u=Error(f(520),{cause:n});if(u=Et(u,l),ja===null?ja=[u]:ja.push(u),Be!==4&&(Be=2),t===null)return!0;n=Et(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=yc(l.stateNode,n,e),Wi(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"&&(_l===null||!_l.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=kr(a),Kr(a,e,l,n),Wi(l,a),!1}l=l.return}while(l!==null);return!1}var Sc=Error(f(461)),Qe=!1;function et(e,t,l,n){t.child=e===null?Fo(t,null,l,n):Wl(t,e.child,l,n)}function Jr(e,t,l,n,a){l=l.render;var u=t.ref;if("ref"in n){var c={};for(var r in n)r!=="ref"&&(c[r]=n[r])}else c=n;return kl(t),n=lc(e,t,l,c,u,a),r=nc(),e!==null&&!Qe?(ac(e,t,a),tl(e,t,a)):(Se&&r&&Bi(t),t.flags|=1,et(e,t,n,a),t.child)}function $r(e,t,l,n,a){if(e===null){var u=l.type;return typeof u=="function"&&!Ri(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Wr(e,t,u,n,a)):(e=nu(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!zc(e,a)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:ea,l(c,n)&&e.ref===t.ref)return tl(e,t,a)}return t.flags|=1,e=$t(u,n),e.ref=t.ref,e.return=t,t.child=e}function Wr(e,t,l,n,a){if(e!==null){var u=e.memoizedProps;if(ea(u,n)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=n=u,zc(e,a))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,tl(e,t,a)}return jc(e,t,l,n,a)}function Fr(e,t,l,n){var a=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,t.child=null;return Ir(e,t,u,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cu(t,u!==null?u.cachePool:null),u!==null?er(t,u):Ii(),tr(t);else return n=t.lanes=536870912,Ir(e,t,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(cu(t,u.cachePool),er(t,u),jl(),t.memoizedState=null):(e!==null&&cu(t,null),Ii(),jl());return et(e,t,a,l),t.child}function ga(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ir(e,t,l,n,a){var u=ki();return u=u===null?null:{parent:Le._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&cu(t,null),Ii(),tr(t),e!==null&&yn(e,t,n,!0),t.childLanes=a,null}function Nu(e,t){return t=Mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pr(e,t,l){return Wl(t,e.child,null,l),e=Nu(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function zh(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(n.mode==="hidden")return e=Nu(t,n),t.lanes=536870912,ga(null,e);if(ec(t),(e=Ce)?(e=dd(e,Dt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=Ho(e),l.return=t,t.child=l,Ie=t,Ce=null)):e=null,e===null)throw xl(t);return t.lanes=536870912,null}return Nu(t,n)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(ec(t),a)if(t.flags&256)t.flags&=-257,t=Pr(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Qe||yn(e,t,l,!1),a=(l&e.childLanes)!==0,Qe||a){if(n=Oe,n!==null&&(c=Xs(n,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Xl(e,c),mt(n,e,c),Sc;Ru(),t=Pr(e,t,l)}else e=u.treeContext,Ce=Ct(c.nextSibling),Ie=t,Se=!0,gl=null,Dt=!1,e!==null&&Go(t,e),t=Nu(t,n),t.flags|=4096;return t}return e=$t(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(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(f(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function jc(e,t,l,n,a){return kl(t),l=lc(e,t,l,n,void 0,a),n=nc(),e!==null&&!Qe?(ac(e,t,a),tl(e,t,a)):(Se&&n&&Bi(t),t.flags|=1,et(e,t,l,a),t.child)}function ef(e,t,l,n,a,u){return kl(t),t.updateQueue=null,l=nr(t,n,l,a),lr(e),n=nc(),e!==null&&!Qe?(ac(e,t,u),tl(e,t,u)):(Se&&n&&Bi(t),t.flags|=1,et(e,t,l,u),t.child)}function tf(e,t,l,n,a){if(kl(t),t.stateNode===null){var u=xn,c=l.contextType;typeof c=="object"&&c!==null&&(u=Pe(c)),u=new l(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=vc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},Ji(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Pe(c):xn,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(bc(t,l,c,n),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&&vc.enqueueReplaceState(u,u.state,null),ra(t,n,u,a),oa(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var r=t.memoizedProps,m=Il(l,r);u.props=m;var N=u.context,O=l.contextType;c=xn,typeof O=="object"&&O!==null&&(c=Pe(O));var R=l.getDerivedStateFromProps;O=typeof R=="function"||typeof u.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r||N!==c)&&Lr(t,u,n,c),bl=!1;var M=t.memoizedState;u.state=M,ra(t,n,u,a),oa(),N=t.memoizedState,r||M!==N||bl?(typeof R=="function"&&(bc(t,l,R,n),N=t.memoizedState),(m=bl||wr(t,l,m,n,M,N,c))?(O||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=n,t.memoizedState=N),u.props=n,u.state=N,u.context=c,n=m):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,$i(e,t),c=t.memoizedProps,O=Il(l,c),u.props=O,R=t.pendingProps,M=u.context,N=l.contextType,m=xn,typeof N=="object"&&N!==null&&(m=Pe(N)),r=l.getDerivedStateFromProps,(N=typeof r=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==R||M!==m)&&Lr(t,u,n,m),bl=!1,M=t.memoizedState,u.state=M,ra(t,n,u,a),oa();var E=t.memoizedState;c!==R||M!==E||bl||e!==null&&e.dependencies!==null&&uu(e.dependencies)?(typeof r=="function"&&(bc(t,l,r,n),E=t.memoizedState),(O=bl||wr(t,l,O,n,M,E,m)||e!==null&&e.dependencies!==null&&uu(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,E,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,E,m)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=E),u.props=n,u.state=E,u.context=m,n=O):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,Tu(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=Wl(t,e.child,null,a),t.child=Wl(t,null,l,a)):et(e,t,l,a),t.memoizedState=u.state,e=t.child):e=tl(e,t,a),e}function lf(e,t,l,n){return Zl(),t.flags|=256,et(e,t,l,n),t.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:Vo()}}function Mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=jt),e}function nf(e,t,l){var n=t.pendingProps,a=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(a=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(a?Sl(t):jl(),(e=Ce)?(e=dd(e,Dt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=Ho(e),l.return=t,t.child=l,Ie=t,Ce=null)):e=null,e===null)throw xl(t);return cs(e)?t.lanes=32:t.lanes=536870912,null}var r=n.children;return n=n.fallback,a?(jl(),a=t.mode,r=Mu({mode:"hidden",children:r},a),n=Ql(n,a,l,null),r.return=t,n.return=t,r.sibling=n,t.child=r,n=t.child,n.memoizedState=Tc(l),n.childLanes=Mc(e,c,l),t.memoizedState=Nc,ga(null,n)):(Sl(t),_c(t,r))}var m=e.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(u)t.flags&256?(Sl(t),t.flags&=-257,t=Ec(e,t,l)):t.memoizedState!==null?(jl(),t.child=e.child,t.flags|=128,t=null):(jl(),r=n.fallback,a=t.mode,n=Mu({mode:"visible",children:n.children},a),r=Ql(r,a,l,null),r.flags|=2,n.return=t,r.return=t,n.sibling=r,t.child=n,Wl(t,e.child,null,l),n=t.child,n.memoizedState=Tc(l),n.childLanes=Mc(e,c,l),t.memoizedState=Nc,t=ga(null,n));else if(Sl(t),cs(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var N=c.dgst;c=N,n=Error(f(419)),n.stack="",n.digest=c,na({value:n,source:null,stack:null}),t=Ec(e,t,l)}else if(Qe||yn(e,t,l,!1),c=(l&e.childLanes)!==0,Qe||c){if(c=Oe,c!==null&&(n=Xs(c,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,Xl(e,n),mt(c,e,n),Sc;is(r)||Ru(),t=Ec(e,t,l)}else is(r)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ce=Ct(r.nextSibling),Ie=t,Se=!0,gl=null,Dt=!1,e!==null&&Go(t,e),t=_c(t,n.children),t.flags|=4096);return t}return a?(jl(),r=n.fallback,a=t.mode,m=e.child,N=m.sibling,n=$t(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,N!==null?r=$t(N,r):(r=Ql(r,a,l,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,ga(null,n),n=t.child,r=e.child.memoizedState,r===null?r=Tc(l):(a=r.cachePool,a!==null?(m=Le._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Vo(),r={baseLanes:r.baseLanes|l,cachePool:a}),n.memoizedState=r,n.childLanes=Mc(e,c,l),t.memoizedState=Nc,ga(e.child,n)):(Sl(t),l=e.child,e=l.sibling,l=$t(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function _c(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Ec(e,t,l){return Wl(t,e.child,null,l),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function af(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Xi(e.return,t,l)}function Ac(e,t,l,n,a,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=l,c.tailMode=a,c.treeForkCount=u)}function uf(e,t,l){var n=t.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var c=Ye.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,G(Ye,c),et(e,t,n,l),n=Se?la:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&af(e,l,t);else if(e.tag===19)af(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(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&mu(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Ac(t,!1,a,l,u,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&mu(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Ac(t,!0,l,null,u,n);break;case"together":Ac(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ml|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(yn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,l=$t(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=$t(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uu(e)))}function Dh(e,t,l){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),pl(t,Le,e.memoizedState.cache),Zl();break;case 27:case 5:Vt(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ec(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Sl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?nf(e,t,l):(Sl(t),e=tl(e,t,l),e!==null?e.sibling:null);Sl(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(yn(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return uf(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),G(Ye,Ye.current),n)break;return null;case 22:return t.lanes=0,Fr(e,t,l,t.pendingProps);case 24:pl(t,Le,e.memoizedState.cache)}return tl(e,t,l)}function cf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!zc(e,l)&&(t.flags&128)===0)return Qe=!1,Dh(e,t,l);Qe=(e.flags&131072)!==0}else Qe=!1,Se&&(t.flags&1048576)!==0&&Yo(t,la,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Jl(t.elementType),t.type=e,typeof e=="function")Ri(e)?(n=Il(e,n),t.tag=1,t=tf(null,t,e,n,l)):(t.tag=0,t=jc(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===ne){t.tag=11,t=Jr(null,t,e,n,l);break e}else if(a===B){t.tag=14,t=$r(null,t,e,n,l);break e}}throw t=P(e)||e,Error(f(306,t,""))}}return t;case 0:return jc(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Il(n,t.pendingProps),tf(e,t,n,a,l);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(f(387));n=t.pendingProps;var u=t.memoizedState;a=u.element,$i(e,t),ra(t,n,null,l);var c=t.memoizedState;if(n=c.cache,pl(t,Le,n),n!==u.cache&&Qi(t,[Le],l,!0),oa(),n=c.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=lf(e,t,n,l);break e}else if(n!==a){a=Et(Error(f(424)),t),na(a),t=lf(e,t,n,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(Ce=Ct(e.firstChild),Ie=t,Se=!0,gl=null,Dt=!0,l=Fo(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),n===a){t=tl(e,t,l);break e}et(e,t,n,l)}t=t.child}return t;case 26:return Tu(e,t),e===null?(l=bd(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(l=t.type,e=t.pendingProps,n=Lu(xe.current).createElement(l),n[Fe]=t,n[ct]=e,tt(n,l,e),Ke(n),t.stateNode=n):t.memoizedState=bd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vt(t),e===null&&Se&&(n=t.stateNode=gd(t.type,t.pendingProps,xe.current),Ie=t,Dt=!0,a=Ce,Dl(t.type)?(ss=a,Ce=Ct(n.firstChild)):Ce=a),et(e,t,t.pendingProps.children,l),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((a=n=Ce)&&(n=i0(n,t.type,t.pendingProps,Dt),n!==null?(t.stateNode=n,Ie=t,Ce=Ct(n.firstChild),Dt=!1,a=!0):a=!1),a||xl(t)),Vt(t),a=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,n=u.children,ns(a,u)?n=null:c!==null&&ns(a,c)&&(t.flags|=32),t.memoizedState!==null&&(a=lc(e,t,Sh,null,null,l),Da._currentValue=a),Tu(e,t),et(e,t,n,l),t.child;case 6:return e===null&&Se&&((e=l=Ce)&&(l=c0(l,t.pendingProps,Dt),l!==null?(t.stateNode=l,Ie=t,Ce=null,e=!0):e=!1),e||xl(t)),null;case 13:return nf(e,t,l);case 4:return We(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wl(t,null,n,l):et(e,t,n,l),t.child;case 11:return Jr(e,t,t.type,t.pendingProps,l);case 7:return et(e,t,t.pendingProps,l),t.child;case 8:return et(e,t,t.pendingProps.children,l),t.child;case 12:return et(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,pl(t,t.type,n.value),et(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,kl(t),a=Pe(a),n=n(a),t.flags|=1,et(e,t,n,l),t.child;case 14:return $r(e,t,t.type,t.pendingProps,l);case 15:return Wr(e,t,t.type,t.pendingProps,l);case 19:return uf(e,t,l);case 31:return zh(e,t,l);case 22:return Fr(e,t,l,t.pendingProps);case 24:return kl(t),n=Pe(Le),e===null?(a=ki(),a===null&&(a=Oe,u=Zi(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),t.memoizedState={parent:n,cache:a},Ji(t),pl(t,Le,a)):((e.lanes&l)!==0&&($i(e,t),ra(t,null,null,l),oa()),a=e.memoizedState,u=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pl(t,Le,n)):(n=u.cache,pl(t,Le,n),n!==a.cache&&Qi(t,[Le],l,!0))),et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function ll(e){e.flags|=4}function Dc(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Rf())e.flags|=8192;else throw $l=ou,Ki}else e.flags&=-16777217}function sf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nd(t))if(Rf())e.flags|=8192;else throw $l=ou,Ki}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gs():536870912,e.lanes|=t,Cn|=t)}function xa(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 n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Oh(e,t,l){var n=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),It(Le),qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vn(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wi())),Ue(t),null;case 26:var a=t.type,u=t.memoizedState;return e===null?(ll(t),u!==null?(Ue(t),sf(t,u)):(Ue(t),Dc(t,a,null,n,l))):u?u!==e.memoizedState?(ll(t),Ue(t),sf(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ll(t),Ue(t),Dc(t,a,e,n,l)),null;case 27:if(Hl(t),l=xe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ll(t);else{if(!n){if(t.stateNode===null)throw Error(f(166));return Ue(t),null}e=k.current,vn(t)?wo(t):(e=gd(a,n,l),t.stateNode=e,ll(t))}return Ue(t),null;case 5:if(Hl(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ll(t);else{if(!n){if(t.stateNode===null)throw Error(f(166));return Ue(t),null}if(u=k.current,vn(t))wo(t);else{var c=Lu(xe.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?c.createElement(a,{is:n.is}):c.createElement(a)}}u[Fe]=t,u[ct]=n;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(tt(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ll(t)}}return Ue(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ll(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(f(166));if(e=xe.current,vn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=Ie,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||ad(e.nodeValue,l)),e||xl(t,!0)}else e=Lu(e).createTextNode(n),e[Fe]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=vn(t),l!==null){if(e===null){if(!n)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[Fe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=vn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(f(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(f(317));a[Fe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),_u(t,t.updateQueue),Ue(t),null);case 4:return qe(),e===null&&Ic(t.stateNode.containerInfo),Ue(t),null;case 10:return It(t.type),Ue(t),null;case 19:if(_(Ye),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,u=n.rendering,u===null)if(a)xa(n,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=mu(e),u!==null){for(t.flags|=128,xa(n,!1),e=u.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)qo(l,e),l=l.sibling;return G(Ye,Ye.current&1|2),Se&&Wt(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ht()>Ou&&(t.flags|=128,a=!0,xa(n,!1),t.lanes=4194304)}else{if(!a)if(e=mu(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),xa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!Se)return Ue(t),null}else 2*ht()-n.renderingStartTime>Ou&&l!==536870912&&(t.flags|=128,a=!0,xa(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ht(),e.sibling=null,l=Ye.current,G(Ye,a?l&1|2:l&1),Se&&Wt(t,n.treeForkCount),e):(Ue(t),null);case 22:case 23:return yt(t),Pi(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&_u(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&_(Kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Le),Ue(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function Ch(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Le),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Hl(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(f(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(Ye),null;case 4:return qe(),null;case 10:return It(t.type),null;case 22:case 23:return yt(t),Pi(),e!==null&&_(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Le),null;case 25:return null;default:return null}}function of(e,t){switch(Yi(t),t.tag){case 3:It(Le),qe();break;case 26:case 27:case 5:Hl(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:_(Ye);break;case 10:It(t.type);break;case 22:case 23:yt(t),Pi(),e!==null&&_(Kl);break;case 24:It(Le)}}function pa(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var u=l.create,c=l.inst;n=u(),c.destroy=n}l=l.next}while(l!==a)}}catch(r){Ee(t,t.return,r)}}function Nl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){var c=n.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,a=t;var m=l,N=r;try{N()}catch(O){Ee(a,m,O)}}}n=n.next}while(n!==u)}}catch(O){Ee(t,t.return,O)}}function rf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Po(t,l)}catch(n){Ee(e,e.return,n)}}}function ff(e,t,l){l.props=Il(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ee(e,t,n)}}function ba(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Ee(e,t,a)}}function Qt(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Ee(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Ee(e,t,a)}else l.current=null}function df(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Ee(e,e.return,a)}}function Oc(e,t,l){try{var n=e.stateNode;e0(n,e.type,l,t),n[ct]=t}catch(a){Ee(e,e.return,a)}}function mf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uc(e,t,l){var n=e.tag;if(n===5||n===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=Kt));else if(n!==4&&(n===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,l),e=e.sibling;e!==null;)Uc(e,t,l),e=e.sibling}function Eu(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Eu(e,t,l),e=e.sibling;e!==null;)Eu(e,t,l),e=e.sibling}function hf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);tt(t,n,l),t[Fe]=e,t[ct]=l}catch(u){Ee(e,e.return,u)}}var nl=!1,Ze=!1,Rc=!1,gf=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Uh(e,t){if(e=e.containerInfo,ts=Ju,e=_o(e),Ei(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,r=-1,m=-1,N=0,O=0,R=e,M=null;t:for(;;){for(var E;R!==l||a!==0&&R.nodeType!==3||(r=c+a),R!==u||n!==0&&R.nodeType!==3||(m=c+n),R.nodeType===3&&(c+=R.nodeValue.length),(E=R.firstChild)!==null;)M=R,R=E;for(;;){if(R===e)break t;if(M===l&&++N===a&&(r=c),M===u&&++O===n&&(m=c),(E=R.nextSibling)!==null)break;R=M,M=R.parentNode}R=E}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ls={focusedElem:e,selectionRange:l},Ju=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,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++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var $=Il(l.type,a);e=n.getSnapshotBeforeUpdate($,u),n.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Ee(l,l.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)us(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":us(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(f(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function xf(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:ul(e,l),n&4&&pa(5,l);break;case 1:if(ul(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ee(l,l.return,c)}else{var a=Il(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ee(l,l.return,c)}}n&64&&rf(l),n&512&&ba(l,l.return);break;case 3:if(ul(e,l),n&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{Po(e,t)}catch(c){Ee(l,l.return,c)}}break;case 27:t===null&&n&4&&hf(l);case 26:case 5:ul(e,l),t===null&&n&4&&df(l),n&512&&ba(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),n&4&&vf(e,l);break;case 13:ul(e,l),n&4&&yf(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Xh.bind(null,l),s0(e,l))));break;case 22:if(n=l.memoizedState!==null||nl,!n){t=t!==null&&t.memoizedState!==null||Ze,a=nl;var u=Ze;nl=n,(Ze=t)&&!u?il(e,l,(l.subtreeFlags&8772)!==0):ul(e,l),nl=a,Ze=u}break;case 30:break;default:ul(e,l)}}function pf(e){var t=e.alternate;t!==null&&(e.alternate=null,pf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ri(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 Re=null,ot=!1;function al(e,t,l){for(l=l.child;l!==null;)bf(e,t,l),l=l.sibling}function bf(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Xn,l)}catch{}switch(l.tag){case 26:Ze||Qt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ze||Qt(l,t);var n=Re,a=ot;Dl(l.type)&&(Re=l.stateNode,ot=!1),al(e,t,l),Ea(l.stateNode),Re=n,ot=a;break;case 5:Ze||Qt(l,t);case 6:if(n=Re,a=ot,Re=null,al(e,t,l),Re=n,ot=a,Re!==null)if(ot)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(u){Ee(l,t,u)}else try{Re.removeChild(l.stateNode)}catch(u){Ee(l,t,u)}break;case 18:Re!==null&&(ot?(e=Re,rd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wn(e)):rd(Re,l.stateNode));break;case 4:n=Re,a=ot,Re=l.stateNode.containerInfo,ot=!0,al(e,t,l),Re=n,ot=a;break;case 0:case 11:case 14:case 15:Nl(2,l,t),Ze||Nl(4,l,t),al(e,t,l);break;case 1:Ze||(Qt(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&ff(l,t,n)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Ze=(n=Ze)||l.memoizedState!==null,al(e,t,l),Ze=n;break;default:al(e,t,l)}}function vf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wn(e)}catch(l){Ee(t,t.return,l)}}}function yf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wn(e)}catch(l){Ee(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 gf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gf),t;default:throw Error(f(435,e.tag))}}function Au(e,t){var l=Rh(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Qh.bind(null,e,n);n.then(a,a)}})}function rt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(Dl(r.type)){Re=r.stateNode,ot=!1;break e}break;case 5:Re=r.stateNode,ot=!1;break e;case 3:case 4:Re=r.stateNode.containerInfo,ot=!0;break e}r=r.return}if(Re===null)throw Error(f(160));bf(u,c,a),Re=null,ot=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sf(t,e),t=t.sibling}var Ht=null;function Sf(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rt(t,e),ft(e),n&4&&(Nl(3,e,e.return),pa(3,e),Nl(5,e,e.return));break;case 1:rt(t,e),ft(e),n&512&&(Ze||l===null||Qt(l,l.return)),n&64&&nl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Ht;if(rt(t,e),ft(e),n&512&&(Ze||l===null||Qt(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Vn]||u[Fe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),tt(u,n,l),u[Fe]=e,Ke(u),n=u;break e;case"link":var c=Sd("link","href",a).get(n+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(u=c[r],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(r,1);break t}}u=a.createElement(n),tt(u,n,l),a.head.appendChild(u);break;case"meta":if(c=Sd("meta","content",a).get(n+(l.content||""))){for(r=0;r<c.length;r++)if(u=c[r],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(r,1);break t}}u=a.createElement(n),tt(u,n,l),a.head.appendChild(u);break;default:throw Error(f(468,n))}u[Fe]=e,Ke(u),n=u}e.stateNode=n}else jd(a,e.type,e.stateNode);else e.stateNode=yd(a,n,e.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?jd(a,e.type,e.stateNode):yd(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Oc(e,e.memoizedProps,l.memoizedProps)}break;case 27:rt(t,e),ft(e),n&512&&(Ze||l===null||Qt(l,l.return)),l!==null&&n&4&&Oc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(rt(t,e),ft(e),n&512&&(Ze||l===null||Qt(l,l.return)),e.flags&32){a=e.stateNode;try{on(a,"")}catch($){Ee(e,e.return,$)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Oc(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Rc=!0);break;case 6:if(rt(t,e),ft(e),n&4){if(e.stateNode===null)throw Error(f(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch($){Ee(e,e.return,$)}}break;case 3:if(Zu=null,a=Ht,Ht=Xu(t.containerInfo),rt(t,e),Ht=a,ft(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{wn(t.containerInfo)}catch($){Ee(e,e.return,$)}Rc&&(Rc=!1,jf(e));break;case 4:n=Ht,Ht=Xu(e.stateNode.containerInfo),rt(t,e),ft(e),Ht=n;break;case 12:rt(t,e),ft(e);break;case 31:rt(t,e),ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Au(e,n)));break;case 13:rt(t,e),ft(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=ht()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Au(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,N=nl,O=Ze;if(nl=N||a,Ze=O||m,rt(t,e),Ze=O,nl=N,ft(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||nl||Ze||Pl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(u=m.stateNode,a)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=m.stateNode;var R=m.memoizedProps.style,M=R!=null&&R.hasOwnProperty("display")?R.display:null;r.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch($){Ee(m,m.return,$)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch($){Ee(m,m.return,$)}}}else if(t.tag===18){if(l===null){m=t;try{var E=m.stateNode;a?fd(E,!0):fd(m.stateNode,!1)}catch($){Ee(m,m.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Au(e,l))));break;case 19:rt(t,e),ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Au(e,n)));break;case 30:break;case 21:break;default:rt(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(mf(n)){l=n;break}n=n.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var a=l.stateNode,u=Cc(e);Eu(e,u,a);break;case 5:var c=l.stateNode;l.flags&32&&(on(c,""),l.flags&=-33);var r=Cc(e);Eu(e,r,c);break;case 3:case 4:var m=l.stateNode.containerInfo,N=Cc(e);Uc(e,N,m);break;default:throw Error(f(161))}}catch(O){Ee(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ul(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xf(e,t.alternate,t),t=t.sibling}function Pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nl(4,t,t.return),Pl(t);break;case 1:Qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ff(t,t.return,l),Pl(t);break;case 27:Ea(t.stateNode);case 26:case 5:Qt(t,t.return),Pl(t);break;case 22:t.memoizedState===null&&Pl(t);break;case 30:Pl(t);break;default:Pl(t)}e=e.sibling}}function il(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:il(a,u,l),pa(4,u);break;case 1:if(il(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(N){Ee(n,n.return,N)}if(n=u,a=n.updateQueue,a!==null){var r=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)Io(m[a],r)}catch(N){Ee(n,n.return,N)}}l&&c&64&&rf(u),ba(u,u.return);break;case 27:hf(u);case 26:case 5:il(a,u,l),l&&n===null&&c&4&&df(u),ba(u,u.return);break;case 12:il(a,u,l);break;case 31:il(a,u,l),l&&c&4&&vf(a,u);break;case 13:il(a,u,l),l&&c&4&&yf(a,u);break;case 22:u.memoizedState===null&&il(a,u,l),ba(u,u.return);break;case 30:break;default:il(a,u,l)}t=t.sibling}}function qc(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&&aa(l))}function Hc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e))}function Bt(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nf(e,t,l,n),t=t.sibling}function Nf(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,n),a&2048&&pa(9,t);break;case 1:Bt(e,t,l,n);break;case 3:Bt(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e)));break;case 12:if(a&2048){Bt(e,t,l,n),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,r=u.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Ee(t,t.return,m)}}else Bt(e,t,l,n);break;case 31:Bt(e,t,l,n);break;case 13:Bt(e,t,l,n);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Bt(e,t,l,n):va(e,t):u._visibility&2?Bt(e,t,l,n):(u._visibility|=2,zn(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&qc(c,t);break;case 24:Bt(e,t,l,n),a&2048&&Hc(t.alternate,t);break;default:Bt(e,t,l,n)}}function zn(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,r=l,m=n,N=c.flags;switch(c.tag){case 0:case 11:case 15:zn(u,c,r,m,a),pa(8,c);break;case 23:break;case 22:var O=c.stateNode;c.memoizedState!==null?O._visibility&2?zn(u,c,r,m,a):va(u,c):(O._visibility|=2,zn(u,c,r,m,a)),a&&N&2048&&qc(c.alternate,c);break;case 24:zn(u,c,r,m,a),a&&N&2048&&Hc(c.alternate,c);break;default:zn(u,c,r,m,a)}t=t.sibling}}function va(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:va(l,n),a&2048&&qc(n.alternate,n);break;case 24:va(l,n),a&2048&&Hc(n.alternate,n);break;default:va(l,n)}t=t.sibling}}var ya=8192;function Dn(e,t,l){if(e.subtreeFlags&ya)for(e=e.child;e!==null;)Tf(e,t,l),e=e.sibling}function Tf(e,t,l){switch(e.tag){case 26:Dn(e,t,l),e.flags&ya&&e.memoizedState!==null&&y0(l,Ht,e.memoizedState,e.memoizedProps);break;case 5:Dn(e,t,l);break;case 3:case 4:var n=Ht;Ht=Xu(e.stateNode.containerInfo),Dn(e,t,l),Ht=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ya,ya=16777216,Dn(e,t,l),ya=n):Dn(e,t,l));break;default:Dn(e,t,l)}}function Mf(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 Sa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Je=n,Ef(n,e)}Mf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_f(e),e=e.sibling}function _f(e){switch(e.tag){case 0:case 11:case 15:Sa(e),e.flags&2048&&Nl(9,e,e.return);break;case 3:Sa(e);break;case 12:Sa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zu(e)):Sa(e);break;default:Sa(e)}}function zu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Je=n,Ef(n,e)}Mf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nl(8,t,t.return),zu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,zu(t));break;default:zu(t)}e=e.sibling}}function Ef(e,t){for(;Je!==null;){var l=Je;switch(l.tag){case 0:case 11:case 15:Nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:aa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Je=n;else e:for(l=e;Je!==null;){n=Je;var a=n.sibling,u=n.return;if(pf(n),n===l){Je=null;break e}if(a!==null){a.return=u,Je=a;break e}Je=u}}}var qh={getCacheForType:function(e){var t=Pe(Le),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Pe(Le).controller.signal}},Hh=typeof WeakMap=="function"?WeakMap:Map,Me=0,Oe=null,pe=null,ve=0,_e=0,St=null,Tl=!1,On=!1,Bc=!1,cl=0,Be=0,Ml=0,en=0,Yc=0,jt=0,Cn=0,ja=null,dt=null,Gc=!1,Du=0,Af=0,Ou=1/0,Cu=null,_l=null,Ve=0,El=null,Un=null,sl=0,wc=0,Lc=null,zf=null,Na=0,Xc=null;function Nt(){return(Me&2)!==0&&ve!==0?ve&-ve:T.T!==null?Jc():Qs()}function Df(){if(jt===0)if((ve&536870912)===0||Se){var e=wa;wa<<=1,(wa&3932160)===0&&(wa=262144),jt=e}else jt=536870912;return e=vt.current,e!==null&&(e.flags|=32),jt}function mt(e,t,l){(e===Oe&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(Rn(e,0),Al(e,ve,jt,!1)),Zn(e,l),((Me&2)===0||e!==Oe)&&(e===Oe&&((Me&2)===0&&(en|=l),Be===4&&Al(e,ve,jt,!1)),Zt(e))}function Of(e,t,l){if((Me&6)!==0)throw Error(f(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Qn(e,t),a=n?Gh(e,t):Zc(e,t,!0),u=n;do{if(a===0){On&&!n&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Bh(l)){a=Zc(e,t,!1),u=!1;continue}if(a===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 r=e;a=ja;var m=r.current.memoizedState.isDehydrated;if(m&&(Rn(r,c).flags|=256),c=Zc(r,c,!1),c!==2){if(Bc&&!m){r.errorRecoveryDisabledLanes|=u,en|=u,a=4;break e}u=dt,dt=a,u!==null&&(dt===null?dt=u:dt.push.apply(dt,u))}a=c}if(u=!1,a!==2)continue}}if(a===1){Rn(e,0),Al(e,t,0,!0);break}e:{switch(n=e,u=a,u){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:Al(n,t,jt,!Tl);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(a=Du+300-ht(),10<a)){if(Al(n,t,jt,!Tl),Xa(n,0,!0)!==0)break e;sl=t,n.timeoutHandle=sd(Cf.bind(null,n,l,dt,Cu,Gc,t,jt,en,Cn,Tl,u,"Throttled",-0,0),a);break e}Cf(n,l,dt,Cu,Gc,t,jt,en,Cn,Tl,u,null,-0,0)}}break}while(!0);Zt(e)}function Cf(e,t,l,n,a,u,c,r,m,N,O,R,M,E){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Tf(t,u,R);var $=(u&62914560)===u?Du-ht():(u&4194048)===u?Af-ht():0;if($=S0(R,$),$!==null){sl=u,e.cancelPendingCommit=$(wf.bind(null,e,t,u,l,n,a,c,r,m,O,R,null,M,E)),Al(e,u,c,!N);return}}wf(e,t,u,l,n,a,c,r,m)}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 n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!pt(u(),a))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 Al(e,t,l,n){t&=~Yc,t&=~en,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var u=31-xt(a),c=1<<u;n[u]=-1,a&=~c}l!==0&&ws(e,l,t)}function Uu(){return(Me&6)===0?(Ta(0),!1):!0}function Qc(){if(pe!==null){if(_e===0)var e=pe.return;else e=pe,Ft=Vl=null,uc(e),Tn=null,ia=0,e=pe;for(;e!==null;)of(e.alternate,e),e=e.return;pe=null}}function Rn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,n0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),sl=0,Qc(),Oe=e,pe=l=$t(e.current,null),ve=t,_e=0,St=null,Tl=!1,On=Qn(e,t),Bc=!1,Cn=jt=Yc=en=Ml=Be=0,dt=ja=null,Gc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-xt(n),u=1<<a;t|=e[a],n&=~u}return cl=t,eu(),l}function Uf(e,t){de=null,T.H=ha,t===Nn||t===su?(t=Jo(),_e=3):t===Ki?(t=Jo(),_e=4):_e=t===Sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,pe===null&&(Be=1,ju(e,Et(t,e.current)))}function Rf(){var e=vt.current;return e===null?!0:(ve&4194048)===ve?Ot===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Ot:!1}function qf(){var e=T.H;return T.H=ha,e===null?ha:e}function Hf(){var e=T.A;return T.A=qh,e}function Ru(){Be=4,Tl||(ve&4194048)!==ve&&vt.current!==null||(On=!0),(Ml&134217727)===0&&(en&134217727)===0||Oe===null||Al(Oe,ve,jt,!1)}function Zc(e,t,l){var n=Me;Me|=2;var a=qf(),u=Hf();(Oe!==e||ve!==t)&&(Cu=null,Rn(e,t)),t=!1;var c=Be;e:do try{if(_e!==0&&pe!==null){var r=pe,m=St;switch(_e){case 8:Qc(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var N=_e;if(_e=0,St=null,qn(e,r,m,N),l&&On){c=0;break e}break;default:N=_e,_e=0,St=null,qn(e,r,m,N)}}Yh(),c=Be;break}catch(O){Uf(e,O)}while(!0);return t&&e.shellSuspendCounter++,Ft=Vl=null,Me=n,T.H=a,T.A=u,pe===null&&(Oe=null,ve=0,eu()),c}function Yh(){for(;pe!==null;)Bf(pe)}function Gh(e,t){var l=Me;Me|=2;var n=qf(),a=Hf();Oe!==e||ve!==t?(Cu=null,Ou=ht()+500,Rn(e,t)):On=Qn(e,t);e:do try{if(_e!==0&&pe!==null){t=pe;var u=St;t:switch(_e){case 1:_e=0,St=null,qn(e,t,u,1);break;case 2:case 9:if(ko(u)){_e=0,St=null,Yf(t);break}t=function(){_e!==2&&_e!==9||Oe!==e||(_e=7),Zt(e)},u.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:ko(u)?(_e=0,St=null,Yf(t)):(_e=0,St=null,qn(e,t,u,7));break;case 5:var c=null;switch(pe.tag){case 26:c=pe.memoizedState;case 5:case 27:var r=pe;if(c?Nd(c):r.stateNode.complete){_e=0,St=null;var m=r.sibling;if(m!==null)pe=m;else{var N=r.return;N!==null?(pe=N,qu(N)):pe=null}break t}}_e=0,St=null,qn(e,t,u,5);break;case 6:_e=0,St=null,qn(e,t,u,6);break;case 8:Qc(),Be=6;break e;default:throw Error(f(462))}}wh();break}catch(O){Uf(e,O)}while(!0);return Ft=Vl=null,T.H=n,T.A=a,Me=l,pe!==null?0:(Oe=null,ve=0,eu(),Be)}function wh(){for(;pe!==null&&!om();)Bf(pe)}function Bf(e){var t=cf(e.alternate,e,cl);e.memoizedProps=e.pendingProps,t===null?qu(e):pe=t}function Yf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ef(l,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=ef(l,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:uc(t);default:of(l,t),t=pe=qo(t,cl),t=cf(l,t,cl)}e.memoizedProps=e.pendingProps,t===null?qu(e):pe=t}function qn(e,t,l,n){Ft=Vl=null,uc(t),Tn=null,ia=0;var a=t.return;try{if(Ah(e,a,t,l,ve)){Be=1,ju(e,Et(l,e.current)),pe=null;return}}catch(u){if(a!==null)throw pe=a,u;Be=1,ju(e,Et(l,e.current)),pe=null;return}t.flags&32768?(Se||n===1?e=!0:On||(ve&536870912)!==0?e=!1:(Tl=e=!0,(n===2||n===9||n===3||n===6)&&(n=vt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Gf(t,e)):qu(t)}function qu(e){var t=e;do{if((t.flags&32768)!==0){Gf(t,Tl);return}e=t.return;var l=Oh(t.alternate,t,cl);if(l!==null){pe=l;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);Be===0&&(Be=5)}function Gf(e,t){do{var l=Ch(e.alternate,e);if(l!==null){l.flags&=32767,pe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=l}while(e!==null);Be=6,pe=null}function wf(e,t,l,n,a,u,c,r,m){e.cancelPendingCommit=null;do Hu();while(Ve!==0);if((Me&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(u=t.lanes|t.childLanes,u|=Ci,vm(e,l,u,c,r,m),e===Oe&&(pe=Oe=null,ve=0),Un=t,El=e,sl=l,wc=u,Lc=a,zf=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Zh(Ya,function(){return Vf(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=T.T,T.T=null,a=H.p,H.p=2,c=Me,Me|=4;try{Uh(e,t,l)}finally{Me=c,H.p=a,T.T=n}}Ve=1,Lf(),Xf(),Qf()}}function Lf(){if(Ve===1){Ve=0;var e=El,t=Un,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var a=Me;Me|=4;try{Sf(t,e);var u=ls,c=_o(e.containerInfo),r=u.focusedElem,m=u.selectionRange;if(c!==r&&r&&r.ownerDocument&&Mo(r.ownerDocument.documentElement,r)){if(m!==null&&Ei(r)){var N=m.start,O=m.end;if(O===void 0&&(O=N),"selectionStart"in r)r.selectionStart=N,r.selectionEnd=Math.min(O,r.value.length);else{var R=r.ownerDocument||document,M=R&&R.defaultView||window;if(M.getSelection){var E=M.getSelection(),$=r.textContent.length,ue=Math.min(m.start,$),De=m.end===void 0?ue:Math.min(m.end,$);!E.extend&&ue>De&&(c=De,De=ue,ue=c);var b=To(r,ue),p=To(r,De);if(b&&p&&(E.rangeCount!==1||E.anchorNode!==b.node||E.anchorOffset!==b.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)){var j=R.createRange();j.setStart(b.node,b.offset),E.removeAllRanges(),ue>De?(E.addRange(j),E.extend(p.node,p.offset)):(j.setEnd(p.node,p.offset),E.addRange(j))}}}}for(R=[],E=r;E=E.parentNode;)E.nodeType===1&&R.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<R.length;r++){var U=R[r];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Ju=!!ts,ls=ts=null}finally{Me=a,H.p=n,T.T=l}}e.current=t,Ve=2}}function Xf(){if(Ve===2){Ve=0;var e=El,t=Un,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var a=Me;Me|=4;try{xf(e,t.alternate,t)}finally{Me=a,H.p=n,T.T=l}}Ve=3}}function Qf(){if(Ve===4||Ve===3){Ve=0,rm();var e=El,t=Un,l=sl,n=zf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ve=5:(Ve=0,Un=El=null,Zf(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(_l=null),si(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Xn,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=T.T,a=H.p,H.p=2,T.T=null;try{for(var u=e.onRecoverableError,c=0;c<n.length;c++){var r=n[c];u(r.value,{componentStack:r.stack})}}finally{T.T=t,H.p=a}}(sl&3)!==0&&Hu(),Zt(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===Xc?Na++:(Na=0,Xc=e):Na=0,Ta(0)}}function Zf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,aa(t)))}function Hu(){return Lf(),Xf(),Qf(),Vf()}function Vf(){if(Ve!==5)return!1;var e=El,t=wc;wc=0;var l=si(sl),n=T.T,a=H.p;try{H.p=32>l?32:l,T.T=null,l=Lc,Lc=null;var u=El,c=sl;if(Ve=0,Un=El=null,sl=0,(Me&6)!==0)throw Error(f(331));var r=Me;if(Me|=4,_f(u.current),Nf(u,u.current,c,l),Me=r,Ta(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Xn,u)}catch{}return!0}finally{H.p=a,T.T=n,Zf(e,t)}}function kf(e,t,l){t=Et(l,t),t=yc(e.stateNode,t,2),e=yl(e,t,2),e!==null&&(Zn(e,2),Zt(e))}function Ee(e,t,l){if(e.tag===3)kf(e,e,l);else for(;t!==null;){if(t.tag===3){kf(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(_l===null||!_l.has(n))){e=Et(l,e),l=kr(2),n=yl(t,l,2),n!==null&&(Kr(l,n,t,e),Zn(n,2),Zt(n));break}}t=t.return}}function Vc(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Hh;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Bc=!0,a.add(l),e=Lh.bind(null,e,t,l),t.then(e,e))}function Lh(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Oe===e&&(ve&l)===l&&(Be===4||Be===3&&(ve&62914560)===ve&&300>ht()-Du?(Me&2)===0&&Rn(e,0):Yc|=l,Cn===ve&&(Cn=0)),Zt(e)}function Kf(e,t){t===0&&(t=Gs()),e=Xl(e,t),e!==null&&(Zn(e,t),Zt(e))}function Xh(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kf(e,l)}function Qh(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(f(314))}n!==null&&n.delete(t),Kf(e,l)}function Zh(e,t){return ai(e,t)}var Bu=null,Hn=null,kc=!1,Yu=!1,Kc=!1,zl=0;function Zt(e){e!==Hn&&e.next===null&&(Hn===null?Bu=Hn=e:Hn=Hn.next=e),Yu=!0,kc||(kc=!0,kh())}function Ta(e,t){if(!Kc&&Yu){Kc=!0;do for(var l=!1,n=Bu;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var c=n.suspendedLanes,r=n.pingedLanes;u=(1<<31-xt(42|e)+1)-1,u&=a&~(c&~r),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ff(n,u))}else u=ve,u=Xa(n,n===Oe?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Qn(n,u)||(l=!0,Ff(n,u));n=n.next}while(l);Kc=!1}}function Vh(){Jf()}function Jf(){Yu=kc=!1;var e=0;zl!==0&&l0()&&(e=zl);for(var t=ht(),l=null,n=Bu;n!==null;){var a=n.next,u=$f(n,t);u===0?(n.next=null,l===null?Bu=a:l.next=a,a===null&&(Hn=l)):(l=n,(e!==0||(u&3)!==0)&&(Yu=!0)),n=a}Ve!==0&&Ve!==5||Ta(e),zl!==0&&(zl=0)}function $f(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-xt(u),r=1<<c,m=a[c];m===-1?((r&l)===0||(r&n)!==0)&&(a[c]=bm(r,t)):m<=t&&(e.expiredLanes|=r),u&=~r}if(t=Oe,l=ve,l=Xa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ui(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Qn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&ui(n),si(l)){case 2:case 8:l=Bs;break;case 32:l=Ya;break;case 268435456:l=Ys;break;default:l=Ya}return n=Wf.bind(null,e),l=ai(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&ui(n),e.callbackPriority=2,e.callbackNode=null,2}function Wf(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hu()&&e.callbackNode!==l)return null;var n=ve;return n=Xa(e,e===Oe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Of(e,n,t),$f(e,ht()),e.callbackNode!=null&&e.callbackNode===l?Wf.bind(null,e):null)}function Ff(e,t){if(Hu())return null;Of(e,t,!0)}function kh(){a0(function(){(Me&6)!==0?ai(Hs,Vh):Jf()})}function Jc(){if(zl===0){var e=Sn;e===0&&(e=Ga,Ga<<=1,(Ga&261888)===0&&(Ga=256)),zl=e}return zl}function If(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ka(""+e)}function Pf(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,n,a){if(t==="submit"&&l&&l.stateNode===a){var u=If((a[ct]||null).action),c=n.submitter;c&&(t=(t=c[ct]||null)?If(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var r=new Wa("action","action",null,n,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(zl!==0){var m=c?Pf(a,c):new FormData(a);hc(l,{pending:!0,data:m,method:a.method,action:u},null,m)}}else typeof u=="function"&&(r.preventDefault(),m=c?Pf(a,c):new FormData(a),hc(l,{pending:!0,data:m,method:a.method,action:u},u,m))},currentTarget:a}]})}}for(var $c=0;$c<Oi.length;$c++){var Wc=Oi[$c],Jh=Wc.toLowerCase(),$h=Wc[0].toUpperCase()+Wc.slice(1);qt(Jh,"on"+$h)}qt(zo,"onAnimationEnd"),qt(Do,"onAnimationIteration"),qt(Oo,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(fh,"onTransitionRun"),qt(dh,"onTransitionStart"),qt(mh,"onTransitionCancel"),qt(Co,"onTransitionEnd"),cn("onMouseEnter",["mouseout","mouseover"]),cn("onMouseLeave",["mouseout","mouseover"]),cn("onPointerEnter",["pointerout","pointerover"]),cn("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ma="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(Ma));function ed(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var c=n.length-1;0<=c;c--){var r=n[c],m=r.instance,N=r.currentTarget;if(r=r.listener,m!==u&&a.isPropagationStopped())break e;u=r,a.currentTarget=N;try{u(a)}catch(O){Pa(O)}a.currentTarget=null,u=m}else for(c=0;c<n.length;c++){if(r=n[c],m=r.instance,N=r.currentTarget,r=r.listener,m!==u&&a.isPropagationStopped())break e;u=r,a.currentTarget=N;try{u(a)}catch(O){Pa(O)}a.currentTarget=null,u=m}}}}function be(e,t){var l=t[oi];l===void 0&&(l=t[oi]=new Set);var n=e+"__bubble";l.has(n)||(td(t,e,2,!1),l.add(n))}function Fc(e,t,l){var n=0;t&&(n|=4),td(l,e,n,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function Ic(e){if(!e[Gu]){e[Gu]=!0,ks.forEach(function(l){l!=="selectionchange"&&(Wh.has(l)||Fc(l,!1,e),Fc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,Fc("selectionchange",!1,t))}}function td(e,t,l,n){switch(Dd(t)){case 2:var a=T0;break;case 8:a=M0;break;default:a=ms}l=a.bind(null,t,l,e),a=void 0,!bi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Pc(e,t,l,n,a){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var r=n.stateNode.containerInfo;if(r===a)break;if(c===4)for(c=n.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===a)return;c=c.return}for(;r!==null;){if(c=nn(r),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){n=u=c;continue e}r=r.parentNode}}n=n.return}ao(function(){var N=u,O=xi(l),R=[];e:{var M=Uo.get(e);if(M!==void 0){var E=Wa,$=e;switch(e){case"keypress":if(Ja(l)===0)break e;case"keydown":case"keyup":E=Qm;break;case"focusin":$="focus",E=ji;break;case"focusout":$="blur",E=ji;break;case"beforeblur":case"afterblur":E=ji;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":E=co;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=km;break;case zo:case Do:case Oo:E=Rm;break;case Co:E=Jm;break;case"scroll":case"scrollend":E=zm;break;case"wheel":E=Wm;break;case"copy":case"cut":case"paste":E=Hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=oo;break;case"toggle":case"beforetoggle":E=Im}var ue=(t&4)!==0,De=!ue&&(e==="scroll"||e==="scrollend"),b=ue?M!==null?M+"Capture":null:M;ue=[];for(var p=N,j;p!==null;){var U=p;if(j=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||j===null||b===null||(U=Kn(p,b),U!=null&&ue.push(_a(p,U,j))),De)break;p=p.return}0<ue.length&&(M=new E(M,$,null,l,O),R.push({event:M,listeners:ue}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",M&&l!==gi&&($=l.relatedTarget||l.fromElement)&&(nn($)||$[ln]))break e;if((E||M)&&(M=O.window===O?O:(M=O.ownerDocument)?M.defaultView||M.parentWindow:window,E?($=l.relatedTarget||l.toElement,E=N,$=$?nn($):null,$!==null&&(De=S($),ue=$.tag,$!==De||ue!==5&&ue!==27&&ue!==6)&&($=null)):(E=null,$=N),E!==$)){if(ue=co,U="onMouseLeave",b="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(ue=oo,U="onPointerLeave",b="onPointerEnter",p="pointer"),De=E==null?M:kn(E),j=$==null?M:kn($),M=new ue(U,p+"leave",E,l,O),M.target=De,M.relatedTarget=j,U=null,nn(O)===N&&(ue=new ue(b,p+"enter",$,l,O),ue.target=j,ue.relatedTarget=De,U=ue),De=U,E&&$)t:{for(ue=Fh,b=E,p=$,j=0,U=b;U;U=ue(U))j++;U=0;for(var te=p;te;te=ue(te))U++;for(;0<j-U;)b=ue(b),j--;for(;0<U-j;)p=ue(p),U--;for(;j--;){if(b===p||p!==null&&b===p.alternate){ue=b;break t}b=ue(b),p=ue(p)}ue=null}else ue=null;E!==null&&ld(R,M,E,ue,!1),$!==null&&De!==null&&ld(R,De,$,ue,!0)}}e:{if(M=N?kn(N):window,E=M.nodeName&&M.nodeName.toLowerCase(),E==="select"||E==="input"&&M.type==="file")var Ne=bo;else if(xo(M))if(vo)Ne=sh;else{Ne=ih;var F=uh}else E=M.nodeName,!E||E.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?N&&hi(N.elementType)&&(Ne=bo):Ne=ch;if(Ne&&(Ne=Ne(e,N))){po(R,Ne,l,O);break e}F&&F(e,M,N),e==="focusout"&&N&&M.type==="number"&&N.memoizedProps.value!=null&&mi(M,"number",M.value)}switch(F=N?kn(N):window,e){case"focusin":(xo(F)||F.contentEditable==="true")&&(mn=F,Ai=N,ta=null);break;case"focusout":ta=Ai=mn=null;break;case"mousedown":zi=!0;break;case"contextmenu":case"mouseup":case"dragend":zi=!1,Eo(R,l,O);break;case"selectionchange":if(rh)break;case"keydown":case"keyup":Eo(R,l,O)}var me;if(Ti)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 dn?ho(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(ro&&l.locale!=="ko"&&(dn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&dn&&(me=uo()):(ml=O,vi="value"in ml?ml.value:ml.textContent,dn=!0)),F=wu(N,ye),0<F.length&&(ye=new so(ye,e,null,l,O),R.push({event:ye,listeners:F}),me?ye.data=me:(me=go(l),me!==null&&(ye.data=me)))),(me=eh?th(e,l):lh(e,l))&&(ye=wu(N,"onBeforeInput"),0<ye.length&&(F=new so("onBeforeInput","beforeinput",null,l,O),R.push({event:F,listeners:ye}),F.data=me)),Kh(R,e,N,l,O)}ed(R,t)})}function _a(e,t,l){return{instance:e,listener:t,currentTarget:l}}function wu(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Kn(e,l),a!=null&&n.unshift(_a(e,a,u)),a=Kn(e,t),a!=null&&n.push(_a(e,a,u))),e.tag===3)return n;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 ld(e,t,l,n,a){for(var u=t._reactName,c=[];l!==null&&l!==n;){var r=l,m=r.alternate,N=r.stateNode;if(r=r.tag,m!==null&&m===n)break;r!==5&&r!==26&&r!==27||N===null||(m=N,a?(N=Kn(l,u),N!=null&&c.unshift(_a(l,N,m))):a||(N=Kn(l,u),N!=null&&c.push(_a(l,N,m)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Ih=/\r\n?/g,Ph=/\u0000|\uFFFD/g;function nd(e){return(typeof e=="string"?e:""+e).replace(Ih,`
49
+ `).replace(Ph,"")}function ad(e,t){return t=nd(t),nd(e)===t}function ze(e,t,l,n,a,u){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||on(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&on(e,""+n);break;case"className":Za(e,"class",n);break;case"tabIndex":Za(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Za(e,l,n);break;case"style":lo(e,n,u);break;case"data":if(t!=="object"){Za(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ka(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="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",a.name,a,null),ze(e,t,"formEncType",a.formEncType,a,null),ze(e,t,"formMethod",a.formMethod,a,null),ze(e,t,"formTarget",a.formTarget,a,null)):(ze(e,t,"encType",a.encType,a,null),ze(e,t,"method",a.method,a,null),ze(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=ka(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Kt);break;case"onScroll":n!=null&&be("scroll",e);break;case"onScrollEnd":n!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=ka(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":be("beforetoggle",e),be("toggle",e),Qa(e,"popover",n);break;case"xlinkActuate":kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":kt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":kt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":kt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":kt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Qa(e,"is",n);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,Qa(e,l,n))}}function es(e,t,l,n,a,u){switch(l){case"style":lo(e,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"children":typeof n=="string"?on(e,n):(typeof n=="number"||typeof n=="bigint")&&on(e,""+n);break;case"onScroll":n!=null&&be("scroll",e);break;case"onScrollEnd":n!=null&&be("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ks.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),u=e[ct]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):Qa(e,l,n)}}}function tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ze(e,t,u,c,l,null)}}a&&ze(e,t,"srcSet",l.srcSet,l,null),n&&ze(e,t,"src",l.src,l,null);return;case"input":be("invalid",e);var r=u=c=a=null,m=null,N=null;for(n in l)if(l.hasOwnProperty(n)){var O=l[n];if(O!=null)switch(n){case"name":a=O;break;case"type":c=O;break;case"checked":m=O;break;case"defaultChecked":N=O;break;case"value":u=O;break;case"defaultValue":r=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(f(137,t));break;default:ze(e,t,n,O,l,null)}}Is(e,u,r,m,N,c,a,!1);return;case"select":be("invalid",e),n=c=u=null;for(a in l)if(l.hasOwnProperty(a)&&(r=l[a],r!=null))switch(a){case"value":u=r;break;case"defaultValue":c=r;break;case"multiple":n=r;default:ze(e,t,a,r,l,null)}t=u,l=c,e.multiple=!!n,t!=null?sn(e,!!n,t,!1):l!=null&&sn(e,!!n,l,!0);return;case"textarea":be("invalid",e),u=a=n=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":n=r;break;case"defaultValue":a=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:ze(e,t,c,r,l,null)}eo(e,n,a,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ze(e,t,m,n,l,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(n=0;n<Ma.length;n++)be(Ma[n],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(N in l)if(l.hasOwnProperty(N)&&(n=l[N],n!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ze(e,t,N,n,l,null)}return;default:if(hi(t)){for(O in l)l.hasOwnProperty(O)&&(n=l[O],n!==void 0&&es(e,t,O,n,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(n=l[r],n!=null&&ze(e,t,r,n,l,null))}function e0(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,c=null,r=null,m=null,N=null,O=null;for(E in l){var R=l[E];if(l.hasOwnProperty(E)&&R!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":m=R;default:n.hasOwnProperty(E)||ze(e,t,E,null,n,R)}}for(var M in n){var E=n[M];if(R=l[M],n.hasOwnProperty(M)&&(E!=null||R!=null))switch(M){case"type":u=E;break;case"name":a=E;break;case"checked":N=E;break;case"defaultChecked":O=E;break;case"value":c=E;break;case"defaultValue":r=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(f(137,t));break;default:E!==R&&ze(e,t,M,E,n,R)}}di(e,c,r,m,N,O,u,a);return;case"select":E=c=r=M=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":E=m;default:n.hasOwnProperty(u)||ze(e,t,u,null,n,m)}for(a in n)if(u=n[a],m=l[a],n.hasOwnProperty(a)&&(u!=null||m!=null))switch(a){case"value":M=u;break;case"defaultValue":r=u;break;case"multiple":c=u;default:u!==m&&ze(e,t,a,u,n,m)}t=r,l=c,n=E,M!=null?sn(e,!!l,M,!1):!!n!=!!l&&(t!=null?sn(e,!!l,t,!0):sn(e,!!l,l?[]:"",!1));return;case"textarea":E=M=null;for(r in l)if(a=l[r],l.hasOwnProperty(r)&&a!=null&&!n.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ze(e,t,r,null,n,a)}for(c in n)if(a=n[c],u=l[c],n.hasOwnProperty(c)&&(a!=null||u!=null))switch(c){case"value":M=a;break;case"defaultValue":E=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(f(91));break;default:a!==u&&ze(e,t,c,a,n,u)}Ps(e,M,E);return;case"option":for(var $ in l)if(M=l[$],l.hasOwnProperty($)&&M!=null&&!n.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:ze(e,t,$,null,n,M)}for(m in n)if(M=n[m],E=l[m],n.hasOwnProperty(m)&&M!==E&&(M!=null||E!=null))switch(m){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:ze(e,t,m,M,n,E)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in l)M=l[ue],l.hasOwnProperty(ue)&&M!=null&&!n.hasOwnProperty(ue)&&ze(e,t,ue,null,n,M);for(N in n)if(M=n[N],E=l[N],n.hasOwnProperty(N)&&M!==E&&(M!=null||E!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(f(137,t));break;default:ze(e,t,N,M,n,E)}return;default:if(hi(t)){for(var De in l)M=l[De],l.hasOwnProperty(De)&&M!==void 0&&!n.hasOwnProperty(De)&&es(e,t,De,void 0,n,M);for(O in n)M=n[O],E=l[O],!n.hasOwnProperty(O)||M===E||M===void 0&&E===void 0||es(e,t,O,M,n,E);return}}for(var b in l)M=l[b],l.hasOwnProperty(b)&&M!=null&&!n.hasOwnProperty(b)&&ze(e,t,b,null,n,M);for(R in n)M=n[R],E=l[R],!n.hasOwnProperty(R)||M===E||M==null&&E==null||ze(e,t,R,M,n,E)}function ud(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"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,c=a.initiatorType,r=a.duration;if(u&&r&&ud(c)){for(c=0,r=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],N=m.startTime;if(N>r)break;var O=m.transferSize,R=m.initiatorType;O&&ud(R)&&(m=m.responseEnd,c+=O*(m<r?1:(r-N)/(m-N)))}if(--n,t+=8*(u+c)/(a.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 ts=null,ls=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function id(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 cd(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 ns(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var as=null;function l0(){var e=window.event;return e&&e.type==="popstate"?e===as?!1:(as=e,!0):(as=null,!1)}var sd=typeof setTimeout=="function"?setTimeout:void 0,n0=typeof clearTimeout=="function"?clearTimeout:void 0,od=typeof Promise=="function"?Promise:void 0,a0=typeof queueMicrotask=="function"?queueMicrotask:typeof od<"u"?function(e){return od.resolve(null).then(e).catch(u0)}:sd;function u0(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function rd(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),wn(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ea(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ea(l);for(var u=l.firstChild;u;){var c=u.nextSibling,r=u.nodeName;u[Vn]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Ea(e.ownerDocument.body);l=a}while(l);wn(t)}function fd(e,t){var l=e;e=0;do{var n=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||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function us(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":us(l),ri(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function i0(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Vn])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!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Ct(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=Ct(e.nextSibling),e===null))return null;return e}function dd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ct(e.nextSibling),e===null))return null;return e}function is(e){return e.data==="$?"||e.data==="$~"}function cs(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 n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ct(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 ss=null;function md(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Ct(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function hd(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 gd(e,t,l){switch(t=Lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Ea(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ri(e)}var Ut=new Map,xd=new Set;function Xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=H.d;H.d={f:o0,r:r0,D:f0,C:d0,L:m0,m:h0,X:x0,S:g0,M:p0};function o0(){var e=ol.f(),t=Uu();return e||t}function r0(e){var t=an(e);t!==null&&t.tag===5&&t.type==="form"?Cr(t):ol.r(e)}var Bn=typeof document>"u"?null:document;function pd(e,t,l){var n=Bn;if(n&&typeof t=="string"&&t){var a=Mt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),xd.has(a)||(xd.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),tt(t,"link",e),Ke(t),n.head.appendChild(t)))}}function f0(e){ol.D(e),pd("dns-prefetch",e,null)}function d0(e,t){ol.C(e,t),pd("preconnect",e,t)}function m0(e,t,l){ol.L(e,t,l);var n=Bn;if(n&&e&&t){var a='link[rel="preload"][as="'+Mt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Mt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Mt(l.imageSizes)+'"]')):a+='[href="'+Mt(e)+'"]';var u=a;switch(t){case"style":u=Yn(e);break;case"script":u=Gn(e)}Ut.has(u)||(e=q({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(u,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Aa(u))||t==="script"&&n.querySelector(za(u))||(t=n.createElement("link"),tt(t,"link",e),Ke(t),n.head.appendChild(t)))}}function h0(e,t){ol.m(e,t);var l=Bn;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Mt(n)+'"][href="'+Mt(e)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Gn(e)}if(!Ut.has(u)&&(e=q({rel:"modulepreload",href:e},t),Ut.set(u,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(za(u)))return}n=l.createElement("link"),tt(n,"link",e),Ke(n),l.head.appendChild(n)}}}function g0(e,t,l){ol.S(e,t,l);var n=Bn;if(n&&e){var a=un(n).hoistableStyles,u=Yn(e);t=t||"default";var c=a.get(u);if(!c){var r={loading:0,preload:null};if(c=n.querySelector(Aa(u)))r.loading=5;else{e=q({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(u))&&os(e,l);var m=c=n.createElement("link");Ke(m),tt(m,"link",e),m._p=new Promise(function(N,O){m.onload=N,m.onerror=O}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Qu(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:r},a.set(u,c)}}}function x0(e,t){ol.X(e,t);var l=Bn;if(l&&e){var n=un(l).hoistableScripts,a=Gn(e),u=n.get(a);u||(u=l.querySelector(za(a)),u||(e=q({src:e,async:!0},t),(t=Ut.get(a))&&rs(e,t),u=l.createElement("script"),Ke(u),tt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function p0(e,t){ol.M(e,t);var l=Bn;if(l&&e){var n=un(l).hoistableScripts,a=Gn(e),u=n.get(a);u||(u=l.querySelector(za(a)),u||(e=q({src:e,async:!0,type:"module"},t),(t=Ut.get(a))&&rs(e,t),u=l.createElement("script"),Ke(u),tt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function bd(e,t,l,n){var a=(a=xe.current)?Xu(a):null;if(!a)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Yn(l.href),l=un(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Yn(l.href);var u=un(a).hoistableStyles,c=u.get(e);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=a.querySelector(Aa(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Ut.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},Ut.set(e,l),u||b0(a,e,l,c.state))),t&&n===null)throw Error(f(528,""));return c}if(t&&n!==null)throw Error(f(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gn(l),l=un(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function Yn(e){return'href="'+Mt(e)+'"'}function Aa(e){return'link[rel="stylesheet"]['+e+"]"}function vd(e){return q({},e,{"data-precedence":e.precedence,precedence:null})}function b0(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),tt(t,"link",l),Ke(t),e.head.appendChild(t))}function Gn(e){return'[src="'+Mt(e)+'"]'}function za(e){return"script[async]"+e}function yd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Mt(l.href)+'"]');if(n)return t.instance=n,Ke(n),n;var a=q({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ke(n),tt(n,"style",a),Qu(n,l.precedence,e),t.instance=n;case"stylesheet":a=Yn(l.href);var u=e.querySelector(Aa(a));if(u)return t.state.loading|=4,t.instance=u,Ke(u),u;n=vd(l),(a=Ut.get(a))&&os(n,a),u=(e.ownerDocument||e).createElement("link"),Ke(u);var c=u;return c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),tt(u,"link",n),t.state.loading|=4,Qu(u,l.precedence,e),t.instance=u;case"script":return u=Gn(l.src),(a=e.querySelector(za(u)))?(t.instance=a,Ke(a),a):(n=l,(a=Ut.get(u))&&(n=q({},l),rs(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ke(a),tt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Qu(n,l.precedence,e));return t.instance}function Qu(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,c=0;c<n.length;c++){var r=n[c];if(r.dataset.precedence===t)u=r;else if(u!==a)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function rs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zu=null;function Sd(e,t,l){if(Zu===null){var n=new Map,a=Zu=new Map;a.set(l,n)}else a=Zu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var u=l[a];if(!(u[Vn]||u[Fe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var r=n.get(c);r?r.push(u):n.set(c,[u])}}return n}function jd(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 Nd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function y0(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Yn(n.href),u=t.querySelector(Aa(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ke(u);return}u=t.ownerDocument||t,n=vd(n),(a=Ut.get(a))&&os(n,a),u=u.createElement("link"),Ke(u);var c=u;c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),tt(u,"link",n),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=Vu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var fs=0;function S0(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&fs===0&&(fs=62500*t0());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>fs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ku=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ku=new Map,t.forEach(j0,e),ku=null,Vu.call(e))}function j0(e,t){if(!(t.state.loading&4)){var l=ku.get(e);if(l)var n=l.get(null);else{l=new Map,ku.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var c=a[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),n=c)}n&&l.set(null,n)}a=t.instance,c=a.getAttribute("data-precedence"),u=l.get(c)||n,u===n&&l.set(null,a),l.set(c,a),this.count++,n=Vu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Da={$$typeof:L,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function N0(e,t,l,n,a,u,c,r,m){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=ii(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.hiddenUpdates=ii(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Td(e,t,l,n,a,u,c,r,m,N,O,R){return e=new N0(e,t,l,c,m,N,O,R,r),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=Zi(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:t},Ji(u),e}function Md(e){return e?(e=xn,e):xn}function _d(e,t,l,n,a,u){a=Md(a),n.context===null?n.context=a:n.pendingContext=a,n=vl(t),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=yl(e,n,t),l!==null&&(mt(l,e,t),sa(l,e,t))}function Ed(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ds(e,t){Ed(e,t),(e=e.alternate)&&Ed(e,t)}function Ad(e){if(e.tag===13||e.tag===31){var t=Xl(e,67108864);t!==null&&mt(t,e,67108864),ds(e,67108864)}}function zd(e){if(e.tag===13||e.tag===31){var t=Nt();t=ci(t);var l=Xl(e,t);l!==null&&mt(l,e,t),ds(e,t)}}var Ju=!0;function T0(e,t,l,n){var a=T.T;T.T=null;var u=H.p;try{H.p=2,ms(e,t,l,n)}finally{H.p=u,T.T=a}}function M0(e,t,l,n){var a=T.T;T.T=null;var u=H.p;try{H.p=8,ms(e,t,l,n)}finally{H.p=u,T.T=a}}function ms(e,t,l,n){if(Ju){var a=hs(n);if(a===null)Pc(e,t,n,$u,l),Od(e,n);else if(E0(a,e,t,l,n))n.stopPropagation();else if(Od(e,n),t&4&&-1<_0.indexOf(e)){for(;a!==null;){var u=an(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Bl(u.pendingLanes);if(c!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var m=1<<31-xt(c);r.entanglements[1]|=m,c&=~m}Zt(u),(Me&6)===0&&(Ou=ht()+500,Ta(0))}}break;case 31:case 13:r=Xl(u,2),r!==null&&mt(r,u,2),Uu(),ds(u,2)}if(u=hs(n),u===null&&Pc(e,t,n,$u,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Pc(e,t,n,null,l)}}function hs(e){return e=xi(e),gs(e)}var $u=null;function gs(e){if($u=null,e=nn(e),e!==null){var t=S(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=A(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 $u=e,null}function Dd(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(fm()){case Hs:return 2;case Bs:return 8;case Ya:case dm:return 32;case Ys:return 268435456;default:return 32}default:return 32}}var xs=!1,Ol=null,Cl=null,Ul=null,Oa=new Map,Ca=new Map,Rl=[],_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 Od(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Cl=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":Oa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ca.delete(t.pointerId)}}function Ua(e,t,l,n,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},t!==null&&(t=an(t),t!==null&&Ad(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function E0(e,t,l,n,a){switch(t){case"focusin":return Ol=Ua(Ol,e,t,l,n,a),!0;case"dragenter":return Cl=Ua(Cl,e,t,l,n,a),!0;case"mouseover":return Ul=Ua(Ul,e,t,l,n,a),!0;case"pointerover":var u=a.pointerId;return Oa.set(u,Ua(Oa.get(u)||null,e,t,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Ca.set(u,Ua(Ca.get(u)||null,e,t,l,n,a)),!0}return!1}function Cd(e){var t=nn(e.target);if(t!==null){var l=S(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,Zs(e.priority,function(){zd(l)});return}}else if(t===31){if(t=A(l),t!==null){e.blockedOn=t,Zs(e.priority,function(){zd(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 Wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=hs(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);gi=n,l.target.dispatchEvent(n),gi=null}else return t=an(l),t!==null&&Ad(t),e.blockedOn=l,!1;t.shift()}return!0}function Ud(e,t,l){Wu(e)&&l.delete(t)}function A0(){xs=!1,Ol!==null&&Wu(Ol)&&(Ol=null),Cl!==null&&Wu(Cl)&&(Cl=null),Ul!==null&&Wu(Ul)&&(Ul=null),Oa.forEach(Ud),Ca.forEach(Ud)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,xs||(xs=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,A0)))}var Iu=null;function Rd(e){Iu!==e&&(Iu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Iu===e&&(Iu=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(gs(n||l)===null)continue;break}var u=an(l);u!==null&&(e.splice(t,3),t-=3,hc(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function wn(e){function t(m){return Fu(m,e)}Ol!==null&&Fu(Ol,e),Cl!==null&&Fu(Cl,e),Ul!==null&&Fu(Ul,e),Oa.forEach(t),Ca.forEach(t);for(var l=0;l<Rl.length;l++){var n=Rl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Rl.length&&(l=Rl[0],l.blockedOn===null);)Cd(l),l.blockedOn===null&&Rl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],c=a[ct]||null;if(typeof u=="function")c||Rd(l);else if(c){var r=null;if(u&&u.hasAttribute("formAction")){if(a=u,c=u[ct]||null)r=c.formAction;else if(gs(a)!==null)continue}else r=c.action;typeof r=="function"?l[n+1]=r:(l.splice(n,3),n-=3),Rd(l)}}}function qd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return a=c})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!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 n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function ps(e){this._internalRoot=e}Pu.prototype.render=ps.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,n=Nt();_d(l,n,e,t,null,null)},Pu.prototype.unmount=ps.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_d(e.current,2,null,e,null,null),Uu(),t[ln]=null}};function Pu(e){this._internalRoot=e}Pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qs();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Rl.length&&t!==0&&t<Rl[l].priority;l++);Rl.splice(l,0,e),l===0&&Cd(e)}};var Hd=o.version;if(Hd!=="19.2.4")throw Error(f(527,Hd,"19.2.4"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=g(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var z0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{Xn=ei.inject(z0),gt=ei}catch{}}return qa.createRoot=function(e,t){if(!h(e))throw Error(f(299));var l=!1,n="",a=Xr,u=Qr,c=Zr;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Td(e,1,!1,null,null,l,n,null,a,u,c,qd),e[ln]=t.current,Ic(e),new ps(t)},qa.hydrateRoot=function(e,t,l){if(!h(e))throw Error(f(299));var n=!1,a="",u=Xr,c=Qr,r=Zr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=Td(e,1,!0,t,l??null,n,a,m,u,c,r,qd),t.context=Md(null),l=t.current,n=Nt(),n=ci(n),a=vl(n),a.callback=null,yl(l,a,n),l=n,t.current.lanes=l,Zn(t,l),Zt(t),e[ln]=t.current,Ic(e),new Pu(t)},qa.version="19.2.4",qa}var kd;function L0(){if(kd)return ys.exports;kd=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(),ys.exports=w0(),ys.exports}var X0=L0();const tn="/dashboard";function Kd(){const s=window.location.pathname;return s===tn||s===tn+"/"?"/":s.startsWith(tn+"/")?s.slice(tn.length):s||"/"}function Jd(s){return s==="/"||s===""?tn+"/":tn+(s.startsWith("/")?s:"/"+s)}typeof document<"u"&&!window.__dashboardRouterInstalled&&(window.__dashboardRouterInstalled=!0,document.addEventListener("click",s=>{var f,h;if(s.defaultPrevented||s.button!==0||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return;const o=(h=(f=s.target)==null?void 0:f.closest)==null?void 0:h.call(f,"a");if(!o)return;const d=o.getAttribute("href");d&&(o.hasAttribute("target")||o.hasAttribute("download")||d.startsWith(tn)&&(s.preventDefault(),d!==window.location.pathname+window.location.search&&window.history.pushState({},"",d),window.dispatchEvent(new Event("dashboard:navigate"))))}),window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("dashboard:navigate"))}));function am(){const[s,o]=K.useState(Kd());return K.useEffect(()=>{const d=()=>o(Kd());return window.addEventListener("popstate",d),window.addEventListener("dashboard:navigate",d),()=>{window.removeEventListener("popstate",d),window.removeEventListener("dashboard:navigate",d)}},[]),s}function Q0({onLogin:s,error:o}){const[d,f]=K.useState(""),h=S=>{S.preventDefault(),d.trim()&&s(d.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:h,children:[i.jsx("input",{type:"password",value:d,onChange:S=>f(S.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 it=null,ti=3e3,Ts=null;const Os=new Set;function um(){if((it==null?void 0:it.readyState)===WebSocket.OPEN||(it==null?void 0:it.readyState)===WebSocket.CONNECTING)return;const s=location.protocol==="https:"?"wss:":"ws:";it=new WebSocket(`${s}//${location.host}/dashboard/ws`),it.onopen=()=>{ti=3e3},it.onmessage=o=>{try{const d=JSON.parse(o.data);Os.forEach(f=>f(d))}catch{}},it.onclose=()=>{it=null,Ts&&clearTimeout(Ts),Ts=setTimeout(()=>{ti=Math.min(ti*1.5,3e4),um()},ti)},it.onerror=()=>{}}function im(s){return Os.add(s),()=>Os.delete(s)}function Z0(){return(it==null?void 0:it.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 $d(){const[s,o]=K.useState(!1),d=am();return K.useEffect(()=>{const f=setInterval(()=>{o(Z0()===WebSocket.OPEN)},2e3);return()=>clearInterval(f)},[]),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:Jd("/"),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(f=>{const h=f.match(d);return i.jsx("a",{href:Jd(f.to),className:`rounded-md px-3.5 py-1.5 font-mono text-[13px] transition ${h?"bg-primary/10 font-semibold text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`,children:f.label},f.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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");o=o.replace(/```(\w*)\n?([\s\S]*?)```/g,(S,y,A)=>`<pre class="md-code-block"><code>${A.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 d=o.split(`
50
50
  `),f=[];let h=!1;for(let S=0;S<d.length;S++){const y=d[S],A=y.match(/^###\s+(.+)$/),v=y.match(/^##\s+(.+)$/),g=y.match(/^#\s+(.+)$/);if(A){h&&(f.push("</ul>"),h=!1),f.push(`<h3 class="md-h3">${A[1]}</h3>`);continue}if(v){h&&(f.push("</ul>"),h=!1),f.push(`<h2 class="md-h2">${v[1]}</h2>`);continue}if(g){h&&(f.push("</ul>"),h=!1),f.push(`<h1 class="md-h1">${g[1]}</h1>`);continue}const C=y.match(/^(\s*)[*-]\s+(.+)$/);if(C){h||(f.push('<ul class="md-list">'),h=!0),f.push(`<li>${C[2]}</li>`);continue}if(y.trim()===""){h&&(f.push("</ul>"),h=!1),f.push("");continue}h&&(f.push("</ul>"),h=!1),f.push(y)}return h&&f.push("</ul>"),f.join(`
51
51
  `)}function ni(s){let o=s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");return o=o.replace(/^\[(FINDING|SUGGESTION|INSIGHT)\]\s*/i,""),o=o.replace(/&lt;agent_finding[^&]*&gt;/g,""),o=o.replace(/&lt;\/agent_finding&gt;/g,""),o=o.replace(/&lt;cite\s+tag=&quot;file&quot;&gt;([^&]+)&lt;\/cite&gt;/g,'<code class="cite-file">$1</code>'),o=o.replace(/&lt;cite\s+tag=&quot;fn&quot;&gt;([^&]+)&lt;\/cite&gt;/g,'<code class="cite-fn">$1</code>'),o=o.replace(/&lt;fn&gt;([^&]+)&lt;\/fn&gt;/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 Rt(s){const o=Date.now(),d=typeof s=="string"?new Date(s).getTime():s,f=Math.max(0,Math.floor((o-d)/1e3));return f<60?"just now":f<3600?Math.floor(f/60)+"m ago":f<86400?Math.floor(f/3600)+"h ago":Math.floor(f/86400)+"d ago"}function K0(s){if(!s)return"—";const o=Math.round(s/1e3);return o<60?o+"s":Math.floor(o/60)+"m "+o%60+"s"}function Cs(s){const o=s.split("-").filter(Boolean);return o.length>=2?(o[0][0]+o[1][0]).toUpperCase():(o[0]||s).slice(0,2).toUpperCase()}const Wd=["#8b5cf6","#06b6d4","#f97316","#34d399","#f43f5e","#fbbf24","#60a5fa","#e879f9"];function Ha(s){let o=0;for(let d=0;d<s.length;d++)o=o*31+s.charCodeAt(d)>>>0;return Wd[o%Wd.length]}function J0(s){return s<1e3?`${s}ms`:s<6e4?`${(s/1e3).toFixed(1)}s`:`${(s/6e4).toFixed(1)}m`}function li({value:s,unit:o,label:d,valueClass:f,pulse:h}){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:[h&&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 ${f}`,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:d})]})}function $0({overview:s,activeTasks:o}){const d=s.relayCount+s.nativeCount,f=s.tasksCompleted+s.tasksFailed>0?Math.round(s.tasksCompleted/(s.tasksCompleted+s.tasksFailed)*100):100,h=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(li,{value:s.agentsOnline,unit:`/${d}`,label:"Agents Online",valueClass:"text-confirmed"}),i.jsx(li,{value:o,label:"Active Tasks",valueClass:o>0?"text-unverified":"text-muted-foreground",pulse:o>0}),i.jsx(li,{value:s.consensusRuns,label:"Consensus",valueClass:"text-foreground"}),i.jsx(li,{value:`${h}%`,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 ${f>=95?"text-confirmed":f>=80?"text-unverified":"text-destructive"}`,children:[f,"%"]})]})]}),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 ",Rt(s.lastConsensusTimestamp)]})]})}function W0({hourly:s}){const o=s.length===12?s:new Array(12).fill(0),d=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((f,h)=>{const S=11-h,y=f/d*100,A=h===11,v=S===0?"last hour":`${S}h ago`;return i.jsx("div",{className:`relative flex-1 cursor-pointer rounded-sm transition-opacity hover:opacity-100 ${A?"bg-chart opacity-90":"bg-chart opacity-40"}`,style:{height:`${Math.max(8,y)}%`},"data-tooltip":`${v}
52
52
  ${f} task${f===1?"":"s"}`,"data-tooltip-pos":"bottom"},h)})}),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(d=>d.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((d,f)=>{var S;const h=(S=d.lastTask)!=null&&S.timestamp?Rt(d.lastTask.timestamp):"";return i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(d.id)}`,className:`block px-3.5 py-3 transition hover:bg-destructive/[0.03] ${f>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:d.id})]}),i.jsxs("div",{className:"flex items-center justify-between pl-4 font-mono text-[10px] text-muted-foreground",children:[i.jsxs("span",{children:[d.scores.consecutiveFailures," consecutive fails"]}),h&&i.jsx("span",{className:"text-muted-foreground/50",children:h})]})]},d.id)})})]})}const Rs="/dashboard/api";async function Yt(s,o){const d=await fetch(`${Rs}/${s}`,{credentials:"include",...o});if(d.status===401)throw new Error("unauthorized");if(!d.ok)throw new Error(`API error: ${d.status}`);return d.json()}async function I0(s){return(await fetch(`${Rs}/auth`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:s})})).ok}async function P0(){try{return(await fetch(`${Rs}/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,d]=K.useState([]),[,f]=K.useState(0);K.useEffect(()=>{let A=!1;const v=async()=>{var C;try{const q=await Yt("active-tasks");A||(d(q.tasks||[]),s==null||s(((C=q.tasks)==null?void 0:C.length)||0))}catch{}};v();const g=setInterval(v,5e3);return()=>{A=!0,clearInterval(g)}},[s]),K.useEffect(()=>{if(o.length===0)return;const A=setInterval(()=>f(v=>v+1),1e3);return()=>clearInterval(A)},[o.length]);const h=Date.now(),S=o.filter(A=>h-new Date(A.startedAt).getTime()<eg),y=o.length-S.length;return S.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:[S.length," active"]}),y>0&&i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:["· ",y," stale"]})]}),i.jsx("div",{className:"max-h-40 space-y-1 overflow-y-auto",children:S.map(A=>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:A.agentId}),i.jsx("span",{className:"min-w-0 truncate text-[11px] text-muted-foreground",children:A.task}),i.jsx("span",{className:"font-mono text-[11px] text-muted-foreground whitespace-nowrap tabular-nums",children:tg(A.startedAt)})]},A.taskId))})]})}function Ba({title:s,hint:o,compact:d=!1}){return i.jsxs("div",{className:`text-center ${d?"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 Ms=5,_s={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"}},Fd=[{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"}],ng=[{key:"all",label:"All",cls:"text-muted-foreground border-border/40 hover:border-border/60",activeCls:"text-foreground bg-muted border-border"},{key:"critical",label:"Critical",cls:"text-red-400/50 border-red-400/20 hover:border-red-400/40",activeCls:"text-red-400 bg-red-400/10 border-red-400/40"},{key:"high",label:"High",cls:"text-orange-400/50 border-orange-400/20 hover:border-orange-400/40",activeCls:"text-orange-400 bg-orange-400/10 border-orange-400/40"},{key:"medium",label:"Medium",cls:"text-yellow-400/50 border-yellow-400/20 hover:border-yellow-400/40",activeCls:"text-yellow-400 bg-yellow-400/10 border-yellow-400/40"},{key:"low",label:"Low",cls:"text-muted-foreground/50 border-border/40 hover:border-border/60",activeCls:"text-muted-foreground bg-muted/50 border-border"}],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"},ug="[&_.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 ig({f:s,reviewInfo:o}){const d=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",f=s.severity&&ag[s.severity]||"",h=s.findingType==="suggestion"?"💡 SUGGESTION":s.findingType==="insight"?"INSIGHT":null,S=s.findingType==="suggestion"?"text-blue-400 bg-blue-500/10":s.findingType==="insight"?"text-zinc-400 bg-zinc-500/10":"",y=s.finding.match(/<cite\s+tag="file">([^<]+)<\/cite>/),A=y?y[1]:null;return i.jsxs("div",{className:"rounded-md border border-border/40 hover:border-border/60 transition-colors bg-card/30 px-4 py-3.5",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[i.jsx("span",{className:`shrink-0 rounded border px-2 py-1 font-mono text-[10px] font-bold ${d}`,children:s.tag.toUpperCase()}),s.severity&&i.jsx("span",{className:`shrink-0 rounded border px-2 py-1 font-mono text-[10px] font-bold ${f}`,children:s.severity.toUpperCase()}),h&&i.jsx("span",{className:`shrink-0 rounded border px-2 py-1 font-mono text-[10px] font-bold ${S}`,children:h}),A&&i.jsx("span",{className:"bg-blue-500/10 px-2 py-1 font-mono text-[10px] text-blue-400 border border-blue-500/15 rounded",children:A}),i.jsx("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground/40",children:s.originalAgentId}),s.confirmedBy&&s.confirmedBy.length>0&&(()=>{const v=[...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
53
  ${v.join(", ")}`,"data-tooltip-pos":"left",children:["+",v.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(v=>v.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((v,g)=>i.jsxs("div",{className:"text-[11px]",children:[i.jsx("span",{className:"font-mono font-bold text-disputed/70",children:v.agentId}),i.jsxs("span",{className:"text-muted-foreground/60",children:[" — ",v.reason||v.evidence||"No reason given"]})]},g))}),i.jsx("div",{className:`font-inter text-xs leading-relaxed text-muted-foreground ${ug}`,dangerouslySetInnerHTML:{__html:ni(s.finding)}}),o&&i.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5",children:[o.reviewers.map(v=>i.jsx("span",{title:v,className:"inline-flex h-4 w-4 items-center justify-center rounded-full font-mono text-[7px] font-bold text-background opacity-70",style:{backgroundColor:Ha(v)},children:Cs(v)},v)),i.jsxs("span",{className:`rounded px-1.5 py-0.5 font-mono text-[9px] font-bold ${o.assigned>=o.targetK?"text-confirmed/70 bg-confirmed/5":"text-unverified/70 bg-unverified/5"}`,children:[o.assigned>=o.targetK?"✓":"⚠"," ",o.assigned,"/",o.targetK]})]})]})}function cm({consensus:s,reports:o,showAll:d=!1,hideHeader:f=!1}){const h=d?s.runs:s.runs.slice(0,Ms);!d&&s.runs.length>Ms;const[S,y]=K.useState(null),[A,v]=K.useState("all"),[g,C]=K.useState("all"),[q,Q]=K.useState(1),[le,fe]=K.useState([]),[he,Z]=K.useState(0),[W,ge]=K.useState(!1);K.useEffect(()=>{o!=null&&o.reports&&(fe(o.reports),Z(o.totalReports??o.reports.length),Q(1))},[o]),K.useEffect(()=>{if(!d)return;let G=!1;return(async()=>{var w;try{const z=await Yt("consensus-reports?page=1&pageSize=200");if(G)return;fe(z.reports||[]),Z(z.totalReports??(((w=z.reports)==null?void 0:w.length)||0)),Q(1)}catch{}})(),()=>{G=!0}},[d]);const L=le.slice().sort((G,w)=>w.timestamp.localeCompare(G.timestamp)),ne=10,[D,ae]=K.useState(0),B=Math.max(1,Math.ceil(L.length/ne)),J=Math.min(D,B-1),ce=d?L.slice(J*ne,(J+1)*ne):L.slice(0,Ms),ie=G=>{const w=new Date,z=new Date(G),P=T=>new Date(T.getFullYear(),T.getMonth(),T.getDate()).getTime(),I=Math.round((P(w)-P(z))/864e5);return I<=0?"Today":I===1?"Yesterday":I<7?`${I} days ago`:I<30?`${Math.floor(I/7)} weeks ago`:z.toISOString().slice(0,10)};return i.jsxs("section",{children:[!f&&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})]}),!d&&i.jsx("a",{href:"/dashboard/debates",className:"font-mono text-xs text-muted-foreground transition hover:text-primary",children:"view all"})]}),ce.length>0?i.jsxs("div",{className:"space-y-2",children:[ce.map((G,w)=>{const z=w>0?ce[w-1]:null,P=d?ie(G.timestamp):null,I=d&&z?ie(z.timestamp):null,T=d&&P!==I,H={};if(G.crossReviewAssignments||G.crossReviewCoverage){const ee={};if(G.crossReviewAssignments)for(const[Ve,tt]of Object.entries(G.crossReviewAssignments))for(const jt of tt)(ee[jt]??(ee[jt]=[])).push(Ve);if(G.crossReviewCoverage)for(const Ve of G.crossReviewCoverage)H[Ve.findingId]={reviewers:ee[Ve.findingId]||[],assigned:Ve.assigned,targetK:Ve.targetK};else for(const[Ve,tt]of Object.entries(ee))H[Ve]={reviewers:tt,assigned:tt.length,targetK:tt.length}}const V=[...G.confirmed,...G.disputed,...G.unverified,...G.unique,...G.insights||[]],X=A==="all"?V:A==="insight"?V.filter(ee=>ee.findingType==="insight"||ee.findingType==="suggestion"):V.filter(ee=>ee.tag===A),re=g==="all"?X:X.filter(ee=>ee.severity===g),x=S===G.id,_=V.length||1,Y=G.confirmed.length,k=G.disputed.length,se=G.unverified.length,xe=G.unique.length,Ne=(G.insights||[]).length,$e=(()=>{if(_<=1)return"border-l-border/40";const ee=Y/_,Ve=k/_;return ee>=.5?"border-l-confirmed/60":Ve>=.4?"border-l-disputed/60":"border-l-unverified/50"})(),qe=[{count:Y,textCls:"text-confirmed",label:"confirmed"},{count:k,textCls:"text-disputed",label:"disputed"},{count:se,textCls:"text-unverified",label:"unverified"},{count:xe,textCls:"text-unique",label:"unique"},{count:Ne,textCls:"text-zinc-400",label:"insights"}].filter(ee=>ee.count>0),Zt=[...new Set(V.map(ee=>ee.originalAgentId).filter(Boolean))],ql=Zt.slice(0,5);return i.jsxs("div",{children:[T&&i.jsxs("div",{className:`mb-2 flex items-center gap-3 ${w>0?"mt-4":""}`,children:[i.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:P}),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
- ${$e}
56
- ${x?"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","aria-expanded":x,onClick:()=>{const ee=!x;y(ee?G.id:null),ee&&(v("all"),C("all"))},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:V.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:[G.rounds,"r"]}),ql.length>0&&i.jsxs("div",{className:"flex items-center gap-1 ml-1",children:[ql.map(ee=>i.jsx("span",{title:ee,className:"inline-flex h-4 w-4 items-center justify-center rounded-full font-mono text-[8px] font-bold text-background",style:{backgroundColor:Ha(ee)},children:Cs(ee)},ee)),Zt.length>5&&i.jsxs("span",{className:"font-mono text-[9px] text-muted-foreground/40",children:["+",Zt.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:G.id,children:G.id.slice(0,8)}),i.jsx("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground/50 shrink-0",children:Rt(G.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex items-center gap-3",children:qe.map(ee=>i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${ee.textCls}`,children:[ee.count," ",ee.label]},ee.label))}),G.topic&&i.jsxs("div",{className:"mt-1.5 flex items-start gap-2",children:[i.jsx("span",{className:"shrink-0 rounded border border-border/30 bg-muted/30 px-1.5 py-0.5 font-mono text-[9px] font-bold uppercase tracking-wider text-muted-foreground/50",children:"Topic"}),i.jsx("span",{className:"font-inter text-[11px] leading-relaxed text-muted-foreground/70",children:G.topic})]})]}),i.jsx("span",{className:`mt-1 shrink-0 font-mono text-[10px] text-muted-foreground/40 transition-transform duration-150 ${x?"rotate-90 text-primary/60":"group-hover:text-muted-foreground/60"}`,children:"▸"})]}),x&&i.jsxs("div",{className:"border-t border-border/20 px-4 pb-4 pt-3",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:"Type:"}),Fd.map(ee=>i.jsx("button",{onClick:()=>v(ee.key),className:`rounded-md border px-3 py-1.5 font-mono text-[10px] font-medium transition ${A===ee.key?ee.activeCls:ee.cls}`,children:ee.label},ee.key))]}),i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:"Severity:"}),ng.map(ee=>i.jsx("button",{onClick:()=>C(ee.key),className:`rounded-md border px-3 py-1.5 font-mono text-[10px] font-medium transition ${g===ee.key?ee.activeCls:ee.cls}`,children:ee.label},ee.key))]}),(G.crossReviewAssignments||G.crossReviewCoverage)&&(()=>{const ee=G.crossReviewAssignments||{},Ve=Object.entries(ee),tt=G.crossReviewCoverage||[],jt=tt.length,tn=tt.filter(Gt=>Gt.assigned<Gt.targetK);return i.jsxs("details",{className:"mb-3 rounded-md border border-border/30 bg-card/30",children:[i.jsxs("summary",{className:"flex cursor-pointer items-center gap-2 px-3 py-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground select-none",children:["Cross-Review Assignments",G.partialReview&&i.jsx("span",{className:"rounded border border-unverified/15 bg-unverified/5 px-1.5 py-0.5 font-mono text-[9px] font-bold normal-case tracking-normal text-unverified",children:"partial"}),i.jsxs("span",{className:"ml-auto font-mono text-[9px] font-normal normal-case tracking-normal text-muted-foreground/50",children:[Ve.length," reviewers · ",jt," findings"]})]}),i.jsxs("div",{className:"border-t border-border/20 px-3 pb-3 pt-2 space-y-2",children:[Ve.map(([Gt,Ln])=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{title:Gt,className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full font-mono text-[8px] font-bold text-background",style:{backgroundColor:Ha(Gt)},children:Cs(Gt)}),i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground",children:Gt}),i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/40",children:["(",Ln.length,")"]}),i.jsx("div",{className:"flex flex-wrap gap-1 ml-1",children:Ln.map(ol=>i.jsx("span",{className:"rounded bg-muted/50 px-1.5 py-0.5 font-mono text-[9px] text-muted-foreground",children:ol.length>12?ol.slice(0,12)+"…":ol},ol))})]},Gt)),jt>0&&i.jsx("div",{className:"mt-1 pt-1.5 border-t border-border/15",children:tn.length>0?i.jsxs("span",{className:"rounded border border-unverified/15 bg-unverified/5 px-2 py-1 font-mono text-[10px] font-semibold text-unverified",children:["⚠ ",tn.length," of ",jt," findings under-reviewed"]}):i.jsxs("span",{className:"font-mono text-[10px] font-semibold text-confirmed/60",children:["✓ All ",jt," findings fully covered"]})})]})]})})(),i.jsx("div",{className:"space-y-3",children:re.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):re.map((ee,Ve)=>i.jsx(ig,{f:ee,reviewInfo:ee.id?H[ee.id]:void 0},Ve))})]})]})]},G.id)}),d&&B>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:()=>ae(G=>Math.max(0,G-1)),disabled:J===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 ",J+1," of ",B]}),i.jsx("button",{onClick:()=>ae(G=>Math.min(B-1,G+1)),disabled:J>=B-1,className:"rounded-sm border border-border/40 bg-card px-3 py-1 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}):h.length===0?i.jsx(Ba,{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:h.map((G,w)=>{const z=G.counts,P=(z.agreement||0)+(z.disagreement||0)+(z.hallucination||0)+(z.unverified||0)+(z.unique||0)+(z.new||0),I=P||1,T=S===G.taskId,H=[{key:"confirmed",count:z.agreement||0,color:"bg-confirmed",text:"text-confirmed",label:"confirmed"},{key:"disputed",count:(z.disagreement||0)+(z.hallucination||0),color:"bg-disputed",text:"text-disputed",label:"disputed"},{key:"unverified",count:z.unverified||0,color:"bg-unverified",text:"text-unverified",label:"unverified"},{key:"unique",count:(z.unique||0)+(z.new||0),color:"bg-unique",text:"text-unique",label:"unique"}],V=G.signals.filter(X=>{if(X.signal==="signal_retracted")return!1;if(A==="all")return!!_s[X.signal];const re=_s[X.signal];return re&&re.filter===A});return i.jsxs("div",{className:`rounded-md border bg-card transition ${T?"border-primary/25":"border-border"}`,children:[i.jsxs("button",{"aria-expanded":T,onClick:()=>{const X=!T;y(X?G.taskId:null),X&&(v("all"),C("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 text-muted-foreground transition ${T?"text-primary":""}`,children:T?"▾":"▸"}),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:G.taskId}),i.jsxs("span",{className:"font-mono text-sm font-semibold text-foreground",children:[P," findings"]}),i.jsxs("div",{className:"flex gap-1.5",children:[G.agents.slice(0,4).map(X=>i.jsx("span",{className:"rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:X.split("-").map(re=>re[0]).join("").toUpperCase().slice(0,2)},X)),G.agents.length>4&&i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground",children:["+",G.agents.length-4]})]})]}),i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Rt(G.timestamp)})]}),i.jsx("div",{className:"mt-2 flex gap-2",children:H.map(X=>X.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${X.text}`,children:[X.count," ",X.label]},X.key))}),i.jsx("div",{className:"mt-2 flex h-1.5 overflow-hidden rounded-sm",children:H.map(X=>X.count>0&&i.jsx("div",{className:`${X.color} transition-all`,style:{width:`${X.count/I*100}%`}},X.key))})]})]}),T&&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:Fd.map(X=>i.jsx("button",{onClick:()=>v(X.key),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${A===X.key?X.activeCls:X.cls} hover:opacity-80`,children:X.label},X.key))}),V.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:V.map((X,re)=>{const x=_s[X.signal];return x?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 ${x.cls}`,children:x.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:ni(X.evidence||"")}})}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[X.agentId,X.counterpartId?` + ${X.counterpartId}`:""]})]})]},re):null})})]})]},G.taskId+w)})})]})}function cg(s){let o=0;for(let d=0;d<s.length;d++)o=(o<<5)-o+s.charCodeAt(d)|0;return Math.abs(o)}class sg{constructor(o){Je(this,"s");this.s=o}next(){return this.s=this.s*1103515245+12345&2147483647,this.s%1e4/1e4}range(o,d){return o+this.next()*(d-o)}}function at(s,o){const d=parseInt(s.slice(1,3),16),f=parseInt(s.slice(3,5),16),h=parseInt(s.slice(5,7),16);return`rgba(${d},${f},${h},${Math.max(0,Math.min(1,o))})`}function og(s){const o=Math.max(0,s);return Math.min(1.4,Math.pow(o/2e3,.55))}class rg{constructor(o,d,f,h,S,y,A=.5){Je(this,"ctx");Je(this,"size");Je(this,"accuracy");Je(this,"uniqueness");Je(this,"impact");Je(this,"colorHex");Je(this,"time",0);Je(this,"variant");Je(this,"scale");Je(this,"exp");Je(this,"particles",[]);Je(this,"baseRotation");Je(this,"armSeeds");Je(this,"binaryCenters");Je(this,"jetAxis");Je(this,"tailAngle");const v=o.getContext("2d");if(!v)throw new Error("Canvas 2D context unavailable");this.ctx=v,this.size=o.width/2,this.accuracy=Math.max(0,Math.min(1,h)),this.uniqueness=Math.max(0,Math.min(1,S)),this.impact=Math.max(0,Math.min(1,A)),this.colorHex=y;const g=cg(d);this.variant=g%12;const C=new sg(g),q=og(f);this.exp=q,this.scale=.2+q*.95;const Q=Math.max(3,Math.round(4+q*180));this._buildVariant(C,Q),this.baseRotation=C.next()*Math.PI*2}_buildVariant(o,d){const f=this.variant;if(f===0){this.armSeeds=[];for(let S=0;S<2;S++)this.armSeeds.push(o.next()*Math.PI*2);for(let S=0;S<d;S++){const y=S%2,A=o.next(),v=this.armSeeds[y]+A*Math.PI*2.4,g=o.range(-.04,.04)*Math.PI*2,C=v+g,q=(.08+A*.38)*this.size*this.scale;this.particles.push(this._mkParticle(o,q,C,1,1))}}else if(f===1)for(let h=0;h<d;h++){const S=o.range(.34,.42)*this.size*this.scale,y=o.next()*Math.PI*2;this.particles.push(this._mkParticle(o,S,y,1,1))}else if(f===2){const h=[.16,.28,.42];for(let S=0;S<d;S++){const y=S%3,A=(h[y]+o.range(-.015,.015))*this.size*this.scale,v=o.next()*Math.PI*2;this.particles.push(this._mkParticle(o,A,v,1,1))}}else if(f===3){const h=.18*this.size*this.scale;this.binaryCenters=[{x:-h,y:0},{x:h,y:0}];for(let S=0;S<d;S++){const y=S%2,A=o.range(.04,.22)*this.size*this.scale,v=o.next()*Math.PI*2,g=this._mkParticle(o,A,v,1,1);g.binaryCore=y,g.angularVelocity*=y===0?1:-1,this.particles.push(g)}}else if(f===4)for(let h=0;h<d;h++){const S=o.range(.05,.32)*this.size*this.scale,y=o.next()*Math.PI*2,A=o.range(.7,1.3),v=o.range(.7,1.3),g=this._mkParticle(o,S,y,A,v);g.orbitTilt=o.range(0,Math.PI),this.particles.push(g)}else if(f===5){this.jetAxis=o.next()*Math.PI*2;const h=Math.floor(d*.7),S=d-h;for(let y=0;y<h;y++){const A=y%2===0?1:-1,v=o.next(),g=o.range(-.18,.18),C=this._mkParticle(o,v*.44*this.size*this.scale,0,1,1);C.jetSide=A,C.jetProgress=v,C.jetSpread=g,C.jetSpeed=o.range(.15,.35)*.001,C.size=o.range(.6,1.4),this.particles.push(C)}for(let y=0;y<S;y++){const A=o.range(.35,.42)*this.size*this.scale,v=o.next()*Math.PI*2,g=this._mkParticle(o,A,v,1,1);g.isDisk=!0,g.brightness*=.35,this.particles.push(g)}}else if(f===6)for(let h=0;h<d;h++){const S=o.next()*Math.PI*2,y=o.range(.05,.45)*this.size*this.scale,A=this._mkParticle(o,y,S,1,1);A.isNebula=!0,A.driftAngle=o.next()*Math.PI*2,A.driftSpeed=o.range(6e-4,.0014),A.driftPhase=o.next()*Math.PI*2,A.size=o.range(.8,2.2),A.brightness*=.6,this.particles.push(A)}else if(f===7){this.tailAngle=o.next()*Math.PI*2;const h=.1*this.size*this.scale,S=Math.floor(d*.3);for(let A=0;A<S;A++){const v=o.range(0,h),g=o.next()*Math.PI*2,C=this._mkParticle(o,v,g,1,1);C.size=o.range(.8,1.8),this.particles.push(C)}const y=d-S;for(let A=0;A<y;A++){const v=o.next(),g=h+v*.26*this.size*this.scale,C=(1-v*.5)*o.range(-.05,.05)*this.size*this.scale,q=this._mkParticle(o,0,0,1,1);q.isComet=!0,q.cometTailDist=g,q.cometPerp=C,q.cometT=v,q.brightness*=1-v*.6,q.size=(1-v*.5)*o.range(.6,1.2),this.particles.push(q)}}else if(f===8)for(let h=0;h<d;h++){const S=h%3,y=o.range(.3,.42)*this.size*this.scale,A=o.next()*Math.PI*2,v=this._mkParticle(o,y,A,1,1);v.gyroPlane=S,v.gyroAxis=S===0?"z":S===1?"x":"y",this.particles.push(v)}else if(f===9)for(let h=0;h<d;h++){const S=o.range(.06,.42)*this.size*this.scale,A=S/(.42*this.size*this.scale)*4*Math.PI+o.range(-.2,.2),v=this._mkParticle(o,S,A,1,1);v.isMaelstrom=!0,this.particles.push(v)}else if(f===10)for(let h=0;h<d;h++){const S=h/d,y=o.range(.35,.4)*this.size*this.scale,A=S*Math.PI*2+o.range(-.03,.03),v=this._mkParticle(o,y,A,1,1);v.ouroT=S,this.particles.push(v)}else for(let h=0;h<d;h++){const S=h%2,y=o.next(),A=this._mkParticle(o,0,0,1,1);A.isHelix=!0,A.helixStrand=S,A.helixT=y,A.helixSpeed=o.range(.3,.6)*.001,this.particles.push(A)}}_mkParticle(o,d,f,h,S){const y=8e-4+(.42*this.size-d)*4e-5,A=o.next()*Math.PI*2,v=o.range(.05,.3)*this.size;return{baseRadius:d,angle:f,angularVelocity:y*(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:h,ellipY:S,orbitTilt:0,binaryCore:0,chaosX:Math.cos(A)*v,chaosY:Math.sin(A)*v,chaosDriftPhase:o.next()*Math.PI*2,chaosDriftSpeed:o.range(3e-4,8e-4)}}update(o){this.time+=o}draw(){const{ctx:o,size:d,time:f,accuracy:h,uniqueness:S,impact:y,colorHex:A,variant:v}=this,g=d/2,C=d/2;o.clearRect(0,0,d,d);const q=.4+this.exp*.6,Q=h*q,le=S*q,fe=y*q,he=.2+Q*.8,Z=.3+fe*1.9,W=le,ge=Math.min(1,Math.max(0,(this.exp-.15)*1.8)),L=1-ge,ne=o.createRadialGradient(g,C,0,g,C,d*.45);if(ne.addColorStop(0,at(A,.05*he)),ne.addColorStop(.4,at(A,.015)),ne.addColorStop(1,"transparent"),o.fillStyle=ne,o.fillRect(0,0,d,d),v===0&&this.armSeeds){const D=f*5e-4*Z;for(const ae of this.armSeeds){const B=ae+D;o.beginPath();for(let J=0;J<1;J+=.02){const ce=B+J*Math.PI*2.4,ie=(.08+J*.38)*d*this.scale,G=g+Math.cos(ce)*ie,w=C+Math.sin(ce)*ie;J===0?o.moveTo(G,w):o.lineTo(G,w)}o.strokeStyle=at(A,.12*he),o.lineWidth=1,o.stroke()}}for(const D of this.particles){const ae=Math.sin(f*D.wobbleSpeed*.001+D.wobblePhase)*1.2,B=D.baseRadius+ae,J=D.angle+f*D.angularVelocity*Z;let ce,ie;if(v===3&&this.binaryCenters){const w=this.binaryCenters[D.binaryCore];ce=g+w.x+Math.cos(J)*B,ie=C+w.y+Math.sin(J)*B}else if(v===4){const w=Math.cos(D.orbitTilt),z=Math.sin(D.orbitTilt),P=Math.cos(J)*B*D.ellipX,I=Math.sin(J)*B*D.ellipY;ce=g+P*w-I*z,ie=C+P*z+I*w}else if(v===5&&D.jetSide!==void 0&&!D.isDisk&&this.jetAxis!==void 0){const w=(D.jetProgress+f*D.jetSpeed*Z)%1,z=w*.44*d*this.scale,P=this.jetAxis+Math.PI/2;ce=g+Math.cos(this.jetAxis)*z*D.jetSide+Math.cos(P)*D.jetSpread*z,ie=C+Math.sin(this.jetAxis)*z*D.jetSide+Math.sin(P)*D.jetSpread*z,D._fadeMul=Math.sin(w*Math.PI)*.9+.1}else if(v===6&&D.isNebula){const w=f*D.driftSpeed*Z,z=Math.sin(w+D.driftPhase)*2;ce=g+Math.cos(D.angle+w*.3)*B+Math.cos(D.driftAngle)*z,ie=C+Math.sin(D.angle+w*.3)*B+Math.sin(D.driftAngle)*z}else if(v===7&&D.isComet&&this.tailAngle!==void 0){const w=(D.cometT+f*3e-4*Z)%1,z=D.cometTailDist+w*.06*d*this.scale,P=this.tailAngle+Math.PI/2;ce=g+Math.cos(this.tailAngle)*z+Math.cos(P)*D.cometPerp,ie=C+Math.sin(this.tailAngle)*z+Math.sin(P)*D.cometPerp}else if(v===8&&D.gyroAxis){const w=f*1e-4*Z;D.gyroAxis==="z"?(ce=g+Math.cos(J)*B,ie=C+Math.sin(J)*B*.3):D.gyroAxis==="x"?(ce=g+Math.cos(J)*B*.3+Math.sin(w)*B*.1,ie=C+Math.sin(J)*B):(ce=g+Math.sin(J+w)*B*.6,ie=C+Math.cos(J+w)*B*.8)}else if(v===9){const w=(f*5e-4*Z+D.wobblePhase)%1,z=B*(1-w*.85);ce=g+Math.cos(J)*z,ie=C+Math.sin(J)*z,D._fadeMul=1-w}else if(v===10&&D.ouroT!==void 0){const w=(D.ouroT+f*3e-4*Z)%1,z=w*Math.PI*2;ce=g+Math.cos(z)*B,ie=C+Math.sin(z)*B;const P=Math.cos(w*Math.PI*2)*.5+.5;D._fadeMul=.3+P*.9}else if(v===11&&D.helixT!==void 0){const w=(D.helixT+f*D.helixSpeed*Z)%1,z=(w-.5)*.65*d*this.scale,P=D.helixStrand===0?0:Math.PI,I=.15*d*this.scale,T=Math.sin(w*Math.PI*3+P)*I;ce=g+T,ie=C+z,D._fadeMul=.4+(Math.cos(w*Math.PI*3+P)+1)/2*.6}else ce=g+Math.cos(J)*B*D.ellipX,ie=C+Math.sin(J)*B*D.ellipY;if(L>.01){const w=f*D.chaosDriftSpeed,z=Math.cos(w+D.chaosDriftPhase)*2,P=Math.sin(w*1.13+D.chaosDriftPhase)*2,I=g+D.chaosX+z,T=C+D.chaosY+P;ce=I*L+ce*ge,ie=T*L+ie*ge}const G=D._fadeMul!==void 0?D._fadeMul:1;if(v<=4&&ge>.5){const w=2+Math.floor(y*3);for(let z=0;z<w;z++){const P=D.angularVelocity*Z*(z+1)*80,I=J-P;let T,H;if(v===3&&this.binaryCenters){const X=this.binaryCenters[D.binaryCore];T=g+X.x+Math.cos(I)*B,H=C+X.y+Math.sin(I)*B}else if(v===4){const X=Math.cos(D.orbitTilt),re=Math.sin(D.orbitTilt),x=Math.cos(I)*B*D.ellipX,_=Math.sin(I)*B*D.ellipY;T=g+x*X-_*re,H=C+x*re+_*X}else T=g+Math.cos(I)*B*D.ellipX,H=C+Math.sin(I)*B*D.ellipY;const V=(1-z/w)*.3*D.brightness*he*ge;o.beginPath(),o.arc(T,H,D.size*(1-z*.25),0,Math.PI*2),o.fillStyle=at(A,V),o.fill()}}else if(v===6&&D.isNebula){const w=D.size*3,z=o.createRadialGradient(ce,ie,0,ce,ie,w);z.addColorStop(0,at(A,D.brightness*he*.4)),z.addColorStop(1,"transparent"),o.fillStyle=z,o.beginPath(),o.arc(ce,ie,w,0,Math.PI*2),o.fill()}o.beginPath(),o.arc(ce,ie,D.size,0,Math.PI*2),o.fillStyle=at(A,D.brightness*he*G),o.fill()}if(W>.05)for(let ae=0;ae<3;ae++){const B=(f*7e-4*W+ae*.33)%1;if(B>.5)continue;const J=(ae*1.618*Math.PI+f*1e-4)%(Math.PI*2),ce=d*.5*(1-B*1.6);if(ce<3)continue;const ie=g+Math.cos(J)*ce,G=C+Math.sin(J)*ce,w=B<.2?B/.2:1-(B-.2)/.3,z=5+(1-B)*4,P=o.createRadialGradient(ie,G,0,ie,G,z);P.addColorStop(0,at("#ffffff",w*.95)),P.addColorStop(.3,at(A,w*.7)),P.addColorStop(1,"transparent"),o.fillStyle=P,o.beginPath(),o.arc(ie,G,z,0,Math.PI*2),o.fill()}if(v!==3){const D=.9+.1*Math.sin(f*.003),ae=(1+this.exp*9+h*2)*this.scale,B=Math.min(ae*(3+y*2),d*.4),J=o.createRadialGradient(g,C,0,g,C,B);J.addColorStop(0,at("#ffffff",.95*D*he)),J.addColorStop(.2,at(A,.75*D*he)),J.addColorStop(.5,at(A,.2*he)),J.addColorStop(1,"transparent"),o.fillStyle=J,o.beginPath(),o.arc(g,C,B,0,Math.PI*2),o.fill(),o.beginPath(),o.arc(g,C,ae*D,0,Math.PI*2),o.fillStyle=at("#ffffff",.95),o.fill()}else if(this.binaryCenters)for(const D of this.binaryCenters){const ae=g+D.x,B=C+D.y,J=(.8+this.exp*5+h*1.5)*this.scale,ce=Math.min(J*3.5,d*.22),ie=o.createRadialGradient(ae,B,0,ae,B,ce);ie.addColorStop(0,at("#ffffff",.9*he)),ie.addColorStop(.3,at(A,.6*he)),ie.addColorStop(1,"transparent"),o.fillStyle=ie,o.beginPath(),o.arc(ae,B,ce,0,Math.PI*2),o.fill(),o.beginPath(),o.arc(ae,B,J,0,Math.PI*2),o.fillStyle=at("#ffffff",.9),o.fill()}}}function qs({agentId:s,size:o=64,signals:d=0,accuracy:f=.5,uniqueness:h=.5,impact:S=.5}){const y=K.useRef(null),A=K.useRef(null),v=K.useRef(0),g=K.useRef(!0);return K.useEffect(()=>{const C=y.current;if(!C)return;C.width=o*2,C.height=o*2;const q=C.getContext("2d");if(!q)return;q.scale(2,2);const Q=Ha(s),le=new rg(C,s,d,f,h,Q,S);A.current=le,le.draw();const fe=()=>{g.current&&(le.update(16),le.draw()),v.current=requestAnimationFrame(fe)};return v.current=requestAnimationFrame(fe),()=>{cancelAnimationFrame(v.current),A.current=null}},[s,o,d,f,h,S]),K.useEffect(()=>{const C=y.current;if(!C)return;const q=new IntersectionObserver(([Q])=>{g.current=Q.isIntersecting},{threshold:.1});return q.observe(C),()=>q.disconnect()},[]),i.jsx("canvas",{ref:y,"aria-hidden":"true",className:"shrink-0",style:{width:o,height:o,borderRadius:"50%"}})}function Es(s){return`${Math.round(s*100)}%`}function fg(s){return s>=1.2?"good":s>=.8?"mid":"low"}function dg(s){return s>=.7?"good":s>=.4?"mid":"low"}function mg({agent:s}){var A;const o=s.scores,d=(A=s.lastTask)!=null&&A.timestamp?Rt(s.lastTask.timestamp):"",f=fg(o.dispatchWeight),h=f==="good"?"text-confirmed":f==="low"?"text-disputed":"text-foreground",S=dg(o.accuracy),y=S==="good"?"bg-confirmed":S==="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(qs,{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-inter 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 ${h}`,"data-tooltip":`Dispatch weight ${o.dispatchWeight.toFixed(2)}
54
+ ${s.disputedBy.map(v=>v.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((v,g)=>i.jsxs("div",{className:"text-[11px]",children:[i.jsx("span",{className:"font-mono font-bold text-disputed/70",children:v.agentId}),i.jsxs("span",{className:"text-muted-foreground/60",children:[" — ",v.reason||v.evidence||"No reason given"]})]},g))}),i.jsx("div",{className:`font-inter text-xs leading-relaxed text-muted-foreground ${ug}`,dangerouslySetInnerHTML:{__html:ni(s.finding)}}),o&&i.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5",children:[o.reviewers.map(v=>i.jsx("span",{title:v,className:"inline-flex h-4 w-4 items-center justify-center rounded-full font-mono text-[7px] font-bold text-background opacity-70",style:{backgroundColor:Ha(v)},children:Cs(v)},v)),i.jsxs("span",{className:`rounded px-1.5 py-0.5 font-mono text-[9px] font-bold ${o.assigned>=o.targetK?"text-confirmed/70 bg-confirmed/5":"text-unverified/70 bg-unverified/5"}`,children:[o.assigned>=o.targetK?"✓":"⚠"," ",o.assigned,"/",o.targetK]})]})]})}function cm({consensus:s,reports:o,showAll:d=!1,hideHeader:f=!1}){const h=d?s.runs:s.runs.slice(0,Ms);!d&&s.runs.length>Ms;const[S,y]=K.useState(null),[A,v]=K.useState("all"),[g,C]=K.useState("all"),[q,Q]=K.useState(1),[le,fe]=K.useState([]),[he,Z]=K.useState(0),[W,ge]=K.useState(!1);K.useEffect(()=>{o!=null&&o.reports&&(fe(o.reports),Z(o.totalReports??o.reports.length),Q(1))},[o]),K.useEffect(()=>{if(!d)return;let Y=!1;return(async()=>{var w;try{const z=await Yt("consensus-reports?page=1&pageSize=200");if(Y)return;fe(z.reports||[]),Z(z.totalReports??(((w=z.reports)==null?void 0:w.length)||0)),Q(1)}catch{}})(),()=>{Y=!0}},[d]);const L=le.slice().sort((Y,w)=>w.timestamp.localeCompare(Y.timestamp)),ne=10,[D,ae]=K.useState(0),B=Math.max(1,Math.ceil(L.length/ne)),J=Math.min(D,B-1),ce=d?L.slice(J*ne,(J+1)*ne):L.slice(0,Ms),ie=Y=>{const w=new Date,z=new Date(Y),P=T=>new Date(T.getFullYear(),T.getMonth(),T.getDate()).getTime(),I=Math.round((P(w)-P(z))/864e5);return I<=0?"Today":I===1?"Yesterday":I<7?`${I} days ago`:I<30?`${Math.floor(I/7)} weeks ago`:z.toISOString().slice(0,10)};return i.jsxs("section",{children:[!f&&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})]}),!d&&i.jsx("a",{href:"/dashboard/debates",className:"font-mono text-xs text-muted-foreground transition hover:text-primary",children:"view all"})]}),ce.length>0?i.jsxs("div",{className:"space-y-2",children:[ce.map((Y,w)=>{const z=w>0?ce[w-1]:null,P=d?ie(Y.timestamp):null,I=d&&z?ie(z.timestamp):null,T=d&&P!==I,H={};if(Y.crossReviewAssignments||Y.crossReviewCoverage){const ee={};if(Y.crossReviewAssignments)for(const[we,ke]of Object.entries(Y.crossReviewAssignments))for(const lt of ke)(ee[lt]??(ee[lt]=[])).push(we);if(Y.crossReviewCoverage)for(const we of Y.crossReviewCoverage)H[we.findingId]={reviewers:ee[we.findingId]||[],assigned:we.assigned,targetK:we.targetK};else for(const[we,ke]of Object.entries(ee))H[we]={reviewers:ke,assigned:ke.length,targetK:ke.length}}const V=[...Y.confirmed,...Y.disputed,...Y.unverified,...Y.unique,...Y.insights||[]],X=A==="all"?V:A==="insight"?V.filter(ee=>ee.findingType==="insight"||ee.findingType==="suggestion"):V.filter(ee=>ee.tag===A),re=g==="all"?X:X.filter(ee=>ee.severity===g),x=S===Y.id,_=V.length||1,G=Y.confirmed.length,k=Y.disputed.length,se=Y.unverified.length,xe=Y.unique.length,je=(Y.insights||[]).length,We=(()=>{if(_<=1)return"border-l-border/40";const ee=G/_,we=k/_;return ee>=.5?"border-l-confirmed/60":we>=.4?"border-l-disputed/60":"border-l-unverified/50"})(),qe=[{count:G,textCls:"text-confirmed",label:"confirmed"},{count:k,textCls:"text-disputed",label:"disputed"},{count:se,textCls:"text-unverified",label:"unverified"},{count:xe,textCls:"text-unique",label:"unique"},{count:je,textCls:"text-zinc-400",label:"insights"}].filter(ee=>ee.count>0),Vt=[...new Set(V.map(ee=>ee.originalAgentId).filter(Boolean))],Hl=Vt.slice(0,5);return i.jsxs("div",{children:[T&&i.jsxs("div",{className:`mb-2 flex items-center gap-3 ${w>0?"mt-4":""}`,children:[i.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:P}),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
+ ${We}
56
+ ${x?"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","aria-expanded":x,onClick:()=>{const ee=!x;y(ee?Y.id:null),ee&&(v("all"),C("all"))},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:V.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"]}),Hl.length>0&&i.jsxs("div",{className:"flex items-center gap-1 ml-1",children:[Hl.map(ee=>i.jsx("span",{title:ee,className:"inline-flex h-4 w-4 items-center justify-center rounded-full font-mono text-[8px] font-bold text-background",style:{backgroundColor:Ha(ee)},children:Cs(ee)},ee)),Vt.length>5&&i.jsxs("span",{className:"font-mono text-[9px] text-muted-foreground/40",children:["+",Vt.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)}),Y.droppedFindingsByType&&Object.keys(Y.droppedFindingsByType).length>0&&(()=>{const ee=Object.entries(Y.droppedFindingsByType),we=ee.reduce((lt,[,Gt])=>lt+Gt,0),ke=ee.map(([lt,Gt])=>`${lt}:${Gt}`).join(", ");return i.jsxs("span",{className:"shrink-0 rounded border border-unverified/20 bg-unverified/5 px-1.5 py-0.5 font-mono text-[10px] font-semibold text-unverified",title:`Silently dropped <agent_finding> tags with invalid type=: ${ke}. These never reach the dashboard, scores, or signals.`,children:[we," dropped"]})})(),i.jsx("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground/50 shrink-0",children:Rt(Y.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex items-center gap-3",children:qe.map(ee=>i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${ee.textCls}`,children:[ee.count," ",ee.label]},ee.label))}),Y.topic&&i.jsxs("div",{className:"mt-1.5 flex items-start gap-2",children:[i.jsx("span",{className:"shrink-0 rounded border border-border/30 bg-muted/30 px-1.5 py-0.5 font-mono text-[9px] font-bold uppercase tracking-wider text-muted-foreground/50",children:"Topic"}),i.jsx("span",{className:"font-inter text-[11px] leading-relaxed text-muted-foreground/70",children:Y.topic})]})]}),i.jsx("span",{className:`mt-1 shrink-0 font-mono text-[10px] text-muted-foreground/40 transition-transform duration-150 ${x?"rotate-90 text-primary/60":"group-hover:text-muted-foreground/60"}`,children:"▸"})]}),x&&i.jsxs("div",{className:"border-t border-border/20 px-4 pb-4 pt-3",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:"Type:"}),Fd.map(ee=>i.jsx("button",{onClick:()=>v(ee.key),className:`rounded-md border px-3 py-1.5 font-mono text-[10px] font-medium transition ${A===ee.key?ee.activeCls:ee.cls}`,children:ee.label},ee.key))]}),i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:"Severity:"}),ng.map(ee=>i.jsx("button",{onClick:()=>C(ee.key),className:`rounded-md border px-3 py-1.5 font-mono text-[10px] font-medium transition ${g===ee.key?ee.activeCls:ee.cls}`,children:ee.label},ee.key))]}),(Y.crossReviewAssignments||Y.crossReviewCoverage)&&(()=>{const ee=Y.crossReviewAssignments||{},we=Object.entries(ee),ke=Y.crossReviewCoverage||[],lt=ke.length,Gt=ke.filter(wt=>wt.assigned<wt.targetK);return i.jsxs("details",{className:"mb-3 rounded-md border border-border/30 bg-card/30",children:[i.jsxs("summary",{className:"flex cursor-pointer items-center gap-2 px-3 py-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground select-none",children:["Cross-Review Assignments",Y.partialReview&&i.jsx("span",{className:"rounded border border-unverified/15 bg-unverified/5 px-1.5 py-0.5 font-mono text-[9px] font-bold normal-case tracking-normal text-unverified",children:"partial"}),i.jsxs("span",{className:"ml-auto font-mono text-[9px] font-normal normal-case tracking-normal text-muted-foreground/50",children:[we.length," reviewers · ",lt," findings"]})]}),i.jsxs("div",{className:"border-t border-border/20 px-3 pb-3 pt-2 space-y-2",children:[we.map(([wt,Ln])=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{title:wt,className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full font-mono text-[8px] font-bold text-background",style:{backgroundColor:Ha(wt)},children:Cs(wt)}),i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground",children:wt}),i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/40",children:["(",Ln.length,")"]}),i.jsx("div",{className:"flex flex-wrap gap-1 ml-1",children:Ln.map(rl=>i.jsx("span",{className:"rounded bg-muted/50 px-1.5 py-0.5 font-mono text-[9px] text-muted-foreground",children:rl.length>12?rl.slice(0,12)+"…":rl},rl))})]},wt)),lt>0&&i.jsx("div",{className:"mt-1 pt-1.5 border-t border-border/15",children:Gt.length>0?i.jsxs("span",{className:"rounded border border-unverified/15 bg-unverified/5 px-2 py-1 font-mono text-[10px] font-semibold text-unverified",children:["⚠ ",Gt.length," of ",lt," findings under-reviewed"]}):i.jsxs("span",{className:"font-mono text-[10px] font-semibold text-confirmed/60",children:["✓ All ",lt," findings fully covered"]})})]})]})})(),i.jsx("div",{className:"space-y-3",children:re.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):re.map((ee,we)=>i.jsx(ig,{f:ee,reviewInfo:ee.id?H[ee.id]:void 0},we))})]})]})]},Y.id)}),d&&B>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:()=>ae(Y=>Math.max(0,Y-1)),disabled:J===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 ",J+1," of ",B]}),i.jsx("button",{onClick:()=>ae(Y=>Math.min(B-1,Y+1)),disabled:J>=B-1,className:"rounded-sm border border-border/40 bg-card px-3 py-1 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}):h.length===0?i.jsx(Ba,{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:h.map((Y,w)=>{const z=Y.counts,P=(z.agreement||0)+(z.disagreement||0)+(z.hallucination||0)+(z.unverified||0)+(z.unique||0)+(z.new||0),I=P||1,T=S===Y.taskId,H=[{key:"confirmed",count:z.agreement||0,color:"bg-confirmed",text:"text-confirmed",label:"confirmed"},{key:"disputed",count:(z.disagreement||0)+(z.hallucination||0),color:"bg-disputed",text:"text-disputed",label:"disputed"},{key:"unverified",count:z.unverified||0,color:"bg-unverified",text:"text-unverified",label:"unverified"},{key:"unique",count:(z.unique||0)+(z.new||0),color:"bg-unique",text:"text-unique",label:"unique"}],V=Y.signals.filter(X=>{if(X.signal==="signal_retracted")return!1;if(A==="all")return!!_s[X.signal];const re=_s[X.signal];return re&&re.filter===A});return i.jsxs("div",{className:`rounded-md border bg-card transition ${T?"border-primary/25":"border-border"}`,children:[i.jsxs("button",{"aria-expanded":T,onClick:()=>{const X=!T;y(X?Y.taskId:null),X&&(v("all"),C("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 text-muted-foreground transition ${T?"text-primary":""}`,children:T?"▾":"▸"}),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:[P," findings"]}),i.jsxs("div",{className:"flex gap-1.5",children:[Y.agents.slice(0,4).map(X=>i.jsx("span",{className:"rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:X.split("-").map(re=>re[0]).join("").toUpperCase().slice(0,2)},X)),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:Rt(Y.timestamp)})]}),i.jsx("div",{className:"mt-2 flex gap-2",children:H.map(X=>X.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${X.text}`,children:[X.count," ",X.label]},X.key))}),i.jsx("div",{className:"mt-2 flex h-1.5 overflow-hidden rounded-sm",children:H.map(X=>X.count>0&&i.jsx("div",{className:`${X.color} transition-all`,style:{width:`${X.count/I*100}%`}},X.key))})]})]}),T&&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:Fd.map(X=>i.jsx("button",{onClick:()=>v(X.key),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${A===X.key?X.activeCls:X.cls} hover:opacity-80`,children:X.label},X.key))}),V.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:V.map((X,re)=>{const x=_s[X.signal];return x?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 ${x.cls}`,children:x.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:ni(X.evidence||"")}})}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[X.agentId,X.counterpartId?` + ${X.counterpartId}`:""]})]})]},re):null})})]})]},Y.taskId+w)})})]})}function cg(s){let o=0;for(let d=0;d<s.length;d++)o=(o<<5)-o+s.charCodeAt(d)|0;return Math.abs(o)}class sg{constructor(o){$e(this,"s");this.s=o}next(){return this.s=this.s*1103515245+12345&2147483647,this.s%1e4/1e4}range(o,d){return o+this.next()*(d-o)}}function ut(s,o){const d=parseInt(s.slice(1,3),16),f=parseInt(s.slice(3,5),16),h=parseInt(s.slice(5,7),16);return`rgba(${d},${f},${h},${Math.max(0,Math.min(1,o))})`}function og(s){const o=Math.max(0,s);return Math.min(1.4,Math.pow(o/2e3,.55))}class rg{constructor(o,d,f,h,S,y,A=.5){$e(this,"ctx");$e(this,"size");$e(this,"accuracy");$e(this,"uniqueness");$e(this,"impact");$e(this,"colorHex");$e(this,"time",0);$e(this,"variant");$e(this,"scale");$e(this,"exp");$e(this,"particles",[]);$e(this,"baseRotation");$e(this,"armSeeds");$e(this,"binaryCenters");$e(this,"jetAxis");$e(this,"tailAngle");const v=o.getContext("2d");if(!v)throw new Error("Canvas 2D context unavailable");this.ctx=v,this.size=o.width/2,this.accuracy=Math.max(0,Math.min(1,h)),this.uniqueness=Math.max(0,Math.min(1,S)),this.impact=Math.max(0,Math.min(1,A)),this.colorHex=y;const g=cg(d);this.variant=g%12;const C=new sg(g),q=og(f);this.exp=q,this.scale=.2+q*.95;const Q=Math.max(3,Math.round(4+q*180));this._buildVariant(C,Q),this.baseRotation=C.next()*Math.PI*2}_buildVariant(o,d){const f=this.variant;if(f===0){this.armSeeds=[];for(let S=0;S<2;S++)this.armSeeds.push(o.next()*Math.PI*2);for(let S=0;S<d;S++){const y=S%2,A=o.next(),v=this.armSeeds[y]+A*Math.PI*2.4,g=o.range(-.04,.04)*Math.PI*2,C=v+g,q=(.08+A*.38)*this.size*this.scale;this.particles.push(this._mkParticle(o,q,C,1,1))}}else if(f===1)for(let h=0;h<d;h++){const S=o.range(.34,.42)*this.size*this.scale,y=o.next()*Math.PI*2;this.particles.push(this._mkParticle(o,S,y,1,1))}else if(f===2){const h=[.16,.28,.42];for(let S=0;S<d;S++){const y=S%3,A=(h[y]+o.range(-.015,.015))*this.size*this.scale,v=o.next()*Math.PI*2;this.particles.push(this._mkParticle(o,A,v,1,1))}}else if(f===3){const h=.18*this.size*this.scale;this.binaryCenters=[{x:-h,y:0},{x:h,y:0}];for(let S=0;S<d;S++){const y=S%2,A=o.range(.04,.22)*this.size*this.scale,v=o.next()*Math.PI*2,g=this._mkParticle(o,A,v,1,1);g.binaryCore=y,g.angularVelocity*=y===0?1:-1,this.particles.push(g)}}else if(f===4)for(let h=0;h<d;h++){const S=o.range(.05,.32)*this.size*this.scale,y=o.next()*Math.PI*2,A=o.range(.7,1.3),v=o.range(.7,1.3),g=this._mkParticle(o,S,y,A,v);g.orbitTilt=o.range(0,Math.PI),this.particles.push(g)}else if(f===5){this.jetAxis=o.next()*Math.PI*2;const h=Math.floor(d*.7),S=d-h;for(let y=0;y<h;y++){const A=y%2===0?1:-1,v=o.next(),g=o.range(-.18,.18),C=this._mkParticle(o,v*.44*this.size*this.scale,0,1,1);C.jetSide=A,C.jetProgress=v,C.jetSpread=g,C.jetSpeed=o.range(.15,.35)*.001,C.size=o.range(.6,1.4),this.particles.push(C)}for(let y=0;y<S;y++){const A=o.range(.35,.42)*this.size*this.scale,v=o.next()*Math.PI*2,g=this._mkParticle(o,A,v,1,1);g.isDisk=!0,g.brightness*=.35,this.particles.push(g)}}else if(f===6)for(let h=0;h<d;h++){const S=o.next()*Math.PI*2,y=o.range(.05,.45)*this.size*this.scale,A=this._mkParticle(o,y,S,1,1);A.isNebula=!0,A.driftAngle=o.next()*Math.PI*2,A.driftSpeed=o.range(6e-4,.0014),A.driftPhase=o.next()*Math.PI*2,A.size=o.range(.8,2.2),A.brightness*=.6,this.particles.push(A)}else if(f===7){this.tailAngle=o.next()*Math.PI*2;const h=.1*this.size*this.scale,S=Math.floor(d*.3);for(let A=0;A<S;A++){const v=o.range(0,h),g=o.next()*Math.PI*2,C=this._mkParticle(o,v,g,1,1);C.size=o.range(.8,1.8),this.particles.push(C)}const y=d-S;for(let A=0;A<y;A++){const v=o.next(),g=h+v*.26*this.size*this.scale,C=(1-v*.5)*o.range(-.05,.05)*this.size*this.scale,q=this._mkParticle(o,0,0,1,1);q.isComet=!0,q.cometTailDist=g,q.cometPerp=C,q.cometT=v,q.brightness*=1-v*.6,q.size=(1-v*.5)*o.range(.6,1.2),this.particles.push(q)}}else if(f===8)for(let h=0;h<d;h++){const S=h%3,y=o.range(.3,.42)*this.size*this.scale,A=o.next()*Math.PI*2,v=this._mkParticle(o,y,A,1,1);v.gyroPlane=S,v.gyroAxis=S===0?"z":S===1?"x":"y",this.particles.push(v)}else if(f===9)for(let h=0;h<d;h++){const S=o.range(.06,.42)*this.size*this.scale,A=S/(.42*this.size*this.scale)*4*Math.PI+o.range(-.2,.2),v=this._mkParticle(o,S,A,1,1);v.isMaelstrom=!0,this.particles.push(v)}else if(f===10)for(let h=0;h<d;h++){const S=h/d,y=o.range(.35,.4)*this.size*this.scale,A=S*Math.PI*2+o.range(-.03,.03),v=this._mkParticle(o,y,A,1,1);v.ouroT=S,this.particles.push(v)}else for(let h=0;h<d;h++){const S=h%2,y=o.next(),A=this._mkParticle(o,0,0,1,1);A.isHelix=!0,A.helixStrand=S,A.helixT=y,A.helixSpeed=o.range(.3,.6)*.001,this.particles.push(A)}}_mkParticle(o,d,f,h,S){const y=8e-4+(.42*this.size-d)*4e-5,A=o.next()*Math.PI*2,v=o.range(.05,.3)*this.size;return{baseRadius:d,angle:f,angularVelocity:y*(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:h,ellipY:S,orbitTilt:0,binaryCore:0,chaosX:Math.cos(A)*v,chaosY:Math.sin(A)*v,chaosDriftPhase:o.next()*Math.PI*2,chaosDriftSpeed:o.range(3e-4,8e-4)}}update(o){this.time+=o}draw(){const{ctx:o,size:d,time:f,accuracy:h,uniqueness:S,impact:y,colorHex:A,variant:v}=this,g=d/2,C=d/2;o.clearRect(0,0,d,d);const q=.4+this.exp*.6,Q=h*q,le=S*q,fe=y*q,he=.2+Q*.8,Z=.3+fe*1.9,W=le,ge=Math.min(1,Math.max(0,(this.exp-.15)*1.8)),L=1-ge,ne=o.createRadialGradient(g,C,0,g,C,d*.45);if(ne.addColorStop(0,ut(A,.05*he)),ne.addColorStop(.4,ut(A,.015)),ne.addColorStop(1,"transparent"),o.fillStyle=ne,o.fillRect(0,0,d,d),v===0&&this.armSeeds){const D=f*5e-4*Z;for(const ae of this.armSeeds){const B=ae+D;o.beginPath();for(let J=0;J<1;J+=.02){const ce=B+J*Math.PI*2.4,ie=(.08+J*.38)*d*this.scale,Y=g+Math.cos(ce)*ie,w=C+Math.sin(ce)*ie;J===0?o.moveTo(Y,w):o.lineTo(Y,w)}o.strokeStyle=ut(A,.12*he),o.lineWidth=1,o.stroke()}}for(const D of this.particles){const ae=Math.sin(f*D.wobbleSpeed*.001+D.wobblePhase)*1.2,B=D.baseRadius+ae,J=D.angle+f*D.angularVelocity*Z;let ce,ie;if(v===3&&this.binaryCenters){const w=this.binaryCenters[D.binaryCore];ce=g+w.x+Math.cos(J)*B,ie=C+w.y+Math.sin(J)*B}else if(v===4){const w=Math.cos(D.orbitTilt),z=Math.sin(D.orbitTilt),P=Math.cos(J)*B*D.ellipX,I=Math.sin(J)*B*D.ellipY;ce=g+P*w-I*z,ie=C+P*z+I*w}else if(v===5&&D.jetSide!==void 0&&!D.isDisk&&this.jetAxis!==void 0){const w=(D.jetProgress+f*D.jetSpeed*Z)%1,z=w*.44*d*this.scale,P=this.jetAxis+Math.PI/2;ce=g+Math.cos(this.jetAxis)*z*D.jetSide+Math.cos(P)*D.jetSpread*z,ie=C+Math.sin(this.jetAxis)*z*D.jetSide+Math.sin(P)*D.jetSpread*z,D._fadeMul=Math.sin(w*Math.PI)*.9+.1}else if(v===6&&D.isNebula){const w=f*D.driftSpeed*Z,z=Math.sin(w+D.driftPhase)*2;ce=g+Math.cos(D.angle+w*.3)*B+Math.cos(D.driftAngle)*z,ie=C+Math.sin(D.angle+w*.3)*B+Math.sin(D.driftAngle)*z}else if(v===7&&D.isComet&&this.tailAngle!==void 0){const w=(D.cometT+f*3e-4*Z)%1,z=D.cometTailDist+w*.06*d*this.scale,P=this.tailAngle+Math.PI/2;ce=g+Math.cos(this.tailAngle)*z+Math.cos(P)*D.cometPerp,ie=C+Math.sin(this.tailAngle)*z+Math.sin(P)*D.cometPerp}else if(v===8&&D.gyroAxis){const w=f*1e-4*Z;D.gyroAxis==="z"?(ce=g+Math.cos(J)*B,ie=C+Math.sin(J)*B*.3):D.gyroAxis==="x"?(ce=g+Math.cos(J)*B*.3+Math.sin(w)*B*.1,ie=C+Math.sin(J)*B):(ce=g+Math.sin(J+w)*B*.6,ie=C+Math.cos(J+w)*B*.8)}else if(v===9){const w=(f*5e-4*Z+D.wobblePhase)%1,z=B*(1-w*.85);ce=g+Math.cos(J)*z,ie=C+Math.sin(J)*z,D._fadeMul=1-w}else if(v===10&&D.ouroT!==void 0){const w=(D.ouroT+f*3e-4*Z)%1,z=w*Math.PI*2;ce=g+Math.cos(z)*B,ie=C+Math.sin(z)*B;const P=Math.cos(w*Math.PI*2)*.5+.5;D._fadeMul=.3+P*.9}else if(v===11&&D.helixT!==void 0){const w=(D.helixT+f*D.helixSpeed*Z)%1,z=(w-.5)*.65*d*this.scale,P=D.helixStrand===0?0:Math.PI,I=.15*d*this.scale,T=Math.sin(w*Math.PI*3+P)*I;ce=g+T,ie=C+z,D._fadeMul=.4+(Math.cos(w*Math.PI*3+P)+1)/2*.6}else ce=g+Math.cos(J)*B*D.ellipX,ie=C+Math.sin(J)*B*D.ellipY;if(L>.01){const w=f*D.chaosDriftSpeed,z=Math.cos(w+D.chaosDriftPhase)*2,P=Math.sin(w*1.13+D.chaosDriftPhase)*2,I=g+D.chaosX+z,T=C+D.chaosY+P;ce=I*L+ce*ge,ie=T*L+ie*ge}const Y=D._fadeMul!==void 0?D._fadeMul:1;if(v<=4&&ge>.5){const w=2+Math.floor(y*3);for(let z=0;z<w;z++){const P=D.angularVelocity*Z*(z+1)*80,I=J-P;let T,H;if(v===3&&this.binaryCenters){const X=this.binaryCenters[D.binaryCore];T=g+X.x+Math.cos(I)*B,H=C+X.y+Math.sin(I)*B}else if(v===4){const X=Math.cos(D.orbitTilt),re=Math.sin(D.orbitTilt),x=Math.cos(I)*B*D.ellipX,_=Math.sin(I)*B*D.ellipY;T=g+x*X-_*re,H=C+x*re+_*X}else T=g+Math.cos(I)*B*D.ellipX,H=C+Math.sin(I)*B*D.ellipY;const V=(1-z/w)*.3*D.brightness*he*ge;o.beginPath(),o.arc(T,H,D.size*(1-z*.25),0,Math.PI*2),o.fillStyle=ut(A,V),o.fill()}}else if(v===6&&D.isNebula){const w=D.size*3,z=o.createRadialGradient(ce,ie,0,ce,ie,w);z.addColorStop(0,ut(A,D.brightness*he*.4)),z.addColorStop(1,"transparent"),o.fillStyle=z,o.beginPath(),o.arc(ce,ie,w,0,Math.PI*2),o.fill()}o.beginPath(),o.arc(ce,ie,D.size,0,Math.PI*2),o.fillStyle=ut(A,D.brightness*he*Y),o.fill()}if(W>.05)for(let ae=0;ae<3;ae++){const B=(f*7e-4*W+ae*.33)%1;if(B>.5)continue;const J=(ae*1.618*Math.PI+f*1e-4)%(Math.PI*2),ce=d*.5*(1-B*1.6);if(ce<3)continue;const ie=g+Math.cos(J)*ce,Y=C+Math.sin(J)*ce,w=B<.2?B/.2:1-(B-.2)/.3,z=5+(1-B)*4,P=o.createRadialGradient(ie,Y,0,ie,Y,z);P.addColorStop(0,ut("#ffffff",w*.95)),P.addColorStop(.3,ut(A,w*.7)),P.addColorStop(1,"transparent"),o.fillStyle=P,o.beginPath(),o.arc(ie,Y,z,0,Math.PI*2),o.fill()}if(v!==3){const D=.9+.1*Math.sin(f*.003),ae=(1+this.exp*9+h*2)*this.scale,B=Math.min(ae*(3+y*2),d*.4),J=o.createRadialGradient(g,C,0,g,C,B);J.addColorStop(0,ut("#ffffff",.95*D*he)),J.addColorStop(.2,ut(A,.75*D*he)),J.addColorStop(.5,ut(A,.2*he)),J.addColorStop(1,"transparent"),o.fillStyle=J,o.beginPath(),o.arc(g,C,B,0,Math.PI*2),o.fill(),o.beginPath(),o.arc(g,C,ae*D,0,Math.PI*2),o.fillStyle=ut("#ffffff",.95),o.fill()}else if(this.binaryCenters)for(const D of this.binaryCenters){const ae=g+D.x,B=C+D.y,J=(.8+this.exp*5+h*1.5)*this.scale,ce=Math.min(J*3.5,d*.22),ie=o.createRadialGradient(ae,B,0,ae,B,ce);ie.addColorStop(0,ut("#ffffff",.9*he)),ie.addColorStop(.3,ut(A,.6*he)),ie.addColorStop(1,"transparent"),o.fillStyle=ie,o.beginPath(),o.arc(ae,B,ce,0,Math.PI*2),o.fill(),o.beginPath(),o.arc(ae,B,J,0,Math.PI*2),o.fillStyle=ut("#ffffff",.9),o.fill()}}}function qs({agentId:s,size:o=64,signals:d=0,accuracy:f=.5,uniqueness:h=.5,impact:S=.5}){const y=K.useRef(null),A=K.useRef(null),v=K.useRef(0),g=K.useRef(!0);return K.useEffect(()=>{const C=y.current;if(!C)return;C.width=o*2,C.height=o*2;const q=C.getContext("2d");if(!q)return;q.scale(2,2);const Q=Ha(s),le=new rg(C,s,d,f,h,Q,S);A.current=le,le.draw();const fe=()=>{g.current&&(le.update(16),le.draw()),v.current=requestAnimationFrame(fe)};return v.current=requestAnimationFrame(fe),()=>{cancelAnimationFrame(v.current),A.current=null}},[s,o,d,f,h,S]),K.useEffect(()=>{const C=y.current;if(!C)return;const q=new IntersectionObserver(([Q])=>{g.current=Q.isIntersecting},{threshold:.1});return q.observe(C),()=>q.disconnect()},[]),i.jsx("canvas",{ref:y,"aria-hidden":"true",className:"shrink-0",style:{width:o,height:o,borderRadius:"50%"}})}function Es(s){return`${Math.round(s*100)}%`}function fg(s){return s>=1.2?"good":s>=.8?"mid":"low"}function dg(s){return s>=.7?"good":s>=.4?"mid":"low"}function mg({agent:s}){var A;const o=s.scores,d=(A=s.lastTask)!=null&&A.timestamp?Rt(s.lastTask.timestamp):"",f=fg(o.dispatchWeight),h=f==="good"?"text-confirmed":f==="low"?"text-disputed":"text-foreground",S=dg(o.accuracy),y=S==="good"?"bg-confirmed":S==="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(qs,{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-inter 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 ${h}`,"data-tooltip":`Dispatch weight ${o.dispatchWeight.toFixed(2)}
57
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",d?` · ${d}`:""]})]})]})]}),i.jsxs("div",{className:"space-y-2 rounded-lg border border-border/30 bg-background/40 px-3.5 py-3",children:[i.jsx(As,{label:"accuracy",value:o.accuracy,fillClass:y,tooltip:`Accuracy ${Es(o.accuracy)}
58
58
  Ratio of confirmed findings.
59
59
  Higher = more trustworthy.`}),i.jsx(As,{label:"unique",value:o.uniqueness,fillClass:"bg-unique",tooltip:`Uniqueness ${Es(o.uniqueness)}
60
60
  Findings others missed.
61
61
  Higher = this agent sees what peers don't.`}),i.jsx(As,{label:"impact",value:o.impactScore,fillClass:"bg-[var(--color-impact)]",tooltip:`Impact ${Es(o.impactScore)}
62
62
  Severity-weighted findings.
63
- Critical and high findings count more.`})]})]})}function As({label:s,value:o,fillClass:d,tooltip:f}){const h=Number.isFinite(o)?o:0;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":f,children:s}),i.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-background/80",children:i.jsx("div",{className:`h-full rounded-full transition-all ${d}`,style:{width:`${Math.max(0,Math.min(100,h*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(h*100),"%"]})]})}function hg({agents:s}){const o=[...s].sort((h,S)=>{var C,q,Q,le;const y=((C=h.lastTask)==null?void 0:C.timestamp)??"",A=((q=S.lastTask)==null?void 0:q.timestamp)??"";if(y!==A)return A.localeCompare(y);const v=((Q=h.scores)==null?void 0:Q.signals)||0,g=((le=S.scores)==null?void 0:le.signals)||0;return v!==g?g-v:h.id.localeCompare(S.id)}),d=o.slice(0,4),f=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})]}),f&&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:d.map(h=>i.jsx(mg,{agent:h},h.id))})]})}const gg={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 xg({task:s,onClose:o}){if(K.useEffect(()=>{if(!s)return;const h=S=>{S.key==="Escape"&&o()};return document.addEventListener("keydown",h),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",h),document.body.style.overflow=""}},[s,o]),!s)return null;const d=gg[s.status],f=(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:h=>h.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 ${d.cls}`,children:d.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:Rt(s.timestamp)}),s.duration!=null&&i.jsxs("span",{children:["· ",K0(s.duration)]}),f>0&&i.jsxs("span",{children:["· ",f.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:ni(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 Id=8,pg={completed:{cls:"bg-confirmed/15 text-confirmed",symbol:"✓"},failed:{cls:"bg-destructive/15 text-destructive",symbol:"✗"},running:{cls:"bg-unverified/15 text-unverified",symbol:"⋯"},cancelled:{cls:"bg-muted/40 text-muted-foreground",symbol:"·"}},bg={cls:"bg-muted/40 text-muted-foreground",symbol:"·"};function vg(s,o){return s.length>o?s.slice(0,o)+"…":s}function yg({tasks:s}){const o=s.items.slice(0,Id),d=s.items.length>Id;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})]}),d&&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(Ba,{title:"No tasks yet",hint:"Dispatch with gossip_run to populate this view."}):o.map((f,h)=>i.jsxs("div",{className:`flex h-11 items-center gap-3 px-3.5 hover:bg-accent/20 transition-colors ${h>0?"border-t border-border/20":""}`,children:[(()=>{const S=pg[f.status]||bg;return i.jsxs("span",{className:`inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 font-mono text-[9px] font-semibold ${S.cls}`,children:[i.jsx("span",{className:"h-1 w-1 rounded-full bg-current"}),S.symbol]})})(),i.jsx("span",{className:"shrink-0 font-mono text-xs font-bold text-foreground",children:f.agentId}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-inter text-[11px] text-muted-foreground",children:vg(f.task,50)}),i.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Rt(f.timestamp)})]},f.taskId))})]})}function Sg(s){var f,h,S,y;const o=(f=s.frontmatter)==null?void 0:f.type;if(o&&o!=="unknown")return o;const d=[s.filename,((h=s.frontmatter)==null?void 0:h.name)||"",((S=s.frontmatter)==null?void 0:S.description)||"",s.content.slice(0,200)].join(" ").toLowerCase();return d.includes("session")||d.includes("next-session")?"session":d.includes("cognitive")||d.includes("session-gossip")?"cognitive":d.includes("skill")||d.includes("gap")?"skill":d.includes("consensus")||d.includes("finding")||d.includes("review")||d.includes("cross-review")?"review":d.includes("dispatch")||d.includes("implement")?"task":d.includes("design")||d.includes("architecture")?"review":d.includes("bug")||d.includes("fix")||d.includes("debug")?"task":(y=s.frontmatter)!=null&&y.name?"knowledge":"note"}const Pd={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"},Ng={cognitive:"cognitive",knowledge:"knowledge",skill:"skill",review:"review",task:"task",session:"session",note:"memory"};function jg({memories:s}){const[o,d]=K.useState(null),f=s.filter((S,y,A)=>A.findIndex(v=>v.filename===S.filename)===y),h=f.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:f.length})]}),h.length===0?i.jsx("div",{className:"flex-1",children:i.jsx(Ba,{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:h.map((S,y)=>{var q,Q;const A=Sg(S),v=((q=S.frontmatter)==null?void 0:q.name)||((Q=S.content.split(`
64
- `)[0])==null?void 0:Q.slice(0,80))||S.filename.replace(/\.md$/,""),g=o===y,C=S.agentId||"_unknown";return i.jsxs("div",{className:y>0?"border-t border-border/20":"",children:[i.jsxs("button",{onClick:()=>d(g?null:y),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 ${g?"text-primary":"text-muted-foreground/40"}`,children:g?"▾":"▸"}),i.jsx("span",{className:`shrink-0 rounded-sm border border-border/30 px-1 py-0.5 font-mono text-[10px] font-bold ${Pd[A]||Pd.note}`,children:Ng[A]||"NOTE"}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-foreground",children:v}),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})]}),g&&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:S.content})})]},S.filename)})})]})}const em=5;function zs(s){return!Number.isFinite(s)||s<0?0:s>1?1:s}function Tg({strengths:s,accuracy:o,correctCounts:d,hallucinatedCounts:f}){const h=new Set([...Object.keys(s),...o?Object.keys(o):[],...d?Object.keys(d):[],...f?Object.keys(f):[]]),S=[];for(const y of h){const A=(d==null?void 0:d[y])??0,v=(f==null?void 0:f[y])??0,g=A+v,C=g<em;let q;o&&o[y]!==void 0?q=zs(o[y]):g>0?q=zs(A/g):q=zs(s[y]??0),S.push({category:y,score:q,c:A,n:g,sparse:C})}return S.sort((y,A)=>y.sparse!==A.sparse?y.sparse?1:-1:A.score-y.score),S.length===0?i.jsx(Ba,{title:"No category data yet",hint:"Category signals accrue after the first consensus round.",compact:!0}):i.jsx("div",{className:"space-y-2",children:S.map(y=>i.jsxs("div",{className:`flex items-center gap-3 ${y.sparse?"opacity-40":""}`,title:y.sparse?`Only ${y.n} signal${y.n===1?"":"s"} in this category — needs ≥${em} for a trustworthy accuracy.`:`${y.c} correct / ${y.n} total`,children:[i.jsx("span",{className:"w-32 shrink-0 truncate font-mono text-[11px] text-muted-foreground",children:y.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:`${y.score*100}%`}})}),i.jsx("span",{className:"shrink-0 text-right font-mono text-[10px] tabular-nums text-muted-foreground/70 w-16",children:y.sparse&&y.n===0?"—":`${y.c}/${y.n}`}),i.jsx("span",{className:"w-10 shrink-0 text-right font-mono text-[11px] tabular-nums text-foreground",children:y.sparse?i.jsx("span",{className:"text-muted-foreground/50",children:"sparse"}):`${Math.round(y.score*100)}%`})]},y.category))})}const Mg={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"},_g={agreement:"Confirmed",consensus_verified:"Confirmed",unique_confirmed:"Unique (confirmed)",unique_unconfirmed:"Unique",disagreement:"Disputed",hallucination_caught:"Hallucination",new_finding:"New finding",unverified:"Unverified"};function Eg({agentId:s}){const[o,d]=K.useState([]),[f,h]=K.useState(0);if(K.useEffect(()=>{Yt(`signals?agent=${encodeURIComponent(s)}&limit=100`).then(g=>{d(g.items||[]),h(g.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(Ba,{title:"No signal history yet",hint:"Signals are recorded during consensus rounds.",compact:!0})});const S=[...o].reverse(),y={confirmed:0,disputed:0,unique:0,unverified:0};for(const g of o)g.signal==="agreement"||g.signal==="consensus_verified"?y.confirmed++:g.signal==="disagreement"||g.signal==="hallucination_caught"?y.disputed++:g.signal==="unique_confirmed"||g.signal==="unique_unconfirmed"||g.signal==="new_finding"?y.unique++:g.signal==="unverified"&&y.unverified++;const A=o.length,v=f>A;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:v?`last ${A} of ${f}`:`${f} total`})]}),i.jsxs("div",{className:"flex items-center gap-3 font-mono text-[10px]",children:[i.jsxs("span",{className:"text-confirmed",children:[y.confirmed," confirmed"]}),y.disputed>0&&i.jsxs("span",{className:"text-disputed",children:[y.disputed," disputed"]}),y.unique>0&&i.jsxs("span",{className:"text-unique",children:[y.unique," unique"]}),y.unverified>0&&i.jsxs("span",{className:"text-unverified",children:[y.unverified," unverified"]})]})]}),i.jsx("div",{className:"flex items-center gap-0.5",children:S.map((g,C)=>i.jsx("div",{className:`h-4 w-1.5 rounded-sm transition-opacity hover:opacity-80 ${Mg[g.signal]||"bg-muted"}`,title:`${_g[g.signal]||g.signal} — ${Rt(g.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(g=>i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("div",{className:`h-2 w-2 rounded-sm ${g.color}`}),i.jsx("span",{className:"font-mono text-[9px] text-muted-foreground/60",children:g.label})]},g.label))})]})}const tm={completed:{cls:"text-confirmed bg-confirmed/8",label:"Done"},failed:{cls:"text-destructive bg-destructive/8",label:"Failed"},running:{cls:"text-unverified bg-unverified/8",label:"Running"},cancelled:{cls:"text-muted-foreground bg-muted/50",label:"Cancelled"}};function Ag(s){if(!s)return"—";if(s<1e3)return"< 1s";if(s<6e4)return Math.floor(s/1e3)+"s";if(s<36e5){const f=Math.floor(s/6e4),h=Math.floor(s%6e4/1e3);return h>0?`${f}m ${h}s`:`${f}m`}const o=Math.floor(s/36e5),d=Math.floor(s%36e5/6e4);return d>0?`${o}h ${d}m`:`${o}h`}function sm({task:s,onClick:o}){const d=tm[s.status]??tm.cancelled,f=s.status==="completed"?"bg-confirmed":s.status==="failed"?"bg-destructive":s.status==="running"?"bg-unverified":"bg-muted-foreground/40";return i.jsxs("tr",{className:`border-b border-border hover:bg-accent/30 transition-colors ${o?"cursor-pointer":""}`,onClick:o?h=>{h.target.closest("a")||o(s)}:void 0,children:[i.jsx("td",{className:"py-2.5 pl-4 pr-2",children:i.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 font-mono text-[10px] font-semibold ${d.cls}`,children:[i.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${f}`}),d.label]})}),i.jsx("td",{className:"py-2.5 pr-3",children:i.jsx("span",{className:"rounded border border-amber-500/25 bg-amber-500/8 px-2 py-1 font-mono text-[10px] font-semibold text-amber-400",children:s.taskId.slice(0,8)})}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(s.agentId)}`,className:"inline-flex items-center gap-1.5 transition hover:text-primary",children:[i.jsx("span",{className:"inline-block h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:Ha(s.agentId)}}),s.agentId]})}),i.jsx("td",{className:"py-2.5 pr-3 font-inter text-sm text-foreground/80",children:(()=>{const h=s.task.replace(/\n.*/s,"");return h.length>100?h.slice(0,100)+"…":h})()}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:s.status==="running"?"running":Ag(s.duration)}),i.jsx("td",{className:"py-2.5 pr-4 text-right font-mono text-xs text-muted-foreground",children:Rt(s.timestamp)})]})}function zg({agentId:s,agents:o,tasks:d,consensus:f}){const h=o.find(z=>z.id===s),[S,y]=K.useState([]),[A,v]=K.useState(null),[g,C]=K.useState(null),[q,Q]=K.useState("all"),[le,fe]=K.useState(0),[he,Z]=K.useState(0);if(K.useEffect(()=>{Yt(`memory/${s}`).then(z=>{y(z.knowledge||[])}).catch(()=>y([]))},[s]),!h)return i.jsxs("div",{className:"py-20 text-center text-muted-foreground",children:["Agent not found: ",s]});const W=h.scores,ge=(d==null?void 0:d.items.filter(z=>z.agentId===s))||[],L=(f==null?void 0:f.runs.filter(z=>z.agents.includes(s)))||[],ne=[{label:"accuracy",value:W.accuracy,fill:W.accuracy>=.7?"bg-confirmed":W.accuracy>=.4?"bg-unverified":"bg-disputed"},{label:"reliability",value:W.reliability,fill:"bg-chart"},{label:"unique",value:W.uniqueness,fill:"bg-unique"},{label:"impact",value:W.impactScore,fill:"bg-[var(--color-impact)]"}],D=[{label:"Signals",value:String(W.signals),color:"text-foreground"},{label:"Agreements",value:String(W.agreements),color:"text-confirmed"},{label:"Disagreements",value:String(W.disagreements),color:"text-disputed"},{label:"Hallucinations",value:String(W.hallucinations),color:W.hallucinations>0?"text-disputed":"text-muted-foreground"},{label:"Tokens",value:h.totalTokens.toLocaleString(),color:"text-foreground"}],ae=10,B=Math.max(1,Math.ceil(ge.length/ae)),J=Math.min(le,B-1),ce=ge.slice(J*ae,(J+1)*ae),ie=K.useMemo(()=>{const z=new Map;for(const P of S){const I=P.filename.match(/^(\d{4}-\d{2}-\d{2})/),T=I?I[1]:"undated",H=z.get(T)||[];H.push(P),z.set(T,H)}return Array.from(z.entries()).sort(([P],[I])=>P==="undated"?1:I==="undated"?-1:I.localeCompare(P)).map(([P,I])=>({day:P,items:I}))},[S]),G=Math.min(he,Math.max(0,ie.length-1)),w=ie[G];return i.jsxs(i.Fragment,{children:[W.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:[W.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(qs,{agentId:h.id,size:120,signals:W.signals,accuracy:W.accuracy,uniqueness:W.uniqueness,impact:W.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:h.id}),i.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:[h.provider,"/",h.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 ${h.native?"text-primary bg-primary/10":"text-confirmed bg-confirmed/10"}`,children:h.native?"NATIVE":"RELAY"}),h.preset&&i.jsx("span",{className:"rounded-sm bg-muted px-2 py-0.5 font-mono text-[10px] text-muted-foreground",children:h.preset}),W.consecutiveFailures>0&&!W.circuitOpen&&i.jsxs("span",{className:"rounded-sm bg-unverified/10 px-2 py-0.5 font-mono text-[10px] font-bold text-unverified",children:[W.consecutiveFailures," CONSECUTIVE FAILS"]}),i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/60",children:[W.signals," signals",h.lastTask?` · ${Rt(h.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 ${W.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:W.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(Eg,{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:ne.map(z=>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:z.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 ${z.fill}`,style:{width:`${Math.max(0,Math.min(100,z.value*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(z.value*100),"%"]})]},z.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:D.map(z=>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 ${z.color}`,children:z.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[9px] uppercase tracking-wider text-muted-foreground/70",children:z.label})]},z.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(Tg,{strengths:W.categoryStrengths,accuracy:W.categoryAccuracy,correctCounts:W.categoryCorrect,hallucinatedCounts:W.categoryHallucinated})]})]}),(h.skillSlots.length>0||h.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:h.skillSlots.length||h.skills.length})]}),i.jsx("div",{className:"flex flex-wrap gap-1.5",children:h.skillSlots.length>0?h.skillSlots.map(z=>i.jsxs("span",{className:`rounded-sm border px-2.5 py-1 font-mono text-xs ${z.enabled?z.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:`${z.mode} · ${z.source} · ${z.enabled?"enabled":"disabled"}`,children:[z.mode==="contextual"&&"⚡ ",z.name]},z.name)):h.skills.map(z=>i.jsx("span",{className:"rounded-sm border border-border bg-card px-2.5 py-1 font-mono text-xs text-muted-foreground",children:z},z))})]}),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:L.length})]}),L.length>0?i.jsx("div",{className:"space-y-2",children:L.slice(0,20).map((z,P)=>{const I=z.counts,T=(I.agreement||0)+(I.disagreement||0)+(I.hallucination||0)+(I.unverified||0)+(I.unique||0)+(I.new||0),H=T||1,V=g===P,X=[{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"}],re={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"}},x=z.signals.filter(_=>{if(_.signal==="signal_retracted")return!1;const Y=re[_.signal];return Y?q==="all"||Y.filter===q:!1});return i.jsxs("div",{className:`rounded-md border bg-card transition ${V?"border-primary/25":"border-border/40"}`,children:[i.jsxs("button",{onClick:()=>{C(V?null:P),Q("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 ${V?"text-primary":"text-muted-foreground"}`,children:V?"▾":"▸"}),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:[T," findings"]}),i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Rt(z.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex gap-2",children:X.map(_=>_.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${_.text}`,children:[_.count," ",_.key]},_.key))}),i.jsx("div",{className:"mt-1.5 flex h-1.5 overflow-hidden rounded-sm",children:X.map(_=>_.count>0&&i.jsx("div",{className:_.color,style:{width:`${_.count/H*100}%`}},_.key))})]})]}),V&&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(_=>i.jsx("button",{onClick:()=>Q(_),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${q===_?"text-foreground bg-muted":"text-muted-foreground hover:text-foreground"}`,children:_.charAt(0).toUpperCase()+_.slice(1)},_))}),x.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:x.map((_,Y)=>{const k=re[_.signal];return k?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 ${k.cls}`,children:k.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:ni(_.evidence||"")}}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[_.agentId,_.counterpartId?` + ${_.counterpartId}`:""]})]})]},Y):null})})]})]},z.taskId+P)})}):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:ge.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(z=>Math.max(0,z-1)),disabled:J===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:[J+1," / ",B]}),i.jsx("button",{onClick:()=>fe(z=>Math.min(B-1,z+1)),disabled:J>=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 ▸"})]})]}),ge.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:ce.map(z=>i.jsx(sm,{task:z},z.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:[S.length," files"]}),w&&i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground",children:["· ",w.day," (",w.items.length,")"]})]}),ie.length>1&&i.jsxs("div",{className:"flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>Z(z=>Math.max(0,z-1)),disabled:G===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:[G+1," / ",ie.length]}),i.jsx("button",{onClick:()=>Z(z=>Math.min(ie.length-1,z+1)),disabled:G>=ie.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(z=>{var H,V;const P=A===z.filename,I=((H=z.frontmatter)==null?void 0:H.type)||"memory",T=((V=z.frontmatter)==null?void 0:V.name)||z.filename.replace(/\.md$/,"");return i.jsxs("div",{className:"rounded-md border border-border/40 bg-card/80",children:[i.jsxs("button",{onClick:()=>v(P?null:z.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 ${P?"text-primary":"text-muted-foreground"}`,children:P?"▾":"▸"}),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:T}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground",children:z.filename})]}),P&&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:z.content})})]},z.filename)})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No memory files."})]})]})}const lm={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"},Dg=[[/^\[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 Og(s){for(const[o,d]of Dg)if(o.test(s))return d;return"other"}const Cg=[{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"}],nm=1e3;function Ug(){const[s,o]=K.useState([]),[d,f]=K.useState(0),[h,S]=K.useState(0),[y,A]=K.useState("all"),[v,g]=K.useState(!0),[C,q]=K.useState(!0),Q=K.useRef(null),le=K.useRef(0);K.useEffect(()=>{let Z=!1;return(async()=>{try{const ge=await Yt("logs?tail=500");if(Z)return;o(ge.entries),f(ge.totalLines),S(ge.fileSize),le.current=ge.totalLines+1}catch{}})(),()=>{Z=!0}},[]),K.useEffect(()=>{if(C)return im(Z=>{var ge;if(Z.type!=="log_lines")return;const W=(ge=Z.data)==null?void 0:ge.lines;W!=null&&W.length&&o(L=>{const ne=W.map((ae,B)=>({line:le.current+B,text:ae,category:Og(ae)}));le.current+=W.length,f(ae=>ae+W.length);const D=[...L,...ne];return D.length>nm?D.slice(-nm):D})})},[C]),K.useEffect(()=>{v&&Q.current&&Q.current.scrollIntoView({behavior:"smooth"})},[s,v]);const fe=y==="all"?s:s.filter(Z=>Z.category===y),he=K.useCallback(Z=>Z<1024?`${Z} B`:Z<1048576?`${(Z/1024).toFixed(1)} KB`:`${(Z/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:[d," lines"]})]}),i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:he(h)}),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:[Cg.map(Z=>i.jsx("button",{onClick:()=>A(Z.key),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${y===Z.key?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:Z.label},Z.key)),i.jsxs("div",{className:"ml-auto flex gap-1.5",children:[i.jsx("button",{onClick:()=>q(!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:()=>g(!v),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${v?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:v?"⤓ 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(Z=>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:Z.line}),i.jsx("span",{className:lm[Z.category]||lm.other,children:Z.text})]},Z.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:Q})]})})]})}function Rg(){const[s,o]=K.useState(null),[d,f]=K.useState(!1);K.useEffect(()=>{P0().then(o)},[]);const h=K.useCallback(async S=>{f(!1),await I0(S)?o(!0):f(!0)},[]);return{authed:s,login:h,error:d}}function qg(s){K.useEffect(()=>(um(),im(s)),[s])}function Hg(){const[s,o]=K.useState({overview:null,agents:null,tasks:null,consensus:null,consensusReports:null,memories:null,loading:!0,error:null}),d=K.useCallback(async()=>{try{const[f,h,S,y,A]=await Promise.all([Yt("overview"),Yt("agents"),Yt("tasks?limit=50"),Yt("consensus?pageSize=50"),Yt("consensus-reports?page=1&pageSize=5").catch(()=>({reports:[]}))]),v=h.slice(0,5).map(Q=>Q.id).concat(["_project"]),g=await Promise.allSettled(v.map(Q=>Yt(`memory/${Q}`))),C=[];for(let Q=0;Q<g.length;Q++){const le=g[Q],fe=v[Q];if(le.status==="fulfilled"&&le.value.knowledge)for(const he of le.value.knowledge)C.push({...he,agentId:fe})}C.sort((Q,le)=>le.filename>Q.filename?1:-1);const q=C.slice(0,20);o({overview:f,agents:h,tasks:S,consensus:y,consensusReports:A,memories:q,loading:!1,error:null})}catch(f){o(h=>({...h,loading:!1,error:f.message}))}},[]);return K.useEffect(()=>{d()},[d]),{...s,refresh:d}}function Bg({agents:s,tasks:o}){const[d,f]=K.useState("weight"),[h,S]=K.useState("desc"),[y,A]=K.useState(""),v=K.useMemo(()=>{const L=new Map;if(o)for(const ne of o.items){const D=L.get(ne.agentId);(!D||ne.timestamp>D.timestamp)&&L.set(ne.agentId,ne)}return L},[o]),g=s.filter(L=>L.scores.circuitOpen).length,C=s.filter(L=>L.scores.accuracy>=.5).length,q=s.reduce((L,ne)=>L+ne.scores.signals,0),Q=s.reduce((L,ne)=>L+ne.totalTokens,0),le=y.trim().toLowerCase(),fe=le?s.filter(L=>L.id.toLowerCase().includes(le)||L.provider.toLowerCase().includes(le)||L.model.toLowerCase().includes(le)):s,he=L=>{const ne=L.scores;switch(d){case"weight":return ne.dispatchWeight;case"accuracy":return ne.accuracy;case"uniqueness":return ne.uniqueness;case"impact":return ne.impactScore;case"signals":return ne.signals;case"agreements":return ne.agreements;case"hallucinations":return ne.hallucinations;case"lastTask":{const D=v.get(L.id);return D?new Date(D.timestamp).getTime():0}}},Z=[...fe].sort((L,ne)=>{const D=he(L),ae=he(ne);return h==="desc"?ae-D:D-ae}),W=L=>{d===L?S(ne=>ne==="desc"?"asc":"desc"):(f(L),S("desc"))},ge=L=>d===L?h==="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:g,color:g>0?"text-destructive":"text-muted-foreground"},{label:"Total Signals",value:q.toLocaleString(),color:"text-foreground"},{label:"Tokens Used",value:Q.toLocaleString(),color:"text-foreground"}].map(L=>i.jsxs("div",{className:"bg-card/80 px-4 py-3",children:[i.jsx("div",{className:`font-mono text-lg font-bold tabular-nums ${L.color}`,children:L.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[10px] uppercase tracking-wider text-muted-foreground/70",children:L.label})]},L.label))})]}),i.jsx("div",{className:"mb-3",children:i.jsx("input",{type:"text",value:y,onChange:L=>A(L.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:()=>W("weight"),children:["Weight ",ge("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:()=>W("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",ge("accuracy")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>W("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",ge("uniqueness")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>W("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",ge("impact")]})]})}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>W("signals"),children:["Signals ",ge("signals")]}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>W("hallucinations"),"data-tooltip":"Hallucinations — fabricated findings caught by cross-review",children:["Halluc ",ge("hallucinations")]}),i.jsxs("th",{className:"py-2.5 pr-5 text-left cursor-pointer select-none hover:text-foreground",onClick:()=>W("lastTask"),children:["Last Task ",ge("lastTask")]})]})}),i.jsx("tbody",{children:Z.map((L,ne)=>{const D=L.scores,ae=v.get(L.id),B=D.dispatchWeight>=1.2?"text-confirmed":D.dispatchWeight>=.8?"text-foreground":"text-disputed",J=h==="desc"&&(d==="weight"||d==="accuracy"||d==="impact")?ne+1:null;return i.jsxs("tr",{className:"group border-t border-border/20 align-top transition-colors 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 ${J===1?"font-bold text-primary":J===2||J===3?"font-semibold text-foreground/80":"text-muted-foreground/40"}`,children:J??"·"})}),i.jsx("td",{className:"py-2.5 pr-3 align-top",children:i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(L.id)}`,className:"flex items-center gap-3",children:[i.jsx(qs,{agentId:L.id,size:32,signals:D.signals,accuracy:D.accuracy,uniqueness:D.uniqueness,impact:D.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:L.id}),D.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:[L.provider,"/",L.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:D.dispatchWeight.toFixed(2)})}),i.jsx("td",{className:"py-3 pr-4 align-top",children:i.jsxs("div",{className:"space-y-1",children:[i.jsx(Ds,{label:"A",value:D.accuracy,fillClass:D.accuracy>=.7?"bg-confirmed":D.accuracy>=.4?"bg-unverified":"bg-disputed"}),i.jsx(Ds,{label:"U",value:D.uniqueness,fillClass:"bg-unique"}),i.jsx(Ds,{label:"I",value:D.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:D.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:D.hallucinations>0?"font-bold text-destructive":"text-muted-foreground/40","data-tooltip":`Agreements ${D.agreements} · Disagreements ${D.disagreements} · Hallucinations ${D.hallucinations}`,children:D.hallucinations})}),i.jsx("td",{className:"py-3 pr-5 align-top",children:ae?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:ae.taskId.slice(0,8)}),i.jsx("span",{className:"truncate font-inter text-[11px] text-muted-foreground/80",style:{maxWidth:260},children:ae.task}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Rt(ae.timestamp)})]}):i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/30",children:"no tasks"})})]},L.id)})})]})})]})}function Ds({label:s,value:o,fillClass:d}){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 ${d}`,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 Yg({tasks:s}){const[o,d]=K.useState(""),[f,h]=K.useState(0),[S,y]=K.useState(null),A=50,v=s.items.filter(Z=>Z.status==="completed").length,g=s.items.filter(Z=>Z.status==="failed").length,C=s.items.filter(Z=>Z.status==="running").length,q=o.trim().toLowerCase(),Q=q?s.items.filter(Z=>{var W,ge,L,ne;return((W=Z.task)==null?void 0:W.toLowerCase().includes(q))||((ge=Z.agentId)==null?void 0:ge.toLowerCase().includes(q))||((L=Z.taskId)==null?void 0:L.toLowerCase().includes(q))||((ne=Z.status)==null?void 0:ne.toLowerCase().includes(q))}):s.items,le=Math.max(1,Math.ceil(Q.length/A)),fe=Math.min(f,le-1),he=Q.slice(fe*A,(fe+1)*A);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:v})," completed"]}),g>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-destructive",children:g})," failed"]}),C>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:C})," running"]}),i.jsxs("span",{children:["showing ",he.length," of ",Q.length,q&&` (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:Z=>{d(Z.target.value),h(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"}),le>1&&i.jsxs("div",{className:"flex shrink-0 items-center gap-2 font-mono text-[11px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>h(Z=>Math.max(0,Z-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," / ",le]}),i.jsx("button",{onClick:()=>h(Z=>Math.min(le-1,Z+1)),disabled:fe>=le-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:q?"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(Z=>i.jsx(sm,{task:Z,onClick:y},Z.taskId))})]})}),i.jsx(xg,{task:S,onClose:()=>y(null)})]})}function Gg({consensus:s,consensusReports:o}){const d=s.runs.reduce((S,y)=>S+(y.counts.agreement||0),0),f=s.runs.reduce((S,y)=>S+((y.counts.disagreement||0)+(y.counts.hallucination||0)),0),h=s.runs.reduce((S,y)=>S+(y.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:d})," confirmed"]}),i.jsxs("span",{children:[i.jsx("span",{className:"text-disputed",children:f})," disputed"]}),h>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:h})," unverified"]}),i.jsxs("span",{children:[s.totalSignals," total signals"]})]})]}),i.jsx(cm,{consensus:s,reports:o,showAll:!0,hideHeader:!0})]})}function wg(){const s=am(),{overview:o,agents:d,tasks:f,consensus:h,consensusReports:S,memories:y,loading:A,refresh:v}=Hg(),[g,C]=K.useState(0),q=K.useCallback(fe=>{fe.type!=="log_lines"&&v()},[v]);if(qg(q),A||!o||!h)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx($d,{}),i.jsx("div",{className:"flex items-center justify-center py-20 text-muted-foreground",children:"Loading dashboard..."})]});let Q;const le=s.match(/^\/agent\/(.+)$/);if(le&&d){const fe=decodeURIComponent(le[1]);Q=i.jsx(zg,{agentId:fe,agents:d,tasks:f,consensus:h})}else s==="/team"&&d?Q=i.jsx(Bg,{agents:d,tasks:f}):s==="/tasks"&&f?Q=i.jsx(Yg,{tasks:f}):s==="/debates"&&h?Q=i.jsx(Gg,{consensus:h,consensusReports:S}):s==="/logs"?Q=i.jsx(Ug,{}):Q=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:g}),d&&i.jsx(F0,{agents:d})]}),i.jsxs("main",{className:"min-w-0 space-y-6",children:[i.jsx(lg,{onCountChange:C}),d&&i.jsx(hg,{agents:d}),i.jsx(cm,{consensus:h,reports:S}),i.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[f&&i.jsx(yg,{tasks:f}),y&&i.jsx(jg,{memories:y})]})]})]});return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx($d,{}),i.jsx("main",{className:"mx-auto max-w-7xl space-y-6 px-6 py-6",children:Q})]})}function Lg(){const{authed:s,login:o,error:d}=Rg();return s===null?i.jsx("div",{className:"flex min-h-screen items-center justify-center text-muted-foreground",children:"Loading..."}):s?i.jsx(wg,{}):i.jsx(Q0,{onLogin:o,error:d})}X0.createRoot(document.getElementById("root")).render(i.jsx(K.StrictMode,{children:i.jsx(Lg,{})}));
63
+ Critical and high findings count more.`})]})]})}function As({label:s,value:o,fillClass:d,tooltip:f}){const h=Number.isFinite(o)?o:0;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":f,children:s}),i.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-background/80",children:i.jsx("div",{className:`h-full rounded-full transition-all ${d}`,style:{width:`${Math.max(0,Math.min(100,h*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(h*100),"%"]})]})}function hg({agents:s}){const o=[...s].sort((h,S)=>{var C,q,Q,le;const y=((C=h.lastTask)==null?void 0:C.timestamp)??"",A=((q=S.lastTask)==null?void 0:q.timestamp)??"";if(y!==A)return A.localeCompare(y);const v=((Q=h.scores)==null?void 0:Q.signals)||0,g=((le=S.scores)==null?void 0:le.signals)||0;return v!==g?g-v:h.id.localeCompare(S.id)}),d=o.slice(0,4),f=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})]}),f&&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:d.map(h=>i.jsx(mg,{agent:h},h.id))})]})}const gg={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 xg({task:s,onClose:o}){if(K.useEffect(()=>{if(!s)return;const h=S=>{S.key==="Escape"&&o()};return document.addEventListener("keydown",h),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",h),document.body.style.overflow=""}},[s,o]),!s)return null;const d=gg[s.status],f=(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:h=>h.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 ${d.cls}`,children:d.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:Rt(s.timestamp)}),s.duration!=null&&i.jsxs("span",{children:["· ",K0(s.duration)]}),f>0&&i.jsxs("span",{children:["· ",f.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:ni(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 Id=8,pg={completed:{cls:"bg-confirmed/15 text-confirmed",symbol:"✓"},failed:{cls:"bg-destructive/15 text-destructive",symbol:"✗"},running:{cls:"bg-unverified/15 text-unverified",symbol:"⋯"},cancelled:{cls:"bg-muted/40 text-muted-foreground",symbol:"·"}},bg={cls:"bg-muted/40 text-muted-foreground",symbol:"·"};function vg(s,o){return s.length>o?s.slice(0,o)+"…":s}function yg({tasks:s}){const o=s.items.slice(0,Id),d=s.items.length>Id;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})]}),d&&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(Ba,{title:"No tasks yet",hint:"Dispatch with gossip_run to populate this view."}):o.map((f,h)=>i.jsxs("div",{className:`flex h-11 items-center gap-3 px-3.5 hover:bg-accent/20 transition-colors ${h>0?"border-t border-border/20":""}`,children:[(()=>{const S=pg[f.status]||bg;return i.jsxs("span",{className:`inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 font-mono text-[9px] font-semibold ${S.cls}`,children:[i.jsx("span",{className:"h-1 w-1 rounded-full bg-current"}),S.symbol]})})(),i.jsx("span",{className:"shrink-0 font-mono text-xs font-bold text-foreground",children:f.agentId}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-inter text-[11px] text-muted-foreground",children:vg(f.task,50)}),i.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Rt(f.timestamp)})]},f.taskId))})]})}function Sg(s){var f,h,S,y;const o=(f=s.frontmatter)==null?void 0:f.type;if(o&&o!=="unknown")return o;const d=[s.filename,((h=s.frontmatter)==null?void 0:h.name)||"",((S=s.frontmatter)==null?void 0:S.description)||"",s.content.slice(0,200)].join(" ").toLowerCase();return d.includes("session")||d.includes("next-session")?"session":d.includes("cognitive")||d.includes("session-gossip")?"cognitive":d.includes("skill")||d.includes("gap")?"skill":d.includes("consensus")||d.includes("finding")||d.includes("review")||d.includes("cross-review")?"review":d.includes("dispatch")||d.includes("implement")?"task":d.includes("design")||d.includes("architecture")?"review":d.includes("bug")||d.includes("fix")||d.includes("debug")?"task":(y=s.frontmatter)!=null&&y.name?"knowledge":"note"}const Pd={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"},jg={cognitive:"cognitive",knowledge:"knowledge",skill:"skill",review:"review",task:"task",session:"session",note:"memory"};function Ng({memories:s}){const[o,d]=K.useState(null),f=s.filter((S,y,A)=>A.findIndex(v=>v.filename===S.filename)===y),h=f.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:f.length})]}),h.length===0?i.jsx("div",{className:"flex-1",children:i.jsx(Ba,{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:h.map((S,y)=>{var q,Q;const A=Sg(S),v=((q=S.frontmatter)==null?void 0:q.name)||((Q=S.content.split(`
64
+ `)[0])==null?void 0:Q.slice(0,80))||S.filename.replace(/\.md$/,""),g=o===y,C=S.agentId||"_unknown";return i.jsxs("div",{className:y>0?"border-t border-border/20":"",children:[i.jsxs("button",{onClick:()=>d(g?null:y),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 ${g?"text-primary":"text-muted-foreground/40"}`,children:g?"▾":"▸"}),i.jsx("span",{className:`shrink-0 rounded-sm border border-border/30 px-1 py-0.5 font-mono text-[10px] font-bold ${Pd[A]||Pd.note}`,children:jg[A]||"NOTE"}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-foreground",children:v}),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})]}),g&&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:S.content})})]},S.filename)})})]})}const em=5;function zs(s){return!Number.isFinite(s)||s<0?0:s>1?1:s}function Tg({strengths:s,accuracy:o,correctCounts:d,hallucinatedCounts:f}){const h=new Set([...Object.keys(s),...o?Object.keys(o):[],...d?Object.keys(d):[],...f?Object.keys(f):[]]),S=[];for(const y of h){const A=(d==null?void 0:d[y])??0,v=(f==null?void 0:f[y])??0,g=A+v,C=g<em;let q;o&&o[y]!==void 0?q=zs(o[y]):g>0?q=zs(A/g):q=zs(s[y]??0),S.push({category:y,score:q,c:A,n:g,sparse:C})}return S.sort((y,A)=>y.sparse!==A.sparse?y.sparse?1:-1:A.score-y.score),S.length===0?i.jsx(Ba,{title:"No category data yet",hint:"Category signals accrue after the first consensus round.",compact:!0}):i.jsx("div",{className:"space-y-2",children:S.map(y=>i.jsxs("div",{className:`flex items-center gap-3 ${y.sparse?"opacity-40":""}`,title:y.sparse?`Only ${y.n} signal${y.n===1?"":"s"} in this category — needs ≥${em} for a trustworthy accuracy.`:`${y.c} correct / ${y.n} total`,children:[i.jsx("span",{className:"w-32 shrink-0 truncate font-mono text-[11px] text-muted-foreground",children:y.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:`${y.score*100}%`}})}),i.jsx("span",{className:"shrink-0 text-right font-mono text-[10px] tabular-nums text-muted-foreground/70 w-16",children:y.sparse&&y.n===0?"—":`${y.c}/${y.n}`}),i.jsx("span",{className:"w-10 shrink-0 text-right font-mono text-[11px] tabular-nums text-foreground",children:y.sparse?i.jsx("span",{className:"text-muted-foreground/50",children:"sparse"}):`${Math.round(y.score*100)}%`})]},y.category))})}const Mg={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"},_g={agreement:"Confirmed",consensus_verified:"Confirmed",unique_confirmed:"Unique (confirmed)",unique_unconfirmed:"Unique",disagreement:"Disputed",hallucination_caught:"Hallucination",new_finding:"New finding",unverified:"Unverified"};function Eg({agentId:s}){const[o,d]=K.useState([]),[f,h]=K.useState(0);if(K.useEffect(()=>{Yt(`signals?agent=${encodeURIComponent(s)}&limit=100`).then(g=>{d(g.items||[]),h(g.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(Ba,{title:"No signal history yet",hint:"Signals are recorded during consensus rounds.",compact:!0})});const S=[...o].reverse(),y={confirmed:0,disputed:0,unique:0,unverified:0};for(const g of o)g.signal==="agreement"||g.signal==="consensus_verified"?y.confirmed++:g.signal==="disagreement"||g.signal==="hallucination_caught"?y.disputed++:g.signal==="unique_confirmed"||g.signal==="unique_unconfirmed"||g.signal==="new_finding"?y.unique++:g.signal==="unverified"&&y.unverified++;const A=o.length,v=f>A;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:v?`last ${A} of ${f}`:`${f} total`})]}),i.jsxs("div",{className:"flex items-center gap-3 font-mono text-[10px]",children:[i.jsxs("span",{className:"text-confirmed",children:[y.confirmed," confirmed"]}),y.disputed>0&&i.jsxs("span",{className:"text-disputed",children:[y.disputed," disputed"]}),y.unique>0&&i.jsxs("span",{className:"text-unique",children:[y.unique," unique"]}),y.unverified>0&&i.jsxs("span",{className:"text-unverified",children:[y.unverified," unverified"]})]})]}),i.jsx("div",{className:"flex items-center gap-0.5",children:S.map((g,C)=>i.jsx("div",{className:`h-4 w-1.5 rounded-sm transition-opacity hover:opacity-80 ${Mg[g.signal]||"bg-muted"}`,title:`${_g[g.signal]||g.signal} — ${Rt(g.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(g=>i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("div",{className:`h-2 w-2 rounded-sm ${g.color}`}),i.jsx("span",{className:"font-mono text-[9px] text-muted-foreground/60",children:g.label})]},g.label))})]})}const tm={completed:{cls:"text-confirmed bg-confirmed/8",label:"Done"},failed:{cls:"text-destructive bg-destructive/8",label:"Failed"},running:{cls:"text-unverified bg-unverified/8",label:"Running"},cancelled:{cls:"text-muted-foreground bg-muted/50",label:"Cancelled"}};function Ag(s){if(!s)return"—";if(s<1e3)return"< 1s";if(s<6e4)return Math.floor(s/1e3)+"s";if(s<36e5){const f=Math.floor(s/6e4),h=Math.floor(s%6e4/1e3);return h>0?`${f}m ${h}s`:`${f}m`}const o=Math.floor(s/36e5),d=Math.floor(s%36e5/6e4);return d>0?`${o}h ${d}m`:`${o}h`}function sm({task:s,onClick:o}){const d=tm[s.status]??tm.cancelled,f=s.status==="completed"?"bg-confirmed":s.status==="failed"?"bg-destructive":s.status==="running"?"bg-unverified":"bg-muted-foreground/40";return i.jsxs("tr",{className:`border-b border-border hover:bg-accent/30 transition-colors ${o?"cursor-pointer":""}`,onClick:o?h=>{h.target.closest("a")||o(s)}:void 0,children:[i.jsx("td",{className:"py-2.5 pl-4 pr-2",children:i.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 font-mono text-[10px] font-semibold ${d.cls}`,children:[i.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${f}`}),d.label]})}),i.jsx("td",{className:"py-2.5 pr-3",children:i.jsx("span",{className:"rounded border border-amber-500/25 bg-amber-500/8 px-2 py-1 font-mono text-[10px] font-semibold text-amber-400",children:s.taskId.slice(0,8)})}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(s.agentId)}`,className:"inline-flex items-center gap-1.5 transition hover:text-primary",children:[i.jsx("span",{className:"inline-block h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:Ha(s.agentId)}}),s.agentId]})}),i.jsx("td",{className:"py-2.5 pr-3 font-inter text-sm text-foreground/80",children:(()=>{const h=s.task.replace(/\n.*/s,"");return h.length>100?h.slice(0,100)+"…":h})()}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:s.status==="running"?"running":Ag(s.duration)}),i.jsx("td",{className:"py-2.5 pr-4 text-right font-mono text-xs text-muted-foreground",children:Rt(s.timestamp)})]})}function zg({agentId:s,agents:o,tasks:d,consensus:f}){const h=o.find(z=>z.id===s),[S,y]=K.useState([]),[A,v]=K.useState(null),[g,C]=K.useState(null),[q,Q]=K.useState("all"),[le,fe]=K.useState(0),[he,Z]=K.useState(0);if(K.useEffect(()=>{Yt(`memory/${s}`).then(z=>{y(z.knowledge||[])}).catch(()=>y([]))},[s]),!h)return i.jsxs("div",{className:"py-20 text-center text-muted-foreground",children:["Agent not found: ",s]});const W=h.scores,ge=(d==null?void 0:d.items.filter(z=>z.agentId===s))||[],L=(f==null?void 0:f.runs.filter(z=>z.agents.includes(s)))||[],ne=[{label:"accuracy",value:W.accuracy,fill:W.accuracy>=.7?"bg-confirmed":W.accuracy>=.4?"bg-unverified":"bg-disputed"},{label:"reliability",value:W.reliability,fill:"bg-chart"},{label:"unique",value:W.uniqueness,fill:"bg-unique"},{label:"impact",value:W.impactScore,fill:"bg-[var(--color-impact)]"}],D=[{label:"Signals",value:String(W.signals),color:"text-foreground"},{label:"Agreements",value:String(W.agreements),color:"text-confirmed"},{label:"Disagreements",value:String(W.disagreements),color:"text-disputed"},{label:"Hallucinations",value:String(W.hallucinations),color:W.hallucinations>0?"text-disputed":"text-muted-foreground"},{label:"Tokens",value:h.totalTokens.toLocaleString(),color:"text-foreground"}],ae=10,B=Math.max(1,Math.ceil(ge.length/ae)),J=Math.min(le,B-1),ce=ge.slice(J*ae,(J+1)*ae),ie=K.useMemo(()=>{const z=new Map;for(const P of S){const I=P.filename.match(/^(\d{4}-\d{2}-\d{2})/),T=I?I[1]:"undated",H=z.get(T)||[];H.push(P),z.set(T,H)}return Array.from(z.entries()).sort(([P],[I])=>P==="undated"?1:I==="undated"?-1:I.localeCompare(P)).map(([P,I])=>({day:P,items:I}))},[S]),Y=Math.min(he,Math.max(0,ie.length-1)),w=ie[Y];return i.jsxs(i.Fragment,{children:[W.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:[W.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(qs,{agentId:h.id,size:120,signals:W.signals,accuracy:W.accuracy,uniqueness:W.uniqueness,impact:W.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:h.id}),i.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:[h.provider,"/",h.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 ${h.native?"text-primary bg-primary/10":"text-confirmed bg-confirmed/10"}`,children:h.native?"NATIVE":"RELAY"}),h.preset&&i.jsx("span",{className:"rounded-sm bg-muted px-2 py-0.5 font-mono text-[10px] text-muted-foreground",children:h.preset}),W.consecutiveFailures>0&&!W.circuitOpen&&i.jsxs("span",{className:"rounded-sm bg-unverified/10 px-2 py-0.5 font-mono text-[10px] font-bold text-unverified",children:[W.consecutiveFailures," CONSECUTIVE FAILS"]}),i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/60",children:[W.signals," signals",h.lastTask?` · ${Rt(h.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 ${W.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:W.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(Eg,{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:ne.map(z=>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:z.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 ${z.fill}`,style:{width:`${Math.max(0,Math.min(100,z.value*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(z.value*100),"%"]})]},z.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:D.map(z=>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 ${z.color}`,children:z.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[9px] uppercase tracking-wider text-muted-foreground/70",children:z.label})]},z.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(Tg,{strengths:W.categoryStrengths,accuracy:W.categoryAccuracy,correctCounts:W.categoryCorrect,hallucinatedCounts:W.categoryHallucinated})]})]}),(h.skillSlots.length>0||h.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:h.skillSlots.length||h.skills.length})]}),i.jsx("div",{className:"flex flex-wrap gap-1.5",children:h.skillSlots.length>0?h.skillSlots.map(z=>i.jsxs("span",{className:`rounded-sm border px-2.5 py-1 font-mono text-xs ${z.enabled?z.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:`${z.mode} · ${z.source} · ${z.enabled?"enabled":"disabled"}`,children:[z.mode==="contextual"&&"⚡ ",z.name]},z.name)):h.skills.map(z=>i.jsx("span",{className:"rounded-sm border border-border bg-card px-2.5 py-1 font-mono text-xs text-muted-foreground",children:z},z))})]}),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:L.length})]}),L.length>0?i.jsx("div",{className:"space-y-2",children:L.slice(0,20).map((z,P)=>{const I=z.counts,T=(I.agreement||0)+(I.disagreement||0)+(I.hallucination||0)+(I.unverified||0)+(I.unique||0)+(I.new||0),H=T||1,V=g===P,X=[{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"}],re={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"}},x=z.signals.filter(_=>{if(_.signal==="signal_retracted")return!1;const G=re[_.signal];return G?q==="all"||G.filter===q:!1});return i.jsxs("div",{className:`rounded-md border bg-card transition ${V?"border-primary/25":"border-border/40"}`,children:[i.jsxs("button",{onClick:()=>{C(V?null:P),Q("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 ${V?"text-primary":"text-muted-foreground"}`,children:V?"▾":"▸"}),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:[T," findings"]}),i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Rt(z.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex gap-2",children:X.map(_=>_.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${_.text}`,children:[_.count," ",_.key]},_.key))}),i.jsx("div",{className:"mt-1.5 flex h-1.5 overflow-hidden rounded-sm",children:X.map(_=>_.count>0&&i.jsx("div",{className:_.color,style:{width:`${_.count/H*100}%`}},_.key))})]})]}),V&&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(_=>i.jsx("button",{onClick:()=>Q(_),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${q===_?"text-foreground bg-muted":"text-muted-foreground hover:text-foreground"}`,children:_.charAt(0).toUpperCase()+_.slice(1)},_))}),x.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:x.map((_,G)=>{const k=re[_.signal];return k?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 ${k.cls}`,children:k.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:ni(_.evidence||"")}}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[_.agentId,_.counterpartId?` + ${_.counterpartId}`:""]})]})]},G):null})})]})]},z.taskId+P)})}):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:ge.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(z=>Math.max(0,z-1)),disabled:J===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:[J+1," / ",B]}),i.jsx("button",{onClick:()=>fe(z=>Math.min(B-1,z+1)),disabled:J>=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 ▸"})]})]}),ge.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:ce.map(z=>i.jsx(sm,{task:z},z.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:[S.length," files"]}),w&&i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground",children:["· ",w.day," (",w.items.length,")"]})]}),ie.length>1&&i.jsxs("div",{className:"flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>Z(z=>Math.max(0,z-1)),disabled:Y===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:[Y+1," / ",ie.length]}),i.jsx("button",{onClick:()=>Z(z=>Math.min(ie.length-1,z+1)),disabled:Y>=ie.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(z=>{var H,V;const P=A===z.filename,I=((H=z.frontmatter)==null?void 0:H.type)||"memory",T=((V=z.frontmatter)==null?void 0:V.name)||z.filename.replace(/\.md$/,"");return i.jsxs("div",{className:"rounded-md border border-border/40 bg-card/80",children:[i.jsxs("button",{onClick:()=>v(P?null:z.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 ${P?"text-primary":"text-muted-foreground"}`,children:P?"▾":"▸"}),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:T}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground",children:z.filename})]}),P&&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:z.content})})]},z.filename)})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No memory files."})]})]})}const lm={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"},Dg=[[/^\[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 Og(s){for(const[o,d]of Dg)if(o.test(s))return d;return"other"}const Cg=[{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"}],nm=1e3;function Ug(){const[s,o]=K.useState([]),[d,f]=K.useState(0),[h,S]=K.useState(0),[y,A]=K.useState("all"),[v,g]=K.useState(!0),[C,q]=K.useState(!0),Q=K.useRef(null),le=K.useRef(0);K.useEffect(()=>{let Z=!1;return(async()=>{try{const ge=await Yt("logs?tail=500");if(Z)return;o(ge.entries),f(ge.totalLines),S(ge.fileSize),le.current=ge.totalLines+1}catch{}})(),()=>{Z=!0}},[]),K.useEffect(()=>{if(C)return im(Z=>{var ge;if(Z.type!=="log_lines")return;const W=(ge=Z.data)==null?void 0:ge.lines;W!=null&&W.length&&o(L=>{const ne=W.map((ae,B)=>({line:le.current+B,text:ae,category:Og(ae)}));le.current+=W.length,f(ae=>ae+W.length);const D=[...L,...ne];return D.length>nm?D.slice(-nm):D})})},[C]),K.useEffect(()=>{v&&Q.current&&Q.current.scrollIntoView({behavior:"smooth"})},[s,v]);const fe=y==="all"?s:s.filter(Z=>Z.category===y),he=K.useCallback(Z=>Z<1024?`${Z} B`:Z<1048576?`${(Z/1024).toFixed(1)} KB`:`${(Z/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:[d," lines"]})]}),i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:he(h)}),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:[Cg.map(Z=>i.jsx("button",{onClick:()=>A(Z.key),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${y===Z.key?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:Z.label},Z.key)),i.jsxs("div",{className:"ml-auto flex gap-1.5",children:[i.jsx("button",{onClick:()=>q(!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:()=>g(!v),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${v?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:v?"⤓ 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(Z=>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:Z.line}),i.jsx("span",{className:lm[Z.category]||lm.other,children:Z.text})]},Z.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:Q})]})})]})}function Rg(){const[s,o]=K.useState(null),[d,f]=K.useState(!1);K.useEffect(()=>{P0().then(o)},[]);const h=K.useCallback(async S=>{f(!1),await I0(S)?o(!0):f(!0)},[]);return{authed:s,login:h,error:d}}function qg(s){K.useEffect(()=>(um(),im(s)),[s])}function Hg(){const[s,o]=K.useState({overview:null,agents:null,tasks:null,consensus:null,consensusReports:null,memories:null,loading:!0,error:null}),d=K.useCallback(async()=>{try{const[f,h,S,y,A]=await Promise.all([Yt("overview"),Yt("agents"),Yt("tasks?limit=50"),Yt("consensus?pageSize=50"),Yt("consensus-reports?page=1&pageSize=5").catch(()=>({reports:[]}))]),v=h.slice(0,5).map(Q=>Q.id).concat(["_project"]),g=await Promise.allSettled(v.map(Q=>Yt(`memory/${Q}`))),C=[];for(let Q=0;Q<g.length;Q++){const le=g[Q],fe=v[Q];if(le.status==="fulfilled"&&le.value.knowledge)for(const he of le.value.knowledge)C.push({...he,agentId:fe})}C.sort((Q,le)=>le.filename>Q.filename?1:-1);const q=C.slice(0,20);o({overview:f,agents:h,tasks:S,consensus:y,consensusReports:A,memories:q,loading:!1,error:null})}catch(f){o(h=>({...h,loading:!1,error:f.message}))}},[]);return K.useEffect(()=>{d()},[d]),{...s,refresh:d}}function Bg({agents:s,tasks:o}){const[d,f]=K.useState("weight"),[h,S]=K.useState("desc"),[y,A]=K.useState(""),v=K.useMemo(()=>{const L=new Map;if(o)for(const ne of o.items){const D=L.get(ne.agentId);(!D||ne.timestamp>D.timestamp)&&L.set(ne.agentId,ne)}return L},[o]),g=s.filter(L=>L.scores.circuitOpen).length,C=s.filter(L=>L.scores.accuracy>=.5).length,q=s.reduce((L,ne)=>L+ne.scores.signals,0),Q=s.reduce((L,ne)=>L+ne.totalTokens,0),le=y.trim().toLowerCase(),fe=le?s.filter(L=>L.id.toLowerCase().includes(le)||L.provider.toLowerCase().includes(le)||L.model.toLowerCase().includes(le)):s,he=L=>{const ne=L.scores;switch(d){case"weight":return ne.dispatchWeight;case"accuracy":return ne.accuracy;case"uniqueness":return ne.uniqueness;case"impact":return ne.impactScore;case"signals":return ne.signals;case"agreements":return ne.agreements;case"hallucinations":return ne.hallucinations;case"lastTask":{const D=v.get(L.id);return D?new Date(D.timestamp).getTime():0}}},Z=[...fe].sort((L,ne)=>{const D=he(L),ae=he(ne);return h==="desc"?ae-D:D-ae}),W=L=>{d===L?S(ne=>ne==="desc"?"asc":"desc"):(f(L),S("desc"))},ge=L=>d===L?h==="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:g,color:g>0?"text-destructive":"text-muted-foreground"},{label:"Total Signals",value:q.toLocaleString(),color:"text-foreground"},{label:"Tokens Used",value:Q.toLocaleString(),color:"text-foreground"}].map(L=>i.jsxs("div",{className:"bg-card/80 px-4 py-3",children:[i.jsx("div",{className:`font-mono text-lg font-bold tabular-nums ${L.color}`,children:L.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[10px] uppercase tracking-wider text-muted-foreground/70",children:L.label})]},L.label))})]}),i.jsx("div",{className:"mb-3",children:i.jsx("input",{type:"text",value:y,onChange:L=>A(L.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:()=>W("weight"),children:["Weight ",ge("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:()=>W("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",ge("accuracy")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>W("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",ge("uniqueness")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>W("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",ge("impact")]})]})}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>W("signals"),children:["Signals ",ge("signals")]}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>W("hallucinations"),"data-tooltip":"Hallucinations — fabricated findings caught by cross-review",children:["Halluc ",ge("hallucinations")]}),i.jsxs("th",{className:"py-2.5 pr-5 text-left cursor-pointer select-none hover:text-foreground",onClick:()=>W("lastTask"),children:["Last Task ",ge("lastTask")]})]})}),i.jsx("tbody",{children:Z.map((L,ne)=>{const D=L.scores,ae=v.get(L.id),B=D.dispatchWeight>=1.2?"text-confirmed":D.dispatchWeight>=.8?"text-foreground":"text-disputed",J=h==="desc"&&(d==="weight"||d==="accuracy"||d==="impact")?ne+1:null;return i.jsxs("tr",{className:"group border-t border-border/20 align-top transition-colors 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 ${J===1?"font-bold text-primary":J===2||J===3?"font-semibold text-foreground/80":"text-muted-foreground/40"}`,children:J??"·"})}),i.jsx("td",{className:"py-2.5 pr-3 align-top",children:i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(L.id)}`,className:"flex items-center gap-3",children:[i.jsx(qs,{agentId:L.id,size:32,signals:D.signals,accuracy:D.accuracy,uniqueness:D.uniqueness,impact:D.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:L.id}),D.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:[L.provider,"/",L.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:D.dispatchWeight.toFixed(2)})}),i.jsx("td",{className:"py-3 pr-4 align-top",children:i.jsxs("div",{className:"space-y-1",children:[i.jsx(Ds,{label:"A",value:D.accuracy,fillClass:D.accuracy>=.7?"bg-confirmed":D.accuracy>=.4?"bg-unverified":"bg-disputed"}),i.jsx(Ds,{label:"U",value:D.uniqueness,fillClass:"bg-unique"}),i.jsx(Ds,{label:"I",value:D.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:D.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:D.hallucinations>0?"font-bold text-destructive":"text-muted-foreground/40","data-tooltip":`Agreements ${D.agreements} · Disagreements ${D.disagreements} · Hallucinations ${D.hallucinations}`,children:D.hallucinations})}),i.jsx("td",{className:"py-3 pr-5 align-top",children:ae?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:ae.taskId.slice(0,8)}),i.jsx("span",{className:"truncate font-inter text-[11px] text-muted-foreground/80",style:{maxWidth:260},children:ae.task}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Rt(ae.timestamp)})]}):i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/30",children:"no tasks"})})]},L.id)})})]})})]})}function Ds({label:s,value:o,fillClass:d}){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 ${d}`,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 Yg({tasks:s}){const[o,d]=K.useState(""),[f,h]=K.useState(0),[S,y]=K.useState(null),A=50,v=s.items.filter(Z=>Z.status==="completed").length,g=s.items.filter(Z=>Z.status==="failed").length,C=s.items.filter(Z=>Z.status==="running").length,q=o.trim().toLowerCase(),Q=q?s.items.filter(Z=>{var W,ge,L,ne;return((W=Z.task)==null?void 0:W.toLowerCase().includes(q))||((ge=Z.agentId)==null?void 0:ge.toLowerCase().includes(q))||((L=Z.taskId)==null?void 0:L.toLowerCase().includes(q))||((ne=Z.status)==null?void 0:ne.toLowerCase().includes(q))}):s.items,le=Math.max(1,Math.ceil(Q.length/A)),fe=Math.min(f,le-1),he=Q.slice(fe*A,(fe+1)*A);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:v})," completed"]}),g>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-destructive",children:g})," failed"]}),C>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:C})," running"]}),i.jsxs("span",{children:["showing ",he.length," of ",Q.length,q&&` (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:Z=>{d(Z.target.value),h(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"}),le>1&&i.jsxs("div",{className:"flex shrink-0 items-center gap-2 font-mono text-[11px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>h(Z=>Math.max(0,Z-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," / ",le]}),i.jsx("button",{onClick:()=>h(Z=>Math.min(le-1,Z+1)),disabled:fe>=le-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:q?"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(Z=>i.jsx(sm,{task:Z,onClick:y},Z.taskId))})]})}),i.jsx(xg,{task:S,onClose:()=>y(null)})]})}function Gg({consensus:s,consensusReports:o}){const d=s.runs.reduce((S,y)=>S+(y.counts.agreement||0),0),f=s.runs.reduce((S,y)=>S+((y.counts.disagreement||0)+(y.counts.hallucination||0)),0),h=s.runs.reduce((S,y)=>S+(y.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:d})," confirmed"]}),i.jsxs("span",{children:[i.jsx("span",{className:"text-disputed",children:f})," disputed"]}),h>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:h})," unverified"]}),i.jsxs("span",{children:[s.totalSignals," total signals"]})]})]}),i.jsx(cm,{consensus:s,reports:o,showAll:!0,hideHeader:!0})]})}function wg(){const s=am(),{overview:o,agents:d,tasks:f,consensus:h,consensusReports:S,memories:y,loading:A,refresh:v}=Hg(),[g,C]=K.useState(0),q=K.useCallback(fe=>{fe.type!=="log_lines"&&v()},[v]);if(qg(q),A||!o||!h)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx($d,{}),i.jsx("div",{className:"flex items-center justify-center py-20 text-muted-foreground",children:"Loading dashboard..."})]});let Q;const le=s.match(/^\/agent\/(.+)$/);if(le&&d){const fe=decodeURIComponent(le[1]);Q=i.jsx(zg,{agentId:fe,agents:d,tasks:f,consensus:h})}else s==="/team"&&d?Q=i.jsx(Bg,{agents:d,tasks:f}):s==="/tasks"&&f?Q=i.jsx(Yg,{tasks:f}):s==="/debates"&&h?Q=i.jsx(Gg,{consensus:h,consensusReports:S}):s==="/logs"?Q=i.jsx(Ug,{}):Q=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:g}),d&&i.jsx(F0,{agents:d})]}),i.jsxs("main",{className:"min-w-0 space-y-6",children:[i.jsx(lg,{onCountChange:C}),d&&i.jsx(hg,{agents:d}),i.jsx(cm,{consensus:h,reports:S}),i.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[f&&i.jsx(yg,{tasks:f}),y&&i.jsx(Ng,{memories:y})]})]})]});return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx($d,{}),i.jsx("main",{className:"mx-auto max-w-7xl space-y-6 px-6 py-6",children:Q})]})}function Lg(){const{authed:s,login:o,error:d}=Rg();return s===null?i.jsx("div",{className:"flex min-h-screen items-center justify-center text-muted-foreground",children:"Loading..."}):s?i.jsx(wg,{}):i.jsx(Q0,{onLogin:o,error:d})}X0.createRoot(document.getElementById("root")).render(i.jsx(K.StrictMode,{children:i.jsx(Lg,{})}));