@mono-agent/session-web 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,143 @@
1
+ (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))r(g);new MutationObserver(g=>{for(const m of g)if(m.type==="childList")for(const B of m.addedNodes)B.tagName==="LINK"&&B.rel==="modulepreload"&&r(B)}).observe(document,{childList:!0,subtree:!0});function v(g){const m={};return g.integrity&&(m.integrity=g.integrity),g.referrerPolicy&&(m.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?m.credentials="include":g.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(g){if(g.ep)return;g.ep=!0;const m=v(g);fetch(g.href,m)}})();var Jc={exports:{}},ui={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var c0;function i1(){if(c0)return ui;c0=1;var o=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function v(r,g,m){var B=null;if(m!==void 0&&(B=""+m),g.key!==void 0&&(B=""+g.key),"key"in g){m={};for(var Z in g)Z!=="key"&&(m[Z]=g[Z])}else m=g;return g=m.ref,{$$typeof:o,type:r,key:B,ref:g!==void 0?g:null,props:m}}return ui.Fragment=f,ui.jsx=v,ui.jsxs=v,ui}var s0;function u1(){return s0||(s0=1,Jc.exports=i1()),Jc.exports}var c=u1(),Fc={exports:{}},nt={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var r0;function o1(){if(r0)return nt;r0=1;var o=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),X=Symbol.iterator;function ot(d){return d===null||typeof d!="object"?null:(d=X&&d[X]||d["@@iterator"],typeof d=="function"?d:null)}var ct={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},it=Object.assign,Et={};function xt(d,x,U){this.props=d,this.context=x,this.refs=Et,this.updater=U||ct}xt.prototype.isReactComponent={},xt.prototype.setState=function(d,x){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,x,"setState")},xt.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function D(){}D.prototype=xt.prototype;function lt(d,x,U){this.props=d,this.context=x,this.refs=Et,this.updater=U||ct}var F=lt.prototype=new D;F.constructor=lt,it(F,xt.prototype),F.isPureReactComponent=!0;var ft=Array.isArray;function pt(){}var p={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function et(d,x,U){var q=U.ref;return{$$typeof:o,type:d,key:x,ref:q!==void 0?q:null,props:U}}function dt(d,x){return et(d.type,x,d.props)}function kt(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function at(d){var x={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(U){return x[U]})}var At=/\/+/g;function ae(d,x){return typeof d=="object"&&d!==null&&d.key!=null?at(""+d.key):x.toString(36)}function Xt(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(pt,pt):(d.status="pending",d.then(function(x){d.status==="pending"&&(d.status="fulfilled",d.value=x)},function(x){d.status==="pending"&&(d.status="rejected",d.reason=x)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function _(d,x,U,q,$){var W=typeof d;(W==="undefined"||W==="boolean")&&(d=null);var P=!1;if(d===null)P=!0;else switch(W){case"bigint":case"string":case"number":P=!0;break;case"object":switch(d.$$typeof){case o:case f:P=!0;break;case Q:return P=d._init,_(P(d._payload),x,U,q,$)}}if(P)return $=$(d),P=q===""?"."+ae(d,0):q,ft($)?(U="",P!=null&&(U=P.replace(At,"$&/")+"/"),_($,x,U,"",function(Ke){return Ke})):$!=null&&(kt($)&&($=dt($,U+($.key==null||d&&d.key===$.key?"":(""+$.key).replace(At,"$&/")+"/")+P)),x.push($)),1;P=0;var wt=q===""?".":q+":";if(ft(d))for(var St=0;St<d.length;St++)q=d[St],W=wt+ae(q,St),P+=_(q,x,U,W,$);else if(St=ot(d),typeof St=="function")for(d=St.call(d),St=0;!(q=d.next()).done;)q=q.value,W=wt+ae(q,St++),P+=_(q,x,U,W,$);else if(W==="object"){if(typeof d.then=="function")return _(Xt(d),x,U,q,$);throw x=String(d),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.")}return P}function k(d,x,U){if(d==null)return d;var q=[],$=0;return _(d,q,"","",function(W){return x.call(U,W,$++)}),q}function V(d){if(d._status===-1){var x=d._result;x=x(),x.then(function(U){(d._status===0||d._status===-1)&&(d._status=1,d._result=U)},function(U){(d._status===0||d._status===-1)&&(d._status=2,d._result=U)}),d._status===-1&&(d._status=0,d._result=x)}if(d._status===1)return d._result.default;throw d._result}var st=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var x=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(x))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},z={map:k,forEach:function(d,x,U){k(d,function(){x.apply(this,arguments)},U)},count:function(d){var x=0;return k(d,function(){x++}),x},toArray:function(d){return k(d,function(x){return x})||[]},only:function(d){if(!kt(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return nt.Activity=L,nt.Children=z,nt.Component=xt,nt.Fragment=v,nt.Profiler=g,nt.PureComponent=lt,nt.StrictMode=r,nt.Suspense=H,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,nt.__COMPILER_RUNTIME={__proto__:null,c:function(d){return p.H.useMemoCache(d)}},nt.cache=function(d){return function(){return d.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(d,x,U){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var q=it({},d.props),$=d.key;if(x!=null)for(W in x.key!==void 0&&($=""+x.key),x)!N.call(x,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&x.ref===void 0||(q[W]=x[W]);var W=arguments.length-2;if(W===1)q.children=U;else if(1<W){for(var P=Array(W),wt=0;wt<W;wt++)P[wt]=arguments[wt+2];q.children=P}return et(d.type,$,q)},nt.createContext=function(d){return d={$$typeof:B,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:m,_context:d},d},nt.createElement=function(d,x,U){var q,$={},W=null;if(x!=null)for(q in x.key!==void 0&&(W=""+x.key),x)N.call(x,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&($[q]=x[q]);var P=arguments.length-2;if(P===1)$.children=U;else if(1<P){for(var wt=Array(P),St=0;St<P;St++)wt[St]=arguments[St+2];$.children=wt}if(d&&d.defaultProps)for(q in P=d.defaultProps,P)$[q]===void 0&&($[q]=P[q]);return et(d,W,$)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(d){return{$$typeof:Z,render:d}},nt.isValidElement=kt,nt.lazy=function(d){return{$$typeof:Q,_payload:{_status:-1,_result:d},_init:V}},nt.memo=function(d,x){return{$$typeof:j,type:d,compare:x===void 0?null:x}},nt.startTransition=function(d){var x=p.T,U={};p.T=U;try{var q=d(),$=p.S;$!==null&&$(U,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(pt,st)}catch(W){st(W)}finally{x!==null&&U.types!==null&&(x.types=U.types),p.T=x}},nt.unstable_useCacheRefresh=function(){return p.H.useCacheRefresh()},nt.use=function(d){return p.H.use(d)},nt.useActionState=function(d,x,U){return p.H.useActionState(d,x,U)},nt.useCallback=function(d,x){return p.H.useCallback(d,x)},nt.useContext=function(d){return p.H.useContext(d)},nt.useDebugValue=function(){},nt.useDeferredValue=function(d,x){return p.H.useDeferredValue(d,x)},nt.useEffect=function(d,x){return p.H.useEffect(d,x)},nt.useEffectEvent=function(d){return p.H.useEffectEvent(d)},nt.useId=function(){return p.H.useId()},nt.useImperativeHandle=function(d,x,U){return p.H.useImperativeHandle(d,x,U)},nt.useInsertionEffect=function(d,x){return p.H.useInsertionEffect(d,x)},nt.useLayoutEffect=function(d,x){return p.H.useLayoutEffect(d,x)},nt.useMemo=function(d,x){return p.H.useMemo(d,x)},nt.useOptimistic=function(d,x){return p.H.useOptimistic(d,x)},nt.useReducer=function(d,x,U){return p.H.useReducer(d,x,U)},nt.useRef=function(d){return p.H.useRef(d)},nt.useState=function(d){return p.H.useState(d)},nt.useSyncExternalStore=function(d,x,U){return p.H.useSyncExternalStore(d,x,U)},nt.useTransition=function(){return p.H.useTransition()},nt.version="19.2.7",nt}var f0;function ns(){return f0||(f0=1,Fc.exports=o1()),Fc.exports}var J=ns(),Wc={exports:{}},oi={},$c={exports:{}},Ic={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var d0;function c1(){return d0||(d0=1,(function(o){function f(_,k){var V=_.length;_.push(k);t:for(;0<V;){var st=V-1>>>1,z=_[st];if(0<g(z,k))_[st]=k,_[V]=z,V=st;else break t}}function v(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var k=_[0],V=_.pop();if(V!==k){_[0]=V;t:for(var st=0,z=_.length,d=z>>>1;st<d;){var x=2*(st+1)-1,U=_[x],q=x+1,$=_[q];if(0>g(U,V))q<z&&0>g($,U)?(_[st]=$,_[q]=V,st=q):(_[st]=U,_[x]=V,st=x);else if(q<z&&0>g($,V))_[st]=$,_[q]=V,st=q;else break t}}return k}function g(_,k){var V=_.sortIndex-k.sortIndex;return V!==0?V:_.id-k.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;o.unstable_now=function(){return m.now()}}else{var B=Date,Z=B.now();o.unstable_now=function(){return B.now()-Z}}var H=[],j=[],Q=1,L=null,X=3,ot=!1,ct=!1,it=!1,Et=!1,xt=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,lt=typeof setImmediate<"u"?setImmediate:null;function F(_){for(var k=v(j);k!==null;){if(k.callback===null)r(j);else if(k.startTime<=_)r(j),k.sortIndex=k.expirationTime,f(H,k);else break;k=v(j)}}function ft(_){if(it=!1,F(_),!ct)if(v(H)!==null)ct=!0,pt||(pt=!0,at());else{var k=v(j);k!==null&&Xt(ft,k.startTime-_)}}var pt=!1,p=-1,N=5,et=-1;function dt(){return Et?!0:!(o.unstable_now()-et<N)}function kt(){if(Et=!1,pt){var _=o.unstable_now();et=_;var k=!0;try{t:{ct=!1,it&&(it=!1,D(p),p=-1),ot=!0;var V=X;try{e:{for(F(_),L=v(H);L!==null&&!(L.expirationTime>_&&dt());){var st=L.callback;if(typeof st=="function"){L.callback=null,X=L.priorityLevel;var z=st(L.expirationTime<=_);if(_=o.unstable_now(),typeof z=="function"){L.callback=z,F(_),k=!0;break e}L===v(H)&&r(H),F(_)}else r(H);L=v(H)}if(L!==null)k=!0;else{var d=v(j);d!==null&&Xt(ft,d.startTime-_),k=!1}}break t}finally{L=null,X=V,ot=!1}k=void 0}}finally{k?at():pt=!1}}}var at;if(typeof lt=="function")at=function(){lt(kt)};else if(typeof MessageChannel<"u"){var At=new MessageChannel,ae=At.port2;At.port1.onmessage=kt,at=function(){ae.postMessage(null)}}else at=function(){xt(kt,0)};function Xt(_,k){p=xt(function(){_(o.unstable_now())},k)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(_){_.callback=null},o.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<_?Math.floor(1e3/_):5},o.unstable_getCurrentPriorityLevel=function(){return X},o.unstable_next=function(_){switch(X){case 1:case 2:case 3:var k=3;break;default:k=X}var V=X;X=k;try{return _()}finally{X=V}},o.unstable_requestPaint=function(){Et=!0},o.unstable_runWithPriority=function(_,k){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=X;X=_;try{return k()}finally{X=V}},o.unstable_scheduleCallback=function(_,k,V){var st=o.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?st+V:st):V=st,_){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=V+z,_={id:Q++,callback:k,priorityLevel:_,startTime:V,expirationTime:z,sortIndex:-1},V>st?(_.sortIndex=V,f(j,_),v(H)===null&&_===v(j)&&(it?(D(p),p=-1):it=!0,Xt(ft,V-st))):(_.sortIndex=z,f(H,_),ct||ot||(ct=!0,pt||(pt=!0,at()))),_},o.unstable_shouldYield=dt,o.unstable_wrapCallback=function(_){var k=X;return function(){var V=X;X=k;try{return _.apply(this,arguments)}finally{X=V}}}})(Ic)),Ic}var h0;function s1(){return h0||(h0=1,$c.exports=c1()),$c.exports}var Pc={exports:{}},de={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var m0;function r1(){if(m0)return de;m0=1;var o=ns();function f(H){var j="https://react.dev/errors/"+H;if(1<arguments.length){j+="?args[]="+encodeURIComponent(arguments[1]);for(var Q=2;Q<arguments.length;Q++)j+="&args[]="+encodeURIComponent(arguments[Q])}return"Minified React error #"+H+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(){}var r={d:{f:v,r:function(){throw Error(f(522))},D:v,C:v,L:v,m:v,X:v,S:v,M:v},p:0,findDOMNode:null},g=Symbol.for("react.portal");function m(H,j,Q){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:L==null?null:""+L,children:H,containerInfo:j,implementation:Q}}var B=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Z(H,j){if(H==="font")return"";if(typeof j=="string")return j==="use-credentials"?j:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,de.createPortal=function(H,j){var Q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j||j.nodeType!==1&&j.nodeType!==9&&j.nodeType!==11)throw Error(f(299));return m(H,j,null,Q)},de.flushSync=function(H){var j=B.T,Q=r.p;try{if(B.T=null,r.p=2,H)return H()}finally{B.T=j,r.p=Q,r.d.f()}},de.preconnect=function(H,j){typeof H=="string"&&(j?(j=j.crossOrigin,j=typeof j=="string"?j==="use-credentials"?j:"":void 0):j=null,r.d.C(H,j))},de.prefetchDNS=function(H){typeof H=="string"&&r.d.D(H)},de.preinit=function(H,j){if(typeof H=="string"&&j&&typeof j.as=="string"){var Q=j.as,L=Z(Q,j.crossOrigin),X=typeof j.integrity=="string"?j.integrity:void 0,ot=typeof j.fetchPriority=="string"?j.fetchPriority:void 0;Q==="style"?r.d.S(H,typeof j.precedence=="string"?j.precedence:void 0,{crossOrigin:L,integrity:X,fetchPriority:ot}):Q==="script"&&r.d.X(H,{crossOrigin:L,integrity:X,fetchPriority:ot,nonce:typeof j.nonce=="string"?j.nonce:void 0})}},de.preinitModule=function(H,j){if(typeof H=="string")if(typeof j=="object"&&j!==null){if(j.as==null||j.as==="script"){var Q=Z(j.as,j.crossOrigin);r.d.M(H,{crossOrigin:Q,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0})}}else j==null&&r.d.M(H)},de.preload=function(H,j){if(typeof H=="string"&&typeof j=="object"&&j!==null&&typeof j.as=="string"){var Q=j.as,L=Z(Q,j.crossOrigin);r.d.L(H,Q,{crossOrigin:L,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0,type:typeof j.type=="string"?j.type:void 0,fetchPriority:typeof j.fetchPriority=="string"?j.fetchPriority:void 0,referrerPolicy:typeof j.referrerPolicy=="string"?j.referrerPolicy:void 0,imageSrcSet:typeof j.imageSrcSet=="string"?j.imageSrcSet:void 0,imageSizes:typeof j.imageSizes=="string"?j.imageSizes:void 0,media:typeof j.media=="string"?j.media:void 0})}},de.preloadModule=function(H,j){if(typeof H=="string")if(j){var Q=Z(j.as,j.crossOrigin);r.d.m(H,{as:typeof j.as=="string"&&j.as!=="script"?j.as:void 0,crossOrigin:Q,integrity:typeof j.integrity=="string"?j.integrity:void 0})}else r.d.m(H)},de.requestFormReset=function(H){r.d.r(H)},de.unstable_batchedUpdates=function(H,j){return H(j)},de.useFormState=function(H,j,Q){return B.H.useFormState(H,j,Q)},de.useFormStatus=function(){return B.H.useHostTransitionStatus()},de.version="19.2.7",de}var g0;function f1(){if(g0)return Pc.exports;g0=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(f){console.error(f)}}return o(),Pc.exports=r1(),Pc.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var p0;function d1(){if(p0)return oi;p0=1;var o=s1(),f=ns(),v=f1();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function m(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function B(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Z(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function H(t){if(m(t)!==t)throw Error(r(188))}function j(t){var e=t.alternate;if(!e){if(e=m(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return H(n),t;if(i===a)return H(n),e;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,s=n.child;s;){if(s===l){u=!0,l=n,a=i;break}if(s===a){u=!0,a=n,l=i;break}s=s.sibling}if(!u){for(s=i.child;s;){if(s===l){u=!0,l=i,a=n;break}if(s===a){u=!0,a=i,l=n;break}s=s.sibling}if(!u)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function Q(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Q(t),e!==null)return e;t=t.sibling}return null}var L=Object.assign,X=Symbol.for("react.element"),ot=Symbol.for("react.transitional.element"),ct=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),Et=Symbol.for("react.strict_mode"),xt=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),lt=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),et=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),kt=Symbol.iterator;function at(t){return t===null||typeof t!="object"?null:(t=kt&&t[kt]||t["@@iterator"],typeof t=="function"?t:null)}var At=Symbol.for("react.client.reference");function ae(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===At?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case it:return"Fragment";case xt:return"Profiler";case Et:return"StrictMode";case ft:return"Suspense";case pt:return"SuspenseList";case et:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case ct:return"Portal";case lt:return t.displayName||"Context";case D:return(t._context.displayName||"Context")+".Consumer";case F:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case p:return e=t.displayName||null,e!==null?e:ae(t.type)||"Memo";case N:e=t._payload,t=t._init;try{return ae(t(e))}catch{}}return null}var Xt=Array.isArray,_=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=v.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},st=[],z=-1;function d(t){return{current:t}}function x(t){0>z||(t.current=st[z],st[z]=null,z--)}function U(t,e){z++,st[z]=t.current,t.current=e}var q=d(null),$=d(null),W=d(null),P=d(null);function wt(t,e){switch(U(W,e),U($,t),U(q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?wd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=wd(e),t=Rd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}x(q),U(q,t)}function St(){x(q),x($),x(W)}function Ke(t){t.memoizedState!==null&&U(P,t);var e=q.current,l=Rd(e,t.type);e!==l&&(U($,t),U(q,l))}function Re(t){$.current===t&&(x(q),x($)),P.current===t&&(x(P),li._currentValue=V)}var Ve,Aa;function Je(t){if(Ve===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ve=e&&e[1]||"",Aa=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ve+t+Aa}var ea=!1;function Fe(t,e){if(!t||ea)return"";ea=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(A){var E=A}Reflect.construct(t,[],C)}else{try{C.call()}catch(A){E=A}t.call(C.prototype)}}else{try{throw Error()}catch(A){E=A}(C=t())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(A){if(A&&E&&typeof A.stack=="string")return[A.stack,E.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],s=i[1];if(u&&s){var h=u.split(`
44
+ `),T=s.split(`
45
+ `);for(n=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===h.length||n===T.length)for(a=h.length-1,n=T.length-1;1<=a&&0<=n&&h[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(h[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||h[a]!==T[n]){var O=`
46
+ `+h[a].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=a&&0<=n);break}}}finally{ea=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Je(l):""}function la(t,e){switch(t.tag){case 26:case 27:case 5:return Je(t.type);case 16:return Je("Lazy");case 13:return t.child!==e&&e!==null?Je("Suspense Fallback"):Je("Suspense");case 19:return Je("SuspenseList");case 0:case 15:return Fe(t.type,!1);case 11:return Fe(t.type.render,!1);case 1:return Fe(t.type,!0);case 31:return Je("Activity");default:return""}}function De(t){try{var e="",l=null;do e+=la(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Y=Object.prototype.hasOwnProperty,_t=o.unstable_scheduleCallback,R=o.unstable_cancelCallback,Rt=o.unstable_shouldYield,he=o.unstable_requestPaint,Ut=o.unstable_now,ne=o.unstable_getCurrentPriorityLevel,Ol=o.unstable_ImmediatePriority,Be=o.unstable_UserBlockingPriority,aa=o.unstable_NormalPriority,Du=o.unstable_LowPriority,We=o.unstable_IdlePriority,Bu=o.log,pe=o.unstable_setDisableYieldValue,Ml=null,fe=null;function Cl(t){if(typeof Bu=="function"&&pe(t),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(Ml,t)}catch{}}var Ee=Math.clz32?Math.clz32:Q0,G0=Math.log,X0=Math.LN2;function Q0(t){return t>>>=0,t===0?32:31-(G0(t)/X0|0)|0}var fi=256,di=262144,hi=4194304;function na(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function mi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var s=a&134217727;return s!==0?(a=s&~i,a!==0?n=na(a):(u&=s,u!==0?n=na(u):l||(l=s&~t,l!==0&&(n=na(l))))):(s=a&~i,s!==0?n=na(s):u!==0?n=na(u):l||(l=a&~t,l!==0&&(n=na(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function gn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function K0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 fs(){var t=hi;return hi<<=1,(hi&62914560)===0&&(hi=4194304),t}function Hu(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function pn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function V0(t,e,l,a,n,i){var u=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var s=t.entanglements,h=t.expirationTimes,T=t.hiddenUpdates;for(l=u&~l;0<l;){var O=31-Ee(l),C=1<<O;s[O]=0,h[O]=-1;var E=T[O];if(E!==null)for(T[O]=null,O=0;O<E.length;O++){var A=E[O];A!==null&&(A.lane&=-536870913)}l&=~C}a!==0&&ds(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(u&~e))}function ds(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Ee(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function hs(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Ee(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function ms(t,e){var l=e&-e;return l=(l&42)!==0?1:Uu(l),(l&(t.suspendedLanes|e))!==0?0:l}function Uu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Nu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function gs(){var t=k.p;return t!==0?t:(t=window.event,t===void 0?32:e0(t.type))}function ps(t,e){var l=k.p;try{return k.p=t,e()}finally{k.p=l}}var wl=Math.random().toString(36).slice(2),ie="__reactFiber$"+wl,ye="__reactProps$"+wl,_a="__reactContainer$"+wl,ku="__reactEvents$"+wl,J0="__reactListeners$"+wl,F0="__reactHandles$"+wl,ys="__reactResources$"+wl,yn="__reactMarker$"+wl;function qu(t){delete t[ie],delete t[ye],delete t[ku],delete t[J0],delete t[F0]}function Oa(t){var e=t[ie];if(e)return e;for(var l=t.parentNode;l;){if(e=l[_a]||l[ie]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=qd(t);t!==null;){if(l=t[ie])return l;t=qd(t)}return e}t=l,l=t.parentNode}return null}function Ma(t){if(t=t[ie]||t[_a]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function vn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ca(t){var e=t[ys];return e||(e=t[ys]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function te(t){t[yn]=!0}var vs=new Set,bs={};function ia(t,e){wa(t,e),wa(t+"Capture",e)}function wa(t,e){for(bs[t]=e,t=0;t<e.length;t++)vs.add(e[t])}var W0=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]*$"),xs={},Ss={};function $0(t){return Y.call(Ss,t)?!0:Y.call(xs,t)?!1:W0.test(t)?Ss[t]=!0:(xs[t]=!0,!1)}function gi(t,e,l){if($0(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function pi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function cl(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function He(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ts(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function I0(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Lu(t){if(!t._valueTracker){var e=Ts(t)?"checked":"value";t._valueTracker=I0(t,e,""+t[e])}}function zs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Ts(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function yi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var P0=/[\n"\\]/g;function Ue(t){return t.replace(P0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Yu(t,e,l,a,n,i,u,s){t.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?t.type=u:t.removeAttribute("type"),e!=null?u==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+He(e)):t.value!==""+He(e)&&(t.value=""+He(e)):u!=="submit"&&u!=="reset"||t.removeAttribute("value"),e!=null?Zu(t,u,He(e)):l!=null?Zu(t,u,He(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+He(s):t.removeAttribute("name")}function Es(t,e,l,a,n,i,u,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Lu(t);return}l=l!=null?""+He(l):"",e=e!=null?""+He(e):l,s||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=s?t.checked:!!a,t.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.name=u),Lu(t)}function Zu(t,e,l){e==="number"&&yi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Ra(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+He(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function js(t,e,l){if(e!=null&&(e=""+He(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+He(l):""}function As(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(Xt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=He(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Lu(t)}function Da(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var th=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 _s(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||th.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Os(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&_s(t,n,a)}else for(var i in e)e.hasOwnProperty(i)&&_s(t,i,e[i])}function Gu(t){if(t.indexOf("-")===-1)return!1;switch(t){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 eh=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"]]),lh=/^[\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 vi(t){return lh.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function sl(){}var Xu=null;function Qu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ba=null,Ha=null;function Ms(t){var e=Ma(t);if(e&&(t=e.stateNode)){var l=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if(Yu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ue(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[ye]||null;if(!n)throw Error(r(90));Yu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&zs(a)}break t;case"textarea":js(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Ra(t,!!l.multiple,e,!1)}}}var Ku=!1;function Cs(t,e,l){if(Ku)return t(e,l);Ku=!0;try{var a=t(e);return a}finally{if(Ku=!1,(Ba!==null||Ha!==null)&&(iu(),Ba&&(e=Ba,t=Ha,Ha=Ba=null,Ms(e),t)))for(e=0;e<t.length;e++)Ms(t[e])}}function bn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[ye]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(rl)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch{Vu=!1}var Rl=null,Ju=null,bi=null;function ws(){if(bi)return bi;var t,e=Ju,l=e.length,a,n="value"in Rl?Rl.value:Rl.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var u=l-t;for(a=1;a<=u&&e[l-a]===n[i-a];a++);return bi=n.slice(t,1<a?1-a:void 0)}function xi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Si(){return!0}function Rs(){return!1}function ve(t){function e(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(l=t[s],this[s]=l?l(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Si:Rs,this.isPropagationStopped=Rs,this}return L(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Si)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),e}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ti=ve(ua),Sn=L({},ua,{view:0,detail:0}),ah=ve(Sn),Fu,Wu,Tn,zi=L({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Tn&&(Tn&&t.type==="mousemove"?(Fu=t.screenX-Tn.screenX,Wu=t.screenY-Tn.screenY):Wu=Fu=0,Tn=t),Fu)},movementY:function(t){return"movementY"in t?t.movementY:Wu}}),Ds=ve(zi),nh=L({},zi,{dataTransfer:0}),ih=ve(nh),uh=L({},Sn,{relatedTarget:0}),$u=ve(uh),oh=L({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),ch=ve(oh),sh=L({},ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),rh=ve(sh),fh=L({},ua,{data:0}),Bs=ve(fh),dh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hh={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"},mh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gh(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=mh[t])?!!e[t]:!1}function Iu(){return gh}var ph=L({},Sn,{key:function(t){if(t.key){var e=dh[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=xi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?hh[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(t){return t.type==="keypress"?xi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),yh=ve(ph),vh=L({},zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hs=ve(vh),bh=L({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),xh=ve(bh),Sh=L({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Th=ve(Sh),zh=L({},zi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Eh=ve(zh),jh=L({},ua,{newState:0,oldState:0}),Ah=ve(jh),_h=[9,13,27,32],Pu=rl&&"CompositionEvent"in window,zn=null;rl&&"documentMode"in document&&(zn=document.documentMode);var Oh=rl&&"TextEvent"in window&&!zn,Us=rl&&(!Pu||zn&&8<zn&&11>=zn),Ns=" ",ks=!1;function qs(t,e){switch(t){case"keyup":return _h.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ls(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ua=!1;function Mh(t,e){switch(t){case"compositionend":return Ls(e);case"keypress":return e.which!==32?null:(ks=!0,Ns);case"textInput":return t=e.data,t===Ns&&ks?null:t;default:return null}}function Ch(t,e){if(Ua)return t==="compositionend"||!Pu&&qs(t,e)?(t=ws(),bi=Ju=Rl=null,Ua=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Us&&e.locale!=="ko"?null:e.data;default:return null}}var wh={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 Ys(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!wh[t.type]:e==="textarea"}function Zs(t,e,l,a){Ba?Ha?Ha.push(a):Ha=[a]:Ba=a,e=du(e,"onChange"),0<e.length&&(l=new Ti("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var En=null,jn=null;function Rh(t){jd(t,0)}function Ei(t){var e=vn(t);if(zs(e))return t}function Gs(t,e){if(t==="change")return e}var Xs=!1;if(rl){var to;if(rl){var eo="oninput"in document;if(!eo){var Qs=document.createElement("div");Qs.setAttribute("oninput","return;"),eo=typeof Qs.oninput=="function"}to=eo}else to=!1;Xs=to&&(!document.documentMode||9<document.documentMode)}function Ks(){En&&(En.detachEvent("onpropertychange",Vs),jn=En=null)}function Vs(t){if(t.propertyName==="value"&&Ei(jn)){var e=[];Zs(e,jn,t,Qu(t)),Cs(Rh,e)}}function Dh(t,e,l){t==="focusin"?(Ks(),En=e,jn=l,En.attachEvent("onpropertychange",Vs)):t==="focusout"&&Ks()}function Bh(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ei(jn)}function Hh(t,e){if(t==="click")return Ei(e)}function Uh(t,e){if(t==="input"||t==="change")return Ei(e)}function Nh(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var je=typeof Object.is=="function"?Object.is:Nh;function An(t,e){if(je(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Y.call(e,n)||!je(t[n],e[n]))return!1}return!0}function Js(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Fs(t,e){var l=Js(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Js(l)}}function Ws(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ws(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $s(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=yi(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=yi(t.document)}return e}function lo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var kh=rl&&"documentMode"in document&&11>=document.documentMode,Na=null,ao=null,_n=null,no=!1;function Is(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;no||Na==null||Na!==yi(a)||(a=Na,"selectionStart"in a&&lo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),_n&&An(_n,a)||(_n=a,a=du(ao,"onSelect"),0<a.length&&(e=new Ti("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Na)))}function oa(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ka={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},io={},Ps={};rl&&(Ps=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function ca(t){if(io[t])return io[t];if(!ka[t])return t;var e=ka[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Ps)return io[t]=e[l];return t}var tr=ca("animationend"),er=ca("animationiteration"),lr=ca("animationstart"),qh=ca("transitionrun"),Lh=ca("transitionstart"),Yh=ca("transitioncancel"),ar=ca("transitionend"),nr=new Map,uo="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(" ");uo.push("scrollEnd");function $e(t,e){nr.set(t,e),ia(e,[t])}var ji=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ne=[],qa=0,oo=0;function Ai(){for(var t=qa,e=oo=qa=0;e<t;){var l=Ne[e];Ne[e++]=null;var a=Ne[e];Ne[e++]=null;var n=Ne[e];Ne[e++]=null;var i=Ne[e];if(Ne[e++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&ir(l,n,i)}}function _i(t,e,l,a){Ne[qa++]=t,Ne[qa++]=e,Ne[qa++]=l,Ne[qa++]=a,oo|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function co(t,e,l,a){return _i(t,e,l,a),Oi(t)}function sa(t,e){return _i(t,null,null,e),Oi(t)}function ir(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-Ee(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function Oi(t){if(50<Fn)throw Fn=0,vc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var La={};function Zh(t,e,l,a){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ae(t,e,l,a){return new Zh(t,e,l,a)}function so(t){return t=t.prototype,!(!t||!t.isReactComponent)}function fl(t,e){var l=t.alternate;return l===null?(l=Ae(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function ur(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Mi(t,e,l,a,n,i){var u=0;if(a=t,typeof t=="function")so(t)&&(u=1);else if(typeof t=="string")u=Vm(t,l,q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case et:return t=Ae(31,l,e,n),t.elementType=et,t.lanes=i,t;case it:return ra(l.children,n,i,e);case Et:u=8,n|=24;break;case xt:return t=Ae(12,l,e,n|2),t.elementType=xt,t.lanes=i,t;case ft:return t=Ae(13,l,e,n),t.elementType=ft,t.lanes=i,t;case pt:return t=Ae(19,l,e,n),t.elementType=pt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case lt:u=10;break t;case D:u=9;break t;case F:u=11;break t;case p:u=14;break t;case N:u=16,a=null;break t}u=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=Ae(u,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function ra(t,e,l,a){return t=Ae(7,t,a,e),t.lanes=l,t}function ro(t,e,l){return t=Ae(6,t,null,e),t.lanes=l,t}function or(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function fo(t,e,l){return e=Ae(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var cr=new WeakMap;function ke(t,e){if(typeof t=="object"&&t!==null){var l=cr.get(t);return l!==void 0?l:(e={value:t,source:e,stack:De(e)},cr.set(t,e),e)}return{value:t,source:e,stack:De(e)}}var Ya=[],Za=0,Ci=null,On=0,qe=[],Le=0,Dl=null,el=1,ll="";function dl(t,e){Ya[Za++]=On,Ya[Za++]=Ci,Ci=t,On=e}function sr(t,e,l){qe[Le++]=el,qe[Le++]=ll,qe[Le++]=Dl,Dl=t;var a=el;t=ll;var n=32-Ee(a)-1;a&=~(1<<n),l+=1;var i=32-Ee(e)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,el=1<<32-Ee(e)+n|l<<n|a,ll=i+t}else el=1<<i|l<<n|a,ll=t}function ho(t){t.return!==null&&(dl(t,1),sr(t,1,0))}function mo(t){for(;t===Ci;)Ci=Ya[--Za],Ya[Za]=null,On=Ya[--Za],Ya[Za]=null;for(;t===Dl;)Dl=qe[--Le],qe[Le]=null,ll=qe[--Le],qe[Le]=null,el=qe[--Le],qe[Le]=null}function rr(t,e){qe[Le++]=el,qe[Le++]=ll,qe[Le++]=Dl,el=e.id,ll=e.overflow,Dl=t}var ue=null,Lt=null,bt=!1,Bl=null,Ye=!1,go=Error(r(519));function Hl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Mn(ke(e,t)),go}function fr(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[ie]=t,e[ye]=a,l){case"dialog":gt("cancel",e),gt("close",e);break;case"iframe":case"object":case"embed":gt("load",e);break;case"video":case"audio":for(l=0;l<$n.length;l++)gt($n[l],e);break;case"source":gt("error",e);break;case"img":case"image":case"link":gt("error",e),gt("load",e);break;case"details":gt("toggle",e);break;case"input":gt("invalid",e),Es(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":gt("invalid",e);break;case"textarea":gt("invalid",e),As(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Md(e.textContent,l)?(a.popover!=null&&(gt("beforetoggle",e),gt("toggle",e)),a.onScroll!=null&&gt("scroll",e),a.onScrollEnd!=null&&gt("scrollend",e),a.onClick!=null&&(e.onclick=sl),e=!0):e=!1,e||Hl(t,!0)}function dr(t){for(ue=t.return;ue;)switch(ue.tag){case 5:case 31:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:ue=ue.return}}function Ga(t){if(t!==ue)return!1;if(!bt)return dr(t),bt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Dc(t.type,t.memoizedProps)),l=!l),l&&Lt&&Hl(t),dr(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Lt=kd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Lt=kd(t)}else e===27?(e=Lt,Fl(t.type)?(t=kc,kc=null,Lt=t):Lt=e):Lt=ue?Ge(t.stateNode.nextSibling):null;return!0}function fa(){Lt=ue=null,bt=!1}function po(){var t=Bl;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Bl=null),t}function Mn(t){Bl===null?Bl=[t]:Bl.push(t)}var yo=d(null),da=null,hl=null;function Ul(t,e,l){U(yo,e._currentValue),e._currentValue=l}function ml(t){t._currentValue=yo.current,x(yo)}function vo(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function bo(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;t:for(;i!==null;){var s=i;i=n;for(var h=0;h<e.length;h++)if(s.context===e[h]){i.lanes|=l,s=i.alternate,s!==null&&(s.lanes|=l),vo(i.return,l,t),a||(u=null);break t}i=s.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(r(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),vo(u,l,t),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===t){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function Xa(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(r(387));if(u=u.memoizedProps,u!==null){var s=n.type;je(n.pendingProps.value,u.value)||(t!==null?t.push(s):t=[s])}}else if(n===P.current){if(u=n.alternate,u===null)throw Error(r(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(li):t=[li])}n=n.return}t!==null&&bo(e,t,l,a),e.flags|=262144}function wi(t){for(t=t.firstContext;t!==null;){if(!je(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){da=t,hl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return hr(da,t)}function Ri(t,e){return da===null&&ha(t),hr(t,e)}function hr(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},hl===null){if(t===null)throw Error(r(308));hl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else hl=hl.next=e;return l}var Gh=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Xh=o.unstable_scheduleCallback,Qh=o.unstable_NormalPriority,Ft={$$typeof:lt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xo(){return{controller:new Gh,data:new Map,refCount:0}}function Cn(t){t.refCount--,t.refCount===0&&Xh(Qh,function(){t.controller.abort()})}var wn=null,So=0,Qa=0,Ka=null;function Kh(t,e){if(wn===null){var l=wn=[];So=0,Qa=Ec(),Ka={status:"pending",value:void 0,then:function(a){l.push(a)}}}return So++,e.then(mr,mr),e}function mr(){if(--So===0&&wn!==null){Ka!==null&&(Ka.status="fulfilled");var t=wn;wn=null,Qa=0,Ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Vh(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var gr=_.S;_.S=function(t,e){Pf=Ut(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Kh(t,e),gr!==null&&gr(t,e)};var ma=d(null);function To(){var t=ma.current;return t!==null?t:Nt.pooledCache}function Di(t,e){e===null?U(ma,ma.current):U(ma,e.pool)}function pr(){var t=To();return t===null?null:{parent:Ft._currentValue,pool:t}}var Va=Error(r(460)),zo=Error(r(474)),Bi=Error(r(542)),Hi={then:function(){}};function yr(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(sl,sl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,xr(t),t;default:if(typeof e.status=="string")e.then(sl,sl);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,xr(t),t}throw pa=e,Va}}function ga(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(pa=l,Va):l}}var pa=null;function br(){if(pa===null)throw Error(r(459));var t=pa;return pa=null,t}function xr(t){if(t===Va||t===Bi)throw Error(r(483))}var Ja=null,Rn=0;function Ui(t){var e=Rn;return Rn+=1,Ja===null&&(Ja=[]),vr(Ja,t,e)}function Dn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ni(t,e){throw e.$$typeof===X?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Sr(t){function e(b,y){if(t){var S=b.deletions;S===null?(b.deletions=[y],b.flags|=16):S.push(y)}}function l(b,y){if(!t)return null;for(;y!==null;)e(b,y),y=y.sibling;return null}function a(b){for(var y=new Map;b!==null;)b.key!==null?y.set(b.key,b):y.set(b.index,b),b=b.sibling;return y}function n(b,y){return b=fl(b,y),b.index=0,b.sibling=null,b}function i(b,y,S){return b.index=S,t?(S=b.alternate,S!==null?(S=S.index,S<y?(b.flags|=67108866,y):S):(b.flags|=67108866,y)):(b.flags|=1048576,y)}function u(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function s(b,y,S,M){return y===null||y.tag!==6?(y=ro(S,b.mode,M),y.return=b,y):(y=n(y,S),y.return=b,y)}function h(b,y,S,M){var I=S.type;return I===it?O(b,y,S.props.children,M,S.key):y!==null&&(y.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===N&&ga(I)===y.type)?(y=n(y,S.props),Dn(y,S),y.return=b,y):(y=Mi(S.type,S.key,S.props,null,b.mode,M),Dn(y,S),y.return=b,y)}function T(b,y,S,M){return y===null||y.tag!==4||y.stateNode.containerInfo!==S.containerInfo||y.stateNode.implementation!==S.implementation?(y=fo(S,b.mode,M),y.return=b,y):(y=n(y,S.children||[]),y.return=b,y)}function O(b,y,S,M,I){return y===null||y.tag!==7?(y=ra(S,b.mode,M,I),y.return=b,y):(y=n(y,S),y.return=b,y)}function C(b,y,S){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=ro(""+y,b.mode,S),y.return=b,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ot:return S=Mi(y.type,y.key,y.props,null,b.mode,S),Dn(S,y),S.return=b,S;case ct:return y=fo(y,b.mode,S),y.return=b,y;case N:return y=ga(y),C(b,y,S)}if(Xt(y)||at(y))return y=ra(y,b.mode,S,null),y.return=b,y;if(typeof y.then=="function")return C(b,Ui(y),S);if(y.$$typeof===lt)return C(b,Ri(b,y),S);Ni(b,y)}return null}function E(b,y,S,M){var I=y!==null?y.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return I!==null?null:s(b,y,""+S,M);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ot:return S.key===I?h(b,y,S,M):null;case ct:return S.key===I?T(b,y,S,M):null;case N:return S=ga(S),E(b,y,S,M)}if(Xt(S)||at(S))return I!==null?null:O(b,y,S,M,null);if(typeof S.then=="function")return E(b,y,Ui(S),M);if(S.$$typeof===lt)return E(b,y,Ri(b,S),M);Ni(b,S)}return null}function A(b,y,S,M,I){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return b=b.get(S)||null,s(y,b,""+M,I);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ot:return b=b.get(M.key===null?S:M.key)||null,h(y,b,M,I);case ct:return b=b.get(M.key===null?S:M.key)||null,T(y,b,M,I);case N:return M=ga(M),A(b,y,S,M,I)}if(Xt(M)||at(M))return b=b.get(S)||null,O(y,b,M,I,null);if(typeof M.then=="function")return A(b,y,S,Ui(M),I);if(M.$$typeof===lt)return A(b,y,S,Ri(y,M),I);Ni(y,M)}return null}function G(b,y,S,M){for(var I=null,Tt=null,K=y,rt=y=0,vt=null;K!==null&&rt<S.length;rt++){K.index>rt?(vt=K,K=null):vt=K.sibling;var zt=E(b,K,S[rt],M);if(zt===null){K===null&&(K=vt);break}t&&K&&zt.alternate===null&&e(b,K),y=i(zt,y,rt),Tt===null?I=zt:Tt.sibling=zt,Tt=zt,K=vt}if(rt===S.length)return l(b,K),bt&&dl(b,rt),I;if(K===null){for(;rt<S.length;rt++)K=C(b,S[rt],M),K!==null&&(y=i(K,y,rt),Tt===null?I=K:Tt.sibling=K,Tt=K);return bt&&dl(b,rt),I}for(K=a(K);rt<S.length;rt++)vt=A(K,b,rt,S[rt],M),vt!==null&&(t&&vt.alternate!==null&&K.delete(vt.key===null?rt:vt.key),y=i(vt,y,rt),Tt===null?I=vt:Tt.sibling=vt,Tt=vt);return t&&K.forEach(function(ta){return e(b,ta)}),bt&&dl(b,rt),I}function tt(b,y,S,M){if(S==null)throw Error(r(151));for(var I=null,Tt=null,K=y,rt=y=0,vt=null,zt=S.next();K!==null&&!zt.done;rt++,zt=S.next()){K.index>rt?(vt=K,K=null):vt=K.sibling;var ta=E(b,K,zt.value,M);if(ta===null){K===null&&(K=vt);break}t&&K&&ta.alternate===null&&e(b,K),y=i(ta,y,rt),Tt===null?I=ta:Tt.sibling=ta,Tt=ta,K=vt}if(zt.done)return l(b,K),bt&&dl(b,rt),I;if(K===null){for(;!zt.done;rt++,zt=S.next())zt=C(b,zt.value,M),zt!==null&&(y=i(zt,y,rt),Tt===null?I=zt:Tt.sibling=zt,Tt=zt);return bt&&dl(b,rt),I}for(K=a(K);!zt.done;rt++,zt=S.next())zt=A(K,b,rt,zt.value,M),zt!==null&&(t&&zt.alternate!==null&&K.delete(zt.key===null?rt:zt.key),y=i(zt,y,rt),Tt===null?I=zt:Tt.sibling=zt,Tt=zt);return t&&K.forEach(function(n1){return e(b,n1)}),bt&&dl(b,rt),I}function Ht(b,y,S,M){if(typeof S=="object"&&S!==null&&S.type===it&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ot:t:{for(var I=S.key;y!==null;){if(y.key===I){if(I=S.type,I===it){if(y.tag===7){l(b,y.sibling),M=n(y,S.props.children),M.return=b,b=M;break t}}else if(y.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===N&&ga(I)===y.type){l(b,y.sibling),M=n(y,S.props),Dn(M,S),M.return=b,b=M;break t}l(b,y);break}else e(b,y);y=y.sibling}S.type===it?(M=ra(S.props.children,b.mode,M,S.key),M.return=b,b=M):(M=Mi(S.type,S.key,S.props,null,b.mode,M),Dn(M,S),M.return=b,b=M)}return u(b);case ct:t:{for(I=S.key;y!==null;){if(y.key===I)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){l(b,y.sibling),M=n(y,S.children||[]),M.return=b,b=M;break t}else{l(b,y);break}else e(b,y);y=y.sibling}M=fo(S,b.mode,M),M.return=b,b=M}return u(b);case N:return S=ga(S),Ht(b,y,S,M)}if(Xt(S))return G(b,y,S,M);if(at(S)){if(I=at(S),typeof I!="function")throw Error(r(150));return S=I.call(S),tt(b,y,S,M)}if(typeof S.then=="function")return Ht(b,y,Ui(S),M);if(S.$$typeof===lt)return Ht(b,y,Ri(b,S),M);Ni(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,y!==null&&y.tag===6?(l(b,y.sibling),M=n(y,S),M.return=b,b=M):(l(b,y),M=ro(S,b.mode,M),M.return=b,b=M),u(b)):l(b,y)}return function(b,y,S,M){try{Rn=0;var I=Ht(b,y,S,M);return Ja=null,I}catch(K){if(K===Va||K===Bi)throw K;var Tt=Ae(29,K,null,b.mode);return Tt.lanes=M,Tt.return=b,Tt}finally{}}}var ya=Sr(!0),Tr=Sr(!1),Nl=!1;function Eo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function kl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ql(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(jt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Oi(t),ir(t,null,l),e}return _i(t,a,e,l),Oi(t)}function Bn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,hs(t,l)}}function Ao(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var _o=!1;function Hn(){if(_o){var t=Ka;if(t!==null)throw t}}function Un(t,e,l,a){_o=!1;var n=t.updateQueue;Nl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var h=s,T=h.next;h.next=null,u===null?i=T:u.next=T,u=h;var O=t.alternate;O!==null&&(O=O.updateQueue,s=O.lastBaseUpdate,s!==u&&(s===null?O.firstBaseUpdate=T:s.next=T,O.lastBaseUpdate=h))}if(i!==null){var C=n.baseState;u=0,O=T=h=null,s=i;do{var E=s.lane&-536870913,A=E!==s.lane;if(A?(yt&E)===E:(a&E)===E){E!==0&&E===Qa&&(_o=!0),O!==null&&(O=O.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var G=t,tt=s;E=e;var Ht=l;switch(tt.tag){case 1:if(G=tt.payload,typeof G=="function"){C=G.call(Ht,C,E);break t}C=G;break t;case 3:G.flags=G.flags&-65537|128;case 0:if(G=tt.payload,E=typeof G=="function"?G.call(Ht,C,E):G,E==null)break t;C=L({},C,E);break t;case 2:Nl=!0}}E=s.callback,E!==null&&(t.flags|=64,A&&(t.flags|=8192),A=n.callbacks,A===null?n.callbacks=[E]:A.push(E))}else A={lane:E,tag:s.tag,payload:s.payload,callback:s.callback,next:null},O===null?(T=O=A,h=C):O=O.next=A,u|=E;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;A=s,s=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);O===null&&(h=C),n.baseState=h,n.firstBaseUpdate=T,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),Xl|=u,t.lanes=u,t.memoizedState=C}}function zr(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Er(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)zr(l[t],e)}var Fa=d(null),ki=d(0);function jr(t,e){t=zl,U(ki,t),U(Fa,e),zl=t|e.baseLanes}function Oo(){U(ki,zl),U(Fa,Fa.current)}function Mo(){zl=ki.current,x(Fa),x(ki)}var _e=d(null),Ze=null;function Ll(t){var e=t.alternate;U(Vt,Vt.current&1),U(_e,t),Ze===null&&(e===null||Fa.current!==null||e.memoizedState!==null)&&(Ze=t)}function Co(t){U(Vt,Vt.current),U(_e,t),Ze===null&&(Ze=t)}function Ar(t){t.tag===22?(U(Vt,Vt.current),U(_e,t),Ze===null&&(Ze=t)):Yl()}function Yl(){U(Vt,Vt.current),U(_e,_e.current)}function Oe(t){x(_e),Ze===t&&(Ze=null),x(Vt)}var Vt=d(0);function qi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Uc(l)||Nc(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var gl=0,ut=null,Dt=null,Wt=null,Li=!1,Wa=!1,va=!1,Yi=0,Nn=0,$a=null,Jh=0;function Qt(){throw Error(r(321))}function wo(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!je(t[l],e[l]))return!1;return!0}function Ro(t,e,l,a,n,i){return gl=i,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?rf:Vo,va=!1,i=l(a,n),va=!1,Wa&&(i=Or(e,l,a,n)),_r(t),i}function _r(t){_.H=Ln;var e=Dt!==null&&Dt.next!==null;if(gl=0,Wt=Dt=ut=null,Li=!1,Nn=0,$a=null,e)throw Error(r(300));t===null||$t||(t=t.dependencies,t!==null&&wi(t)&&($t=!0))}function Or(t,e,l,a){ut=t;var n=0;do{if(Wa&&($a=null),Nn=0,Wa=!1,25<=n)throw Error(r(301));if(n+=1,Wt=Dt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}_.H=ff,i=e(l,a)}while(Wa);return i}function Fh(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?kn(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Do(){var t=Yi!==0;return Yi=0,t}function Bo(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Ho(t){if(Li){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Li=!1}gl=0,Wt=Dt=ut=null,Wa=!1,Nn=Yi=0,$a=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?ut.memoizedState=Wt=t:Wt=Wt.next=t,Wt}function Jt(){if(Dt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Wt===null?ut.memoizedState:Wt.next;if(e!==null)Wt=e,Dt=t;else{if(t===null)throw ut.alternate===null?Error(r(467)):Error(r(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Wt===null?ut.memoizedState=Wt=t:Wt=Wt.next=t}return Wt}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kn(t){var e=Nn;return Nn+=1,$a===null&&($a=[]),t=vr($a,t,e),e=ut,(Wt===null?e.memoizedState:Wt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?rf:Vo),t}function Gi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return kn(t);if(t.$$typeof===lt)return oe(t)}throw Error(r(438,String(t)))}function Uo(t){var e=null,l=ut.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=ut.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Zi(),ut.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=dt;return e.index++,l}function pl(t,e){return typeof e=="function"?e(t):e}function Xi(t){var e=Jt();return No(e,Dt,t)}function No(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var s=u=null,h=null,T=e,O=!1;do{var C=T.lane&-536870913;if(C!==T.lane?(yt&C)===C:(gl&C)===C){var E=T.revertLane;if(E===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),C===Qa&&(O=!0);else if((gl&E)===E){T=T.next,E===Qa&&(O=!0);continue}else C={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},h===null?(s=h=C,u=i):h=h.next=C,ut.lanes|=E,Xl|=E;C=T.action,va&&l(i,C),i=T.hasEagerState?T.eagerState:l(i,C)}else E={lane:C,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},h===null?(s=h=E,u=i):h=h.next=E,ut.lanes|=C,Xl|=C;T=T.next}while(T!==null&&T!==e);if(h===null?u=i:h.next=s,!je(i,t.memoizedState)&&($t=!0,O&&(l=Ka,l!==null)))throw l;t.memoizedState=i,t.baseState=u,t.baseQueue=h,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function ko(t){var e=Jt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=t(i,u.action),u=u.next;while(u!==n);je(i,e.memoizedState)||($t=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function Mr(t,e,l){var a=ut,n=Jt(),i=bt;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=e();var u=!je((Dt||n).memoizedState,l);if(u&&(n.memoizedState=l,$t=!0),n=n.queue,Yo(Rr.bind(null,a,n,t),[t]),n.getSnapshot!==e||u||Wt!==null&&Wt.memoizedState.tag&1){if(a.flags|=2048,Ia(9,{destroy:void 0},wr.bind(null,a,n,l,e),null),Nt===null)throw Error(r(349));i||(gl&127)!==0||Cr(a,e,l)}return l}function Cr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ut.updateQueue,e===null?(e=Zi(),ut.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function wr(t,e,l,a){e.value=l,e.getSnapshot=a,Dr(e)&&Br(t)}function Rr(t,e,l){return l(function(){Dr(e)&&Br(t)})}function Dr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!je(t,l)}catch{return!0}}function Br(t){var e=sa(t,2);e!==null&&ze(e,t,2)}function qo(t){var e=me();if(typeof t=="function"){var l=t;if(t=l(),va){Cl(!0);try{l()}finally{Cl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:t},e}function Hr(t,e,l,a){return t.baseState=l,No(t,Dt,typeof a=="function"?a:pl)}function Wh(t,e,l,a,n){if(Vi(t))throw Error(r(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};_.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,Ur(e,i)):(i.next=l.next,e.pending=l.next=i)}}function Ur(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=_.T,u={};_.T=u;try{var s=l(n,a),h=_.S;h!==null&&h(u,s),Nr(t,e,s)}catch(T){Lo(t,e,T)}finally{i!==null&&u.types!==null&&(i.types=u.types),_.T=i}}else try{i=l(n,a),Nr(t,e,i)}catch(T){Lo(t,e,T)}}function Nr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){kr(t,e,a)},function(a){return Lo(t,e,a)}):kr(t,e,l)}function kr(t,e,l){e.status="fulfilled",e.value=l,qr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Ur(t,l)))}function Lo(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,qr(e),e=e.next;while(e!==a)}t.action=null}function qr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Lr(t,e){return e}function Yr(t,e){if(bt){var l=Nt.formState;if(l!==null){t:{var a=ut;if(bt){if(Lt){e:{for(var n=Lt,i=Ye;n.nodeType!==8;){if(!i){n=null;break e}if(n=Ge(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Lt=Ge(n.nextSibling),a=n.data==="F!";break t}}Hl(a)}a=!1}a&&(e=l[0])}}return l=me(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:e},l.queue=a,l=of.bind(null,ut,a),a.dispatch=l,a=qo(!1),i=Ko.bind(null,ut,!1,a.queue),a=me(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Wh.bind(null,ut,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function Zr(t){var e=Jt();return Gr(e,Dt,t)}function Gr(t,e,l){if(e=No(t,e,Lr)[0],t=Xi(pl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=kn(e)}catch(u){throw u===Va?Bi:u}else a=e;e=Jt();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(ut.flags|=2048,Ia(9,{destroy:void 0},$h.bind(null,n,l),null)),[a,i,t]}function $h(t,e){t.action=e}function Xr(t){var e=Jt(),l=Dt;if(l!==null)return Gr(e,l,t);Jt(),e=e.memoizedState,l=Jt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Ia(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=ut.updateQueue,e===null&&(e=Zi(),ut.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Qr(){return Jt().memoizedState}function Qi(t,e,l,a){var n=me();ut.flags|=t,n.memoizedState=Ia(1|e,{destroy:void 0},l,a===void 0?null:a)}function Ki(t,e,l,a){var n=Jt();a=a===void 0?null:a;var i=n.memoizedState.inst;Dt!==null&&a!==null&&wo(a,Dt.memoizedState.deps)?n.memoizedState=Ia(e,i,l,a):(ut.flags|=t,n.memoizedState=Ia(1|e,i,l,a))}function Kr(t,e){Qi(8390656,8,t,e)}function Yo(t,e){Ki(2048,8,t,e)}function Ih(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=Zi(),ut.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Vr(t){var e=Jt().memoizedState;return Ih({ref:e,nextImpl:t}),function(){if((jt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Jr(t,e){return Ki(4,2,t,e)}function Fr(t,e){return Ki(4,4,t,e)}function Wr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $r(t,e,l){l=l!=null?l.concat([t]):null,Ki(4,4,Wr.bind(null,e,t),l)}function Zo(){}function Ir(t,e){var l=Jt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&wo(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Pr(t,e){var l=Jt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&wo(e,a[1]))return a[0];if(a=t(),va){Cl(!0);try{t()}finally{Cl(!1)}}return l.memoizedState=[a,e],a}function Go(t,e,l){return l===void 0||(gl&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=ed(),ut.lanes|=t,Xl|=t,l)}function tf(t,e,l,a){return je(l,e)?l:Fa.current!==null?(t=Go(t,l,a),je(t,e)||($t=!0),t):(gl&42)===0||(gl&1073741824)!==0&&(yt&261930)===0?($t=!0,t.memoizedState=l):(t=ed(),ut.lanes|=t,Xl|=t,e)}function ef(t,e,l,a,n){var i=k.p;k.p=i!==0&&8>i?i:8;var u=_.T,s={};_.T=s,Ko(t,!1,e,l);try{var h=n(),T=_.S;if(T!==null&&T(s,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var O=Vh(h,a);qn(t,e,O,we(t))}else qn(t,e,a,we(t))}catch(C){qn(t,e,{then:function(){},status:"rejected",reason:C},we())}finally{k.p=i,u!==null&&s.types!==null&&(u.types=s.types),_.T=u}}function Ph(){}function Xo(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=lf(t).queue;ef(t,n,e,V,l===null?Ph:function(){return af(t),l(a)})}function lf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:V},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function af(t){var e=lf(t);e.next===null&&(e=t.alternate.memoizedState),qn(t,e.next.queue,{},we())}function Qo(){return oe(li)}function nf(){return Jt().memoizedState}function uf(){return Jt().memoizedState}function tm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=we();t=kl(l);var a=ql(e,t,l);a!==null&&(ze(a,e,l),Bn(a,e,l)),e={cache:xo()},t.payload=e;return}e=e.return}}function em(t,e,l){var a=we();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Vi(t)?cf(e,l):(l=co(t,e,l,a),l!==null&&(ze(l,t,a),sf(l,e,a)))}function of(t,e,l){var a=we();qn(t,e,l,a)}function qn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Vi(t))cf(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var u=e.lastRenderedState,s=i(u,l);if(n.hasEagerState=!0,n.eagerState=s,je(s,u))return _i(t,e,n,0),Nt===null&&Ai(),!1}catch{}finally{}if(l=co(t,e,n,a),l!==null)return ze(l,t,a),sf(l,e,a),!0}return!1}function Ko(t,e,l,a){if(a={lane:2,revertLane:Ec(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Vi(t)){if(e)throw Error(r(479))}else e=co(t,l,a,2),e!==null&&ze(e,t,2)}function Vi(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function cf(t,e){Wa=Li=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function sf(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,hs(t,l)}}var Ln={readContext:oe,use:Gi,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt};Ln.useEffectEvent=Qt;var rf={readContext:oe,use:Gi,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:Kr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Qi(4194308,4,Wr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Qi(4194308,4,t,e)},useInsertionEffect:function(t,e){Qi(4,2,t,e)},useMemo:function(t,e){var l=me();e=e===void 0?null:e;var a=t();if(va){Cl(!0);try{t()}finally{Cl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=me();if(l!==void 0){var n=l(e);if(va){Cl(!0);try{l(e)}finally{Cl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=em.bind(null,ut,t),[a.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=qo(t);var e=t.queue,l=of.bind(null,ut,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Zo,useDeferredValue:function(t,e){var l=me();return Go(l,t,e)},useTransition:function(){var t=qo(!1);return t=ef.bind(null,ut,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=ut,n=me();if(bt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Nt===null)throw Error(r(349));(yt&127)!==0||Cr(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,Kr(Rr.bind(null,a,i,t),[t]),a.flags|=2048,Ia(9,{destroy:void 0},wr.bind(null,a,i,l,e),null),l},useId:function(){var t=me(),e=Nt.identifierPrefix;if(bt){var l=ll,a=el;l=(a&~(1<<32-Ee(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Yi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Jh++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Qo,useFormState:Yr,useActionState:Yr,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Ko.bind(null,ut,!0,l),l.dispatch=e,[t,e]},useMemoCache:Uo,useCacheRefresh:function(){return me().memoizedState=tm.bind(null,ut)},useEffectEvent:function(t){var e=me(),l={impl:t};return e.memoizedState=l,function(){if((jt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Vo={readContext:oe,use:Gi,useCallback:Ir,useContext:oe,useEffect:Yo,useImperativeHandle:$r,useInsertionEffect:Jr,useLayoutEffect:Fr,useMemo:Pr,useReducer:Xi,useRef:Qr,useState:function(){return Xi(pl)},useDebugValue:Zo,useDeferredValue:function(t,e){var l=Jt();return tf(l,Dt.memoizedState,t,e)},useTransition:function(){var t=Xi(pl)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:kn(t),e]},useSyncExternalStore:Mr,useId:nf,useHostTransitionStatus:Qo,useFormState:Zr,useActionState:Zr,useOptimistic:function(t,e){var l=Jt();return Hr(l,Dt,t,e)},useMemoCache:Uo,useCacheRefresh:uf};Vo.useEffectEvent=Vr;var ff={readContext:oe,use:Gi,useCallback:Ir,useContext:oe,useEffect:Yo,useImperativeHandle:$r,useInsertionEffect:Jr,useLayoutEffect:Fr,useMemo:Pr,useReducer:ko,useRef:Qr,useState:function(){return ko(pl)},useDebugValue:Zo,useDeferredValue:function(t,e){var l=Jt();return Dt===null?Go(l,t,e):tf(l,Dt.memoizedState,t,e)},useTransition:function(){var t=ko(pl)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:kn(t),e]},useSyncExternalStore:Mr,useId:nf,useHostTransitionStatus:Qo,useFormState:Xr,useActionState:Xr,useOptimistic:function(t,e){var l=Jt();return Dt!==null?Hr(l,Dt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Uo,useCacheRefresh:uf};ff.useEffectEvent=Vr;function Jo(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:L({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Fo={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=we(),n=kl(a);n.payload=e,l!=null&&(n.callback=l),e=ql(t,n,a),e!==null&&(ze(e,t,a),Bn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=we(),n=kl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=ql(t,n,a),e!==null&&(ze(e,t,a),Bn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=we(),a=kl(l);a.tag=2,e!=null&&(a.callback=e),e=ql(t,a,l),e!==null&&(ze(e,t,l),Bn(e,t,l))}};function df(t,e,l,a,n,i,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,u):e.prototype&&e.prototype.isPureReactComponent?!An(l,a)||!An(n,i):!0}function hf(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Fo.enqueueReplaceState(e,e.state,null)}function ba(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=L({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function mf(t){ji(t)}function gf(t){console.error(t)}function pf(t){ji(t)}function Ji(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function yf(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Wo(t,e,l){return l=kl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ji(t,e)},l}function vf(t){return t=kl(t),t.tag=3,t}function bf(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){yf(e,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){yf(e,l,a),typeof n!="function"&&(Ql===null?Ql=new Set([this]):Ql.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function lm(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Xa(e,l,n,!0),l=_e.current,l!==null){switch(l.tag){case 31:case 13:return Ze===null?uu():l.alternate===null&&Kt===0&&(Kt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Hi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Sc(t,a,n)),!1;case 22:return l.flags|=65536,a===Hi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Sc(t,a,n)),!1}throw Error(r(435,l.tag))}return Sc(t,a,n),uu(),!1}if(bt)return e=_e.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==go&&(t=Error(r(422),{cause:a}),Mn(ke(t,l)))):(a!==go&&(e=Error(r(423),{cause:a}),Mn(ke(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=ke(a,l),n=Wo(t.stateNode,a,n),Ao(t,n),Kt!==4&&(Kt=2)),!1;var i=Error(r(520),{cause:a});if(i=ke(i,l),Jn===null?Jn=[i]:Jn.push(i),Kt!==4&&(Kt=2),e===null)return!0;a=ke(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Wo(l.stateNode,a,t),Ao(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ql===null||!Ql.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=vf(n),bf(n,t,l,a),Ao(l,n),!1}l=l.return}while(l!==null);return!1}var $o=Error(r(461)),$t=!1;function ce(t,e,l,a){e.child=t===null?Tr(e,null,l,a):ya(e,t.child,l,a)}function xf(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var u={};for(var s in a)s!=="ref"&&(u[s]=a[s])}else u=a;return ha(e),a=Ro(t,e,l,u,i,n),s=Do(),t!==null&&!$t?(Bo(t,e,n),yl(t,e,n)):(bt&&s&&ho(e),e.flags|=1,ce(t,e,a,n),e.child)}function Sf(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!so(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,Tf(t,e,i,a,n)):(t=Mi(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!ic(t,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:An,l(u,a)&&t.ref===e.ref)return yl(t,e,n)}return e.flags|=1,t=fl(i,a),t.ref=e.ref,t.return=e,e.child=t}function Tf(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(An(i,a)&&t.ref===e.ref)if($t=!1,e.pendingProps=a=i,ic(t,n))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,yl(t,e,n)}return Io(t,e,l,a,n)}function zf(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return Ef(t,e,i,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Di(e,i!==null?i.cachePool:null),i!==null?jr(e,i):Oo(),Ar(e);else return a=e.lanes=536870912,Ef(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Di(e,i.cachePool),jr(e,i),Yl(),e.memoizedState=null):(t!==null&&Di(e,null),Oo(),Yl());return ce(t,e,n,l),e.child}function Yn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ef(t,e,l,a,n){var i=To();return i=i===null?null:{parent:Ft._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Di(e,null),Oo(),Ar(e),t!==null&&Xa(t,e,a,!0),e.childLanes=n,null}function Fi(t,e){return e=$i({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function jf(t,e,l){return ya(e,t.child,null,l),t=Fi(e,e.pendingProps),t.flags|=2,Oe(e),e.memoizedState=null,t}function am(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(a.mode==="hidden")return t=Fi(e,a),e.lanes=536870912,Yn(null,t);if(Co(e),(t=Lt)?(t=Nd(t,Ye),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Dl!==null?{id:el,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=or(t),l.return=e,e.child=l,ue=e,Lt=null)):t=null,t===null)throw Hl(e);return e.lanes=536870912,null}return Fi(e,a)}var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(Co(e),n)if(e.flags&256)e.flags&=-257,e=jf(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if($t||Xa(t,e,l,!1),n=(l&t.childLanes)!==0,$t||n){if(a=Nt,a!==null&&(u=ms(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,sa(t,u),ze(a,t,u),$o;uu(),e=jf(t,e,l)}else t=i.treeContext,Lt=Ge(u.nextSibling),ue=e,bt=!0,Bl=null,Ye=!1,t!==null&&rr(e,t),e=Fi(e,a),e.flags|=4096;return e}return t=fl(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Wi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Io(t,e,l,a,n){return ha(e),l=Ro(t,e,l,a,void 0,n),a=Do(),t!==null&&!$t?(Bo(t,e,n),yl(t,e,n)):(bt&&a&&ho(e),e.flags|=1,ce(t,e,l,n),e.child)}function Af(t,e,l,a,n,i){return ha(e),e.updateQueue=null,l=Or(e,a,l,n),_r(t),a=Do(),t!==null&&!$t?(Bo(t,e,i),yl(t,e,i)):(bt&&a&&ho(e),e.flags|=1,ce(t,e,l,i),e.child)}function _f(t,e,l,a,n){if(ha(e),e.stateNode===null){var i=La,u=l.contextType;typeof u=="object"&&u!==null&&(i=oe(u)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Fo,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},Eo(e),u=l.contextType,i.context=typeof u=="object"&&u!==null?oe(u):La,i.state=e.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Jo(e,l,u,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Fo.enqueueReplaceState(i,i.state,null),Un(e,a,i,n),Hn(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var s=e.memoizedProps,h=ba(l,s);i.props=h;var T=i.context,O=l.contextType;u=La,typeof O=="object"&&O!==null&&(u=oe(O));var C=l.getDerivedStateFromProps;O=typeof C=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||T!==u)&&hf(e,i,a,u),Nl=!1;var E=e.memoizedState;i.state=E,Un(e,a,i,n),Hn(),T=e.memoizedState,s||E!==T||Nl?(typeof C=="function"&&(Jo(e,l,C,a),T=e.memoizedState),(h=Nl||df(e,l,h,a,E,T,u))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=T),i.props=a,i.state=T,i.context=u,a=h):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,jo(t,e),u=e.memoizedProps,O=ba(l,u),i.props=O,C=e.pendingProps,E=i.context,T=l.contextType,h=La,typeof T=="object"&&T!==null&&(h=oe(T)),s=l.getDerivedStateFromProps,(T=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==C||E!==h)&&hf(e,i,a,h),Nl=!1,E=e.memoizedState,i.state=E,Un(e,a,i,n),Hn();var A=e.memoizedState;u!==C||E!==A||Nl||t!==null&&t.dependencies!==null&&wi(t.dependencies)?(typeof s=="function"&&(Jo(e,l,s,a),A=e.memoizedState),(O=Nl||df(e,l,O,a,E,A,h)||t!==null&&t.dependencies!==null&&wi(t.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,A,h),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,A,h)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=A),i.props=a,i.state=A,i.context=h,a=O):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,Wi(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=ya(e,t.child,null,n),e.child=ya(e,null,l,n)):ce(t,e,l,n),e.memoizedState=i.state,t=e.child):t=yl(t,e,n),t}function Of(t,e,l,a){return fa(),e.flags|=256,ce(t,e,l,a),e.child}var Po={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tc(t){return{baseLanes:t,cachePool:pr()}}function ec(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ce),t}function Mf(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,u;if((u=i)||(u=t!==null&&t.memoizedState===null?!1:(Vt.current&2)!==0),u&&(n=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(n?Ll(e):Yl(),(t=Lt)?(t=Nd(t,Ye),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Dl!==null?{id:el,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=or(t),l.return=e,e.child=l,ue=e,Lt=null)):t=null,t===null)throw Hl(e);return Nc(t)?e.lanes=32:e.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Yl(),n=e.mode,s=$i({mode:"hidden",children:s},n),a=ra(a,n,l,null),s.return=e,a.return=e,s.sibling=a,e.child=s,a=e.child,a.memoizedState=tc(l),a.childLanes=ec(t,u,l),e.memoizedState=Po,Yn(null,a)):(Ll(e),lc(e,s))}var h=t.memoizedState;if(h!==null&&(s=h.dehydrated,s!==null)){if(i)e.flags&256?(Ll(e),e.flags&=-257,e=ac(t,e,l)):e.memoizedState!==null?(Yl(),e.child=t.child,e.flags|=128,e=null):(Yl(),s=a.fallback,n=e.mode,a=$i({mode:"visible",children:a.children},n),s=ra(s,n,l,null),s.flags|=2,a.return=e,s.return=e,a.sibling=s,e.child=a,ya(e,t.child,null,l),a=e.child,a.memoizedState=tc(l),a.childLanes=ec(t,u,l),e.memoizedState=Po,e=Yn(null,a));else if(Ll(e),Nc(s)){if(u=s.nextSibling&&s.nextSibling.dataset,u)var T=u.dgst;u=T,a=Error(r(419)),a.stack="",a.digest=u,Mn({value:a,source:null,stack:null}),e=ac(t,e,l)}else if($t||Xa(t,e,l,!1),u=(l&t.childLanes)!==0,$t||u){if(u=Nt,u!==null&&(a=ms(u,l),a!==0&&a!==h.retryLane))throw h.retryLane=a,sa(t,a),ze(u,t,a),$o;Uc(s)||uu(),e=ac(t,e,l)}else Uc(s)?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,Lt=Ge(s.nextSibling),ue=e,bt=!0,Bl=null,Ye=!1,t!==null&&rr(e,t),e=lc(e,a.children),e.flags|=4096);return e}return n?(Yl(),s=a.fallback,n=e.mode,h=t.child,T=h.sibling,a=fl(h,{mode:"hidden",children:a.children}),a.subtreeFlags=h.subtreeFlags&65011712,T!==null?s=fl(T,s):(s=ra(s,n,l,null),s.flags|=2),s.return=e,a.return=e,a.sibling=s,e.child=a,Yn(null,a),a=e.child,s=t.child.memoizedState,s===null?s=tc(l):(n=s.cachePool,n!==null?(h=Ft._currentValue,n=n.parent!==h?{parent:h,pool:h}:n):n=pr(),s={baseLanes:s.baseLanes|l,cachePool:n}),a.memoizedState=s,a.childLanes=ec(t,u,l),e.memoizedState=Po,Yn(t.child,a)):(Ll(e),l=t.child,t=l.sibling,l=fl(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=l,e.memoizedState=null,l)}function lc(t,e){return e=$i({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function $i(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function ac(t,e,l){return ya(e,t.child,null,l),t=lc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Cf(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),vo(t.return,e,l)}function nc(t,e,l,a,n,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=i)}function wf(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Vt.current,s=(u&2)!==0;if(s?(u=u&1|2,e.flags|=128):u&=1,U(Vt,u),ce(t,e,a,l),a=bt?On:0,!s&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Cf(t,l,e);else if(t.tag===19)Cf(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&qi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),nc(e,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&qi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}nc(e,!0,l,null,i,a);break;case"together":nc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function yl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Xl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Xa(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=fl(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=fl(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ic(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&wi(t)))}function nm(t,e,l){switch(e.tag){case 3:wt(e,e.stateNode.containerInfo),Ul(e,Ft,t.memoizedState.cache),fa();break;case 27:case 5:Ke(e);break;case 4:wt(e,e.stateNode.containerInfo);break;case 10:Ul(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Co(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Ll(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Mf(t,e,l):(Ll(e),t=yl(t,e,l),t!==null?t.sibling:null);Ll(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Xa(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return wf(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(Vt,Vt.current),a)break;return null;case 22:return e.lanes=0,zf(t,e,l,e.pendingProps);case 24:Ul(e,Ft,t.memoizedState.cache)}return yl(t,e,l)}function Rf(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!ic(t,l)&&(e.flags&128)===0)return $t=!1,nm(t,e,l);$t=(t.flags&131072)!==0}else $t=!1,bt&&(e.flags&1048576)!==0&&sr(e,On,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ga(e.elementType),e.type=t,typeof t=="function")so(t)?(a=ba(t,a),e.tag=1,e=_f(null,e,t,a,l)):(e.tag=0,e=Io(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===F){e.tag=11,e=xf(null,e,t,a,l);break t}else if(n===p){e.tag=14,e=Sf(null,e,t,a,l);break t}}throw e=ae(t)||t,Error(r(306,e,""))}}return e;case 0:return Io(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=ba(a,e.pendingProps),_f(t,e,a,n,l);case 3:t:{if(wt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,jo(t,e),Un(e,a,null,l);var u=e.memoizedState;if(a=u.cache,Ul(e,Ft,a),a!==i.cache&&bo(e,[Ft],l,!0),Hn(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=Of(t,e,a,l);break t}else if(a!==n){n=ke(Error(r(424)),e),Mn(n),e=Of(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Lt=Ge(t.firstChild),ue=e,bt=!0,Bl=null,Ye=!0,l=Tr(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fa(),a===n){e=yl(t,e,l);break t}ce(t,e,a,l)}e=e.child}return e;case 26:return Wi(t,e),t===null?(l=Gd(e.type,null,e.pendingProps,null))?e.memoizedState=l:bt||(l=e.type,t=e.pendingProps,a=hu(W.current).createElement(l),a[ie]=e,a[ye]=t,se(a,l,t),te(a),e.stateNode=a):e.memoizedState=Gd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ke(e),t===null&&bt&&(a=e.stateNode=Ld(e.type,e.pendingProps,W.current),ue=e,Ye=!0,n=Lt,Fl(e.type)?(kc=n,Lt=Ge(a.firstChild)):Lt=n),ce(t,e,e.pendingProps.children,l),Wi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((n=a=Lt)&&(a=Bm(a,e.type,e.pendingProps,Ye),a!==null?(e.stateNode=a,ue=e,Lt=Ge(a.firstChild),Ye=!1,n=!0):n=!1),n||Hl(e)),Ke(e),n=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,a=i.children,Dc(n,i)?a=null:u!==null&&Dc(n,u)&&(e.flags|=32),e.memoizedState!==null&&(n=Ro(t,e,Fh,null,null,l),li._currentValue=n),Wi(t,e),ce(t,e,a,l),e.child;case 6:return t===null&&bt&&((t=l=Lt)&&(l=Hm(l,e.pendingProps,Ye),l!==null?(e.stateNode=l,ue=e,Lt=null,t=!0):t=!1),t||Hl(e)),null;case 13:return Mf(t,e,l);case 4:return wt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ya(e,null,a,l):ce(t,e,a,l),e.child;case 11:return xf(t,e,e.type,e.pendingProps,l);case 7:return ce(t,e,e.pendingProps,l),e.child;case 8:return ce(t,e,e.pendingProps.children,l),e.child;case 12:return ce(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Ul(e,e.type,a.value),ce(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,ha(e),n=oe(n),a=a(n),e.flags|=1,ce(t,e,a,l),e.child;case 14:return Sf(t,e,e.type,e.pendingProps,l);case 15:return Tf(t,e,e.type,e.pendingProps,l);case 19:return wf(t,e,l);case 31:return am(t,e,l);case 22:return zf(t,e,l,e.pendingProps);case 24:return ha(e),a=oe(Ft),t===null?(n=To(),n===null&&(n=Nt,i=xo(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},Eo(e),Ul(e,Ft,n)):((t.lanes&l)!==0&&(jo(t,e),Un(e,null,null,l),Hn()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Ul(e,Ft,a)):(a=i.cache,Ul(e,Ft,a),a!==n.cache&&bo(e,[Ft],l,!0))),ce(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function vl(t){t.flags|=4}function uc(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(id())t.flags|=8192;else throw pa=Hi,zo}else t.flags&=-16777217}function Df(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Jd(e))if(id())t.flags|=8192;else throw pa=Hi,zo}function Ii(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fs():536870912,t.lanes|=e,ln|=e)}function Zn(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Yt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function im(t,e,l){var a=e.pendingProps;switch(mo(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(e),null;case 1:return Yt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ml(Ft),St(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Ga(e)?vl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,po())),Yt(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(vl(e),i!==null?(Yt(e),Df(e,i)):(Yt(e),uc(e,n,null,a,l))):i?i!==t.memoizedState?(vl(e),Yt(e),Df(e,i)):(Yt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&vl(e),Yt(e),uc(e,n,t,a,l)),null;case 27:if(Re(e),l=W.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&vl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}t=q.current,Ga(e)?fr(e):(t=Ld(n,a,l),e.stateNode=t,vl(e))}return Yt(e),null;case 5:if(Re(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&vl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}if(i=q.current,Ga(e))fr(e);else{var u=hu(W.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}i[ie]=e,i[ye]=a;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=i;t:switch(se(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&vl(e)}}return Yt(e),uc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&vl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=W.current,Ga(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=ue,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[ie]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Md(t.nodeValue,l)),t||Hl(e,!0)}else t=hu(t).createTextNode(a),t[ie]=e,e.stateNode=t}return Yt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ga(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ie]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),t=!1}else l=po(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Oe(e),e):(Oe(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Yt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=Ga(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[ie]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),n=!1}else n=po(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Oe(e),e):(Oe(e),null)}return Oe(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ii(e,e.updateQueue),Yt(e),null);case 4:return St(),t===null&&Oc(e.stateNode.containerInfo),Yt(e),null;case 10:return ml(e.type),Yt(e),null;case 19:if(x(Vt),a=e.memoizedState,a===null)return Yt(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)Zn(a,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=qi(t),i!==null){for(e.flags|=128,Zn(a,!1),t=i.updateQueue,e.updateQueue=t,Ii(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)ur(l,t),l=l.sibling;return U(Vt,Vt.current&1|2),bt&&dl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Ut()>au&&(e.flags|=128,n=!0,Zn(a,!1),e.lanes=4194304)}else{if(!n)if(t=qi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Ii(e,t),Zn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!bt)return Yt(e),null}else 2*Ut()-a.renderingStartTime>au&&l!==536870912&&(e.flags|=128,n=!0,Zn(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ut(),t.sibling=null,l=Vt.current,U(Vt,n?l&1|2:l&1),bt&&dl(e,a.treeForkCount),t):(Yt(e),null);case 22:case 23:return Oe(e),Mo(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Yt(e),e.subtreeFlags&6&&(e.flags|=8192)):Yt(e),l=e.updateQueue,l!==null&&Ii(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&x(ma),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ml(Ft),Yt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function um(t,e){switch(mo(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ml(Ft),St(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Re(e),null;case 31:if(e.memoizedState!==null){if(Oe(e),e.alternate===null)throw Error(r(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return x(Vt),null;case 4:return St(),null;case 10:return ml(e.type),null;case 22:case 23:return Oe(e),Mo(),t!==null&&x(ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ml(Ft),null;case 25:return null;default:return null}}function Bf(t,e){switch(mo(e),e.tag){case 3:ml(Ft),St();break;case 26:case 27:case 5:Re(e);break;case 4:St();break;case 31:e.memoizedState!==null&&Oe(e);break;case 13:Oe(e);break;case 19:x(Vt);break;case 10:ml(e.type);break;case 22:case 23:Oe(e),Mo(),t!==null&&x(ma);break;case 24:ml(Ft)}}function Gn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(s){Mt(e,e.return,s)}}function Zl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var u=a.inst,s=u.destroy;if(s!==void 0){u.destroy=void 0,n=e;var h=l,T=s;try{T()}catch(O){Mt(n,h,O)}}}a=a.next}while(a!==i)}}catch(O){Mt(e,e.return,O)}}function Hf(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Er(e,l)}catch(a){Mt(t,t.return,a)}}}function Uf(t,e,l){l.props=ba(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Mt(t,e,a)}}function Xn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){Mt(t,e,n)}}function al(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Mt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Mt(t,e,n)}else l.current=null}function Nf(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Mt(t,t.return,n)}}function oc(t,e,l){try{var a=t.stateNode;Om(a,t.type,l,e),a[ye]=e}catch(n){Mt(t,t.return,n)}}function kf(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Fl(t.type)||t.tag===4}function cc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||kf(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Fl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function sc(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=sl));else if(a!==4&&(a===27&&Fl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(sc(t,e,l),t=t.sibling;t!==null;)sc(t,e,l),t=t.sibling}function Pi(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Fl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Pi(t,e,l),t=t.sibling;t!==null;)Pi(t,e,l),t=t.sibling}function qf(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);se(e,a,l),e[ie]=t,e[ye]=l}catch(i){Mt(t,t.return,i)}}var bl=!1,It=!1,rc=!1,Lf=typeof WeakSet=="function"?WeakSet:Set,ee=null;function om(t,e){if(t=t.containerInfo,wc=xu,t=$s(t),lo(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var u=0,s=-1,h=-1,T=0,O=0,C=t,E=null;e:for(;;){for(var A;C!==l||n!==0&&C.nodeType!==3||(s=u+n),C!==i||a!==0&&C.nodeType!==3||(h=u+a),C.nodeType===3&&(u+=C.nodeValue.length),(A=C.firstChild)!==null;)E=C,C=A;for(;;){if(C===t)break e;if(E===l&&++T===n&&(s=u),E===i&&++O===a&&(h=u),(A=C.nextSibling)!==null)break;C=E,E=C.parentNode}C=A}l=s===-1||h===-1?null:{start:s,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rc={focusedElem:t,selectionRange:l},xu=!1,ee=e;ee!==null;)if(e=ee,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ee=t;else for(;ee!==null;){switch(e=ee,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var G=ba(l.type,n);t=a.getSnapshotBeforeUpdate(G,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(tt){Mt(l,l.return,tt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Hc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Hc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ee=t;break}ee=e.return}}function Yf(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Sl(t,l),a&4&&Gn(5,l);break;case 1:if(Sl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(u){Mt(l,l.return,u)}else{var n=ba(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){Mt(l,l.return,u)}}a&64&&Hf(l),a&512&&Xn(l,l.return);break;case 3:if(Sl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Er(t,e)}catch(u){Mt(l,l.return,u)}}break;case 27:e===null&&a&4&&qf(l);case 26:case 5:Sl(t,l),e===null&&a&4&&Nf(l),a&512&&Xn(l,l.return);break;case 12:Sl(t,l);break;case 31:Sl(t,l),a&4&&Xf(t,l);break;case 13:Sl(t,l),a&4&&Qf(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=pm.bind(null,l),Um(t,l))));break;case 22:if(a=l.memoizedState!==null||bl,!a){e=e!==null&&e.memoizedState!==null||It,n=bl;var i=It;bl=a,(It=e)&&!i?Tl(t,l,(l.subtreeFlags&8772)!==0):Sl(t,l),bl=n,It=i}break;case 30:break;default:Sl(t,l)}}function Zf(t){var e=t.alternate;e!==null&&(t.alternate=null,Zf(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&qu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Zt=null,be=!1;function xl(t,e,l){for(l=l.child;l!==null;)Gf(t,e,l),l=l.sibling}function Gf(t,e,l){if(fe&&typeof fe.onCommitFiberUnmount=="function")try{fe.onCommitFiberUnmount(Ml,l)}catch{}switch(l.tag){case 26:It||al(l,e),xl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:It||al(l,e);var a=Zt,n=be;Fl(l.type)&&(Zt=l.stateNode,be=!1),xl(t,e,l),Pn(l.stateNode),Zt=a,be=n;break;case 5:It||al(l,e);case 6:if(a=Zt,n=be,Zt=null,xl(t,e,l),Zt=a,be=n,Zt!==null)if(be)try{(Zt.nodeType===9?Zt.body:Zt.nodeName==="HTML"?Zt.ownerDocument.body:Zt).removeChild(l.stateNode)}catch(i){Mt(l,e,i)}else try{Zt.removeChild(l.stateNode)}catch(i){Mt(l,e,i)}break;case 18:Zt!==null&&(be?(t=Zt,Hd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),fn(t)):Hd(Zt,l.stateNode));break;case 4:a=Zt,n=be,Zt=l.stateNode.containerInfo,be=!0,xl(t,e,l),Zt=a,be=n;break;case 0:case 11:case 14:case 15:Zl(2,l,e),It||Zl(4,l,e),xl(t,e,l);break;case 1:It||(al(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Uf(l,e,a)),xl(t,e,l);break;case 21:xl(t,e,l);break;case 22:It=(a=It)||l.memoizedState!==null,xl(t,e,l),It=a;break;default:xl(t,e,l)}}function Xf(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{fn(t)}catch(l){Mt(e,e.return,l)}}}function Qf(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{fn(t)}catch(l){Mt(e,e.return,l)}}function cm(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Lf),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Lf),e;default:throw Error(r(435,t.tag))}}function tu(t,e){var l=cm(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=ym.bind(null,t,a);a.then(n,n)}})}function xe(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=t,u=e,s=u;t:for(;s!==null;){switch(s.tag){case 27:if(Fl(s.type)){Zt=s.stateNode,be=!1;break t}break;case 5:Zt=s.stateNode,be=!1;break t;case 3:case 4:Zt=s.stateNode.containerInfo,be=!0;break t}s=s.return}if(Zt===null)throw Error(r(160));Gf(i,u,n),Zt=null,be=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Kf(e,t),e=e.sibling}var Ie=null;function Kf(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Se(t),a&4&&(Zl(3,t,t.return),Gn(3,t),Zl(5,t,t.return));break;case 1:xe(e,t),Se(t),a&512&&(It||l===null||al(l,l.return)),a&64&&bl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ie;if(xe(e,t),Se(t),a&512&&(It||l===null||al(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[yn]||i[ie]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),se(i,a,l),i[ie]=t,te(i),a=i;break t;case"link":var u=Kd("link","href",n).get(a+(l.href||""));if(u){for(var s=0;s<u.length;s++)if(i=u[s],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(s,1);break e}}i=n.createElement(a),se(i,a,l),n.head.appendChild(i);break;case"meta":if(u=Kd("meta","content",n).get(a+(l.content||""))){for(s=0;s<u.length;s++)if(i=u[s],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(s,1);break e}}i=n.createElement(a),se(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[ie]=t,te(i),a=i}t.stateNode=a}else Vd(n,t.type,t.stateNode);else t.stateNode=Qd(n,a,t.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Vd(n,t.type,t.stateNode):Qd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&oc(t,t.memoizedProps,l.memoizedProps)}break;case 27:xe(e,t),Se(t),a&512&&(It||l===null||al(l,l.return)),l!==null&&a&4&&oc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(xe(e,t),Se(t),a&512&&(It||l===null||al(l,l.return)),t.flags&32){n=t.stateNode;try{Da(n,"")}catch(G){Mt(t,t.return,G)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,oc(t,n,l!==null?l.memoizedProps:n)),a&1024&&(rc=!0);break;case 6:if(xe(e,t),Se(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(G){Mt(t,t.return,G)}}break;case 3:if(pu=null,n=Ie,Ie=mu(e.containerInfo),xe(e,t),Ie=n,Se(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{fn(e.containerInfo)}catch(G){Mt(t,t.return,G)}rc&&(rc=!1,Vf(t));break;case 4:a=Ie,Ie=mu(t.stateNode.containerInfo),xe(e,t),Se(t),Ie=a;break;case 12:xe(e,t),Se(t);break;case 31:xe(e,t),Se(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,tu(t,a)));break;case 13:xe(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(lu=Ut()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,tu(t,a)));break;case 22:n=t.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,T=bl,O=It;if(bl=T||n,It=O||h,xe(e,t),It=O,bl=T,Se(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||h||bl||It||xa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){h=l=e;try{if(i=h.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{s=h.stateNode;var C=h.memoizedProps.style,E=C!=null&&C.hasOwnProperty("display")?C.display:null;s.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(G){Mt(h,h.return,G)}}}else if(e.tag===6){if(l===null){h=e;try{h.stateNode.nodeValue=n?"":h.memoizedProps}catch(G){Mt(h,h.return,G)}}}else if(e.tag===18){if(l===null){h=e;try{var A=h.stateNode;n?Ud(A,!0):Ud(h.stateNode,!1)}catch(G){Mt(h,h.return,G)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,tu(t,l))));break;case 19:xe(e,t),Se(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,tu(t,a)));break;case 30:break;case 21:break;default:xe(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(kf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=cc(t);Pi(t,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(Da(u,""),l.flags&=-33);var s=cc(t);Pi(t,s,u);break;case 3:case 4:var h=l.stateNode.containerInfo,T=cc(t);sc(t,T,h);break;default:throw Error(r(161))}}catch(O){Mt(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Vf(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Vf(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Sl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Yf(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Zl(4,e,e.return),xa(e);break;case 1:al(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Uf(e,e.return,l),xa(e);break;case 27:Pn(e.stateNode);case 26:case 5:al(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function Tl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,u=i.flags;switch(i.tag){case 0:case 11:case 15:Tl(n,i,l),Gn(4,i);break;case 1:if(Tl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){Mt(a,a.return,T)}if(a=i,n=a.updateQueue,n!==null){var s=a.stateNode;try{var h=n.shared.hiddenCallbacks;if(h!==null)for(n.shared.hiddenCallbacks=null,n=0;n<h.length;n++)zr(h[n],s)}catch(T){Mt(a,a.return,T)}}l&&u&64&&Hf(i),Xn(i,i.return);break;case 27:qf(i);case 26:case 5:Tl(n,i,l),l&&a===null&&u&4&&Nf(i),Xn(i,i.return);break;case 12:Tl(n,i,l);break;case 31:Tl(n,i,l),l&&u&4&&Xf(n,i);break;case 13:Tl(n,i,l),l&&u&4&&Qf(n,i);break;case 22:i.memoizedState===null&&Tl(n,i,l),Xn(i,i.return);break;case 30:break;default:Tl(n,i,l)}e=e.sibling}}function fc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Cn(l))}function dc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cn(t))}function Pe(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jf(t,e,l,a),e=e.sibling}function Jf(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Pe(t,e,l,a),n&2048&&Gn(9,e);break;case 1:Pe(t,e,l,a);break;case 3:Pe(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cn(t)));break;case 12:if(n&2048){Pe(t,e,l,a),t=e.stateNode;try{var i=e.memoizedProps,u=i.id,s=i.onPostCommit;typeof s=="function"&&s(u,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){Mt(e,e.return,h)}}else Pe(t,e,l,a);break;case 31:Pe(t,e,l,a);break;case 13:Pe(t,e,l,a);break;case 23:break;case 22:i=e.stateNode,u=e.alternate,e.memoizedState!==null?i._visibility&2?Pe(t,e,l,a):Qn(t,e):i._visibility&2?Pe(t,e,l,a):(i._visibility|=2,Pa(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&fc(u,e);break;case 24:Pe(t,e,l,a),n&2048&&dc(e.alternate,e);break;default:Pe(t,e,l,a)}}function Pa(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,u=e,s=l,h=a,T=u.flags;switch(u.tag){case 0:case 11:case 15:Pa(i,u,s,h,n),Gn(8,u);break;case 23:break;case 22:var O=u.stateNode;u.memoizedState!==null?O._visibility&2?Pa(i,u,s,h,n):Qn(i,u):(O._visibility|=2,Pa(i,u,s,h,n)),n&&T&2048&&fc(u.alternate,u);break;case 24:Pa(i,u,s,h,n),n&&T&2048&&dc(u.alternate,u);break;default:Pa(i,u,s,h,n)}e=e.sibling}}function Qn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Qn(l,a),n&2048&&fc(a.alternate,a);break;case 24:Qn(l,a),n&2048&&dc(a.alternate,a);break;default:Qn(l,a)}e=e.sibling}}var Kn=8192;function tn(t,e,l){if(t.subtreeFlags&Kn)for(t=t.child;t!==null;)Ff(t,e,l),t=t.sibling}function Ff(t,e,l){switch(t.tag){case 26:tn(t,e,l),t.flags&Kn&&t.memoizedState!==null&&Jm(l,Ie,t.memoizedState,t.memoizedProps);break;case 5:tn(t,e,l);break;case 3:case 4:var a=Ie;Ie=mu(t.stateNode.containerInfo),tn(t,e,l),Ie=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Kn,Kn=16777216,tn(t,e,l),Kn=a):tn(t,e,l));break;default:tn(t,e,l)}}function Wf(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Vn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];ee=a,If(a,t)}Wf(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$f(t),t=t.sibling}function $f(t){switch(t.tag){case 0:case 11:case 15:Vn(t),t.flags&2048&&Zl(9,t,t.return);break;case 3:Vn(t);break;case 12:Vn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,eu(t)):Vn(t);break;default:Vn(t)}}function eu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];ee=a,If(a,t)}Wf(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Zl(8,e,e.return),eu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,eu(e));break;default:eu(e)}t=t.sibling}}function If(t,e){for(;ee!==null;){var l=ee;switch(l.tag){case 0:case 11:case 15:Zl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Cn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ee=a;else t:for(l=t;ee!==null;){a=ee;var n=a.sibling,i=a.return;if(Zf(a),a===l){ee=null;break t}if(n!==null){n.return=i,ee=n;break t}ee=i}}}var sm={getCacheForType:function(t){var e=oe(Ft),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return oe(Ft).controller.signal}},rm=typeof WeakMap=="function"?WeakMap:Map,jt=0,Nt=null,mt=null,yt=0,Ot=0,Me=null,Gl=!1,en=!1,hc=!1,zl=0,Kt=0,Xl=0,Sa=0,mc=0,Ce=0,ln=0,Jn=null,Te=null,gc=!1,lu=0,Pf=0,au=1/0,nu=null,Ql=null,Pt=0,Kl=null,an=null,El=0,pc=0,yc=null,td=null,Fn=0,vc=null;function we(){return(jt&2)!==0&&yt!==0?yt&-yt:_.T!==null?Ec():gs()}function ed(){if(Ce===0)if((yt&536870912)===0||bt){var t=di;di<<=1,(di&3932160)===0&&(di=262144),Ce=t}else Ce=536870912;return t=_e.current,t!==null&&(t.flags|=32),Ce}function ze(t,e,l){(t===Nt&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(nn(t,0),Vl(t,yt,Ce,!1)),pn(t,l),((jt&2)===0||t!==Nt)&&(t===Nt&&((jt&2)===0&&(Sa|=l),Kt===4&&Vl(t,yt,Ce,!1)),nl(t))}function ld(t,e,l){if((jt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||gn(t,e),n=a?hm(t,e):xc(t,e,!0),i=a;do{if(n===0){en&&!a&&Vl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!fm(l)){n=xc(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var s=t;n=Jn;var h=s.current.memoizedState.isDehydrated;if(h&&(nn(s,u).flags|=256),u=xc(s,u,!1),u!==2){if(hc&&!h){s.errorRecoveryDisabledLanes|=i,Sa|=i,n=4;break t}i=Te,Te=n,i!==null&&(Te===null?Te=i:Te.push.apply(Te,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){nn(t,0),Vl(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Vl(a,e,Ce,!Gl);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=lu+300-Ut(),10<n)){if(Vl(a,e,Ce,!Gl),mi(a,0,!0)!==0)break t;El=e,a.timeoutHandle=Dd(ad.bind(null,a,l,Te,nu,gc,e,Ce,Sa,ln,Gl,i,"Throttled",-0,0),n);break t}ad(a,l,Te,nu,gc,e,Ce,Sa,ln,Gl,i,null,-0,0)}}break}while(!0);nl(t)}function ad(t,e,l,a,n,i,u,s,h,T,O,C,E,A){if(t.timeoutHandle=-1,C=e.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sl},Ff(e,i,C);var G=(i&62914560)===i?lu-Ut():(i&4194048)===i?Pf-Ut():0;if(G=Fm(C,G),G!==null){El=i,t.cancelPendingCommit=G(fd.bind(null,t,e,i,l,a,n,u,s,h,O,C,null,E,A)),Vl(t,i,u,!T);return}}fd(t,e,i,l,a,n,u,s,h)}function fm(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!je(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Vl(t,e,l,a){e&=~mc,e&=~Sa,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-Ee(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&ds(t,l,e)}function iu(){return(jt&6)===0?(Wn(0),!1):!0}function bc(){if(mt!==null){if(Ot===0)var t=mt.return;else t=mt,hl=da=null,Ho(t),Ja=null,Rn=0,t=mt;for(;t!==null;)Bf(t.alternate,t),t=t.return;mt=null}}function nn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,wm(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),El=0,bc(),Nt=t,mt=l=fl(t.current,null),yt=e,Ot=0,Me=null,Gl=!1,en=gn(t,e),hc=!1,ln=Ce=mc=Sa=Xl=Kt=0,Te=Jn=null,gc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Ee(a),i=1<<n;e|=t[n],a&=~i}return zl=e,Ai(),l}function nd(t,e){ut=null,_.H=Ln,e===Va||e===Bi?(e=br(),Ot=3):e===zo?(e=br(),Ot=4):Ot=e===$o?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Me=e,mt===null&&(Kt=1,Ji(t,ke(e,t.current)))}function id(){var t=_e.current;return t===null?!0:(yt&4194048)===yt?Ze===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Ze:!1}function ud(){var t=_.H;return _.H=Ln,t===null?Ln:t}function od(){var t=_.A;return _.A=sm,t}function uu(){Kt=4,Gl||(yt&4194048)!==yt&&_e.current!==null||(en=!0),(Xl&134217727)===0&&(Sa&134217727)===0||Nt===null||Vl(Nt,yt,Ce,!1)}function xc(t,e,l){var a=jt;jt|=2;var n=ud(),i=od();(Nt!==t||yt!==e)&&(nu=null,nn(t,e)),e=!1;var u=Kt;t:do try{if(Ot!==0&&mt!==null){var s=mt,h=Me;switch(Ot){case 8:bc(),u=6;break t;case 3:case 2:case 9:case 6:_e.current===null&&(e=!0);var T=Ot;if(Ot=0,Me=null,un(t,s,h,T),l&&en){u=0;break t}break;default:T=Ot,Ot=0,Me=null,un(t,s,h,T)}}dm(),u=Kt;break}catch(O){nd(t,O)}while(!0);return e&&t.shellSuspendCounter++,hl=da=null,jt=a,_.H=n,_.A=i,mt===null&&(Nt=null,yt=0,Ai()),u}function dm(){for(;mt!==null;)cd(mt)}function hm(t,e){var l=jt;jt|=2;var a=ud(),n=od();Nt!==t||yt!==e?(nu=null,au=Ut()+500,nn(t,e)):en=gn(t,e);t:do try{if(Ot!==0&&mt!==null){e=mt;var i=Me;e:switch(Ot){case 1:Ot=0,Me=null,un(t,e,i,1);break;case 2:case 9:if(yr(i)){Ot=0,Me=null,sd(e);break}e=function(){Ot!==2&&Ot!==9||Nt!==t||(Ot=7),nl(t)},i.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:yr(i)?(Ot=0,Me=null,sd(e)):(Ot=0,Me=null,un(t,e,i,7));break;case 5:var u=null;switch(mt.tag){case 26:u=mt.memoizedState;case 5:case 27:var s=mt;if(u?Jd(u):s.stateNode.complete){Ot=0,Me=null;var h=s.sibling;if(h!==null)mt=h;else{var T=s.return;T!==null?(mt=T,ou(T)):mt=null}break e}}Ot=0,Me=null,un(t,e,i,5);break;case 6:Ot=0,Me=null,un(t,e,i,6);break;case 8:bc(),Kt=6;break t;default:throw Error(r(462))}}mm();break}catch(O){nd(t,O)}while(!0);return hl=da=null,_.H=a,_.A=n,jt=l,mt!==null?0:(Nt=null,yt=0,Ai(),Kt)}function mm(){for(;mt!==null&&!Rt();)cd(mt)}function cd(t){var e=Rf(t.alternate,t,zl);t.memoizedProps=t.pendingProps,e===null?ou(t):mt=e}function sd(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Af(l,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Af(l,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:Ho(e);default:Bf(l,e),e=mt=ur(e,zl),e=Rf(l,e,zl)}t.memoizedProps=t.pendingProps,e===null?ou(t):mt=e}function un(t,e,l,a){hl=da=null,Ho(e),Ja=null,Rn=0;var n=e.return;try{if(lm(t,n,e,l,yt)){Kt=1,Ji(t,ke(l,t.current)),mt=null;return}}catch(i){if(n!==null)throw mt=n,i;Kt=1,Ji(t,ke(l,t.current)),mt=null;return}e.flags&32768?(bt||a===1?t=!0:en||(yt&536870912)!==0?t=!1:(Gl=t=!0,(a===2||a===9||a===3||a===6)&&(a=_e.current,a!==null&&a.tag===13&&(a.flags|=16384))),rd(e,t)):ou(e)}function ou(t){var e=t;do{if((e.flags&32768)!==0){rd(e,Gl);return}t=e.return;var l=im(e.alternate,e,zl);if(l!==null){mt=l;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Kt===0&&(Kt=5)}function rd(t,e){do{var l=um(t.alternate,t);if(l!==null){l.flags&=32767,mt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=l}while(t!==null);Kt=6,mt=null}function fd(t,e,l,a,n,i,u,s,h){t.cancelPendingCommit=null;do cu();while(Pt!==0);if((jt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(i=e.lanes|e.childLanes,i|=oo,V0(t,l,i,u,s,h),t===Nt&&(mt=Nt=null,yt=0),an=e,Kl=t,El=l,pc=i,yc=n,td=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,vm(aa,function(){return pd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,n=k.p,k.p=2,u=jt,jt|=4;try{om(t,e,l)}finally{jt=u,k.p=n,_.T=a}}Pt=1,dd(),hd(),md()}}function dd(){if(Pt===1){Pt=0;var t=Kl,e=an,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=k.p;k.p=2;var n=jt;jt|=4;try{Kf(e,t);var i=Rc,u=$s(t.containerInfo),s=i.focusedElem,h=i.selectionRange;if(u!==s&&s&&s.ownerDocument&&Ws(s.ownerDocument.documentElement,s)){if(h!==null&&lo(s)){var T=h.start,O=h.end;if(O===void 0&&(O=T),"selectionStart"in s)s.selectionStart=T,s.selectionEnd=Math.min(O,s.value.length);else{var C=s.ownerDocument||document,E=C&&C.defaultView||window;if(E.getSelection){var A=E.getSelection(),G=s.textContent.length,tt=Math.min(h.start,G),Ht=h.end===void 0?tt:Math.min(h.end,G);!A.extend&&tt>Ht&&(u=Ht,Ht=tt,tt=u);var b=Fs(s,tt),y=Fs(s,Ht);if(b&&y&&(A.rangeCount!==1||A.anchorNode!==b.node||A.anchorOffset!==b.offset||A.focusNode!==y.node||A.focusOffset!==y.offset)){var S=C.createRange();S.setStart(b.node,b.offset),A.removeAllRanges(),tt>Ht?(A.addRange(S),A.extend(y.node,y.offset)):(S.setEnd(y.node,y.offset),A.addRange(S))}}}}for(C=[],A=s;A=A.parentNode;)A.nodeType===1&&C.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<C.length;s++){var M=C[s];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}xu=!!wc,Rc=wc=null}finally{jt=n,k.p=a,_.T=l}}t.current=e,Pt=2}}function hd(){if(Pt===2){Pt=0;var t=Kl,e=an,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=k.p;k.p=2;var n=jt;jt|=4;try{Yf(t,e.alternate,e)}finally{jt=n,k.p=a,_.T=l}}Pt=3}}function md(){if(Pt===4||Pt===3){Pt=0,he();var t=Kl,e=an,l=El,a=td;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,an=Kl=null,gd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Ql=null),Nu(l),e=e.stateNode,fe&&typeof fe.onCommitFiberRoot=="function")try{fe.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=_.T,n=k.p,k.p=2,_.T=null;try{for(var i=t.onRecoverableError,u=0;u<a.length;u++){var s=a[u];i(s.value,{componentStack:s.stack})}}finally{_.T=e,k.p=n}}(El&3)!==0&&cu(),nl(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===vc?Fn++:(Fn=0,vc=t):Fn=0,Wn(0)}}function gd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Cn(e)))}function cu(){return dd(),hd(),md(),pd()}function pd(){if(Pt!==5)return!1;var t=Kl,e=pc;pc=0;var l=Nu(El),a=_.T,n=k.p;try{k.p=32>l?32:l,_.T=null,l=yc,yc=null;var i=Kl,u=El;if(Pt=0,an=Kl=null,El=0,(jt&6)!==0)throw Error(r(331));var s=jt;if(jt|=4,$f(i.current),Jf(i,i.current,u,l),jt=s,Wn(0,!1),fe&&typeof fe.onPostCommitFiberRoot=="function")try{fe.onPostCommitFiberRoot(Ml,i)}catch{}return!0}finally{k.p=n,_.T=a,gd(t,e)}}function yd(t,e,l){e=ke(l,e),e=Wo(t.stateNode,e,2),t=ql(t,e,2),t!==null&&(pn(t,2),nl(t))}function Mt(t,e,l){if(t.tag===3)yd(t,t,l);else for(;e!==null;){if(e.tag===3){yd(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ql===null||!Ql.has(a))){t=ke(l,t),l=vf(2),a=ql(e,l,2),a!==null&&(bf(l,a,e,t),pn(a,2),nl(a));break}}e=e.return}}function Sc(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new rm;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(hc=!0,n.add(l),t=gm.bind(null,t,e,l),e.then(t,t))}function gm(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(yt&l)===l&&(Kt===4||Kt===3&&(yt&62914560)===yt&&300>Ut()-lu?(jt&2)===0&&nn(t,0):mc|=l,ln===yt&&(ln=0)),nl(t)}function vd(t,e){e===0&&(e=fs()),t=sa(t,e),t!==null&&(pn(t,e),nl(t))}function pm(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),vd(t,l)}function ym(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),vd(t,l)}function vm(t,e){return _t(t,e)}var su=null,on=null,Tc=!1,ru=!1,zc=!1,Jl=0;function nl(t){t!==on&&t.next===null&&(on===null?su=on=t:on=on.next=t),ru=!0,Tc||(Tc=!0,xm())}function Wn(t,e){if(!zc&&ru){zc=!0;do for(var l=!1,a=su;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,s=a.pingedLanes;i=(1<<31-Ee(42|t)+1)-1,i&=n&~(u&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Td(a,i))}else i=yt,i=mi(a,a===Nt?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||gn(a,i)||(l=!0,Td(a,i));a=a.next}while(l);zc=!1}}function bm(){bd()}function bd(){ru=Tc=!1;var t=0;Jl!==0&&Cm()&&(t=Jl);for(var e=Ut(),l=null,a=su;a!==null;){var n=a.next,i=xd(a,e);i===0?(a.next=null,l===null?su=n:l.next=n,n===null&&(on=l)):(l=a,(t!==0||(i&3)!==0)&&(ru=!0)),a=n}Pt!==0&&Pt!==5||Wn(t),Jl!==0&&(Jl=0)}function xd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var u=31-Ee(i),s=1<<u,h=n[u];h===-1?((s&l)===0||(s&a)!==0)&&(n[u]=K0(s,e)):h<=e&&(t.expiredLanes|=s),i&=~s}if(e=Nt,l=yt,l=mi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&R(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||gn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&R(a),Nu(l)){case 2:case 8:l=Be;break;case 32:l=aa;break;case 268435456:l=We;break;default:l=aa}return a=Sd.bind(null,t),l=_t(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&R(a),t.callbackPriority=2,t.callbackNode=null,2}function Sd(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(cu()&&t.callbackNode!==l)return null;var a=yt;return a=mi(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(ld(t,a,e),xd(t,Ut()),t.callbackNode!=null&&t.callbackNode===l?Sd.bind(null,t):null)}function Td(t,e){if(cu())return null;ld(t,e,!0)}function xm(){Rm(function(){(jt&6)!==0?_t(Ol,bm):bd()})}function Ec(){if(Jl===0){var t=Qa;t===0&&(t=fi,fi<<=1,(fi&261888)===0&&(fi=256)),Jl=t}return Jl}function zd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vi(""+t)}function Ed(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Sm(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=zd((n[ye]||null).action),u=a.submitter;u&&(e=(e=u[ye]||null)?zd(e.formAction):u.getAttribute("formAction"),e!==null&&(i=e,u=null));var s=new Ti("action","action",null,a,n);t.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Jl!==0){var h=u?Ed(n,u):new FormData(n);Xo(l,{pending:!0,data:h,method:n.method,action:i},null,h)}}else typeof i=="function"&&(s.preventDefault(),h=u?Ed(n,u):new FormData(n),Xo(l,{pending:!0,data:h,method:n.method,action:i},i,h))},currentTarget:n}]})}}for(var jc=0;jc<uo.length;jc++){var Ac=uo[jc],Tm=Ac.toLowerCase(),zm=Ac[0].toUpperCase()+Ac.slice(1);$e(Tm,"on"+zm)}$e(tr,"onAnimationEnd"),$e(er,"onAnimationIteration"),$e(lr,"onAnimationStart"),$e("dblclick","onDoubleClick"),$e("focusin","onFocus"),$e("focusout","onBlur"),$e(qh,"onTransitionRun"),$e(Lh,"onTransitionStart"),$e(Yh,"onTransitionCancel"),$e(ar,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $n="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Em=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($n));function jd(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var u=a.length-1;0<=u;u--){var s=a[u],h=s.instance,T=s.currentTarget;if(s=s.listener,h!==i&&n.isPropagationStopped())break t;i=s,n.currentTarget=T;try{i(n)}catch(O){ji(O)}n.currentTarget=null,i=h}else for(u=0;u<a.length;u++){if(s=a[u],h=s.instance,T=s.currentTarget,s=s.listener,h!==i&&n.isPropagationStopped())break t;i=s,n.currentTarget=T;try{i(n)}catch(O){ji(O)}n.currentTarget=null,i=h}}}}function gt(t,e){var l=e[ku];l===void 0&&(l=e[ku]=new Set);var a=t+"__bubble";l.has(a)||(Ad(e,t,2,!1),l.add(a))}function _c(t,e,l){var a=0;e&&(a|=4),Ad(l,t,a,e)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Oc(t){if(!t[fu]){t[fu]=!0,vs.forEach(function(l){l!=="selectionchange"&&(Em.has(l)||_c(l,!1,t),_c(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[fu]||(e[fu]=!0,_c("selectionchange",!1,e))}}function Ad(t,e,l,a){switch(e0(e)){case 2:var n=Im;break;case 8:n=Pm;break;default:n=Gc}l=n.bind(null,e,l,t),n=void 0,!Vu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function Mc(t,e,l,a,n){var i=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var s=a.stateNode.containerInfo;if(s===n)break;if(u===4)for(u=a.return;u!==null;){var h=u.tag;if((h===3||h===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;s!==null;){if(u=Oa(s),u===null)return;if(h=u.tag,h===5||h===6||h===26||h===27){a=i=u;continue t}s=s.parentNode}}a=a.return}Cs(function(){var T=i,O=Qu(l),C=[];t:{var E=nr.get(t);if(E!==void 0){var A=Ti,G=t;switch(t){case"keypress":if(xi(l)===0)break t;case"keydown":case"keyup":A=yh;break;case"focusin":G="focus",A=$u;break;case"focusout":G="blur",A=$u;break;case"beforeblur":case"afterblur":A=$u;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Ds;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=ih;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=xh;break;case tr:case er:case lr:A=ch;break;case ar:A=Th;break;case"scroll":case"scrollend":A=ah;break;case"wheel":A=Eh;break;case"copy":case"cut":case"paste":A=rh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Hs;break;case"toggle":case"beforetoggle":A=Ah}var tt=(e&4)!==0,Ht=!tt&&(t==="scroll"||t==="scrollend"),b=tt?E!==null?E+"Capture":null:E;tt=[];for(var y=T,S;y!==null;){var M=y;if(S=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||S===null||b===null||(M=bn(y,b),M!=null&&tt.push(In(y,M,S))),Ht)break;y=y.return}0<tt.length&&(E=new A(E,G,null,l,O),C.push({event:E,listeners:tt}))}}if((e&7)===0){t:{if(E=t==="mouseover"||t==="pointerover",A=t==="mouseout"||t==="pointerout",E&&l!==Xu&&(G=l.relatedTarget||l.fromElement)&&(Oa(G)||G[_a]))break t;if((A||E)&&(E=O.window===O?O:(E=O.ownerDocument)?E.defaultView||E.parentWindow:window,A?(G=l.relatedTarget||l.toElement,A=T,G=G?Oa(G):null,G!==null&&(Ht=m(G),tt=G.tag,G!==Ht||tt!==5&&tt!==27&&tt!==6)&&(G=null)):(A=null,G=T),A!==G)){if(tt=Ds,M="onMouseLeave",b="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(tt=Hs,M="onPointerLeave",b="onPointerEnter",y="pointer"),Ht=A==null?E:vn(A),S=G==null?E:vn(G),E=new tt(M,y+"leave",A,l,O),E.target=Ht,E.relatedTarget=S,M=null,Oa(O)===T&&(tt=new tt(b,y+"enter",G,l,O),tt.target=S,tt.relatedTarget=Ht,M=tt),Ht=M,A&&G)e:{for(tt=jm,b=A,y=G,S=0,M=b;M;M=tt(M))S++;M=0;for(var I=y;I;I=tt(I))M++;for(;0<S-M;)b=tt(b),S--;for(;0<M-S;)y=tt(y),M--;for(;S--;){if(b===y||y!==null&&b===y.alternate){tt=b;break e}b=tt(b),y=tt(y)}tt=null}else tt=null;A!==null&&_d(C,E,A,tt,!1),G!==null&&Ht!==null&&_d(C,Ht,G,tt,!0)}}t:{if(E=T?vn(T):window,A=E.nodeName&&E.nodeName.toLowerCase(),A==="select"||A==="input"&&E.type==="file")var Tt=Gs;else if(Ys(E))if(Xs)Tt=Uh;else{Tt=Bh;var K=Dh}else A=E.nodeName,!A||A.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?T&&Gu(T.elementType)&&(Tt=Gs):Tt=Hh;if(Tt&&(Tt=Tt(t,T))){Zs(C,Tt,l,O);break t}K&&K(t,E,T),t==="focusout"&&T&&E.type==="number"&&T.memoizedProps.value!=null&&Zu(E,"number",E.value)}switch(K=T?vn(T):window,t){case"focusin":(Ys(K)||K.contentEditable==="true")&&(Na=K,ao=T,_n=null);break;case"focusout":_n=ao=Na=null;break;case"mousedown":no=!0;break;case"contextmenu":case"mouseup":case"dragend":no=!1,Is(C,l,O);break;case"selectionchange":if(kh)break;case"keydown":case"keyup":Is(C,l,O)}var rt;if(Pu)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else Ua?qs(t,l)&&(vt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(vt="onCompositionStart");vt&&(Us&&l.locale!=="ko"&&(Ua||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&Ua&&(rt=ws()):(Rl=O,Ju="value"in Rl?Rl.value:Rl.textContent,Ua=!0)),K=du(T,vt),0<K.length&&(vt=new Bs(vt,t,null,l,O),C.push({event:vt,listeners:K}),rt?vt.data=rt:(rt=Ls(l),rt!==null&&(vt.data=rt)))),(rt=Oh?Mh(t,l):Ch(t,l))&&(vt=du(T,"onBeforeInput"),0<vt.length&&(K=new Bs("onBeforeInput","beforeinput",null,l,O),C.push({event:K,listeners:vt}),K.data=rt)),Sm(C,t,T,l,O)}jd(C,e)})}function In(t,e,l){return{instance:t,listener:e,currentTarget:l}}function du(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=bn(t,l),n!=null&&a.unshift(In(t,n,i)),n=bn(t,e),n!=null&&a.push(In(t,n,i))),t.tag===3)return a;t=t.return}return[]}function jm(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function _d(t,e,l,a,n){for(var i=e._reactName,u=[];l!==null&&l!==a;){var s=l,h=s.alternate,T=s.stateNode;if(s=s.tag,h!==null&&h===a)break;s!==5&&s!==26&&s!==27||T===null||(h=T,n?(T=bn(l,i),T!=null&&u.unshift(In(l,T,h))):n||(T=bn(l,i),T!=null&&u.push(In(l,T,h)))),l=l.return}u.length!==0&&t.push({event:e,listeners:u})}var Am=/\r\n?/g,_m=/\u0000|\uFFFD/g;function Od(t){return(typeof t=="string"?t:""+t).replace(Am,`
49
+ `).replace(_m,"")}function Md(t,e){return e=Od(e),Od(t)===e}function Bt(t,e,l,a,n,i){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Da(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Da(t,""+a);break;case"className":pi(t,"class",a);break;case"tabIndex":pi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(t,l,a);break;case"style":Os(t,a,i);break;case"data":if(e!=="object"){pi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=vi(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.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 i=="function"&&(l==="formAction"?(e!=="input"&&Bt(t,e,"name",n.name,n,null),Bt(t,e,"formEncType",n.formEncType,n,null),Bt(t,e,"formMethod",n.formMethod,n,null),Bt(t,e,"formTarget",n.formTarget,n,null)):(Bt(t,e,"encType",n.encType,n,null),Bt(t,e,"method",n.method,n,null),Bt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=vi(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=sl);break;case"onScroll":a!=null&&gt("scroll",t);break;case"onScrollEnd":a!=null&&gt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=vi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":gt("beforetoggle",t),gt("toggle",t),gi(t,"popover",a);break;case"xlinkActuate":cl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":cl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":cl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":cl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":cl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":cl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":cl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":cl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":cl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":gi(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=eh.get(l)||l,gi(t,l,a))}}function Cc(t,e,l,a,n,i){switch(l){case"style":Os(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Da(t,a):(typeof a=="number"||typeof a=="bigint")&&Da(t,""+a);break;case"onScroll":a!=null&&gt("scroll",t);break;case"onScrollEnd":a!=null&&gt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=sl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bs.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),i=t[ye]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):gi(t,l,a)}}}function se(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",t),gt("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Bt(t,e,i,u,l,null)}}n&&Bt(t,e,"srcSet",l.srcSet,l,null),a&&Bt(t,e,"src",l.src,l,null);return;case"input":gt("invalid",t);var s=i=u=n=null,h=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":u=O;break;case"checked":h=O;break;case"defaultChecked":T=O;break;case"value":i=O;break;case"defaultValue":s=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:Bt(t,e,a,O,l,null)}}Es(t,i,s,h,T,u,n,!1);return;case"select":gt("invalid",t),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":i=s;break;case"defaultValue":u=s;break;case"multiple":a=s;default:Bt(t,e,n,s,l,null)}e=i,l=u,t.multiple=!!a,e!=null?Ra(t,!!a,e,!1):l!=null&&Ra(t,!!a,l,!0);return;case"textarea":gt("invalid",t),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(s=l[u],s!=null))switch(u){case"value":a=s;break;case"defaultValue":n=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:Bt(t,e,u,s,l,null)}As(t,a,n,i);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(a=l[h],a!=null))switch(h){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Bt(t,e,h,a,l,null)}return;case"dialog":gt("beforetoggle",t),gt("toggle",t),gt("cancel",t),gt("close",t);break;case"iframe":case"object":gt("load",t);break;case"video":case"audio":for(a=0;a<$n.length;a++)gt($n[a],t);break;case"image":gt("error",t),gt("load",t);break;case"details":gt("toggle",t);break;case"embed":case"source":case"link":gt("error",t),gt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Bt(t,e,T,a,l,null)}return;default:if(Gu(e)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&Cc(t,e,O,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&Bt(t,e,s,a,l,null))}function Om(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,s=null,h=null,T=null,O=null;for(A in l){var C=l[A];if(l.hasOwnProperty(A)&&C!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":h=C;default:a.hasOwnProperty(A)||Bt(t,e,A,null,a,C)}}for(var E in a){var A=a[E];if(C=l[E],a.hasOwnProperty(E)&&(A!=null||C!=null))switch(E){case"type":i=A;break;case"name":n=A;break;case"checked":T=A;break;case"defaultChecked":O=A;break;case"value":u=A;break;case"defaultValue":s=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,e));break;default:A!==C&&Bt(t,e,E,A,a,C)}}Yu(t,u,s,h,T,O,i,n);return;case"select":A=u=s=E=null;for(i in l)if(h=l[i],l.hasOwnProperty(i)&&h!=null)switch(i){case"value":break;case"multiple":A=h;default:a.hasOwnProperty(i)||Bt(t,e,i,null,a,h)}for(n in a)if(i=a[n],h=l[n],a.hasOwnProperty(n)&&(i!=null||h!=null))switch(n){case"value":E=i;break;case"defaultValue":s=i;break;case"multiple":u=i;default:i!==h&&Bt(t,e,n,i,a,h)}e=s,l=u,a=A,E!=null?Ra(t,!!l,E,!1):!!a!=!!l&&(e!=null?Ra(t,!!l,e,!0):Ra(t,!!l,l?[]:"",!1));return;case"textarea":A=E=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Bt(t,e,s,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":E=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Bt(t,e,u,n,a,i)}js(t,E,A);return;case"option":for(var G in l)if(E=l[G],l.hasOwnProperty(G)&&E!=null&&!a.hasOwnProperty(G))switch(G){case"selected":t.selected=!1;break;default:Bt(t,e,G,null,a,E)}for(h in a)if(E=a[h],A=l[h],a.hasOwnProperty(h)&&E!==A&&(E!=null||A!=null))switch(h){case"selected":t.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:Bt(t,e,h,E,a,A)}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 tt in l)E=l[tt],l.hasOwnProperty(tt)&&E!=null&&!a.hasOwnProperty(tt)&&Bt(t,e,tt,null,a,E);for(T in a)if(E=a[T],A=l[T],a.hasOwnProperty(T)&&E!==A&&(E!=null||A!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,e));break;default:Bt(t,e,T,E,a,A)}return;default:if(Gu(e)){for(var Ht in l)E=l[Ht],l.hasOwnProperty(Ht)&&E!==void 0&&!a.hasOwnProperty(Ht)&&Cc(t,e,Ht,void 0,a,E);for(O in a)E=a[O],A=l[O],!a.hasOwnProperty(O)||E===A||E===void 0&&A===void 0||Cc(t,e,O,E,a,A);return}}for(var b in l)E=l[b],l.hasOwnProperty(b)&&E!=null&&!a.hasOwnProperty(b)&&Bt(t,e,b,null,a,E);for(C in a)E=a[C],A=l[C],!a.hasOwnProperty(C)||E===A||E==null&&A==null||Bt(t,e,C,E,a,A)}function Cd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Mm(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,u=n.initiatorType,s=n.duration;if(i&&s&&Cd(u)){for(u=0,s=n.responseEnd,a+=1;a<l.length;a++){var h=l[a],T=h.startTime;if(T>s)break;var O=h.transferSize,C=h.initiatorType;O&&Cd(C)&&(h=h.responseEnd,u+=O*(h<s?1:(s-T)/(h-T)))}if(--a,e+=8*(i+u)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var wc=null,Rc=null;function hu(t){return t.nodeType===9?t:t.ownerDocument}function wd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Rd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Dc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Bc=null;function Cm(){var t=window.event;return t&&t.type==="popstate"?t===Bc?!1:(Bc=t,!0):(Bc=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,wm=typeof clearTimeout=="function"?clearTimeout:void 0,Bd=typeof Promise=="function"?Promise:void 0,Rm=typeof queueMicrotask=="function"?queueMicrotask:typeof Bd<"u"?function(t){return Bd.resolve(null).then(t).catch(Dm)}:Dd;function Dm(t){setTimeout(function(){throw t})}function Fl(t){return t==="head"}function Hd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),fn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Pn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Pn(l);for(var i=l.firstChild;i;){var u=i.nextSibling,s=i.nodeName;i[yn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&Pn(t.ownerDocument.body);l=n}while(l);fn(e)}function Ud(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Hc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Hc(l),qu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Bm(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[yn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function Hm(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ge(t.nextSibling),t===null))return null;return t}function Nd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ge(t.nextSibling),t===null))return null;return t}function Uc(t){return t.data==="$?"||t.data==="$~"}function Nc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Um(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var kc=null;function kd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ge(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function qd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Ld(t,e,l){switch(e=hu(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Pn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);qu(t)}var Xe=new Map,Yd=new Set;function mu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var jl=k.d;k.d={f:Nm,r:km,D:qm,C:Lm,L:Ym,m:Zm,X:Xm,S:Gm,M:Qm};function Nm(){var t=jl.f(),e=iu();return t||e}function km(t){var e=Ma(t);e!==null&&e.tag===5&&e.type==="form"?af(e):jl.r(t)}var cn=typeof document>"u"?null:document;function Zd(t,e,l){var a=cn;if(a&&typeof e=="string"&&e){var n=Ue(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Yd.has(n)||(Yd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),se(e,"link",t),te(e),a.head.appendChild(e)))}}function qm(t){jl.D(t),Zd("dns-prefetch",t,null)}function Lm(t,e){jl.C(t,e),Zd("preconnect",t,e)}function Ym(t,e,l){jl.L(t,e,l);var a=cn;if(a&&t&&e){var n='link[rel="preload"][as="'+Ue(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ue(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ue(l.imageSizes)+'"]')):n+='[href="'+Ue(t)+'"]';var i=n;switch(e){case"style":i=sn(t);break;case"script":i=rn(t)}Xe.has(i)||(t=L({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Xe.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(ti(i))||e==="script"&&a.querySelector(ei(i))||(e=a.createElement("link"),se(e,"link",t),te(e),a.head.appendChild(e)))}}function Zm(t,e){jl.m(t,e);var l=cn;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Ue(a)+'"][href="'+Ue(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=rn(t)}if(!Xe.has(i)&&(t=L({rel:"modulepreload",href:t},e),Xe.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ei(i)))return}a=l.createElement("link"),se(a,"link",t),te(a),l.head.appendChild(a)}}}function Gm(t,e,l){jl.S(t,e,l);var a=cn;if(a&&t){var n=Ca(a).hoistableStyles,i=sn(t);e=e||"default";var u=n.get(i);if(!u){var s={loading:0,preload:null};if(u=a.querySelector(ti(i)))s.loading=5;else{t=L({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Xe.get(i))&&qc(t,l);var h=u=a.createElement("link");te(h),se(h,"link",t),h._p=new Promise(function(T,O){h.onload=T,h.onerror=O}),h.addEventListener("load",function(){s.loading|=1}),h.addEventListener("error",function(){s.loading|=2}),s.loading|=4,gu(u,e,a)}u={type:"stylesheet",instance:u,count:1,state:s},n.set(i,u)}}}function Xm(t,e){jl.X(t,e);var l=cn;if(l&&t){var a=Ca(l).hoistableScripts,n=rn(t),i=a.get(n);i||(i=l.querySelector(ei(n)),i||(t=L({src:t,async:!0},e),(e=Xe.get(n))&&Lc(t,e),i=l.createElement("script"),te(i),se(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Qm(t,e){jl.M(t,e);var l=cn;if(l&&t){var a=Ca(l).hoistableScripts,n=rn(t),i=a.get(n);i||(i=l.querySelector(ei(n)),i||(t=L({src:t,async:!0,type:"module"},e),(e=Xe.get(n))&&Lc(t,e),i=l.createElement("script"),te(i),se(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Gd(t,e,l,a){var n=(n=W.current)?mu(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=sn(l.href),l=Ca(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=sn(l.href);var i=Ca(n).hoistableStyles,u=i.get(t);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,u),(i=n.querySelector(ti(t)))&&!i._p&&(u.instance=i,u.state.loading=5),Xe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Xe.set(t,l),i||Km(n,t,l,u.state))),e&&a===null)throw Error(r(528,""));return u}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=rn(l),l=Ca(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function sn(t){return'href="'+Ue(t)+'"'}function ti(t){return'link[rel="stylesheet"]['+t+"]"}function Xd(t){return L({},t,{"data-precedence":t.precedence,precedence:null})}function Km(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),se(e,"link",l),te(e),t.head.appendChild(e))}function rn(t){return'[src="'+Ue(t)+'"]'}function ei(t){return"script[async]"+t}function Qd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ue(l.href)+'"]');if(a)return e.instance=a,te(a),a;var n=L({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),te(a),se(a,"style",n),gu(a,l.precedence,t),e.instance=a;case"stylesheet":n=sn(l.href);var i=t.querySelector(ti(n));if(i)return e.state.loading|=4,e.instance=i,te(i),i;a=Xd(l),(n=Xe.get(n))&&qc(a,n),i=(t.ownerDocument||t).createElement("link"),te(i);var u=i;return u._p=new Promise(function(s,h){u.onload=s,u.onerror=h}),se(i,"link",a),e.state.loading|=4,gu(i,l.precedence,t),e.instance=i;case"script":return i=rn(l.src),(n=t.querySelector(ei(i)))?(e.instance=n,te(n),n):(a=l,(n=Xe.get(i))&&(a=L({},l),Lc(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),te(n),se(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,gu(a,l.precedence,t));return e.instance}function gu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var s=a[u];if(s.dataset.precedence===e)i=s;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function qc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Lc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var pu=null;function Kd(t,e,l){if(pu===null){var a=new Map,n=pu=new Map;n.set(l,a)}else n=pu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[yn]||i[ie]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(e)||"";u=t+u;var s=a.get(u);s?s.push(i):a.set(u,[i])}}return a}function Vd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Vm(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Jd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Jm(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=sn(a.href),i=e.querySelector(ti(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=yu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,te(i);return}i=e.ownerDocument||e,a=Xd(a),(n=Xe.get(n))&&qc(a,n),i=i.createElement("link"),te(i);var u=i;u._p=new Promise(function(s,h){u.onload=s,u.onerror=h}),se(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=yu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Yc=0;function Fm(t,e){return t.stylesheets&&t.count===0&&bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&Yc===0&&(Yc=62500*Mm());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bu(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>Yc?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vu=null;function bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vu=new Map,e.forEach(Wm,t),vu=null,yu.call(t))}function Wm(t,e){if(!(e.state.loading&4)){var l=vu.get(t);if(l)var a=l.get(null);else{l=new Map,vu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=e.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=yu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var li={$$typeof:lt,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function $m(t,e,l,a,n,i,u,s,h){this.tag=1,this.containerInfo=t,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=Hu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.hiddenUpdates=Hu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function Fd(t,e,l,a,n,i,u,s,h,T,O,C){return t=new $m(t,e,l,u,h,T,O,C,s),e=1,i===!0&&(e|=24),i=Ae(3,null,null,e),t.current=i,i.stateNode=t,e=xo(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},Eo(i),t}function Wd(t){return t?(t=La,t):La}function $d(t,e,l,a,n,i){n=Wd(n),a.context===null?a.context=n:a.pendingContext=n,a=kl(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=ql(t,a,e),l!==null&&(ze(l,t,e),Bn(l,t,e))}function Id(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Zc(t,e){Id(t,e),(t=t.alternate)&&Id(t,e)}function Pd(t){if(t.tag===13||t.tag===31){var e=sa(t,67108864);e!==null&&ze(e,t,67108864),Zc(t,67108864)}}function t0(t){if(t.tag===13||t.tag===31){var e=we();e=Uu(e);var l=sa(t,e);l!==null&&ze(l,t,e),Zc(t,e)}}var xu=!0;function Im(t,e,l,a){var n=_.T;_.T=null;var i=k.p;try{k.p=2,Gc(t,e,l,a)}finally{k.p=i,_.T=n}}function Pm(t,e,l,a){var n=_.T;_.T=null;var i=k.p;try{k.p=8,Gc(t,e,l,a)}finally{k.p=i,_.T=n}}function Gc(t,e,l,a){if(xu){var n=Xc(a);if(n===null)Mc(t,e,a,Su,l),l0(t,a);else if(e1(n,t,e,l,a))a.stopPropagation();else if(l0(t,a),e&4&&-1<t1.indexOf(t)){for(;n!==null;){var i=Ma(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=na(i.pendingLanes);if(u!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;u;){var h=1<<31-Ee(u);s.entanglements[1]|=h,u&=~h}nl(i),(jt&6)===0&&(au=Ut()+500,Wn(0))}}break;case 31:case 13:s=sa(i,2),s!==null&&ze(s,i,2),iu(),Zc(i,2)}if(i=Xc(a),i===null&&Mc(t,e,a,Su,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Mc(t,e,a,null,l)}}function Xc(t){return t=Qu(t),Qc(t)}var Su=null;function Qc(t){if(Su=null,t=Oa(t),t!==null){var e=m(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=B(e),t!==null)return t;t=null}else if(l===31){if(t=Z(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Su=t,null}function e0(t){switch(t){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(ne()){case Ol:return 2;case Be:return 8;case aa:case Du:return 32;case We:return 268435456;default:return 32}default:return 32}}var Kc=!1,Wl=null,$l=null,Il=null,ai=new Map,ni=new Map,Pl=[],t1="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 l0(t,e){switch(t){case"focusin":case"focusout":Wl=null;break;case"dragenter":case"dragleave":$l=null;break;case"mouseover":case"mouseout":Il=null;break;case"pointerover":case"pointerout":ai.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ni.delete(e.pointerId)}}function ii(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=Ma(e),e!==null&&Pd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function e1(t,e,l,a,n){switch(e){case"focusin":return Wl=ii(Wl,t,e,l,a,n),!0;case"dragenter":return $l=ii($l,t,e,l,a,n),!0;case"mouseover":return Il=ii(Il,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return ai.set(i,ii(ai.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,ni.set(i,ii(ni.get(i)||null,t,e,l,a,n)),!0}return!1}function a0(t){var e=Oa(t.target);if(e!==null){var l=m(e);if(l!==null){if(e=l.tag,e===13){if(e=B(l),e!==null){t.blockedOn=e,ps(t.priority,function(){t0(l)});return}}else if(e===31){if(e=Z(l),e!==null){t.blockedOn=e,ps(t.priority,function(){t0(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Tu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Xc(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Xu=a,l.target.dispatchEvent(a),Xu=null}else return e=Ma(l),e!==null&&Pd(e),t.blockedOn=l,!1;e.shift()}return!0}function n0(t,e,l){Tu(t)&&l.delete(e)}function l1(){Kc=!1,Wl!==null&&Tu(Wl)&&(Wl=null),$l!==null&&Tu($l)&&($l=null),Il!==null&&Tu(Il)&&(Il=null),ai.forEach(n0),ni.forEach(n0)}function zu(t,e){t.blockedOn===e&&(t.blockedOn=null,Kc||(Kc=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,l1)))}var Eu=null;function i0(t){Eu!==t&&(Eu=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Eu===t&&(Eu=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Qc(a||l)===null)continue;break}var i=Ma(l);i!==null&&(t.splice(e,3),e-=3,Xo(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function fn(t){function e(h){return zu(h,t)}Wl!==null&&zu(Wl,t),$l!==null&&zu($l,t),Il!==null&&zu(Il,t),ai.forEach(e),ni.forEach(e);for(var l=0;l<Pl.length;l++){var a=Pl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Pl.length&&(l=Pl[0],l.blockedOn===null);)a0(l),l.blockedOn===null&&Pl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[ye]||null;if(typeof i=="function")u||i0(l);else if(u){var s=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[ye]||null)s=u.formAction;else if(Qc(n)!==null)continue}else s=u.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),i0(l)}}}function u0(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Vc(t){this._internalRoot=t}ju.prototype.render=Vc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=we();$d(l,a,t,e,null,null)},ju.prototype.unmount=Vc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;$d(t.current,2,null,t,null,null),iu(),e[_a]=null}};function ju(t){this._internalRoot=t}ju.prototype.unstable_scheduleHydration=function(t){if(t){var e=gs();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Pl.length&&e!==0&&e<Pl[l].priority;l++);Pl.splice(l,0,t),l===0&&a0(t)}};var o0=f.version;if(o0!=="19.2.7")throw Error(r(527,o0,"19.2.7"));k.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=j(e),t=t!==null?Q(t):null,t=t===null?null:t.stateNode,t};var a1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{Ml=Au.inject(a1),fe=Au}catch{}}return oi.createRoot=function(t,e){if(!g(t))throw Error(r(299));var l=!1,a="",n=mf,i=gf,u=pf;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=Fd(t,1,!1,null,null,l,a,null,n,i,u,u0),t[_a]=e.current,Oc(t),new Vc(e)},oi.hydrateRoot=function(t,e,l){if(!g(t))throw Error(r(299));var a=!1,n="",i=mf,u=gf,s=pf,h=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),e=Fd(t,1,!0,e,l??null,a,n,h,i,u,s,u0),e.context=Wd(null),l=e.current,a=we(),a=Uu(a),n=kl(a),n.callback=null,ql(l,n,a),l=a,e.current.lanes=l,pn(e,l),nl(e),t[_a]=e.current,Oc(t),new ju(e)},oi.version="19.2.7",oi}var y0;function h1(){if(y0)return Wc.exports;y0=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(f){console.error(f)}}return o(),Wc.exports=d1(),Wc.exports}var m1=h1();const Mu="token",is="mono-agent.session-web.authToken",us="mono-agent.session-web.authToken.persisted";let hn;class es extends Error{status;contentType;constructor(f,v,r={}){super(`${f} -> ${v}`),this.name="ApiError",this.status=r.status,this.contentType=r.contentType}}async function os(o){const f={accept:"application/json"},v=w0();v!==void 0&&(f.authorization=`Bearer ${v}`);const r=await fetch(o,{headers:f});if(!r.ok)throw new es(o,String(r.status),{status:r.status,contentType:r.headers.get("content-type")||void 0});const g=r.headers.get("content-type")||"";if(!g.includes("application/json"))throw new es(o,`non-JSON (${g})`,{status:r.status,contentType:g});return await r.json()}async function g1(){return(await os("/api/instances")).instances||[]}async function v0(o,f={}){const v=f.limit??200,r=f.offset??0,g=new URLSearchParams;g.set("instance",o),g.set("limit",String(v)),r>0&&g.set("offset",String(r));const m=await os(`/api/sessions?${g.toString()}`),B=m.sessions||[],Z=typeof m.offset=="number"?m.offset:r,H=typeof m.limit=="number"?m.limit:v;return{sessions:B,...typeof m.total=="number"?{total:m.total}:{},offset:Z,limit:H,hasMore:m.hasMore===!0}}async function p1(o,f){const v=`/api/sessions/${encodeURIComponent(o)}/${encodeURIComponent(f)}`;return(await os(v)).session}function y1({onMessage:o,onOpen:f,onError:v}){let r=null;try{r=new EventSource(v1("/api/stream"))}catch{return v?.(),()=>{}}return r.onopen=()=>f?.(),r.onerror=()=>v?.(),r.onmessage=g=>{try{o(JSON.parse(g.data))}catch{}},()=>r?.close()}function v1(o){const f=w0();if(f===void 0||typeof window>"u")return o;const v=new URL(o,window.location.origin);return v.searchParams.set(Mu,f),`${v.pathname}${v.search}${v.hash}`}function w0(){if(typeof window>"u")return;const o=new URLSearchParams(window.location.search).get(Mu)?.trim();if(o!==void 0&&o.length>0)return R0(o),D0(),o;if(hn!==void 0)return hn;try{const f=window.sessionStorage.getItem(is)?.trim();if(f!==void 0&&f.length>0)return hn=f,f}catch{}try{const f=window.localStorage.getItem(us)?.trim();return f===void 0||f.length===0?void 0:(hn=f,f)}catch{return}}function R0(o){if(typeof window>"u")return;const f=o.trim();if(f){hn=f;try{window.sessionStorage.setItem(is,f)}catch{}try{window.localStorage.setItem(us,f)}catch{}}}function b1(){if(hn=void 0,!(typeof window>"u")){try{window.sessionStorage.removeItem(is)}catch{}try{window.localStorage.removeItem(us)}catch{}D0()}}function D0(){if(!(typeof window>"u"))try{const o=new URL(window.location.href);if(!o.searchParams.has(Mu))return;o.searchParams.delete(Mu);const f=`${o.pathname}${o.search}${o.hash}`;window.history.replaceState(window.history.state,"",f)}catch{}}const x1=[{sourceId:"personal-agent",label:"personal-agent",cwd:"/Users/example/personal-agent",artifactDir:"/Users/example/personal-agent/.mono-agent/runs",health:"ok",liveConnected:!0,counts:{runs:4}},{sourceId:"orchestrator",label:"orchestrator",cwd:"/Users/example/a8c-agents/orchestrator",artifactDir:"/Users/example/a8c-agents/orchestrator/.mono-agent/runs",health:"ok",liveConnected:!0,counts:{runs:2}}],S1=[{id:"2582cf1d-636e-475c-ac72-eab20e09d829",conversationId:"cron:daily-focus",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T07:10:00.153Z",durMs:428230,kind:"focus-scan",trigger:"cron",source:"cron",title:"Hourly focus scan",outcome:"silent",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"medium",instr:"Run the hourly focus scan. Follow the `focus-scan` skill for the bounded delta-first workflow across Robert and Paola Gmail/Calendar, the A8C Maven-only Gmail check, WhatsApp, the Drafts inbox and the `inbox/` drop-zone, Todoist capture, KB filing, the dashboard regen, memory, and the notification.\n\nAfter capture/KB updates are attempted, your **final answer is the delta card** per `telegram-notifications` (native notify — delivered verbatim) when there is a new/changed item worth interrupting Robert; otherwise reply exactly `NOTHING_TO_REPORT`.",instrTr:!1,recalled:`## Memory (recalled)
50
+
51
+ - After capture and KB updates, return a delta card only for a new/changed item needing interruption; otherwise reply exactly NOTHING_TO_REPORT.
52
+ - Scan Robert and Paola Gmail/Calendar, A8C Maven-only Gmail, WhatsApp, Drafts inbox, \`inbox/\` drop-zone, Todoist capture, KB, dashboard regen, memory, and notifications.
53
+ - Quiet hours are 22:00–07:00 Europe/Rome; suppress non-urgent notifications in that window.`,recalledTr:!1,hasRecall:!0,finalText:"NOTHING_TO_REPORT",finalTr:!1,status:"done",totals:{asst:3,tcalls:3,think:2,tokIn:59489,tokOut:9851,tokCache:797184,cost:.6415,steps:7},toolCounts:{read_skill:1,Bash:1,Grep:1},steps:[{k:"prompt",ts:"2026-07-04T07:10:00.379Z",text:"Run the hourly focus scan. Follow the `focus-scan` skill for the bounded delta-first workflow.",tr:!1},{k:"assistant",ts:"2026-07-04T07:10:11.141Z",think:[{t:"**Running a focus scan.** I'll read the `focus-scan` skill first, then sweep the mailboxes and Drafts inbox in a bounded pass. Memory recall is already attached, so I can go straight to the skill.",tr:!1}],calls:[{id:"call_readskill_1",name:"read_skill",dig:"focus-scan",raw:`{
54
+ "name": "focus-scan"
55
+ }`,ok:!0},{id:"call_bash_1",name:"Bash",dig:"gmail delta --since 1h --label maven",raw:`{
56
+ "command": "gmail delta --since 1h --label maven"
57
+ }`,ok:!0}],text:"",u:{i:7148,o:258,c:0,cost:.3348}},{k:"result",ts:"2026-07-04T07:10:14.221Z",tcid:"call_readskill_1",tool:"read_skill",ok:!0,dig:"Configured skills root: /Users/example/personal-agent/skills",text:`Skill directory: /Users/example/personal-agent/skills/focus-scan
58
+ Path rule: files referenced by SKILL.md are bundled with the skill.`},{k:"result",ts:"2026-07-04T07:10:22.882Z",tcid:"call_bash_1",tool:"Bash",ok:!0,dig:"0 new messages in the last hour",text:`maven: 0 new · robert: 0 new · paola: 0 new
59
+ No delta in the trailing 1h window.`},{k:"assistant",ts:"2026-07-04T07:12:40.512Z",think:[{t:"Mailboxes are clean. Let me confirm the Drafts inbox and `inbox/` drop-zone are empty before I settle on staying silent.",tr:!1}],calls:[{id:"call_grep_1",name:"Grep",dig:"TODO|URGENT in inbox/",raw:`{
60
+ "pattern": "TODO|URGENT",
61
+ "path": "inbox/"
62
+ }`,ok:!0}],text:"",u:{i:15194,o:412,c:660608,cost:.2617}},{k:"result",ts:"2026-07-04T07:12:44.101Z",tcid:"call_grep_1",tool:"Grep",ok:!0,dig:"No matches",text:"No matches found in inbox/."},{k:"assistant",ts:"2026-07-04T07:17:08.383Z",think:[],calls:[],text:"NOTHING_TO_REPORT",u:{i:2272,o:205,c:136576,cost:.045}}]},{id:"d1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6",conversationId:"webhook:github-build",cwd:"/Users/example/a8c-agents/orchestrator",instance:"orchestrator",sourceId:"orchestrator",startTs:"2026-07-04T09:42:11.020Z",durMs:73400,kind:"proactive",trigger:"webhook",source:"webhook",title:"CI failure on main — jetpack build",outcome:"notified",model:"claude-opus-4-8",provider:"anthropic",api:"anthropic-messages",effort:"high",instr:"A GitHub webhook fired: the `build` job failed on `main`. Investigate the failing step, decide whether it is a flake or a real regression, and if actionable, notify Robert with a one-paragraph summary and the fix direction.",instrTr:!1,hasRecall:!1,finalText:"**Build broke on `main` — real regression, not a flake.**\n\nThe `jetpack build` job failed at the *typecheck* step: `packages/session-web/src/index.ts` exports a type that no longer exists after the observability rename (`RunSummary.failoverHistory`).\n\n- Root cause: PR #84 renamed the field but the re-export wasn't updated.\n- Fix: update the `export type` line and re-run `pnpm -r typecheck`.\n- Blast radius: build-only; nothing shipped.\n\nWant me to open the one-line fix PR?",finalTr:!1,status:"done",totals:{asst:2,tcalls:3,think:2,tokIn:38210,tokOut:4120,tokCache:122880,cost:.412,steps:6},toolCounts:{Bash:2,Read:1},steps:[{k:"prompt",ts:"2026-07-04T09:42:11.220Z",text:"A GitHub webhook fired: the `build` job failed on `main`. Investigate and, if actionable, notify Robert."},{k:"assistant",ts:"2026-07-04T09:42:24.900Z",think:[{t:"I'll pull the failing job's log tail first to see which step broke, then read the offending file. A typecheck failure right after a rename is almost always a stale re-export.",tr:!1}],calls:[{id:"call_gh_1",name:"Bash",dig:"gh run view --log-failed",raw:`{
63
+ "command": "gh run view 998321 --log-failed | tail -40"
64
+ }`,ok:!0},{id:"call_read_1",name:"Read",dig:"packages/session-web/src/index.ts",raw:`{
65
+ "file_path": "packages/session-web/src/index.ts"
66
+ }`,ok:!0}],text:"",u:{i:21100,o:1980,c:0,cost:.263}},{k:"result",ts:"2026-07-04T09:42:31.410Z",tcid:"call_gh_1",tool:"Bash",ok:!1,dig:"TS2305: Module has no exported member 'failoverHistory'",text:`src/index.ts(3,10): error TS2305: Module '"@mono-agent/observability"' has no exported member 'failoverHistory'.
67
+ Error: Process completed with exit code 2.`},{k:"result",ts:"2026-07-04T09:42:33.980Z",tcid:"call_read_1",tool:"Read",ok:!0,dig:"re-exports RunSummary.failoverHistory (stale)",text:'export type { RunSummary, failoverHistory } from "@mono-agent/observability";'},{k:"assistant",ts:"2026-07-04T09:43:19.640Z",think:[{t:"Confirmed: it's a stale re-export from the PR #84 rename, not a flake. I'll write the delta card for Robert with the root cause and the one-line fix.",tr:!1}],calls:[{id:"call_gh_2",name:"Bash",dig:"git log --oneline -1 -- src/index.ts",raw:`{
68
+ "command": "git log --oneline -1 -- packages/session-web/src/index.ts"
69
+ }`,ok:!0}],text:"**Build broke on `main` — real regression, not a flake.** The typecheck step fails on a stale re-export after the PR #84 observability rename.",u:{i:17110,o:2140,c:122880,cost:.149}},{k:"result",ts:"2026-07-04T09:43:22.110Z",tcid:"call_gh_2",tool:"Bash",ok:!0,dig:"af409eb TUI polish (#117)",text:"af409eb TUI polish: agent effort visibility (#117)"}]},{id:"b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2",conversationId:"chat:paola",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T11:05:44.700Z",durMs:21980,kind:"chat",trigger:"chat",source:"chat",title:"What's on my calendar tomorrow afternoon?",outcome:"notified",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"low",instr:"What's on my calendar tomorrow afternoon?",instrTr:!1,hasRecall:!1,finalText:`Tomorrow afternoon (Europe/Rome) you have:
70
+
71
+ - **14:00** — 1:1 with Paola (30m)
72
+ - **16:30** — Dentist, Via Roma
73
+
74
+ The 15:00–16:00 slot is free if you want to hold focus time.`,finalTr:!1,status:"done",totals:{asst:1,tcalls:1,think:0,tokIn:4210,tokOut:320,tokCache:0,cost:.028,steps:3},toolCounts:{Bash:1},steps:[{k:"prompt",ts:"2026-07-04T11:05:44.900Z",text:"What's on my calendar tomorrow afternoon?"},{k:"assistant",ts:"2026-07-04T11:05:52.100Z",think:[],calls:[{id:"call_cal_1",name:"Bash",dig:"gcal agenda --date tomorrow --after 12:00",raw:`{
75
+ "command": "gcal agenda --date tomorrow --after 12:00"
76
+ }`,ok:!0}],text:"Tomorrow afternoon you have a 1:1 with Paola at 14:00 and the dentist at 16:30.",u:{i:4210,o:320,c:0,cost:.028}},{k:"result",ts:"2026-07-04T11:05:55.400Z",tcid:"call_cal_1",tool:"Bash",ok:!0,dig:"2 events",text:`14:00 1:1 Paola (30m)
77
+ 16:30 Dentist — Via Roma`}]},{id:"f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8",conversationId:"memory:capture:distill",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T03:00:02.010Z",durMs:96120,kind:"proactive",trigger:"cron",source:"memory",title:"Nightly memory curation",outcome:"silent",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"low",instr:"Run the nightly memory-curation pass: consolidate the day's journal entries into the BuJo tiers, dedupe recalled facts, and prune stale reminders. Stay silent unless a consolidation error needs attention.",instrTr:!1,hasRecall:!0,recalled:`## Memory (recalled)
78
+
79
+ - BuJo tiers: lite (rolling), journal (daily), bujo (curated).
80
+ - Prune reminders older than 30 days unless pinned.
81
+ - Embeddings via nomic-embed-text:v1.5.`,recalledTr:!1,finalText:"NOTHING_TO_REPORT",finalTr:!1,status:"done",totals:{asst:2,tcalls:2,think:1,tokIn:12040,tokOut:880,tokCache:24e4,cost:.071,steps:5},toolCounts:{memory_recall:1,Edit:1},steps:[{k:"prompt",ts:"2026-07-04T03:00:02.210Z",text:"Run the nightly memory-curation pass. Stay silent unless a consolidation error needs attention."},{k:"assistant",ts:"2026-07-04T03:00:14.400Z",think:[{t:"Consolidating the day's journal into the BuJo tiers. I'll recall the current curated set, dedupe, then write back the consolidated entries.",tr:!1}],calls:[{id:"call_mem_1",name:"memory_recall",dig:"today's journal entries",raw:`{
82
+ "query": "today journal entries",
83
+ "k": 40
84
+ }`,ok:!0}],text:"",u:{i:8020,o:410,c:12e4,cost:.041}},{k:"result",ts:"2026-07-04T03:00:19.900Z",tcid:"call_mem_1",tool:"memory_recall",ok:!0,dig:"17 entries recalled",text:"17 journal entries recalled; 3 near-duplicates flagged for merge."},{k:"assistant",ts:"2026-07-04T03:01:31.500Z",think:[],calls:[{id:"call_edit_1",name:"Edit",dig:"memory/bujo/2026-07-03.md",raw:`{
85
+ "file_path": "memory/bujo/2026-07-03.md",
86
+ "consolidated": 14
87
+ }`,ok:!0}],text:"NOTHING_TO_REPORT",u:{i:4020,o:470,c:12e4,cost:.03}},{k:"result",ts:"2026-07-04T03:01:38.130Z",tcid:"call_edit_1",tool:"Edit",ok:!0,dig:"14 entries consolidated",text:"Wrote 14 consolidated entries; pruned 2 stale reminders."}]},{id:"a1b2c3d4e5f60718293a4b5c6d7e8f90",conversationId:"cron:morning-briefing",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T06:30:00.400Z",durMs:152300,kind:"briefing",trigger:"cron",source:"cron",title:"Morning briefing",outcome:"notified",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"high",instr:"Compose the morning briefing: overnight email deltas worth knowing, today's calendar, the top 3 Todoist priorities, and one gentle nudge. Deliver it as the notification, verbatim.",instrTr:!1,hasRecall:!0,recalled:`## Memory (recalled)
88
+
89
+ - Robert prefers the briefing under 120 words with a single nudge.
90
+ - Focus block preference: 09:00–11:00.
91
+ - Paola's schedule is shared read-only.`,recalledTr:!1,finalText:`### Morning briefing
92
+
93
+ **Overnight:** nothing urgent — 2 newsletters filed, 0 action emails.
94
+
95
+ **Today**
96
+ 1. 09:00 Focus block (held)
97
+ 2. 14:00 1:1 with Paola
98
+ 3. 16:30 Dentist
99
+
100
+ **Top priorities**
101
+ - Ship the \`session-web\` PWA
102
+ - Review PR #117
103
+ - Reply to the Maven thread
104
+
105
+ *Nudge:* your 09:00 focus block is protected — start with the PWA before standup.`,finalTr:!1,status:"done",totals:{asst:3,tcalls:4,think:3,tokIn:41200,tokOut:5210,tokCache:41e4,cost:.523,steps:8},toolCounts:{Bash:3,read_skill:1},steps:[{k:"prompt",ts:"2026-07-04T06:30:00.700Z",text:"Compose the morning briefing and deliver it as the notification, verbatim."},{k:"assistant",ts:"2026-07-04T06:30:12.100Z",think:[{t:"I'll gather the three inputs in parallel: overnight mail deltas, today's calendar, and the top Todoist priorities. Then compose under 120 words with one nudge, per Robert's preference.",tr:!1}],calls:[{id:"call_b_mail",name:"Bash",dig:"gmail delta --since 12h",raw:`{
106
+ "command": "gmail delta --since 12h"
107
+ }`,ok:!0},{id:"call_b_cal",name:"Bash",dig:"gcal agenda --date today",raw:`{
108
+ "command": "gcal agenda --date today"
109
+ }`,ok:!0},{id:"call_b_td",name:"Bash",dig:"td list --filter 'today | p1'",raw:`{
110
+ "command": "td list --filter 'today | p1'"
111
+ }`,ok:!0}],text:"",u:{i:22100,o:1210,c:0,cost:.284}},{k:"result",ts:"2026-07-04T06:30:18.400Z",tcid:"call_b_mail",tool:"Bash",ok:!0,dig:"2 newsletters, 0 action",text:"filed: 2 newsletters · action-needed: 0"},{k:"result",ts:"2026-07-04T06:30:19.100Z",tcid:"call_b_cal",tool:"Bash",ok:!0,dig:"3 events today",text:`09:00 Focus block
112
+ 14:00 1:1 Paola
113
+ 16:30 Dentist`},{k:"result",ts:"2026-07-04T06:30:20.050Z",tcid:"call_b_td",tool:"Bash",ok:!0,dig:"3 priorities",text:`Ship session-web PWA
114
+ Review PR #117
115
+ Reply to Maven thread`},{k:"assistant",ts:"2026-07-04T06:31:40.900Z",think:[{t:"Good, all three inputs are in. Let me double-check the focus-block preference in the briefing skill before I compose, so the nudge lands right.",tr:!1}],calls:[{id:"call_skill_b",name:"read_skill",dig:"briefing",raw:`{
116
+ "name": "briefing"
117
+ }`,ok:!0}],text:"",u:{i:9100,o:640,c:21e4,cost:.121}},{k:"result",ts:"2026-07-04T06:31:44.220Z",tcid:"call_skill_b",tool:"read_skill",ok:!0,dig:"briefing skill: under 120 words, one nudge",text:"Keep the briefing under 120 words. Exactly one gentle nudge. Deliver verbatim via native notify."},{k:"assistant",ts:"2026-07-04T06:32:32.700Z",think:[{t:"Composing now — overnight, today, priorities, one nudge. Under 120 words.",tr:!1}],calls:[],text:`### Morning briefing
118
+
119
+ **Overnight:** nothing urgent — 2 newsletters filed, 0 action emails.
120
+
121
+ **Today**
122
+ 1. 09:00 Focus block (held)
123
+ 2. 14:00 1:1 with Paola
124
+ 3. 16:30 Dentist`,u:{i:1e4,o:3360,c:2e5,cost:.118}}]},{id:"c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4",conversationId:"tui-local",cwd:"/Users/example/a8c-agents/orchestrator",instance:"orchestrator",sourceId:"orchestrator",startTs:"2026-07-04T12:00:00.900Z",durMs:41200,kind:"focus-scan",trigger:"cron",source:"cron",title:"Midday orchestrator sweep",outcome:"notified",model:"claude-opus-4-8",provider:"anthropic",api:"anthropic-messages",effort:"medium",instr:"Run the midday sweep across the delegated task queues: check for blocked sub-agents, stale PRs awaiting review, and any failed runs since the morning sweep.",instrTr:!1,hasRecall:!1,finalText:"",finalTr:!1,status:"running",totals:{asst:1,tcalls:2,think:1,tokIn:9800,tokOut:410,tokCache:0,cost:.118,steps:3},toolCounts:{Bash:2},steps:[{k:"prompt",ts:"2026-07-04T12:00:01.100Z",text:"Run the midday sweep across the delegated task queues."},{k:"assistant",ts:"2026-07-04T12:00:12.700Z",think:[{t:"Starting the sweep — I'll check the blocked-task queue and stale PRs in parallel first, then triage anything that comes back.",tr:!1}],calls:[{id:"call_run_1",name:"Bash",dig:"forge status --blocked",raw:`{
125
+ "command": "forge status --blocked"
126
+ }`,ok:!0},{id:"call_run_2",name:"Bash",dig:"gh pr list --search 'review:required updated:<-2d'",raw:`{
127
+ "command": "gh pr list --search 'review:required updated:<-2d'"
128
+ }`}],text:"",u:{i:9800,o:410,c:0,cost:.118}},{k:"result",ts:"2026-07-04T12:00:18.300Z",tcid:"call_run_1",tool:"Bash",ok:!0,dig:"1 blocked task",text:"task#42 blocked: waiting on upstream lockfile"}]},{id:"e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",conversationId:"chat:context-demo",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T13:20:05.000Z",durMs:18400,kind:"chat",trigger:"chat",source:"chat",title:"Where did we land on the PWA rollout?",outcome:"notified",model:"claude-opus-4-8",provider:"anthropic",api:"anthropic-messages",effort:"medium",instr:"Where did we land on the PWA rollout?",instrTr:!1,hasRecall:!0,recalled:"## Memory (recalled)\n\n- The session-web PWA ships behind `tailscale serve`.",recalledTr:!1,ctx:{histCount:3,hist:[{role:"user",text:"Can you get the session-web PWA live today?",ts:"2026-07-04T12:50:00.000Z"},{role:"assistant",text:"Yes — I deployed it behind `tailscale serve` on the loopback web app.",ts:"2026-07-04T12:52:10.000Z"},{role:"user",text:"Great. Remind me where we landed when I ask later."}],mem:{text:"- The session-web PWA ships behind `tailscale serve` at https://mickey-home.tail8a9beb.ts.net/.\n- 7 agents were restarted onto the `live` channel.",src:"bujo"}},sysPrompt:`You are Robert's personal agent. Answer concisely and cite the recalled memory when relevant.
129
+ [skills, tools, and soul omitted for brevity]`,finalText:"We shipped it — the PWA is live behind `tailscale serve` at the mickey-home tailnet URL, and 7 agents are on the `live` channel.",finalTr:!1,status:"done",totals:{asst:1,tcalls:0,think:1,tokIn:6100,tokOut:420,tokCache:12e4,cost:.052,steps:2},toolCounts:{},steps:[{k:"prompt",ts:"2026-07-04T13:20:05.200Z",text:"Where did we land on the PWA rollout?"},{k:"assistant",ts:"2026-07-04T13:20:12.400Z",think:[{t:"The recalled memory already carries the rollout state; I can answer directly.",tr:!1}],calls:[],text:"We shipped it — the PWA is live behind `tailscale serve`, and 7 agents are on the `live` channel.",u:{i:6100,o:420,c:12e4,cost:.052}}]},{id:"0f1e2d3c4b5a69788796a5b4c3d2e1f0",conversationId:"cron:legacy-scan",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-03T07:10:00.000Z",durMs:60200,kind:"focus-scan",trigger:"cron",source:"cron",title:"Legacy focus scan (no turn context)",outcome:"silent",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"low",instr:"Run the hourly focus scan.",instrTr:!1,hasRecall:!1,sysPrompt:`You are Robert's personal agent running the hourly focus scan.
130
+ [compiled prompt persisted before the turn_context event existed]`,finalText:"NOTHING_TO_REPORT",finalTr:!1,status:"done",totals:{asst:1,tcalls:0,think:0,tokIn:5200,tokOut:180,tokCache:9e4,cost:.031,steps:2},toolCounts:{},steps:[{k:"prompt",ts:"2026-07-03T07:10:00.300Z",text:"Run the hourly focus scan."},{k:"assistant",ts:"2026-07-03T07:10:40.000Z",think:[],calls:[],text:"NOTHING_TO_REPORT",u:{i:5200,o:180,c:9e4,cost:.031}}]}],B0=J.createContext(null),H0=200,T1=1e3,ls=(o,f)=>+new Date(f.startTs)-+new Date(o.startTs);function z1(o,f,v){if(f<=0||o.length<=f)return o;const r=[];let g=f;for(const m of o)g>0?(r.push(m),g-=1):(m.status==="running"||v?.has(re(m)))&&r.push(m);return r}function ri(o,f){return`${o}::${f}`}function re(o){return ri(o.sourceId??o.instance,o.id)}function U0(o,f,v,r){const g=new Map(o.map(B=>[re(B),B]));for(const B of f)if(B.type==="remove")g.delete(ri(B.sourceId,B.runId));else{const Z=re(B.session);g.set(Z,E1(g.get(Z),B.session))}const m=[...g.values()].sort(ls);return v===void 0?m:z1(m,v,r)}function E1(o,f){if(o===void 0)return f;const v=o.steps.length>0&&(f.steps.length<o.steps.length||f.totals.steps<o.totals.steps),r=o.finalText.trim().length>0&&f.finalText.trim().length===0,g=o.ctx!==void 0&&f.ctx===void 0,m=o.sysPrompt!==void 0&&f.sysPrompt===void 0;return!v&&!r&&!g&&!m?f:{...f,...v?{steps:o.steps,toolCounts:o.toolCounts,totals:{...f.totals,asst:Math.max(f.totals.asst,o.totals.asst),tcalls:Math.max(f.totals.tcalls,o.totals.tcalls),think:Math.max(f.totals.think,o.totals.think),steps:Math.max(f.totals.steps,o.totals.steps)}}:{},...r?{finalText:o.finalText,outcome:o.outcome,...o.finalTr===void 0?{}:{finalTr:o.finalTr}}:{},...g?{ctx:o.ctx}:{},...m?{sysPrompt:o.sysPrompt,...o.sysPromptTr===void 0?{}:{sysPromptTr:o.sysPromptTr}}:{}}}function j1(o,f=!1){return f?!0:!(o instanceof es)||o.contentType?.includes("application/json")?!1:o.status===404||o.status!==void 0&&o.status>=200&&o.status<300}function A1(o,f){return o.sourceId?o.sourceId:f.find(r=>r.label===o.instance)?.sourceId||o.instance}function wu(o){const f=o?.trim();return f===void 0||f.length===0?"all":f}function cs(o){return o.sourceId??o.instance}function b0(o,f){const v=wu(f);return v==="all"?o.length:o.filter(r=>cs(r)===v).length}function x0(o,f,v){const r=o[f];return r!==void 0?r:{offset:0,hasMore:o.all?.hasMore??!0,loading:!1}}function S0(o,f,v){const r=new Set(o.loadedKeys??[]);for(const H of f)r.add(re(H));const g=r.size,m=v===void 0?0:v.offset+f.length,B=Math.max(o.offset,g,m),Z=v?.total??o.total;return{...o,offset:B,hasMore:Z===void 0?v?.hasMore??o.hasMore:B<Z,loading:v===void 0?o.loading:!1,loadedKeys:r,...Z===void 0?{}:{total:Z}}}function _1(o,f){if(o.loadedKeys===void 0)return o;const v=new Set(o.loadedKeys);let r=!1;for(const m of f)r=v.delete(m)||r;if(!r)return o;const g=Math.min(o.offset,v.size);return{...o,offset:g,hasMore:o.total===void 0?o.hasMore:g<o.total,loadedKeys:v}}function N0(o,f,v="all",r){const g=wu(v),m={...o};if(m[g]=S0(x0(m,g),f,r),g==="all"){const B=new Map;for(const Z of f){const H=cs(Z),j=B.get(H)??[];j.push(Z),B.set(H,j)}for(const[Z,H]of B)m[Z]=S0(x0(m,Z),H)}return m}function O1(o,f){const v=f.filter(m=>m.type==="upsert");let r=v.length>0?N0(o,v.map(m=>m.session),"all"):{...o};const g=new Set(f.filter(m=>m.type==="remove").map(m=>ri(m.sourceId,m.runId)));if(g.size===0)return r;r={...r};for(const[m,B]of Object.entries(r))r[m]=_1(B,g);return r}function M1(o,f,v){const r=v.total,g=v.offset+f.length,m=new Set(f.map(H=>re(H))),B={all:{offset:g,hasMore:r===void 0?v.hasMore:g<r,loading:!1,loadedKeys:m,...r===void 0?{}:{total:r}}},Z=new Map;for(const H of f){const j=cs(H),Q=Z.get(j)??new Set;Q.add(re(H)),Z.set(j,Q)}for(const H of o){const j=Z.get(H.sourceId)??new Set,Q=j.size,L=v.hasMore?void 0:Q;B[H.sourceId]={offset:Q,hasMore:L===void 0?v.hasMore:Q<L,loading:!1,loadedKeys:j,...L===void 0?{}:{total:L}}}return B}function za(o,f,v,r=[]){const g=wu(f);if(v!=="live"&&v!=="reconnecting")return{offset:0,hasMore:!1,loading:!1};const m=o[g];if(m!==void 0){const Z=m.loadedKeys?.size??b0(r,g),H=Math.max(m.offset,Z);return{...m,offset:H,hasMore:m.total===void 0?m.hasMore:H<m.total}}const B=o.all;return g==="all"?B??{offset:0,hasMore:!1,loading:!1}:{offset:b0(r,g),hasMore:B?.hasMore??!0,loading:!1}}async function C1(o){const f=o.getStatus();if(f!=="live"&&f!=="reconnecting")return;const v=wu(o.instance),r=za(o.getStates(),v,f,o.getSessions());if(!(r.loading||!r.hasMore)){o.setHistoryStates(g=>({...g,[v]:{...za(g,v,o.getStatus(),o.getSessions()),loading:!0,error:void 0}}));try{const g=await o.fetchPage(v,{limit:H0,offset:r.offset});o.onPageLoaded?.(g.sessions),o.setSessions(m=>U0(m,g.sessions.map(B=>({type:"upsert",session:B})))),o.setHistoryStates(m=>N0(m,g.sessions,v,g))}catch(g){o.setHistoryStates(m=>({...m,[v]:{...za(m,v,o.getStatus(),o.getSessions()),loading:!1,error:g instanceof Error?g.message:String(g)}}))}}}function w1({children:o}){const[f,v]=J.useState([]),[r,g]=J.useState([]),[m,B]=J.useState("loading"),[Z,H]=J.useState(void 0),[j,Q]=J.useState({}),[L,X]=J.useState({}),[ot,ct]=J.useState(0),it=J.useRef([]);it.current=f;const Et=J.useRef("loading");Et.current=m;const xt=J.useRef([]);xt.current=r;const D=J.useRef(new Set),lt=J.useRef({});lt.current=j;const F=J.useRef(new Set),ft=J.useRef(new Set),pt=J.useRef(new Map),p=J.useRef(!1),N=J.useCallback(()=>{p.current=!1;const x=pt.current;if(x.size===0)return;pt.current=new Map;const U=[...x.values()];for(const q of U)q.type==="remove"&&ft.current.delete(ri(q.sourceId,q.runId));g(q=>U0(q,U,T1,ft.current)),Q(q=>O1(q,U))},[]),et=J.useCallback(()=>{p.current||(p.current=!0,queueMicrotask(N))},[N]),dt=J.useCallback(x=>{pt.current.set(re(x),{type:"upsert",session:x}),et()},[et]),kt=J.useCallback((x,U)=>{pt.current.set(ri(x,U),{type:"remove",sourceId:x,runId:U}),et()},[et]);J.useEffect(()=>{let x=!1,U=null,q;const $=()=>{q!==void 0&&(window.clearTimeout(q),q=void 0)},W=()=>{$(),q=window.setTimeout(()=>{x||B("reconnecting")},800)};return(async()=>{try{B("loading"),H(void 0),Q({}),ft.current=new Set;const[P,wt]=await Promise.all([g1(),v0("all",{limit:H0})]);if(x)return;v(P),g([...wt.sessions].sort(ls)),Q(M1(P,wt.sessions,wt)),B("reconnecting"),U=y1({onOpen:()=>{$(),x||B("live")},onError:()=>{x||W()},onMessage:St=>{St.t==="instances"?v(St.instances):St.t==="session_upsert"?dt(St.session):St.t==="session_removed"&&kt(St.sourceId,St.runId)}})}catch(P){if(x)return;if(!j1(P)){v([]),g([]),Q({}),B("error"),H(P instanceof Error?P.message:String(P));return}v(x1),g([...S1].sort(ls)),Q({}),B("fixture"),H(void 0)}})(),()=>{x=!0,$(),U?.()}},[dt,kt,ot]);const at=J.useCallback((x,U=!1)=>{if(Et.current!=="live"&&Et.current!=="reconnecting"||D.current.has(x)||F.current.has(x))return;const q=xt.current.find(W=>re(W)===x);if(!q)return;if(!U&&(q.steps?.length??0)>0){F.current.add(x),X(W=>{if(W[x]===void 0)return W;const P={...W};return delete P[x],P});return}D.current.add(x),X(W=>({...W,[x]:{loading:!0}}));const $=A1(q,it.current);p1($,q.id).then(W=>{F.current.add(x),dt(W),X(P=>{if(P[x]===void 0)return P;const wt={...P};return delete wt[x],wt})}).catch(W=>{F.current.delete(x),X(P=>({...P,[x]:{error:W instanceof Error?W.message:String(W)}}))}).finally(()=>D.current.delete(x))},[dt]),At=J.useCallback(x=>{C1({instance:x,getStatus:()=>Et.current,getSessions:()=>xt.current,getStates:()=>lt.current,setSessions:g,setHistoryStates:Q,fetchPage:v0,onPageLoaded:U=>{for(const q of U)ft.current.add(re(q))}})},[]),ae=J.useCallback(x=>at(x,!1),[at]),Xt=J.useCallback(x=>{F.current.delete(x),at(x,!0)},[at]),_=J.useCallback(()=>{ct(x=>x+1)},[]),k=za(j,"all",m,r),V=J.useCallback(x=>za(j,x,m,r).hasMore,[j,r,m]),st=J.useCallback(x=>za(j,x,m,r).loading,[j,r,m]),z=J.useCallback(x=>za(j,x,m,r).error,[j,r,m]),d={instances:f,sessions:r,status:m,error:Z,canLoadOlder:k.hasMore,loadingOlder:k.loading,historyError:k.error,canLoadOlderFor:V,loadingOlderFor:st,historyErrorFor:z,detailStatus:L,loadOlder:At,ensureDetail:ae,retryDetail:Xt,reload:_};return J.createElement(B0.Provider,{value:d},o)}function k0(){const o=J.useContext(B0);if(!o)throw new Error("useRecorder must be used within <RecorderProvider>");return o}function ss(o=640){const f=`(max-width: ${o}px)`,[v,r]=J.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(f).matches:!1);return J.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const g=window.matchMedia(f),m=()=>r(g.matches);return m(),typeof g.addEventListener=="function"?(g.addEventListener("change",m),()=>g.removeEventListener("change",m)):(g.addListener(m),()=>g.removeListener(m))},[f]),v}const R1="#0a0b0e",D1="radial-gradient(1200px 600px at 78% -8%, rgba(232,162,74,.10), transparent 60%),radial-gradient(900px 500px at 8% 8%, rgba(79,182,166,.07), transparent 55%),"+R1,Gt="#ECEAE3",le="#9A9CA4",ht="#868a93",ge="#8a8d95",B1={cron:"#4FB6A6",webhook:"#B18AE0",chat:"#6FA8DC",memory:"#E0955A",slack:"#6FBF8E",telegram:"#5EC8E8","openai-api":"#C6B85E",a2a:"#D98BB0",tui:"#E8A24A",other:"#8b8d94"},H1={cron:"Cron",webhook:"Webhook",chat:"Chat",memory:"Memory",slack:"Slack",telegram:"Telegram","openai-api":"OpenAI API",a2a:"A2A",tui:"TUI",other:"Other"},as=["cron","webhook","chat","memory","slack","telegram","openai-api","a2a","tui","other"],qt="#E8A24A",tl="#6FA8DC",Al="#4FB6A6",ul="#B18AE0",q0="#6FBF8E",rs="#E0685B",Ta="'Space Grotesk', system-ui, sans-serif",w="'IBM Plex Mono', monospace",U1="'Newsreader', Georgia, serif";function Ru(o,f,v){const r=new Date(o);try{return new Intl.DateTimeFormat(void 0,{...v===void 0?{}:{timeZone:v},...f}).format(r)}catch{if(v===void 0)return"";try{return new Intl.DateTimeFormat(void 0,f).format(r)}catch{return""}}}const Qe=(o,f)=>Ru(o,{hour:"2-digit",minute:"2-digit",hour12:!1},f),ol=(o,f)=>Ru(o,{day:"2-digit",month:"short"},f),L0=(o,f)=>Ru(o,{weekday:"short"},f),N1=(o,f)=>Ru(o,{year:"numeric",month:"2-digit",day:"2-digit"},f);function mn(o){if(!o||o<0)return"0s";if(o<1e3)return o+"ms";const f=o/1e3;if(f<60)return(f<10?f.toFixed(1):Math.round(f))+"s";const v=Math.floor(f/60),r=Math.round(f%60);return v+"m"+(r?" "+r+"s":"")}function il(o){return o=o||0,o>=1e6?(o/1e6).toFixed(2)+"M":o>=1e3?(o/1e3).toFixed(o>=1e5?0:1)+"k":""+o}function Ea(o){return o=o||0,o<1?"$"+o.toFixed(3):"$"+o.toFixed(2)}function Ct(o,f){const v=o.replace("#",""),r=parseInt(v.slice(0,2),16),g=parseInt(v.slice(2,4),16),m=parseInt(v.slice(4,6),16);return`rgba(${r},${g},${m},${f})`}function k1(o){return o.k==="prompt"?tl:o.k==="assistant"?qt:o.k==="boundary"?ul:o.k==="runtime"?o.type==="runtime_warning"?qt:ul:o.k==="result"?o.ok?q0:rs:le}const si=o=>o.source,ja=o=>B1[o]||le,_l=o=>H1[o]||o;function Y0(o){if(o.status==="running")return{label:"LIVE",color:"#4FB6A6",running:!0,silent:!1};if(o.status==="stalled")return{label:"STALLED",color:"#E8955A",running:!1,silent:!1};if(o.status==="failed")return{label:"FAILED",color:rs,running:!1,silent:!1};if(o.status==="cancelled")return{label:"CANCELLED",color:"#E8955A",running:!1,silent:!1};if(o.status==="interrupted")return{label:"INTERRUPTED",color:"#E8955A",running:!1,silent:!1};const f=o.outcome==="silent";return{label:f?"SILENT":"REPLIED",color:f?"#8b8d94":qt,running:!1,silent:f}}function q1(o){const f=o.totals,v=f.asst?f.think/f.asst:0,r=v>=.6?"High":v>=.3?"Medium":"Low",g=v>=.6?ul:v>=.3?tl:"#8b8d94";return{label:o.effort?o.effort.charAt(0).toUpperCase()+o.effort.slice(1):r,color:g,detail:"· "+v.toFixed(1)+" reasoning/turn"}}function L1(o){const f=o.steps||[],v=42;let r=f.map(g=>({color:k1(g),flex:1}));if(r.length>v){const g=[],m=r.length/v;for(let B=0;B<v;B++)g.push(r[Math.floor(B*m)]);r=g}return r.length===0&&(r=[{color:"#3a3d45",flex:1}]),r}const Y1=["memory"];function T0(){return new Set(Y1)}function Z1(){return new Set}function G1(o,f){const v=new Set(o);return v.has(f)?v.delete(f):v.add(f),v}function X1(o){return o?8:28}function Cu(o){return o.sourceId??o.instance}function Q1(o){const f=o.conversationId?.trim();if(f===void 0||f.length===0)return re(o);const v=f.indexOf("#");return v>=0?f.slice(0,v):f}function K1(o,f={}){const v=new Map;for(const r of o){const g=f.timeZoneForSession?.(r),m=N1(r.startTs,g)||ol(r.startTs,g)||"unknown",B=ol(r.startTs,g)||"Unknown date",Z=v.get(m)??{label:B,lanes:new Map},H=Q1(r),j=Z.lanes.get(H)??[];j.push(r),Z.lanes.set(H,j),v.set(m,Z)}return[...v.entries()].map(([r,g])=>({key:r,label:g.label,lanes:[...g.lanes.entries()].map(([m,B])=>({key:m,label:m,items:V1(B)}))}))}function V1(o){const f=[];let v;for(const r of o){if(v!==void 0){const g=J1(v,r);g!==void 0&&f.push({type:"tick",tick:g})}f.push({type:"session",session:r}),v=r}return f}function J1(o,f){const v=z0(o.providerSessionId),r=z0(f.providerSessionId);if(!(v===r||v===void 0&&r===void 0))return{type:"provider_session_changed",key:`${re(o)}=>${re(f)}`,...v===void 0?{}:{from:v},...r===void 0?{}:{to:r},label:`provider session ${E0(v)} -> ${E0(r)}`}}function z0(o){if(o==null)return;const f=o.trim();return f.length>0?f:void 0}function E0(o){return o===void 0?"unknown":o.length>18?`${o.slice(0,8)}...${o.slice(-6)}`:o}function Z0(o){const f=new Set(o.map(m=>m.source)),v=as.filter(m=>f.has(m)),r=new Set(as),g=[...f].filter(m=>!r.has(m)).sort((m,B)=>m.localeCompare(B));return[...v,...g]}function j0(o,f){const v=o.filter(g=>!(f.excludedChannels.has(g.source)||f.outcome!=="all"&&g.outcome!==f.outcome||f.instance!=="all"&&Cu(g)!==f.instance));if(!f.selectedBucket)return v;const r=new Set(f.selectedBucket.runKeys);return v.filter(g=>r.has(re(g)))}function F1(o,f){const v=o.filter(m=>!(f.outcome!=="all"&&m.outcome!==f.outcome||f.instance!=="all"&&Cu(m)!==f.instance)),r=Z0(v),g=r.every(m=>!f.excludedChannels.has(m));return["all",...r].map(m=>{const B=m==="all"?g:!f.excludedChannels.has(m),Z=m==="all"?Gt:ja(m),H=m==="all"?v.length:v.filter(j=>j.source===m).length;return{key:m,label:m==="all"?"All":_l(m),active:B,n:H,bg:B?m==="all"?"rgba(255,255,255,.14)":Ct(Z,.16):"rgba(255,255,255,.03)",border:B?Ct(Z,.5):"rgba(255,255,255,.1)",color:B?Z:le}})}function W1(o,f){if(o.length===0)return[];const v=Math.max(1,Math.floor(f.maxBuckets)),r=o.map(X=>+new Date(X.startTs)).filter(X=>Number.isFinite(X));if(r.length===0)return[];const g=Math.min(...r),m=Math.max(...r),B=Math.max(1,m-g),Z=m===g,H=Math.min(v,Math.max(1,o.length)),j=new Map;for(const X of o){const ot=+new Date(X.startTs),ct=Z?0:Math.max(0,Math.min(H-1,Math.floor((ot-g)/B*H))),it=j.get(ct)??[];it.push(X),j.set(ct,it)}const Q=[...j.entries()].sort((X,ot)=>X[0]-ot[0]),L=Math.max(1,...Q.map(([,X])=>X.length));return Q.map(([X,ot])=>{const ct=Z?g:g+X/H*B,it=Z||X===H-1?m:g+(X+1)/H*B,Et=new Map;let xt=0,D=0;for(const at of ot)xt+=at.totals.cost,at.outcome!=="silent"&&D++,Et.set(at.source,(Et.get(at.source)??0)+1);const lt=ot.length-D,F=[...Et.entries()].sort((at,At)=>At[1]-at[1]||at[0].localeCompare(At[0])),ft=F[0]?.[0]??"other",pt=ct===it?`${ol(ct,f.timeZone)} ${Qe(ct,f.timeZone)}`:`${ol(ct,f.timeZone)} ${Qe(ct,f.timeZone)} - ${ol(it,f.timeZone)} ${Qe(it,f.timeZone)}`,p=Ea(xt),N=_l(ft),et=ot.length===1?"run":"runs",dt=D===0?"all silent":`${D} replied, ${lt} silent`,kt=F.map(([at,At])=>({key:at,label:_l(at),color:ja(at),pct:At/ot.length*100,count:At}));return{id:`${X}:${Math.round(ct)}:${Math.round(it)}`,index:X,startMs:ct,endMs:it,rangeLabel:pt,runCount:ot.length,repliedCount:D,notifiedCount:D,silentCount:lt,cost:xt,costLabel:p,dominantChannel:ft,dominantLabel:N,dominantColor:ja(ft),intensityPct:Math.round(ot.length/L*100),channelSegments:kt,runKeys:ot.map(at=>re(at)),ariaLabel:`${pt}: ${ot.length} ${et}, ${dt}, ${p}, mostly ${N}.`,title:`${ot.length} ${et} - ${pt} - ${dt} - ${p}`}})}const A0={fontFamily:w,fontSize:10,letterSpacing:".16em",color:ht,textTransform:"uppercase"};function $1(o){if(!o)return{label:"unknown",color:ht};if(o.liveConnected)return{label:"live",color:"#6FBF8E"};const f=o.health.toLowerCase();return f==="running"||f==="ok"?{label:"running",color:"#6FBF8E"}:f==="stale"?{label:"stale",color:qt}:f==="failed"||f==="error"||f==="stopped"?{label:f,color:"#E0685B"}:{label:f||"unknown",color:ht}}function I1(o){if(!["failed","cancelled","interrupted"].includes(o.status))return;const f=[o.failureKind,o.error,o.failoverHistory!==void 0&&o.failoverHistory.length>0?`${o.failoverHistory.length} provider ${o.failoverHistory.length===1?"attempt":"attempts"}`:void 0].filter(v=>v!==void 0&&v.trim().length>0);return f.length>0?f.join(" | "):o.status}function P1(o){const{sessions:f,instances:v,excludedChannels:r,fOut:g,fInstance:m,setExcludedChannels:B,setFOut:Z,setFInstance:H,onOpen:j,canLoadOlder:Q,loadingOlder:L,historyError:X,onLoadOlder:ot}=o,[ct,it]=J.useState(!1),[Et,xt]=J.useState(null),D=ss(),lt=[...r].sort().join("|");J.useEffect(()=>{if(!ct)return;const p=N=>{N.key==="Escape"&&it(!1)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[ct]),J.useEffect(()=>{xt(null)},[lt,g,m]);const F=J.useMemo(()=>{const p=new Map(v.map(R=>[R.sourceId,R.timeZone])),N=R=>p.get(Cu(R)),et={};f.forEach(R=>{const Rt=Cu(R);et[Rt]||(et[Rt]={count:0,cwd:R.cwd,label:R.instance}),et[Rt].count++});const dt=v.length>0?[...v].map(R=>({sourceId:R.sourceId,label:R.label,cwd:R.cwd,health:R.health,liveConnected:R.liveConnected})).sort((R,Rt)=>R.label.localeCompare(Rt.label)||R.sourceId.localeCompare(Rt.sourceId)):Object.entries(et).map(([R,Rt])=>({sourceId:R,label:Rt.label,cwd:Rt.cwd,health:"unknown",liveConnected:!1})).sort((R,Rt)=>R.label.localeCompare(Rt.label)||R.sourceId.localeCompare(Rt.sourceId)),kt=[{key:"all",label:"All instances",count:f.length,cwd:`${dt.length} instance${dt.length!==1?"s":""} on this machine`,healthLabel:"all",healthColor:ge,active:m==="all"}].concat(dt.map(R=>{const Rt=$1(R);return{key:R.sourceId,label:R.label,count:et[R.sourceId]?.count??0,cwd:R.cwd,healthLabel:Rt.label,healthColor:Rt.color,active:m===R.sourceId}})).map(R=>({key:R.key,label:R.label,count:R.count,cwd:R.cwd,healthLabel:R.healthLabel,healthColor:R.healthColor,bg:R.active?"rgba(255,255,255,.07)":"transparent",fg:R.active?Gt:"#C9CBD1",dot:R.key==="all"?R.active?"#6FBF8E":ge:R.healthColor})),at=dt.find(R=>R.sourceId===m),At=m==="all"?"All instances":at?.label??et[m]?.label??m,ae=m==="all"?f.length:et[m]?.count||0,Xt=m==="all"?void 0:p.get(m),_=j0(f,{excludedChannels:r,outcome:g,instance:m}),k=W1(_,{maxBuckets:X1(D),timeZone:Xt}),V=Et?k.find(R=>R.id===Et):void 0,st=V?j0(f,{excludedChannels:r,outcome:g,instance:m,selectedBucket:V}):_;let z=0,d=0,x=0,U=0;st.forEach(R=>{z+=R.totals.cost,d+=R.totals.tokIn+R.totals.tokOut,x+=R.totals.tcalls,U+=R.totals.think});const q=st.length||1,$=st.map(R=>R.startTs).sort(),W=$.length?ol($[0],Xt)+" – "+ol($[$.length-1],Xt):"—",P=st.filter(R=>R.outcome==="silent").length,wt=[{label:"Total cost",value:Ea(z),sub:"≈ "+Ea(z/q)+" / run",color:qt},{label:"Tokens",value:il(d),sub:"in + out",color:tl},{label:"Tool calls",value:x.toLocaleString(),sub:"across all runs",color:Al},{label:"Reasoning",value:U.toLocaleString(),sub:"thinking blocks",color:ul},{label:"Silent runs",value:""+P,sub:"stayed quiet, no interrupt",color:"#8b8d94"}],St=F1(f,{excludedChannels:r,outcome:g,instance:m}),Re=[["all","All"],["notified","Replied"],["silent","Silent"]].map(([R,Rt])=>{const he=g===R,Ut=R==="silent"?"#8b8d94":R==="notified"?qt:Gt;return{key:R,label:Rt,active:he,bg:he?Ct(Ut,.16):"rgba(255,255,255,.03)",border:he?Ct(Ut,.5):"rgba(255,255,255,.1)",color:he?Ut:le}}),Ve=st.map(R=>{const Rt=si(R),he=ja(Rt),Ut=Rt==="chat",ne=Y0(R),Ol=N(R),Be=I1(R);return{id:R.id,key:re(R),timeStr:Qe(R.startTs,Ol),dateStr:ol(R.startTs,Ol),dow:L0(R.startTs,Ol),title:R.title,conversationId:R.conversationId,accent:he,glow:Ct(he,.45),kindLabel:_l(Rt),kindBg:Ct(he,.12),kindBorder:Ct(he,.3),tools:R.totals.tcalls,think:R.totals.think,durStr:mn(R.durMs),costStr:Ea(R.totals.cost),showOutcome:!Ut||ne.running||["failed","cancelled","interrupted","stalled"].includes(R.status),outcomeLabel:ne.label,outcomeColor:ne.color,outcomeBg:Ct(ne.color,.12),outcomeBorder:Ct(ne.color,.32),running:ne.running,failureSummary:Be,segs:L1(R)}}),Aa=Object.fromEntries(Ve.map(R=>[R.key,R])),Je=K1(st,{timeZoneForSession:N}),Fe=Z0(_).map(R=>({label:_l(R),color:ja(R)})),la=_.filter(R=>R.outcome!=="silent").length,De=_.length-la,Y=k.length?Math.max(...k.map(R=>R.runCount)):0,_t=V?`${st.length} ${st.length===1?"run":"runs"} in ${V.rangeLabel}`:`${_.length} ${_.length===1?"run":"runs"} across ${k.length} active ${k.length===1?"bucket":"buckets"}`;return{instances:kt,activeInst:At,activeCount:ae,range:W,aggTiles:wt,kindChips:St,outcomeChips:Re,cards:Ve,cardsByKey:Aa,groups:Je,activity:k,selectedBucket:V,bucketStatus:_t,activityReplied:la,activitySilent:De,activityPeak:Y,activeTimeZone:Xt,legend:Fe,emptyMessage:f.length===0?"No runs recorded yet.":"No sessions match this filter."}},[f,v,r,g,m,D,Et]),ft=p=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9,minHeight:34,margin:"2px 0",fontFamily:w,fontSize:10,letterSpacing:".08em",textTransform:"uppercase",color:"#9A90AA"},children:[c.jsx("span",{style:{flex:1,height:1,background:"rgba(177,138,224,.18)"}}),c.jsx("span",{title:p.label,style:{maxWidth:"min(460px, 76vw)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",border:"1px solid rgba(177,138,224,.22)",borderRadius:6,padding:"5px 9px",background:"rgba(177,138,224,.06)"},children:p.label}),c.jsx("span",{style:{flex:1,height:1,background:"rgba(177,138,224,.18)"}})]},p.key),pt=p=>p===void 0?null:c.jsx("div",{className:"rec-card",role:"button",tabIndex:0,onClick:()=>j(p.key),onKeyDown:N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),j(p.key))},"aria-label":`Open run: ${p.title} — ${p.kindLabel}, ${p.dateStr} ${p.timeStr}`,style:{cursor:"pointer",position:"relative",background:"linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.014))",border:"1px solid rgba(255,255,255,.08)",borderLeft:`3px solid ${p.accent}`,borderRadius:15,padding:D?"16px 16px":"17px 20px",transition:"transform .16s,border-color .16s,background .16s,box-shadow .16s","--glow":p.glow},children:c.jsxs("div",{style:{display:"flex",gap:16,alignItems:"flex-start",flexWrap:"wrap"},children:[c.jsxs("div",{style:{minWidth:58,fontFamily:w},children:[c.jsx("div",{style:{fontSize:19,fontWeight:600,color:Gt,lineHeight:1},children:p.timeStr}),c.jsxs("div",{style:{fontSize:11,color:ht,marginTop:4},children:[p.dow," ",p.dateStr]})]}),c.jsxs("div",{style:{flex:"1 1 220px",minWidth:D?0:220},children:[c.jsx("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginBottom:7},children:c.jsx("span",{style:{fontFamily:w,fontSize:10,letterSpacing:".1em",textTransform:"uppercase",padding:"3px 8px",borderRadius:5,background:p.kindBg,color:p.accent,border:`1px solid ${p.kindBorder}`},children:p.kindLabel})}),c.jsx("div",{style:{fontSize:15.5,color:"#E4E2DB",lineHeight:1.4,fontWeight:500,maxWidth:"60ch",overflowWrap:"anywhere",wordBreak:"break-word",textWrap:"pretty"},children:p.title}),p.failureSummary!==void 0&&c.jsx("div",{style:{marginTop:8,fontFamily:w,fontSize:11,lineHeight:1.45,color:"#E0988F",overflowWrap:"anywhere"},children:p.failureSummary}),c.jsx("div",{style:{display:"flex",gap:2,height:9,marginTop:13,borderRadius:4,overflow:"hidden",maxWidth:380,padding:1,background:"rgba(0,0,0,.25)",boxShadow:"inset 0 0 0 1px rgba(255,255,255,.04)"},children:p.segs.map((N,et)=>c.jsx("span",{style:{flex:N.flex,background:N.color,borderRadius:1.5,minWidth:2}},et))})]}),c.jsxs("div",{style:{minWidth:D?0:158,flex:D?"1 1 100%":"0 0 auto",display:"flex",flexDirection:"column",alignItems:D?"flex-start":"flex-end",gap:12},children:[p.showOutcome&&c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:w,fontSize:10,letterSpacing:".1em",textTransform:"uppercase",padding:"5px 11px",borderRadius:7,background:p.outcomeBg,color:p.outcomeColor,border:`1px solid ${p.outcomeBorder}`},children:[p.running&&c.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:p.outcomeColor,boxShadow:`0 0 7px ${p.outcomeColor}`,animation:"rec-blink 1.4s ease-in-out infinite"}}),p.outcomeLabel]}),c.jsxs("div",{style:{display:"flex",gap:14,alignItems:"center",fontFamily:w,fontSize:12.5},children:[c.jsxs("span",{title:"duration",role:"img","aria-label":`Duration ${p.durStr}`,style:{display:"flex",alignItems:"center",gap:5,color:"#8b8d94"},children:[c.jsxs("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"9"}),c.jsx("path",{d:"M12 7.5v5l3.2 1.8"})]}),p.durStr]}),c.jsxs("span",{title:"tool calls",role:"img","aria-label":`${p.tools} tool calls`,style:{display:"flex",alignItems:"center",gap:5,color:Al},children:[c.jsx("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M8.5 6L3.5 12l5 6M15.5 6l5 6-5 6"})}),p.tools]}),c.jsxs("span",{title:"reasoning",role:"img","aria-label":`${p.think} reasoning blocks`,style:{display:"flex",alignItems:"center",gap:5,color:ul},children:[c.jsx("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12 3l1.7 5.6L19 10l-5.3 1.4L12 17l-1.7-5.6L5 10l5.3-1.4z"})}),p.think]})]}),c.jsx("span",{style:{fontFamily:w,fontSize:16,fontWeight:600,color:qt,letterSpacing:"-.01em"},children:p.costStr})]})]})},p.key);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:20,flexWrap:"wrap",animation:"rec-rise .5s ease both",position:"relative",...ct?{zIndex:60}:{}},children:[c.jsxs("div",{children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12},children:[c.jsx("span",{style:{width:9,height:9,borderRadius:"50%",background:"#E0685B",boxShadow:"0 0 10px #E0685B",animation:"rec-blink 1.8s ease-in-out infinite",display:"inline-block"}}),c.jsx("span",{style:{fontFamily:w,fontSize:11,letterSpacing:".28em",color:le,textTransform:"uppercase"},children:"Session Recorder"})]}),c.jsx("h1",{style:{margin:0,fontSize:"clamp(27px, 8vw, 40px)",lineHeight:1.02,fontWeight:600,letterSpacing:"-.02em",maxWidth:"16ch"},children:"The agent's flight recorder"}),c.jsx("p",{style:{margin:"12px 0 0",color:le,fontSize:15,maxWidth:"52ch",lineHeight:1.5},children:"Every run of your agents — prompt, reasoning, tool calls and cost — captured and laid out to scan fast or dig deep."})]}),c.jsxs("div",{style:{position:"relative",textAlign:D?"left":"right",width:D?"100%":void 0,maxWidth:"100%",minWidth:0},children:[c.jsx("div",{style:{fontFamily:w,fontSize:9,letterSpacing:".18em",color:ge,textTransform:"uppercase",marginBottom:7},children:"Instance"}),c.jsxs("button",{className:"rec-btn",onClick:()=>it(p=>!p),"aria-haspopup":"menu","aria-expanded":ct,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",gap:10,background:"linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02))",border:"1px solid rgba(255,255,255,.14)",borderRadius:11,padding:"9px 13px",minHeight:44,color:Gt,fontFamily:w,transition:"border-color .15s",maxWidth:"100%"},children:[c.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:"#6FBF8E",boxShadow:"0 0 8px #6FBF8E",animation:"rec-blink 2.4s ease-in-out infinite"}}),c.jsx("span",{style:{fontSize:14,fontWeight:600,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:F.activeInst}),c.jsx("span",{style:{fontSize:11,color:"#8b8d94",background:"rgba(255,255,255,.06)",padding:"2px 7px",borderRadius:5},children:F.activeCount}),c.jsx("span",{style:{color:ht,fontSize:11},children:"▾"})]}),c.jsx("div",{style:{fontFamily:w,fontSize:11,color:ge,marginTop:7},children:F.range}),ct&&c.jsx("div",{role:"menu","aria-label":"Instance",style:{position:"absolute",right:0,top:64,zIndex:50,minWidth:250,background:"#15171d",border:"1px solid rgba(255,255,255,.14)",borderRadius:13,padding:6,boxShadow:"0 24px 60px -16px rgba(0,0,0,.7)",textAlign:"left",...D?{left:0,right:"auto",minWidth:0,width:"min(250px, calc(100vw - 32px))",maxWidth:"calc(100vw - 32px)"}:{}},children:F.instances.map(p=>c.jsxs("button",{className:"menu-item",role:"menuitemradio","aria-checked":p.key===m,"aria-label":`${p.label}, ${p.count} runs, ${p.healthLabel}`,onClick:()=>{H(p.key),it(!1)},style:{cursor:"pointer",width:"100%",display:"flex",alignItems:"center",gap:10,minHeight:44,background:p.bg,border:"none",borderRadius:9,padding:"10px 11px",textAlign:"left"},children:[c.jsx("span",{title:p.healthLabel,style:{width:7,height:7,borderRadius:"50%",background:p.dot,flex:"none"}}),c.jsxs("span",{style:{flex:1,minWidth:0},children:[c.jsx("span",{style:{display:"block",fontFamily:Ta,fontSize:14,fontWeight:600,color:p.fg,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:p.label}),c.jsx("span",{style:{display:"block",fontFamily:w,fontSize:10,color:ht,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.cwd})]}),c.jsx("span",{style:{fontFamily:w,fontSize:11,color:"#8b8d94"},children:p.count}),p.key!=="all"&&c.jsx("span",{style:{fontFamily:w,fontSize:9,color:p.healthColor,textTransform:"uppercase",whiteSpace:"nowrap"},children:p.healthLabel})]},p.key))})]})]}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(150px,1fr))",gap:12,marginTop:28},children:F.aggTiles.map(p=>c.jsxs("div",{style:{background:"linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012))",border:"1px solid rgba(255,255,255,.08)",borderRadius:15,padding:"15px 17px"},children:[c.jsx("div",{style:{width:20,height:3,borderRadius:2,background:p.color,marginBottom:12,boxShadow:`0 0 10px ${p.color}`}}),c.jsx("div",{style:A0,children:p.label}),c.jsx("div",{style:{fontFamily:w,fontSize:29,fontWeight:600,marginTop:7,letterSpacing:"-.02em",color:p.color},children:p.value}),c.jsx("div",{style:{fontSize:12,color:le,marginTop:4},children:p.sub})]},p.label))}),c.jsxs("div",{style:{marginTop:16,background:"linear-gradient(180deg,rgba(255,255,255,.032),rgba(255,255,255,.006))",border:"1px solid rgba(255,255,255,.08)",borderRadius:16,padding:D?"16px 14px 18px":"18px 22px 20px"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:16,flexWrap:"wrap",gap:12},children:[c.jsxs("div",{style:{minWidth:0},children:[c.jsx("div",{style:A0,children:"Activity rhythm"}),c.jsxs("div",{style:{marginTop:6,fontFamily:w,fontSize:11,color:ht,lineHeight:1.45},children:[F.bucketStatus,F.activityPeak>0?` · peak ${F.activityPeak}`:""]})]}),F.selectedBucket&&c.jsx("button",{className:"rec-btn",type:"button",onClick:()=>xt(null),style:{cursor:"pointer",minHeight:38,borderRadius:9,border:"1px solid rgba(255,255,255,.12)",background:"rgba(255,255,255,.045)",color:"#C9CBD1",fontFamily:w,fontSize:11,padding:"8px 11px"},children:"Clear bucket"})]}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:12,flexWrap:"wrap",marginBottom:15},children:[c.jsx("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[{label:"Runs",value:String(F.activity.reduce((p,N)=>p+N.runCount,0)),color:Gt},{label:"Replied",value:String(F.activityReplied),color:qt},{label:"Silent",value:String(F.activitySilent),color:"#8b8d94"}].map(p=>c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:7,minHeight:30,borderRadius:8,border:"1px solid rgba(255,255,255,.08)",background:"rgba(255,255,255,.03)",padding:"5px 9px",fontFamily:w,fontSize:11,color:ht},children:[c.jsx("span",{style:{color:p.color,fontWeight:700},children:p.value}),p.label]},p.label))}),c.jsx("div",{style:{display:"flex",gap:12,flexWrap:"wrap",alignItems:"center"},children:F.legend.map(p=>c.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,fontFamily:w,fontSize:11,color:le},children:[c.jsx("span",{style:{width:8,height:8,borderRadius:2,background:p.color}}),p.label]},p.label))})]}),F.activity.length>0?D?c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:F.activity.map(p=>{const N=F.selectedBucket?.id===p.id,et=Math.max(12,p.intensityPct);return c.jsxs("button",{className:"rec-btn",type:"button","aria-pressed":N,"aria-label":p.ariaLabel,title:p.title,onClick:()=>xt(N?null:p.id),style:{cursor:"pointer",width:"100%",minHeight:76,borderRadius:10,border:`1px solid ${N?Ct(p.dominantColor,.72):"rgba(255,255,255,.1)"}`,background:N?Ct(p.dominantColor,.14):"rgba(255,255,255,.026)",color:Gt,padding:"10px 11px",display:"flex",flexDirection:"column",alignItems:"stretch",gap:8,boxShadow:N?`0 0 0 1px ${Ct(p.dominantColor,.2)}`:"none",textAlign:"left"},children:[c.jsxs("span",{style:{display:"flex",alignItems:"baseline",gap:8,minWidth:0},children:[c.jsx("span",{style:{fontFamily:w,fontSize:18,fontWeight:700,color:Gt,lineHeight:1,flex:"none"},children:p.runCount}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:p.dominantColor,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:p.dominantLabel}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:ht,marginLeft:"auto",whiteSpace:"nowrap"},children:Qe(p.startMs,F.activeTimeZone)}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:qt,whiteSpace:"nowrap"},children:p.costLabel})]}),c.jsx("span",{"aria-hidden":"true",style:{height:13,borderRadius:999,background:"rgba(0,0,0,.24)",border:"1px solid rgba(255,255,255,.07)",overflow:"hidden",display:"flex"},children:c.jsx("span",{style:{width:`${et}%`,minWidth:24,maxWidth:"100%",display:"flex",borderRadius:999,overflow:"hidden",boxShadow:`0 0 12px ${Ct(p.dominantColor,.18)}`},children:p.channelSegments.map(dt=>c.jsx("span",{style:{flex:`${dt.pct} 1 0`,minWidth:3,background:dt.color}},dt.key))})}),c.jsxs("span",{style:{display:"flex",gap:10,alignItems:"center",minWidth:0,fontFamily:w,fontSize:10,color:ht},children:[c.jsxs("span",{style:{whiteSpace:"nowrap"},children:[p.repliedCount," replied"]}),c.jsxs("span",{style:{whiteSpace:"nowrap"},children:[p.silentCount," silent"]}),c.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:p.rangeLabel})]})]},p.id)})}):c.jsx("div",{style:{overflowX:"auto",overflowY:"hidden",paddingBottom:3,margin:D?"0 -4px":0,maxWidth:"100%"},children:c.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${F.activity.length}, minmax(48px, 1fr))`,gap:8,minWidth:0},children:F.activity.map(p=>{const N=F.selectedBucket?.id===p.id,et=Math.max(14,Math.round(p.intensityPct*.58));return c.jsxs("button",{className:"rec-btn",type:"button","aria-pressed":N,"aria-label":p.ariaLabel,title:p.title,onClick:()=>xt(N?null:p.id),style:{cursor:"pointer",minHeight:128,borderRadius:10,border:`1px solid ${N?Ct(p.dominantColor,.72):"rgba(255,255,255,.1)"}`,background:N?Ct(p.dominantColor,.14):"rgba(255,255,255,.026)",color:Gt,padding:"9px 8px",display:"flex",flexDirection:"column",alignItems:"stretch",gap:7,boxShadow:N?`0 0 0 1px ${Ct(p.dominantColor,.2)}, 0 12px 30px -22px ${p.dominantColor}`:"none"},children:[c.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:5,minWidth:0},children:[c.jsx("span",{style:{fontFamily:w,fontSize:17,fontWeight:700,color:Gt,lineHeight:1},children:p.runCount}),c.jsx("span",{style:{fontFamily:w,fontSize:9,color:ht,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Qe(p.startMs,F.activeTimeZone)})]}),c.jsx("span",{"aria-hidden":"true",style:{flex:1,minHeight:58,display:"flex",alignItems:"flex-end",justifyContent:"center",borderRadius:8,background:"rgba(0,0,0,.22)",padding:"7px 5px"},children:c.jsx("span",{style:{width:"100%",height:`${et}%`,minHeight:12,borderRadius:6,overflow:"hidden",border:`1px solid ${Ct(p.dominantColor,.48)}`,display:"flex",flexDirection:"column-reverse",boxShadow:`0 0 14px ${Ct(p.dominantColor,.22)}`},children:p.channelSegments.map(dt=>c.jsx("span",{style:{flex:`${dt.pct} 1 0`,minHeight:3,background:dt.color}},dt.key))})}),c.jsxs("span",{"aria-hidden":"true",style:{display:"flex",height:4,borderRadius:999,overflow:"hidden",background:"rgba(255,255,255,.06)"},children:[c.jsx("span",{style:{width:`${p.repliedCount/p.runCount*100}%`,background:qt}}),c.jsx("span",{style:{width:`${p.silentCount/p.runCount*100}%`,background:"#8b8d94"}})]}),c.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:5,minWidth:0},children:[c.jsx("span",{style:{fontFamily:w,fontSize:9,color:p.dominantColor,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:p.dominantLabel}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:qt,flex:"none"},children:p.costLabel})]})]},p.id)})})}):c.jsx("div",{style:{border:"1px dashed rgba(255,255,255,.1)",borderRadius:10,padding:"18px 14px",color:ht,fontFamily:w,fontSize:12},children:"No activity in this filter."})]}),c.jsxs("div",{style:{display:"flex",gap:20,flexWrap:"wrap",marginTop:26,alignItems:"center"},children:[c.jsx("div",{style:{display:"flex",gap:7,flexWrap:"wrap"},children:F.kindChips.map(p=>c.jsxs("button",{className:"rec-chip","aria-pressed":p.active,onClick:()=>{xt(null),B(p.key==="all"?Z1():G1(r,p.key))},style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:44,fontFamily:w,fontSize:11,letterSpacing:".06em",textTransform:"uppercase",padding:"9px 14px",borderRadius:999,border:`1px solid ${p.border}`,background:p.bg,color:p.color},children:[p.label,c.jsx("span",{style:{opacity:.55,marginLeft:6},children:p.n})]},p.key))}),c.jsx("div",{style:{display:"flex",gap:7,flexWrap:"wrap",...D?{}:{marginLeft:"auto"}},children:F.outcomeChips.map(p=>c.jsx("button",{className:"rec-chip","aria-pressed":p.active,onClick:()=>Z(p.key),style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:44,fontFamily:w,fontSize:11,letterSpacing:".06em",textTransform:"uppercase",padding:"9px 14px",borderRadius:999,border:`1px solid ${p.border}`,background:p.bg,color:p.color},children:p.label},p.key))})]}),c.jsx("div",{style:{marginTop:18,display:"flex",flexDirection:"column",gap:18},children:F.groups.map(p=>c.jsxs("section",{"aria-label":p.label,style:{display:"flex",flexDirection:"column",gap:10},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:11,fontFamily:w,fontSize:10,letterSpacing:".18em",textTransform:"uppercase",color:ht},children:[c.jsx("span",{style:{flex:1,height:1,background:"rgba(255,255,255,.08)"}}),c.jsx("span",{style:{whiteSpace:"nowrap"},children:p.label}),c.jsx("span",{style:{flex:1,height:1,background:"rgba(255,255,255,.08)"}})]}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:p.lanes.map(N=>c.jsxs("div",{style:{display:"grid",gridTemplateColumns:D?"1fr":"minmax(112px, 168px) minmax(0, 1fr)",gap:D?7:12,alignItems:"start"},children:[c.jsx("div",{title:N.label,style:{position:D?"static":"sticky",top:76,minWidth:0,fontFamily:w,fontSize:10,lineHeight:1.4,color:"#8b8d94",border:"1px solid rgba(255,255,255,.07)",borderRadius:8,padding:D?"6px 8px":"8px 9px",background:"rgba(255,255,255,.025)",overflowWrap:"anywhere"},children:N.label}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:N.items.map(et=>et.type==="tick"?ft(et.tick):pt(F.cardsByKey[re(et.session)]))})]},N.key))})]},p.key))}),X!==void 0&&c.jsx("div",{role:"alert",style:{marginTop:16,border:"1px solid rgba(224,104,91,.28)",borderRadius:10,padding:"12px 13px",background:"rgba(224,104,91,.07)",color:"#E0988F",fontFamily:w,fontSize:12,overflowWrap:"anywhere"},children:X}),(Q||L)&&c.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:22},children:c.jsx("button",{className:"rec-btn",type:"button",disabled:L,onClick:ot,style:{cursor:L?"wait":"pointer",minHeight:44,borderRadius:9,border:"1px solid rgba(255,255,255,.14)",background:L?"rgba(255,255,255,.03)":"rgba(255,255,255,.055)",color:L?ht:"#C9CBD1",fontFamily:w,fontSize:12,padding:"10px 14px"},children:L?"Loading older":"Load older"})}),F.cards.length===0&&c.jsx("div",{style:{textAlign:"center",color:ht,padding:50,fontFamily:w,fontSize:13},children:Q?"No loaded sessions match this filter.":F.emptyMessage}),ct&&c.jsx("div",{onClick:()=>it(!1),style:{position:"fixed",inset:0,zIndex:40}})]})}const _0=as;function tg(o){if(o.liveConnected)return{label:"live",color:"#6FBF8E"};const f=o.health.toLowerCase();return f==="running"||f==="ok"?{label:"running",color:"#6FBF8E"}:f==="stale"?{label:"stale",color:qt}:f==="failed"||f==="error"||f==="stopped"?{label:f,color:"#E0685B"}:{label:f||"unknown",color:ht}}function eg(o){const f=o.toLowerCase();return f==="running"?{label:"running",color:Al}:f==="failed"||f==="error"?{label:"failed",color:"#E0685B"}:f==="cancelled"||f==="interrupted"?{label:f,color:qt}:{label:f||"unknown",color:ht}}function lg(o,f){const v=new Map;for(const g of f){const m=g.sourceId??g.instance,B=v.get(m)??[];B.push(g),v.set(m,B)}return[...o.length>0?o:[...v.entries()].map(([g,m])=>({sourceId:g,label:m[0]?.instance??g,cwd:m[0]?.cwd??"",artifactDir:"",health:"unknown",liveConnected:!1,counts:{runs:m.length}}))].sort((g,m)=>g.label.localeCompare(m.label)||g.sourceId.localeCompare(m.sourceId)).map(g=>{const m=v.get(g.sourceId)??[];let B=0,Z=0,H=0,j=0,Q=0,L=0;const X={},ot={};m.forEach(N=>{B+=N.totals.cost,Z+=N.totals.tokIn+N.totals.tokOut,H+=N.totals.tcalls,j+=N.totals.think,N.outcome==="silent"?Q++:L++;const et=si(N);X[et]=(X[et]||0)+1;const dt=N.status||"unknown";["succeeded","success","completed","done"].includes(dt.toLowerCase())||(ot[dt]=(ot[dt]||0)+1)});const ct=m.map(N=>+new Date(N.startTs)),it=ct.length>0?Math.max(...ct):void 0,Et=tg(g),D=[..._0.filter(N=>X[N]),...Object.keys(X).filter(N=>!_0.includes(N)).sort()].map(N=>({label:_l(N),color:ja(N),n:X[N]??0})),lt=Object.entries(ot).sort((N,et)=>et[1]-N[1]||N[0].localeCompare(et[0])).map(([N,et])=>{const dt=eg(N);return{label:dt.label,n:et,color:dt.color}}),F=it===void 0?"no runs":ol(it,g.timeZone)+" · "+Qe(it,g.timeZone),ft=[{label:"Cost",value:Ea(B),color:qt},{label:"Tokens",value:il(Z),color:tl},{label:"Tool calls",value:""+H,color:Al},{label:"Reasoning",value:""+j,color:ul}],pt=D.length?D.map(N=>`${N.label} ${N.n}`).join(", "):"no channels",p=lt.length?lt.map(N=>`${N.label} ${N.n}`).join(", "):"no active or failed statuses";return{sourceId:g.sourceId,name:g.label,cwd:g.cwd,count:m.length,health:g.health,liveConnected:g.liveConnected,healthLabel:Et.label,healthColor:Et.color,stats:ft,chSegs:D,statusBadges:lt,noti:L,sil:Q,last:F,ariaSummary:`${g.label}: ${m.length} runs, ${Et.label}. ${ft.map(N=>`${N.label} ${N.value}`).join(", ")}. ${pt}. ${p}. ${L} replied, ${Q} silent. Last ${F}.`}})}function ag({instances:o,sessions:f,onOpenInstance:v}){const r=J.useMemo(()=>lg(o,f),[o,f]);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{marginBottom:24},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12},children:[c.jsx("span",{style:{width:9,height:9,borderRadius:"50%",background:"#6FBF8E",boxShadow:"0 0 10px #6FBF8E",animation:"rec-blink 2.4s ease-in-out infinite",display:"inline-block"}}),c.jsx("span",{style:{fontFamily:w,fontSize:11,letterSpacing:".28em",color:le,textTransform:"uppercase"},children:"Instances"})]}),c.jsx("h1",{style:{margin:0,color:Gt,fontSize:"clamp(26px, 7vw, 36px)",lineHeight:1.04,fontWeight:600,letterSpacing:"-.02em"},children:"Agents on this machine"}),c.jsxs("p",{style:{margin:"11px 0 0",color:le,fontSize:15,lineHeight:1.45,maxWidth:"48ch"},children:[r.length," agent instance",r.length!==1?"s":""," recording sessions — open one to dig into its runs."]})]}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill,minmax(min(330px, 100%),1fr))",gap:14},children:r.map(g=>c.jsxs("div",{className:"inst-card",role:"button",tabIndex:0,"aria-label":`Open instance ${g.ariaSummary}`,onClick:()=>v(g.sourceId),onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),v(g.sourceId))},style:{cursor:"pointer",background:"linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.014))",border:"1px solid rgba(255,255,255,.1)",borderRadius:16,padding:20,transition:"transform .16s,border-color .16s,box-shadow .16s"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:11,marginBottom:6},children:[c.jsx("span",{title:g.healthLabel,"aria-label":g.healthLabel,style:{width:10,height:10,borderRadius:"50%",background:g.healthColor,boxShadow:`0 0 10px ${g.healthColor}`,flex:"none"}}),c.jsx("span",{style:{fontSize:20,fontWeight:600,color:Gt,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:g.name}),c.jsxs("span",{style:{fontFamily:w,fontSize:12,color:"#C9CBD1",background:"rgba(255,255,255,.06)",padding:"3px 9px",borderRadius:6},children:[g.count," runs"]}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:g.healthColor,background:"rgba(255,255,255,.04)",border:`1px solid ${g.healthColor}55`,padding:"3px 7px",borderRadius:6,textTransform:"uppercase",whiteSpace:"nowrap"},children:g.healthLabel})]}),c.jsx("div",{style:{fontFamily:w,fontSize:11,color:ht,marginBottom:17,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:g.cwd}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(88px, 1fr))",gap:10,marginBottom:17},children:g.stats.map(m=>c.jsxs("div",{children:[c.jsx("div",{style:{fontFamily:w,fontSize:9,letterSpacing:".1em",color:ht,textTransform:"uppercase"},children:m.label}),c.jsx("div",{style:{fontFamily:w,fontSize:"clamp(16px, 4.6vw, 18px)",fontWeight:600,marginTop:4,color:m.color},children:m.value})]},m.label))}),c.jsx("div",{style:{display:"flex",height:8,borderRadius:5,overflow:"hidden",background:"rgba(255,255,255,.05)",marginBottom:10},children:g.chSegs.map(m=>c.jsx("div",{title:`${m.label} ${m.n}`,style:{flex:m.n,minWidth:3,background:m.color}},m.label))}),c.jsx("div",{style:{display:"flex",gap:13,flexWrap:"wrap"},children:g.chSegs.map(m=>c.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,fontFamily:w,fontSize:11,color:le},children:[c.jsx("span",{style:{width:7,height:7,borderRadius:2,background:m.color}}),m.label," ",m.n]},m.label))}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"4px 12px",marginTop:14,paddingTop:13,borderTop:"1px solid rgba(255,255,255,.07)",fontFamily:w,fontSize:11},children:[c.jsxs("span",{style:{color:le,display:"flex",gap:8,flexWrap:"wrap"},children:[g.statusBadges.map(m=>c.jsxs("span",{style:{whiteSpace:"nowrap"},children:[c.jsx("span",{style:{color:m.color},children:m.n})," ",m.label]},m.label)),c.jsxs("span",{style:{whiteSpace:"nowrap"},children:[c.jsx("span",{style:{color:qt},children:g.noti})," replied · ",c.jsx("span",{style:{color:"#8b8d94"},children:g.sil})," silent"]})]}),c.jsxs("span",{style:{color:ht,whiteSpace:"nowrap"},children:["last ",g.last]})]})]},g.sourceId))}),r.length===0&&c.jsx("div",{style:{textAlign:"center",color:ht,padding:50,fontFamily:w,fontSize:13},children:"No instances discovered yet."})]})}function ng(o){return String(o).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _u(o){let f=ng(o);return f=f.replace(/`([^`]+)`/g,`<code style="font-family:${w};background:rgba(255,255,255,.08);padding:1px 5px;border-radius:4px;font-size:.88em;color:#D9C9A8;overflow-wrap:anywhere;word-break:break-word">$1</code>`),f=f.replace(/\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)/g,'<a href="$2" target="_blank" rel="noopener" style="color:#7FB0E4;text-decoration:underline;overflow-wrap:anywhere;word-break:break-word">$1</a>'),f=f.replace(/\*\*([^*]+)\*\*/g,'<strong style="font-weight:600;color:#F2F0EA">$1</strong>'),f=f.replace(/(^|[^*])\*([^*\n]+)\*/g,'$1<em style="color:#DAD7D0">$2</em>'),f}function ig(o){if(!o)return"";const f=String(o).split(`
131
+ `);let v="",r=null;const g=()=>{r&&(v+="</"+r+">",r=null)};for(const m of f){if(/^\s*$/.test(m)){g(),v+='<div style="height:7px"></div>';continue}let B;if(B=m.match(/^(#{1,4})\s+(.*)$/)){g();const Z=B[1].length,H=Z<=1?17:Z===2?15:13;v+='<div style="font-weight:600;font-size:'+H+'px;color:#F2F0EA;margin:9px 0 3px">'+_u(B[2])+"</div>";continue}if(B=m.match(/^\s*[-*]\s+(.*)$/)){r!=="ul"&&(g(),v+='<ul style="margin:4px 0;padding-left:19px">',r="ul"),v+='<li style="margin:3px 0">'+_u(B[1])+"</li>";continue}if(B=m.match(/^\s*\d+\.\s+(.*)$/)){r!=="ol"&&(g(),v+='<ol style="margin:4px 0;padding-left:19px">',r="ol"),v+='<li style="margin:3px 0">'+_u(B[1])+"</li>";continue}g(),v+="<div>"+_u(m)+"</div>"}return g(),v}function ci({src:o,style:f}){return J.createElement("div",{style:{overflowWrap:"anywhere",wordBreak:"break-word",...f||{}},dangerouslySetInnerHTML:{__html:ig(o)}})}const Ou=["#4FB6A6","#6FA8DC","#B18AE0","#E8A24A","#6FBF8E","#E0955A","#D98BB0"],dn=o=>({fontFamily:w,fontSize:10,letterSpacing:".18em",textTransform:"uppercase",color:o});function ug(o,f){if(!(f>0))return o==="running"?"Waiting for live events...":"No timeline events captured."}function og(o,f){if(o===void 0)return f?"compiled system prompt only":"";const v=[];return v.push(o.histOmitted===!0?"context carried by the provider session":`${o.histCount} prior message${o.histCount===1?"":"s"}`),o.mem!==void 0&&v.push(o.mem.src!==void 0&&o.mem.src.length>0?`memory recalled (${o.mem.src})`:"memory recalled"),v.join(" · ")}function cg(o){return o.hasRecall&&o.ctx?.mem===void 0}function sg(o){return o==="rollover"?"Session rollover":o==="isolated"?"Isolated session":o==="resume_replay"?"Resume replay":o.length>0?o.replace(/_/gu," "):"Session boundary"}function rg(o){return[o.previousConversationId===void 0?void 0:`previous ${o.previousConversationId}`,o.baseConversationId===void 0?void 0:`base ${o.baseConversationId}`,o.conversationId===void 0?void 0:`current ${o.conversationId}`,o.providerSessionId===void 0?void 0:`provider ${o.providerSessionId}`].filter(v=>v!==void 0&&v.length>0).join(" | ")}function fg(o){return o.type==="runtime_warning"?o.kind??"Runtime warning":o.type==="provider_status"?o.kind.replace(/_/gu," "):o.kind.replace(/_/gu," ")}function dg(o){return o.type==="runtime_warning"?o.message:o.type==="provider_status"?[o.model===void 0?void 0:`model ${o.model}`,o.from===void 0?void 0:`from ${o.from}`,o.to===void 0?void 0:`to ${o.to}`,o.attemptIndex===void 0?void 0:`attempt ${o.attemptIndex}`,o.durationMs===void 0?void 0:mn(o.durationMs),o.cancelled===!0?"cancelled":void 0].filter(v=>v!==void 0&&v.length>0).join(" | "):o.type}function hg({id:o,onBack:f}){const{sessions:v,instances:r,detailStatus:g,retryDetail:m}=k0(),B=ss(),[Z,H]=J.useState({}),[j,Q]=J.useState(!1),[L,X]=J.useState(!1),[ot,ct]=J.useState(null),[it,Et]=J.useState(!1),xt=z=>H(d=>({...d,[z]:!d[z]})),D=J.useMemo(()=>v.find(z=>re(z)===o),[v,o]),lt=J.useMemo(()=>{if(!D)return null;const z=D.totals,d=si(D),x=r.find(Y=>Y.sourceId===(D.sourceId??D.instance))?.timeZone,U=ja(d),q=d==="chat",$=Y0(D),W=q1(D),P=z.tokIn+z.tokOut+z.tokCache,wt=P||1,St=[{label:"Duration",value:mn(D.durMs),sub:z.asst+" agent turns",color:Gt},{label:"Steps",value:""+z.steps,sub:"events logged",color:Gt},{label:"Tool calls",value:""+z.tcalls,sub:Object.keys(D.toolCounts).length+" distinct",color:Al},{label:"Reasoning",value:""+z.think,sub:"thinking blocks",color:ul},{label:"Cost",value:Ea(z.cost),sub:"this session",color:qt},{label:"Tokens",value:il(z.tokIn+z.tokOut),sub:il(z.tokCache)+" cached",color:tl}],Ke={};(D.steps||[]).forEach(Y=>{Y.k==="assistant"&&(Y.calls||[]).forEach(_t=>Ke[_t.id]={ts:Y.ts,name:_t.name})});const Re={};(D.steps||[]).forEach(Y=>{if(Y.k==="result"&&Y.tcid&&Ke[Y.tcid]){const _t=Ke[Y.tcid].name,R=+new Date(Y.ts)-+new Date(Ke[Y.tcid].ts);Re[_t]||(Re[_t]={sum:0,n:0}),R>=0&&(Re[_t].sum+=R,Re[_t].n++)}});const Ve=Object.entries(D.toolCounts).sort((Y,_t)=>_t[1]-Y[1]),Aa=Ve.length?Ve[0][1]:1,Je=Ve.map((Y,_t)=>{const R=Re[Y[0]],Rt=R&&R.n?mn(Math.round(R.sum/R.n)):"";return{name:Y[0],n:Y[1],w:Math.max(6,Y[1]/Aa*100),c1:Ct(Ou[_t%Ou.length],.55),c2:Ou[_t%Ou.length],avg:Rt}}),ea={};(D.steps||[]).forEach(Y=>{Y.k==="result"&&Y.tcid&&(ea[Y.tcid]=Y)});let Fe=null,la=!1;const De=[];if((D.steps||[]).forEach((Y,_t)=>{if(Y.k==="result")return;if(Y.k==="prompt"&&!la){la=!0,Fe=Y.ts;return}const R=Y.k==="prompt"?tl:Y.k==="assistant"?qt:Y.k==="boundary"?ul:le,Rt=Fe!=null?+new Date(Y.ts)-+new Date(Fe):0,he=Fe!=null&&Rt>0?"+"+mn(Rt):"";if(Fe=Y.ts,Y.k==="prompt"){let Ut=Y.text||"";const ne=Ut.indexOf("[Recalled long-term memory");ne>=0&&(Ut=Ut.slice(0,ne).trim()),De.push({kind:"prompt",key:"s"+_t,color:R,glow:Ct(R,.5),timeStr:Qe(Y.ts,x),text:Ut+(Y.tr?`
132
+ …`:"")})}else if(Y.k==="boundary")De.push({kind:"boundary",key:"s"+_t,color:R,glow:Ct(R,.5),timeStr:Qe(Y.ts,x),dt:he,label:sg(Y.kind),meta:rg(Y),...Y.reason===void 0?{}:{reason:Y.reason}});else if(Y.k==="runtime")De.push({kind:"runtime",key:"s"+_t,color:R,glow:Ct(R,.5),timeStr:Qe(Y.ts,x),dt:he,label:fg(Y),meta:dg(Y)});else if(Y.k==="assistant"){const Ut=(Y.think||[]).map(We=>We.t+(We.tr?"…":"")).join(`
133
+
134
+ `),ne=(Y.calls||[]).map((We,Bu)=>{const pe=ea[We.id];let Ml="";if(pe){const fe=+new Date(pe.ts)-+new Date(Y.ts);fe>=0&&(Ml=mn(fe))}return{key:"x"+_t+"_"+Bu,name:We.name,argDig:We.dig,argRaw:We.raw+(We.tr?`
135
+ …`:""),hasResult:!!pe,resultDig:pe?pe.dig:"",resultRaw:pe?pe.text+(pe.tr?`
136
+ …[truncated]`:""):"",durStr:Ml,statusColor:pe?pe.ok?q0:rs:ge,statusWord:pe?pe.ok?"· ok":"· error":""}}),Ol=!!(Y.text&&Y.text.trim()),Be=Y.u,aa=Be?Be.cost:0,Du={kind:"assistant",key:"s"+_t,color:R,glow:Ct(R,.5),timeStr:Qe(Y.ts,x),dt:he,hasThink:!!Ut,thinkText:Ut,thinkKey:"t"+_t,hasCalls:ne.length>0,callHeader:ne.length>1?"Called "+ne.length+" tools in parallel":ne.length===1?"Called 1 tool":"",calls:ne,hasText:Ol,text:(Y.text||"")+(Y.ttr?`
137
+ …`:""),hasUsage:Be!==void 0,uTok:il(Be?Be.i:0)+" in · "+il(Be?Be.o:0)+" out",uCost:Ea(aa),turnPct:Math.round(aa/(z.cost||1)*100)};De.push(Du)}}),D.finalText.trim())for(let Y=De.length-1;Y>=0;Y--){const _t=De[Y];if(_t.kind==="assistant"&&_t.hasText){_t.hasText=!1;break}}return{isChat:q,col:U,channel:_l(d),outcome:$,eff:W,vitals:St,toolBars:Je,toolEntries:Ve,steps:De,zone:x,tokTot:P,tbInput:Math.round(z.tokIn/wt*100),tbOutput:Math.round(z.tokOut/wt*100),tbCache:Math.round(z.tokCache/wt*100)}},[D,r]);if(!D||!lt)return c.jsxs("div",{style:{maxWidth:920,margin:"0 auto",padding:60,textAlign:"center",color:ht,fontFamily:w},children:[c.jsx("button",{className:"back-btn",onClick:f,style:O0,"aria-label":"Back to all sessions",children:"← all sessions"}),c.jsx("div",{style:{marginTop:30},children:"This run is no longer available."})]});const{isChat:F,outcome:ft,eff:pt,vitals:p,toolBars:N,toolEntries:et,steps:dt}=lt,kt=D.totals,at=D.ctx?.hist??[],At=at.length<=4,ae=ot??At,Xt=["failed","cancelled","interrupted"].includes(D.status),_=[D.failureKind===void 0?void 0:`kind ${D.failureKind}`,D.error].filter(z=>z!==void 0&&z.trim().length>0),k=ug(D.status,dt.length),V=g[o],st=ft.running?"Running · streaming live":Xt?`${ft.label.toLowerCase()} · ${_l(si(D))}`:`${_l(si(D))} · replied`;return c.jsxs("div",{style:{maxWidth:920,margin:"0 auto",padding:"0 0 calc(48px + env(safe-area-inset-bottom))"},children:[c.jsx("div",{style:{position:"sticky",top:0,zIndex:20,backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",background:"rgba(10,11,14,.82)",borderBottom:"1px solid rgba(255,255,255,.08)"},children:c.jsxs("div",{style:{padding:"calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left))",display:"flex",alignItems:"center",gap:B?8:14},children:[c.jsx("button",{className:"back-btn",onClick:f,style:O0,"aria-label":"Back to all sessions",children:B?c.jsx(c.Fragment,{children:"←"}):c.jsx(c.Fragment,{children:"← all sessions"})}),c.jsxs("div",{style:{flex:1,minWidth:0},children:[c.jsx("div",{style:{fontSize:15,fontWeight:600,color:Gt,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:D.title}),c.jsxs("div",{style:{fontFamily:w,fontSize:11,color:ht},children:[D.instance," · ",L0(D.startTs,lt.zone)," ",ol(D.startTs,lt.zone)," · ",Qe(D.startTs,lt.zone)]})]}),(!F||ft.running||Xt)&&c.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:w,fontSize:10,letterSpacing:".08em",textTransform:"uppercase",padding:B?"4px 8px":"5px 11px",borderRadius:6,background:Ct(ft.color,.14),color:ft.color,border:`1px solid ${Ct(ft.color,.34)}`,whiteSpace:"nowrap"},children:[ft.running&&c.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:ft.color,boxShadow:`0 0 7px ${ft.color}`,animation:"rec-blink 1.4s ease-in-out infinite"}}),ft.label]})]})}),c.jsxs("div",{style:{padding:"22px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left))"},children:[V?.error&&c.jsxs("div",{role:"alert",style:{marginBottom:16,border:"1px solid rgba(224,104,91,.28)",borderRadius:12,padding:"13px 14px",background:"rgba(224,104,91,.07)"},children:[c.jsx("div",{style:{fontFamily:w,fontSize:10,letterSpacing:".14em",color:"#E0685B",textTransform:"uppercase",marginBottom:7},children:"Detail load failed"}),c.jsx("div",{style:{color:ht,fontSize:13,lineHeight:1.5,overflowWrap:"anywhere"},children:V.error}),c.jsx("button",{className:"rec-btn",onClick:()=>m(o),style:{cursor:"pointer",marginTop:11,minHeight:44,borderRadius:9,border:"1px solid rgba(224,104,91,.32)",background:"rgba(224,104,91,.1)",color:"#F0988F",fontFamily:w,fontSize:12,padding:"10px 13px"},children:"Retry detail"})]}),V?.loading&&c.jsx("div",{role:"status","aria-live":"polite",style:{marginBottom:16,border:"1px solid rgba(232,162,74,.22)",borderRadius:12,padding:"11px 14px",background:"rgba(232,162,74,.06)",color:"#D7B278",fontFamily:w,fontSize:11,letterSpacing:".08em",textTransform:"uppercase"},children:"Loading full detail"}),c.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:9,marginBottom:16},children:[[{k:"Model",v:D.model||"—",strong:!0,color:Gt},{k:"API",v:D.api||"—",strong:!0,color:Gt},{k:"Provider",v:D.provider||"—",strong:!1,color:"#C9CBD1"}].map(z=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,background:"rgba(255,255,255,.03)",border:"1px solid rgba(255,255,255,.08)",borderRadius:9,padding:"8px 12px",maxWidth:"100%",minWidth:0},children:[c.jsx("span",{style:{fontFamily:w,fontSize:9,letterSpacing:".14em",color:ge,textTransform:"uppercase",flex:"none"},children:z.k}),c.jsx("span",{style:{fontFamily:w,fontSize:13,color:z.color,fontWeight:z.strong?600:400,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.v})]},z.k)),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,background:Ct(pt.color,.08),border:`1px solid ${Ct(pt.color,.24)}`,borderRadius:9,padding:"8px 12px"},children:[c.jsx("span",{style:{fontFamily:w,fontSize:9,letterSpacing:".14em",color:ge,textTransform:"uppercase"},children:"Effort"}),c.jsx("span",{style:{fontFamily:w,fontSize:13,color:pt.color,fontWeight:600},children:pt.label}),c.jsx("span",{style:{fontFamily:w,fontSize:11,color:ht},children:pt.detail})]})]}),Xt&&(_.length>0||(D.failoverHistory?.length??0)>0)&&c.jsxs("div",{style:{marginTop:16,background:"rgba(224,104,91,.07)",border:"1px solid rgba(224,104,91,.24)",borderRadius:13,padding:"14px 16px"},children:[c.jsx("div",{style:{...dn("#E0988F"),marginBottom:9},children:"▼ Failure detail"}),_.length>0&&c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:_.map((z,d)=>c.jsx("div",{style:{fontFamily:w,fontSize:12,lineHeight:1.5,color:"#E7B0A9",overflowWrap:"anywhere"},children:z},d))}),(D.failoverHistory?.length??0)>0&&c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:7,marginTop:_.length>0?11:0},children:D.failoverHistory?.map((z,d)=>c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center",fontFamily:w,fontSize:11,color:"#D9A49D"},children:[c.jsxs("span",{style:{color:"#F0988F"},children:["#",d+1]}),c.jsx("span",{style:{overflowWrap:"anywhere"},children:z.model??"unknown model"}),z.failureKind!==void 0&&c.jsx("span",{style:{color:ht},children:z.failureKind}),z.subkind!==void 0&&c.jsx("span",{style:{color:ht},children:z.subkind}),z.requestId!==void 0&&c.jsxs("span",{style:{color:ht},children:["request ",z.requestId]})]},`${z.model??"model"}-${d}`))})]}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(104px,1fr))",gap:10},children:p.map(z=>c.jsxs("div",{style:{background:"rgba(255,255,255,.028)",border:"1px solid rgba(255,255,255,.07)",borderRadius:12,padding:"13px 14px"},children:[c.jsx("div",{style:{fontFamily:w,fontSize:9,letterSpacing:".14em",color:ht,textTransform:"uppercase"},children:z.label}),c.jsx("div",{style:{fontFamily:w,fontSize:21,fontWeight:600,marginTop:6,color:z.color},children:z.value}),c.jsx("div",{style:{fontSize:11,color:"#8b8d94",marginTop:2},children:z.sub})]},z.label))}),c.jsxs("div",{style:{marginTop:12,background:"rgba(255,255,255,.028)",border:"1px solid rgba(255,255,255,.07)",borderRadius:12,padding:"15px 16px"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10,fontFamily:w,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:ht},children:[c.jsx("span",{children:"Token composition"}),c.jsxs("span",{children:[il(lt.tokTot)," total"]})]}),c.jsxs("div",{style:{display:"flex",height:9,borderRadius:5,overflow:"hidden",background:"rgba(255,255,255,.05)"},children:[c.jsx("div",{style:{background:tl,width:`${lt.tbInput}%`}}),c.jsx("div",{style:{background:qt,width:`${lt.tbOutput}%`}}),c.jsx("div",{style:{background:"#4a4d55",width:`${lt.tbCache}%`}})]}),c.jsxs("div",{style:{display:"flex",gap:16,marginTop:9,fontFamily:w,fontSize:11,color:le,flexWrap:"wrap"},children:[c.jsxs("span",{children:[c.jsx("span",{style:{color:tl},children:"■"})," ",il(kt.tokIn)," input"]}),c.jsxs("span",{children:[c.jsx("span",{style:{color:qt},children:"■"})," ",il(kt.tokOut)," output"]}),c.jsxs("span",{children:[c.jsx("span",{style:{color:"#8b8d94"},children:"■"})," ",il(kt.tokCache)," cache-read"]})]})]}),c.jsxs("div",{style:{marginTop:22},children:[c.jsx("div",{style:{...dn(tl),marginBottom:9},children:"▼ Trigger"}),c.jsxs("div",{style:{background:"rgba(111,168,220,.06)",border:"1px solid rgba(111,168,220,.2)",borderRadius:13,padding:"16px 18px"},children:[c.jsx(ci,{src:D.instr+(D.instrTr?`
138
+ …`:""),style:{fontSize:14,lineHeight:1.55,color:"#D4D8DE",fontFamily:Ta}}),cg(D)&&c.jsxs("div",{style:{marginTop:12,borderTop:"1px solid rgba(255,255,255,.08)",paddingTop:11},children:[c.jsx("button",{className:"link-btn",onClick:()=>Q(z=>!z),"aria-expanded":j,style:{cursor:"pointer",background:"none",border:"none",color:"#8b8d94",fontFamily:w,fontSize:11,letterSpacing:".06em",padding:"8px 4px",margin:"0 0 0 -4px",minHeight:44,display:"flex",alignItems:"center",gap:6},children:j?"▾ hide recalled memory":"▸ show recalled long-term memory"}),j&&c.jsx("div",{style:{whiteSpace:"pre-wrap",fontFamily:w,fontSize:12,lineHeight:1.6,color:"#8b8d94",marginTop:10,maxHeight:260,overflow:"auto",padding:12,background:"rgba(0,0,0,.25)",borderRadius:9},children:(D.recalled||"")+(D.recalledTr?`
139
+ …`:"")})]})]})]}),(D.ctx!==void 0||D.sysPrompt!==void 0)&&c.jsxs("div",{style:{marginTop:22},children:[c.jsx("div",{style:{...dn(Al),marginBottom:9},children:"▼ Context (this turn)"}),c.jsxs("div",{style:{background:"rgba(79,182,166,.05)",border:"1px solid rgba(79,182,166,.18)",borderRadius:13,padding:"16px 18px"},children:[c.jsx("div",{style:{fontFamily:w,fontSize:12,color:le,lineHeight:1.5,overflowWrap:"anywhere"},children:og(D.ctx,D.sysPrompt!==void 0)}),D.ctx?.mem!==void 0&&c.jsxs("div",{style:{marginTop:13},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6,flexWrap:"wrap"},children:[c.jsx("span",{style:{fontFamily:w,fontSize:10,letterSpacing:".1em",textTransform:"uppercase",color:"#c39a5e"},children:"Recalled memory"}),D.ctx.mem.src!==void 0&&D.ctx.mem.src.length>0&&c.jsx("span",{style:{fontFamily:w,fontSize:10,color:"#E0955A",padding:"2px 8px",borderRadius:6,background:Ct("#E0955A",.12),border:`1px solid ${Ct("#E0955A",.3)}`},children:D.ctx.mem.src})]}),c.jsx("button",{className:"link-btn",onClick:()=>X(z=>!z),"aria-expanded":L,style:ts,children:L?"▾ hide recalled memory":"▸ show recalled memory"}),L&&c.jsx("div",{style:M0,children:D.ctx.mem.text+(D.ctx.mem.tr?`
140
+ …`:"")})]}),at.length>0&&c.jsxs("div",{style:{marginTop:13},children:[c.jsx("button",{className:"link-btn",onClick:()=>ct(z=>!(z??At)),"aria-expanded":ae,style:ts,children:ae?"▾ hide conversation history":`▸ show conversation history (${at.length})`}),ae&&c.jsx("div",{style:{marginTop:10,display:"flex",flexDirection:"column",gap:8},children:at.map((z,d)=>{const x=z.role.toLowerCase(),U=x==="user"?tl:x==="assistant"?qt:le;return c.jsxs("div",{style:{background:"rgba(0,0,0,.22)",border:"1px solid rgba(255,255,255,.06)",borderRadius:9,padding:"10px 12px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:6,flexWrap:"wrap"},children:[c.jsxs("span",{style:{fontFamily:w,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:U,fontWeight:600},children:[z.role,z.name!==void 0&&z.name.length>0?` · ${z.name}`:""]}),z.ts!==void 0&&z.ts.length>0&&c.jsx("span",{style:{fontFamily:w,fontSize:10,color:ge,whiteSpace:"nowrap"},children:z.ts})]}),c.jsx("div",{style:{whiteSpace:"pre-wrap",fontFamily:Ta,fontSize:13,lineHeight:1.5,color:"#CFCFD4",overflowWrap:"anywhere"},children:z.text+(z.tr?`
141
+ …`:"")})]},"cm"+d)})})]}),D.sysPrompt!==void 0&&c.jsxs("div",{style:{marginTop:13,borderTop:"1px solid rgba(255,255,255,.08)",paddingTop:11},children:[c.jsx("button",{className:"link-btn",onClick:()=>Et(z=>!z),"aria-expanded":it,style:ts,children:it?"▾ hide full compiled prompt (raw)":"▸ show full compiled prompt (raw)"}),it&&c.jsx("div",{style:M0,children:D.sysPrompt+(D.sysPromptTr?`
142
+ …`:"")})]})]})]}),N.length>0&&c.jsxs("div",{style:{marginTop:22},children:[c.jsxs("div",{style:{...dn(Al),marginBottom:11},children:["▼ Tool usage  ",c.jsxs("span",{style:{color:ht},children:[kt.tcalls," calls · ",et.length," tools"]})]}),c.jsx("div",{style:{background:"rgba(255,255,255,.028)",border:"1px solid rgba(255,255,255,.07)",borderRadius:14,padding:"15px 17px",display:"flex",flexDirection:"column",gap:12},children:N.map(z=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:13},children:[c.jsxs("div",{style:{width:"clamp(84px, 34vw, 144px)",flex:"none",display:"flex",alignItems:"center",gap:9,minWidth:0},children:[c.jsx("span",{style:{width:9,height:9,borderRadius:3,background:z.c2,boxShadow:`0 0 8px ${z.c1}`,flex:"none"}}),c.jsx("span",{style:{fontFamily:w,fontSize:12.5,color:"#DEDCD5",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:z.name})]}),c.jsxs("div",{style:{flex:1,height:23,background:"rgba(255,255,255,.035)",borderRadius:7,overflow:"hidden",position:"relative"},children:[c.jsx("div",{style:{height:"100%",width:`${z.w}%`,background:`linear-gradient(90deg,${z.c1},${z.c2})`,borderRadius:7,transition:"width .6s",boxShadow:"inset 0 1px 0 rgba(255,255,255,.16)"}}),c.jsx("span",{style:{position:"absolute",right:10,top:0,bottom:0,display:"flex",alignItems:"center",fontFamily:w,fontSize:10,color:"#8b8d94"},children:z.avg})]}),c.jsx("div",{style:{width:26,textAlign:"right",fontFamily:w,fontSize:15,color:Gt,fontWeight:600},children:z.n})]},z.name))})]}),c.jsxs("div",{style:{marginTop:30},children:[c.jsxs("div",{style:{...dn(le),marginBottom:16},children:["▼ Session timeline  ",c.jsxs("span",{style:{color:ht},children:[kt.asst," agent turns · ",kt.steps," events"]})]}),c.jsxs("div",{style:{position:"relative",paddingLeft:26,borderLeft:"1px solid rgba(255,255,255,.09)"},children:[dt.map(z=>c.jsxs("div",{style:{position:"relative",marginBottom:14},children:[c.jsx("span",{style:{position:"absolute",left:-32,top:3,width:12,height:12,borderRadius:"50%",background:z.color,boxShadow:`0 0 0 4px #0a0b0e,0 0 10px ${z.glow}`}}),z.kind==="prompt"?c.jsxs("div",{style:{background:"rgba(111,168,220,.07)",border:"1px solid rgba(111,168,220,.2)",borderRadius:12,padding:"14px 16px"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[c.jsx("span",{style:{fontFamily:w,fontSize:11,letterSpacing:".14em",textTransform:"uppercase",color:tl,fontWeight:600},children:"User"}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:ge},children:z.timeStr})]}),c.jsx(ci,{src:z.text,style:{fontSize:14,lineHeight:1.55,color:"#D4D8DE",fontFamily:Ta}})]}):z.kind==="boundary"?c.jsxs("div",{style:{background:"rgba(177,138,224,.055)",border:"1px solid rgba(177,138,224,.2)",borderRadius:10,padding:"11px 13px"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,flexWrap:"wrap"},children:[c.jsx("span",{style:{fontFamily:w,fontSize:10,letterSpacing:".14em",textTransform:"uppercase",color:ul,fontWeight:600},children:"Session boundary"}),c.jsxs("span",{style:{fontFamily:w,fontSize:10,color:ge,whiteSpace:"nowrap"},children:[z.dt?z.dt+" · ":"",z.timeStr]})]}),c.jsx("div",{style:{marginTop:7,color:"#D8CEE8",fontSize:13,lineHeight:1.45,overflowWrap:"anywhere"},children:z.label}),z.meta.length>0&&c.jsx("div",{style:{marginTop:5,fontFamily:w,fontSize:11,lineHeight:1.45,color:"#9A90AA",overflowWrap:"anywhere"},children:z.meta}),z.reason!==void 0&&z.reason.length>0&&c.jsx("div",{style:{marginTop:6,fontSize:12,lineHeight:1.45,color:ht,overflowWrap:"anywhere"},children:z.reason})]}):z.kind==="runtime"?c.jsxs("div",{style:{background:"rgba(232,162,74,.045)",border:"1px solid rgba(232,162,74,.16)",borderRadius:10,padding:"10px 12px"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,flexWrap:"wrap"},children:[c.jsx("span",{style:{fontFamily:w,fontSize:10,letterSpacing:".14em",textTransform:"uppercase",color:qt,fontWeight:600},children:"Runtime"}),c.jsxs("span",{style:{fontFamily:w,fontSize:10,color:ge,whiteSpace:"nowrap"},children:[z.dt?z.dt+" · ":"",z.timeStr]})]}),c.jsx("div",{style:{marginTop:7,color:"#E0C28D",fontSize:13,lineHeight:1.45,overflowWrap:"anywhere"},children:z.label}),z.meta.length>0&&c.jsx("div",{style:{marginTop:5,fontFamily:w,fontSize:11,lineHeight:1.45,color:"#A99570",overflowWrap:"anywhere"},children:z.meta})]}):c.jsxs("div",{style:{background:"linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012))",border:"1px solid rgba(255,255,255,.09)",borderRadius:12,padding:"14px 16px"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c.jsx("span",{style:{fontFamily:w,fontSize:11,letterSpacing:".14em",textTransform:"uppercase",color:qt,fontWeight:600},children:"Agent"}),c.jsxs("span",{style:{fontFamily:w,fontSize:10,color:ge},children:[z.dt?z.dt+" · ":"",z.timeStr]})]}),z.hasThink&&c.jsxs("div",{style:{marginTop:10},children:[c.jsxs("button",{className:"think-btn",onClick:()=>xt(z.thinkKey),"aria-expanded":Z[z.thinkKey],style:{cursor:"pointer",background:"none",border:"none",padding:"8px 4px",margin:"0 0 0 -4px",minHeight:44,display:"flex",alignItems:"center",gap:7,color:ul,fontFamily:w,fontSize:11,letterSpacing:".04em"},children:[c.jsx("span",{style:{fontSize:13},children:Z[z.thinkKey]?"▾":"▸"})," reasoning"]}),Z[z.thinkKey]&&c.jsx("div",{style:{marginTop:8,padding:"12px 14px",background:"rgba(177,138,224,.06)",borderLeft:"2px solid rgba(177,138,224,.4)",borderRadius:"0 9px 9px 0"},children:c.jsx(ci,{src:z.thinkText,style:{fontFamily:U1,fontStyle:"italic",fontSize:15,lineHeight:1.62,color:"#CFC7DE"}})})]}),z.hasCalls&&c.jsxs("div",{style:{marginTop:11},children:[c.jsx("div",{style:{fontFamily:w,fontSize:10,color:Al,letterSpacing:".06em",marginBottom:7},children:z.callHeader}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:z.calls.map(d=>{const x=!!Z[d.key];return c.jsxs("div",{style:{background:"rgba(79,182,166,.05)",border:"1px solid rgba(79,182,166,.16)",borderRadius:9,overflow:"hidden"},children:[c.jsxs("div",{className:"call-head",role:"button",tabIndex:0,onClick:()=>xt(d.key),onKeyDown:U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),xt(d.key))},"aria-expanded":x,"aria-label":`${d.name} tool call`,style:{cursor:"pointer",display:"flex",alignItems:"center",gap:9,padding:"12px 11px",minHeight:44},children:[c.jsx("span",{style:{width:7,height:7,borderRadius:"50%",background:d.statusColor,flex:"none",boxShadow:`0 0 6px ${d.statusColor}`}}),c.jsx("span",{style:{fontFamily:w,fontSize:12,fontWeight:600,color:"#6FD0C0",minWidth:0,maxWidth:"min(150px, 34vw)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.name}),c.jsx("span",{style:{fontFamily:w,fontSize:11,color:"#8b8d94",flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:d.argDig}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:"#9aa0a8",whiteSpace:"nowrap"},children:d.durStr}),c.jsx("span",{style:{fontFamily:w,fontSize:11,color:ge},children:x?"▾":"▸"})]}),d.hasResult&&!x&&c.jsx("div",{style:{padding:"0 11px 9px 27px",fontSize:12,color:"#8b8d94",lineHeight:1.4,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:d.resultDig}),x&&c.jsxs("div",{style:{padding:"2px 11px 11px"},children:[c.jsx("div",{style:{fontFamily:w,fontSize:9,letterSpacing:".14em",textTransform:"uppercase",color:Al,margin:"4px 0 5px"},children:"Input"}),c.jsx("pre",{style:C0,children:d.argRaw}),d.hasResult&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,margin:"11px 0 5px"},children:[c.jsxs("span",{style:{fontFamily:w,fontSize:9,letterSpacing:".14em",textTransform:"uppercase",color:d.statusColor},children:["Output ",d.statusWord]}),c.jsx("span",{style:{fontFamily:w,fontSize:10,color:ge},children:d.durStr})]}),c.jsx("pre",{style:{...C0,maxHeight:280},children:d.resultRaw})]})]})]},d.key)})})]}),z.hasText&&c.jsx("div",{style:{marginTop:11,borderTop:"1px solid rgba(255,255,255,.07)",paddingTop:11},children:c.jsx(ci,{src:z.text,style:{fontSize:14,lineHeight:1.55,color:"#DEDCD5",fontFamily:Ta}})}),z.hasUsage&&c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px 11px",flexWrap:"wrap",marginTop:12,paddingTop:10,borderTop:"1px solid rgba(255,255,255,.06)"},children:[c.jsx("span",{style:{fontFamily:w,fontSize:10,color:ht,flex:"1 1 126px",minWidth:0,overflowWrap:"anywhere"},children:z.uTok}),c.jsx("div",{style:{flex:B?"1 1 100%":1,order:B?3:0,minWidth:B?"100%":70,height:4,background:"rgba(255,255,255,.06)",borderRadius:3,overflow:"hidden"},children:c.jsx("div",{style:{height:"100%",width:`${z.turnPct}%`,background:qt,borderRadius:3}})}),c.jsxs("span",{style:{fontFamily:w,fontSize:10,color:qt,whiteSpace:"nowrap"},children:[z.uCost," · ",z.turnPct,"% of run"]})]})]})]},z.key)),k!==void 0&&c.jsxs("div",{role:D.status==="running"?"status":void 0,style:{position:"relative",background:"rgba(255,255,255,.025)",border:"1px dashed rgba(255,255,255,.12)",borderRadius:12,padding:"14px 16px",color:ht,fontFamily:w,fontSize:12},children:[c.jsx("span",{style:{position:"absolute",left:-32,top:15,width:12,height:12,borderRadius:"50%",background:ge,boxShadow:"0 0 0 4px #0a0b0e"}}),k]})]})]}),c.jsxs("div",{style:{marginTop:26},children:[c.jsx("div",{style:{...dn(qt),marginBottom:11},children:"▼ Agent output"}),ft.silent?c.jsxs("div",{style:{background:"rgba(255,255,255,.02)",border:"1px dashed rgba(255,255,255,.14)",borderRadius:13,padding:20,textAlign:"center"},children:[c.jsx("div",{style:{fontFamily:w,fontSize:14,color:"#8b8d94",letterSpacing:".05em"},children:"NOTHING_TO_REPORT"}),c.jsx("div",{style:{fontSize:13,color:ht,marginTop:6},children:"Scan completed — nothing worth interrupting you. Stayed silent."})]}):c.jsxs("div",{style:{background:"linear-gradient(180deg,rgba(232,162,74,.1),rgba(232,162,74,.03))",border:"1px solid rgba(232,162,74,.28)",borderRadius:15,padding:"18px 20px",boxShadow:"0 12px 40px -18px rgba(232,162,74,.5)"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9,marginBottom:11},children:[c.jsx("span",{style:{width:26,height:26,borderRadius:7,background:qt,display:"flex",alignItems:"center",justifyContent:"center",color:"#0a0b0e",fontWeight:700,fontFamily:w,fontSize:13},children:"A"}),c.jsxs("div",{style:{lineHeight:1.1},children:[c.jsx("div",{style:{fontSize:13,fontWeight:600,color:Gt},children:D.instance}),c.jsx("div",{style:{fontFamily:w,fontSize:10,color:"#c39a5e"},children:st})]})]}),D.finalText.trim()?c.jsx(ci,{src:D.finalText+(D.finalTr?`
143
+ …`:""),style:{fontSize:14,lineHeight:1.6,color:"#ECE6DC",fontFamily:Ta}}):ft.running?c.jsx("div",{style:{fontFamily:w,fontSize:13,color:ht},children:"Still running — no final output yet."}):c.jsx("div",{style:{fontFamily:w,fontSize:13,color:ht},children:"No final output captured for this run."})]})]})]})]})}const O0={cursor:"pointer",display:"inline-flex",alignItems:"center",gap:7,background:"rgba(255,255,255,.05)",border:"1px solid rgba(255,255,255,.1)",color:"#C9CBD1",fontFamily:w,fontSize:12,minHeight:44,minWidth:44,justifyContent:"center",padding:"10px 13px",borderRadius:9,transition:"all .15s"},ts={cursor:"pointer",background:"none",border:"none",color:"#8b8d94",fontFamily:w,fontSize:11,letterSpacing:".06em",padding:"8px 4px",margin:"0 0 0 -4px",minHeight:44,display:"flex",alignItems:"center",gap:6},M0={whiteSpace:"pre-wrap",fontFamily:w,fontSize:12,lineHeight:1.6,color:"#8b8d94",marginTop:10,maxHeight:260,overflow:"auto",padding:12,background:"rgba(0,0,0,.25)",borderRadius:9},C0={margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:w,fontSize:11,lineHeight:1.5,color:le,maxHeight:200,overflow:"auto",background:"rgba(0,0,0,.3)",padding:10,borderRadius:7};function mg({view:o,onNav:f,statusPill:v}){const r=g=>({cursor:"pointer",fontFamily:w,fontSize:12,letterSpacing:".04em",padding:"10px 16px",minHeight:44,display:"inline-flex",alignItems:"center",borderRadius:10,border:`1px solid ${g?"rgba(255,255,255,.2)":"rgba(255,255,255,.08)"}`,background:g?"rgba(255,255,255,.1)":"transparent",color:g?Gt:"#8b8d94",transition:"all .15s"});return c.jsxs("div",{style:{display:"flex",gap:7,marginBottom:26,alignItems:"center",flexWrap:"wrap",rowGap:8},children:[c.jsx("button",{className:"rec-chip",onClick:()=>f("list"),style:r(o!=="instances"),"aria-current":o!=="instances"?"page":void 0,children:"Sessions"}),c.jsx("button",{className:"rec-chip",onClick:()=>f("instances"),style:r(o==="instances"),"aria-current":o==="instances"?"page":void 0,children:"Instances"}),c.jsx("div",{style:{marginLeft:"auto"},children:v})]})}function gg(){const{sessions:o,instances:f,status:v,error:r,canLoadOlderFor:g,loadingOlderFor:m,historyErrorFor:B,loadOlder:Z,ensureDetail:H,reload:j}=k0(),Q=ss(),[L,X]=J.useState("list"),[ot,ct]=J.useState(null),[it,Et]=J.useState(()=>T0()),[xt,D]=J.useState("all"),[lt,F]=J.useState("all"),[ft,pt]=J.useState(""),p=J.useRef(null),N=J.useCallback(At=>{H(At),ct(At),X("detail"),window.scrollTo?.(0,0)},[H]),et=J.useCallback(At=>{F(At),Et(T0()),D("all"),X("list"),window.scrollTo?.(0,0)},[]);J.useEffect(()=>{p.current?.focus({preventScroll:!0})},[L]);const dt={minHeight:"100dvh",background:D1,color:Gt,fontFamily:Ta,WebkitFontSmoothing:"antialiased",outline:"none"};if(L==="detail"&&ot)return c.jsx("div",{ref:p,tabIndex:-1,style:dt,children:c.jsx(hg,{id:ot,onBack:()=>X("list")},ot)});const kt=v==="fixture"?c.jsx("span",{title:"No backend reachable — showing bundled demo data","aria-label":"No backend reachable — showing bundled demo data",style:{fontFamily:w,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:ht,border:"1px solid rgba(255,255,255,.1)",borderRadius:999,padding:"5px 11px",background:"rgba(255,255,255,.03)",whiteSpace:"nowrap",flex:"none"},children:"demo data"}):v==="reconnecting"?c.jsx("span",{title:"Loaded latest snapshot — reconnecting to live updates","aria-label":"Loaded latest snapshot — reconnecting to live updates",style:{fontFamily:w,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:"#E8A24A",border:"1px solid rgba(232,162,74,.32)",borderRadius:999,padding:"5px 11px",background:"rgba(232,162,74,.09)",whiteSpace:"nowrap",flex:"none"},children:"reconnecting"}):v==="error"?c.jsx("span",{title:r||"Session web backend unavailable","aria-label":r||"Session web backend unavailable",style:{fontFamily:w,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:"#E0685B",border:"1px solid rgba(224,104,91,.35)",borderRadius:999,padding:"5px 11px",background:"rgba(224,104,91,.1)",whiteSpace:"nowrap",flex:"none"},children:"backend error"}):null,at=v==="error"&&/(?:^|[^0-9])40[13](?:[^0-9]|$)/.test(r||"");return c.jsx("div",{ref:p,tabIndex:-1,style:dt,children:c.jsxs("div",{style:{maxWidth:1160,margin:"0 auto",padding:`calc(${Q?18:24}px + env(safe-area-inset-top)) max(${Q?12:16}px, env(safe-area-inset-right)) calc(${Q?72:84}px + env(safe-area-inset-bottom)) max(${Q?12:16}px, env(safe-area-inset-left))`},children:[c.jsx(mg,{view:L,onNav:X,statusPill:kt}),v==="error"?c.jsxs("div",{style:{margin:"48px auto",maxWidth:640,border:"1px solid rgba(224,104,91,.24)",borderRadius:14,padding:24,background:"rgba(224,104,91,.06)"},children:[c.jsx("div",{style:{fontFamily:w,fontSize:11,letterSpacing:".16em",color:"#E0685B",textTransform:"uppercase",marginBottom:10},children:at?"Authentication required":"Backend error"}),c.jsx("div",{style:{color:Gt,fontSize:20,fontWeight:600,marginBottom:8},children:at?"Enter the session-web token.":"Session data could not be loaded."}),c.jsx("div",{style:{color:ht,fontSize:14,lineHeight:1.55,overflowWrap:"anywhere"},children:r||"The session-web API returned an error."}),at&&c.jsxs("form",{onSubmit:At=>{At.preventDefault(),R0(ft),j()},style:{display:"flex",gap:9,flexWrap:"wrap",marginTop:16},children:[c.jsx("input",{value:ft,onChange:At=>pt(At.currentTarget.value),placeholder:"Bearer token","aria-label":"Session-web bearer token",style:{flex:"1 1 220px",minWidth:0,minHeight:44,borderRadius:9,border:"1px solid rgba(255,255,255,.16)",background:"rgba(0,0,0,.28)",color:Gt,fontFamily:w,fontSize:13,padding:"10px 12px"}}),c.jsx("button",{className:"rec-btn",type:"submit",style:{cursor:"pointer",minHeight:44,borderRadius:9,border:"1px solid rgba(232,162,74,.36)",background:"rgba(232,162,74,.12)",color:"#F0BE73",fontFamily:w,fontSize:12,padding:"10px 14px"},children:"Retry"}),c.jsx("button",{className:"rec-btn",type:"button",onClick:()=>{b1(),pt(""),j()},style:{cursor:"pointer",minHeight:44,borderRadius:9,border:"1px solid rgba(255,255,255,.12)",background:"rgba(255,255,255,.04)",color:"#C9CBD1",fontFamily:w,fontSize:12,padding:"10px 14px"},children:"Clear"})]})]}):L==="instances"?c.jsx(ag,{instances:f,sessions:o,onOpenInstance:et}):c.jsx(P1,{sessions:o,instances:f,excludedChannels:it,fOut:xt,fInstance:lt,setExcludedChannels:Et,setFOut:D,setFInstance:F,onOpen:N,canLoadOlder:g(lt),loadingOlder:m(lt),historyError:B(lt),onLoadOlder:()=>Z(lt)})]})})}m1.createRoot(document.getElementById("root")).render(c.jsx(J.StrictMode,{children:c.jsx(w1,{children:c.jsx(gg,{})})}));