@seanxdo/superview 0.1.15 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const y of document.querySelectorAll('link[rel="modulepreload"]'))f(y);new MutationObserver(y=>{for(const C of y)if(C.type==="childList")for(const b of C.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&f(b)}).observe(document,{childList:!0,subtree:!0});function d(y){const C={};return y.integrity&&(C.integrity=y.integrity),y.referrerPolicy&&(C.referrerPolicy=y.referrerPolicy),y.crossOrigin==="use-credentials"?C.credentials="include":y.crossOrigin==="anonymous"?C.credentials="omit":C.credentials="same-origin",C}function f(y){if(y.ep)return;y.ep=!0;const C=d(y);fetch(y.href,C)}})();function Pg(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Wc={exports:{}},fi={};var hh;function ep(){if(hh)return fi;hh=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(f,y,C){var b=null;if(C!==void 0&&(b=""+C),y.key!==void 0&&(b=""+y.key),"key"in y){C={};for(var H in y)H!=="key"&&(C[H]=y[H])}else C=y;return y=C.ref,{$$typeof:u,type:f,key:b,ref:y!==void 0?y:null,props:C}}return fi.Fragment=o,fi.jsx=d,fi.jsxs=d,fi}var mh;function tp(){return mh||(mh=1,Wc.exports=ep()),Wc.exports}var s=tp(),Fc={exports:{}},ve={};var gh;function ap(){if(gh)return ve;gh=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),b=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),k=Symbol.iterator;function J(h){return h===null||typeof h!="object"?null:(h=k&&h[k]||h["@@iterator"],typeof h=="function"?h:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,X={};function $(h,M,Q){this.props=h,this.context=M,this.refs=X,this.updater=Q||_}$.prototype.isReactComponent={},$.prototype.setState=function(h,M){if(typeof h!="object"&&typeof h!="function"&&h!=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,h,M,"setState")},$.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function te(){}te.prototype=$.prototype;function O(h,M,Q){this.props=h,this.context=M,this.refs=X,this.updater=Q||_}var ie=O.prototype=new te;ie.constructor=O,I(ie,$.prototype),ie.isPureReactComponent=!0;var he=Array.isArray;function P(){}var F={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function B(h,M,Q){var ae=Q.ref;return{$$typeof:u,type:h,key:M,ref:ae!==void 0?ae:null,props:Q}}function K(h,M){return B(h.type,M,h.props)}function Y(h){return typeof h=="object"&&h!==null&&h.$$typeof===u}function Z(h){var M={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(Q){return M[Q]})}var W=/\/+/g;function le(h,M){return typeof h=="object"&&h!==null&&h.key!=null?Z(""+h.key):M.toString(36)}function ue(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(P,P):(h.status="pending",h.then(function(M){h.status==="pending"&&(h.status="fulfilled",h.value=M)},function(M){h.status==="pending"&&(h.status="rejected",h.reason=M)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function S(h,M,Q,ae,ce){var me=typeof h;(me==="undefined"||me==="boolean")&&(h=null);var be=!1;if(h===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(h.$$typeof){case u:case o:be=!0;break;case E:return be=h._init,S(be(h._payload),M,Q,ae,ce)}}if(be)return ce=ce(h),be=ae===""?"."+le(h,0):ae,he(ce)?(Q="",be!=null&&(Q=be.replace(W,"$&/")+"/"),S(ce,M,Q,"",function(Kt){return Kt})):ce!=null&&(Y(ce)&&(ce=K(ce,Q+(ce.key==null||h&&h.key===ce.key?"":(""+ce.key).replace(W,"$&/")+"/")+be)),M.push(ce)),1;be=0;var qe=ae===""?".":ae+":";if(he(h))for(var ze=0;ze<h.length;ze++)ae=h[ze],me=qe+le(ae,ze),be+=S(ae,M,Q,me,ce);else if(ze=J(h),typeof ze=="function")for(h=ze.call(h),ze=0;!(ae=h.next()).done;)ae=ae.value,me=qe+le(ae,ze++),be+=S(ae,M,Q,me,ce);else if(me==="object"){if(typeof h.then=="function")return S(ue(h),M,Q,ae,ce);throw M=String(h),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return be}function v(h,M,Q){if(h==null)return h;var ae=[],ce=0;return S(h,ae,"","",function(me){return M.call(Q,me,ce++)}),ae}function V(h){if(h._status===-1){var M=h._result;M=M(),M.then(function(Q){(h._status===0||h._status===-1)&&(h._status=1,h._result=Q)},function(Q){(h._status===0||h._status===-1)&&(h._status=2,h._result=Q)}),h._status===-1&&(h._status=0,h._result=M)}if(h._status===1)return h._result.default;throw h._result}var ee=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},G={map:v,forEach:function(h,M,Q){v(h,function(){M.apply(this,arguments)},Q)},count:function(h){var M=0;return v(h,function(){M++}),M},toArray:function(h){return v(h,function(M){return M})||[]},only:function(h){if(!Y(h))throw Error("React.Children.only expected to receive a single React element child.");return h}};return ve.Activity=T,ve.Children=G,ve.Component=$,ve.Fragment=d,ve.Profiler=y,ve.PureComponent=O,ve.StrictMode=f,ve.Suspense=N,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ve.__COMPILER_RUNTIME={__proto__:null,c:function(h){return F.H.useMemoCache(h)}},ve.cache=function(h){return function(){return h.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(h,M,Q){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var ae=I({},h.props),ce=h.key;if(M!=null)for(me in M.key!==void 0&&(ce=""+M.key),M)!fe.call(M,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&M.ref===void 0||(ae[me]=M[me]);var me=arguments.length-2;if(me===1)ae.children=Q;else if(1<me){for(var be=Array(me),qe=0;qe<me;qe++)be[qe]=arguments[qe+2];ae.children=be}return B(h.type,ce,ae)},ve.createContext=function(h){return h={$$typeof:b,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:C,_context:h},h},ve.createElement=function(h,M,Q){var ae,ce={},me=null;if(M!=null)for(ae in M.key!==void 0&&(me=""+M.key),M)fe.call(M,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ce[ae]=M[ae]);var be=arguments.length-2;if(be===1)ce.children=Q;else if(1<be){for(var qe=Array(be),ze=0;ze<be;ze++)qe[ze]=arguments[ze+2];ce.children=qe}if(h&&h.defaultProps)for(ae in be=h.defaultProps,be)ce[ae]===void 0&&(ce[ae]=be[ae]);return B(h,me,ce)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(h){return{$$typeof:H,render:h}},ve.isValidElement=Y,ve.lazy=function(h){return{$$typeof:E,_payload:{_status:-1,_result:h},_init:V}},ve.memo=function(h,M){return{$$typeof:m,type:h,compare:M===void 0?null:M}},ve.startTransition=function(h){var M=F.T,Q={};F.T=Q;try{var ae=h(),ce=F.S;ce!==null&&ce(Q,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(P,ee)}catch(me){ee(me)}finally{M!==null&&Q.types!==null&&(M.types=Q.types),F.T=M}},ve.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ve.use=function(h){return F.H.use(h)},ve.useActionState=function(h,M,Q){return F.H.useActionState(h,M,Q)},ve.useCallback=function(h,M){return F.H.useCallback(h,M)},ve.useContext=function(h){return F.H.useContext(h)},ve.useDebugValue=function(){},ve.useDeferredValue=function(h,M){return F.H.useDeferredValue(h,M)},ve.useEffect=function(h,M){return F.H.useEffect(h,M)},ve.useEffectEvent=function(h){return F.H.useEffectEvent(h)},ve.useId=function(){return F.H.useId()},ve.useImperativeHandle=function(h,M,Q){return F.H.useImperativeHandle(h,M,Q)},ve.useInsertionEffect=function(h,M){return F.H.useInsertionEffect(h,M)},ve.useLayoutEffect=function(h,M){return F.H.useLayoutEffect(h,M)},ve.useMemo=function(h,M){return F.H.useMemo(h,M)},ve.useOptimistic=function(h,M){return F.H.useOptimistic(h,M)},ve.useReducer=function(h,M,Q){return F.H.useReducer(h,M,Q)},ve.useRef=function(h){return F.H.useRef(h)},ve.useState=function(h){return F.H.useState(h)},ve.useSyncExternalStore=function(h,M,Q){return F.H.useSyncExternalStore(h,M,Q)},ve.useTransition=function(){return F.H.useTransition()},ve.version="19.2.6",ve}var ph;function mo(){return ph||(ph=1,Fc.exports=ap()),Fc.exports}var D=mo();const lp=Pg(D);var Ic={exports:{}},di={},Pc={exports:{}},eo={};var vh;function np(){return vh||(vh=1,(function(u){function o(S,v){var V=S.length;S.push(v);e:for(;0<V;){var ee=V-1>>>1,G=S[ee];if(0<y(G,v))S[ee]=v,S[V]=G,V=ee;else break e}}function d(S){return S.length===0?null:S[0]}function f(S){if(S.length===0)return null;var v=S[0],V=S.pop();if(V!==v){S[0]=V;e:for(var ee=0,G=S.length,h=G>>>1;ee<h;){var M=2*(ee+1)-1,Q=S[M],ae=M+1,ce=S[ae];if(0>y(Q,V))ae<G&&0>y(ce,Q)?(S[ee]=ce,S[ae]=V,ee=ae):(S[ee]=Q,S[M]=V,ee=M);else if(ae<G&&0>y(ce,V))S[ee]=ce,S[ae]=V,ee=ae;else break e}}return v}function y(S,v){var V=S.sortIndex-v.sortIndex;return V!==0?V:S.id-v.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;u.unstable_now=function(){return C.now()}}else{var b=Date,H=b.now();u.unstable_now=function(){return b.now()-H}}var N=[],m=[],E=1,T=null,k=3,J=!1,_=!1,I=!1,X=!1,$=typeof setTimeout=="function"?setTimeout:null,te=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function ie(S){for(var v=d(m);v!==null;){if(v.callback===null)f(m);else if(v.startTime<=S)f(m),v.sortIndex=v.expirationTime,o(N,v);else break;v=d(m)}}function he(S){if(I=!1,ie(S),!_)if(d(N)!==null)_=!0,P||(P=!0,Z());else{var v=d(m);v!==null&&ue(he,v.startTime-S)}}var P=!1,F=-1,fe=5,B=-1;function K(){return X?!0:!(u.unstable_now()-B<fe)}function Y(){if(X=!1,P){var S=u.unstable_now();B=S;var v=!0;try{e:{_=!1,I&&(I=!1,te(F),F=-1),J=!0;var V=k;try{t:{for(ie(S),T=d(N);T!==null&&!(T.expirationTime>S&&K());){var ee=T.callback;if(typeof ee=="function"){T.callback=null,k=T.priorityLevel;var G=ee(T.expirationTime<=S);if(S=u.unstable_now(),typeof G=="function"){T.callback=G,ie(S),v=!0;break t}T===d(N)&&f(N),ie(S)}else f(N);T=d(N)}if(T!==null)v=!0;else{var h=d(m);h!==null&&ue(he,h.startTime-S),v=!1}}break e}finally{T=null,k=V,J=!1}v=void 0}}finally{v?Z():P=!1}}}var Z;if(typeof O=="function")Z=function(){O(Y)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,le=W.port2;W.port1.onmessage=Y,Z=function(){le.postMessage(null)}}else Z=function(){$(Y,0)};function ue(S,v){F=$(function(){S(u.unstable_now())},v)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(S){S.callback=null},u.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<S?Math.floor(1e3/S):5},u.unstable_getCurrentPriorityLevel=function(){return k},u.unstable_next=function(S){switch(k){case 1:case 2:case 3:var v=3;break;default:v=k}var V=k;k=v;try{return S()}finally{k=V}},u.unstable_requestPaint=function(){X=!0},u.unstable_runWithPriority=function(S,v){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var V=k;k=S;try{return v()}finally{k=V}},u.unstable_scheduleCallback=function(S,v,V){var ee=u.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ee+V:ee):V=ee,S){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=V+G,S={id:E++,callback:v,priorityLevel:S,startTime:V,expirationTime:G,sortIndex:-1},V>ee?(S.sortIndex=V,o(m,S),d(N)===null&&S===d(m)&&(I?(te(F),F=-1):I=!0,ue(he,V-ee))):(S.sortIndex=G,o(N,S),_||J||(_=!0,P||(P=!0,Z()))),S},u.unstable_shouldYield=K,u.unstable_wrapCallback=function(S){var v=k;return function(){var V=k;k=v;try{return S.apply(this,arguments)}finally{k=V}}}})(eo)),eo}var yh;function ip(){return yh||(yh=1,Pc.exports=np()),Pc.exports}var to={exports:{}},ot={};var xh;function sp(){if(xh)return ot;xh=1;var u=mo();function o(N){var m="https://react.dev/errors/"+N;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)m+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+N+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var f={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},y=Symbol.for("react.portal");function C(N,m,E){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y,key:T==null?null:""+T,children:N,containerInfo:m,implementation:E}}var b=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function H(N,m){if(N==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ot.createPortal=function(N,m){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return C(N,m,null,E)},ot.flushSync=function(N){var m=b.T,E=f.p;try{if(b.T=null,f.p=2,N)return N()}finally{b.T=m,f.p=E,f.d.f()}},ot.preconnect=function(N,m){typeof N=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,f.d.C(N,m))},ot.prefetchDNS=function(N){typeof N=="string"&&f.d.D(N)},ot.preinit=function(N,m){if(typeof N=="string"&&m&&typeof m.as=="string"){var E=m.as,T=H(E,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,J=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;E==="style"?f.d.S(N,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:T,integrity:k,fetchPriority:J}):E==="script"&&f.d.X(N,{crossOrigin:T,integrity:k,fetchPriority:J,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ot.preinitModule=function(N,m){if(typeof N=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var E=H(m.as,m.crossOrigin);f.d.M(N,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&f.d.M(N)},ot.preload=function(N,m){if(typeof N=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var E=m.as,T=H(E,m.crossOrigin);f.d.L(N,E,{crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ot.preloadModule=function(N,m){if(typeof N=="string")if(m){var E=H(m.as,m.crossOrigin);f.d.m(N,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else f.d.m(N)},ot.requestFormReset=function(N){f.d.r(N)},ot.unstable_batchedUpdates=function(N,m){return N(m)},ot.useFormState=function(N,m,E){return b.H.useFormState(N,m,E)},ot.useFormStatus=function(){return b.H.useHostTransitionStatus()},ot.version="19.2.6",ot}var bh;function _h(){if(bh)return to.exports;bh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),to.exports=sp(),to.exports}var Sh;function up(){if(Sh)return di;Sh=1;var u=ip(),o=mo(),d=_h();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function C(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function b(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function H(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function N(e){if(C(e)!==e)throw Error(f(188))}function m(e){var t=e.alternate;if(!t){if(t=C(e),t===null)throw Error(f(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return N(n),e;if(i===l)return N(n),t;i=i.sibling}throw Error(f(188))}if(a.return!==l.return)a=n,l=i;else{for(var c=!1,r=n.child;r;){if(r===a){c=!0,a=n,l=i;break}if(r===l){c=!0,l=n,a=i;break}r=r.sibling}if(!c){for(r=i.child;r;){if(r===a){c=!0,a=i,l=n;break}if(r===l){c=!0,l=i,a=n;break}r=r.sibling}if(!c)throw Error(f(189))}}if(a.alternate!==l)throw Error(f(190))}if(a.tag!==3)throw Error(f(188));return a.stateNode.current===a?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var T=Object.assign,k=Symbol.for("react.element"),J=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),O=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case I:return"Fragment";case $:return"Profiler";case X:return"StrictMode";case he:return"Suspense";case P:return"SuspenseList";case B:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case O:return e.displayName||"Context";case te:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,S=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,v=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ee=[],G=-1;function h(e){return{current:e}}function M(e){0>G||(e.current=ee[G],ee[G]=null,G--)}function Q(e,t){G++,ee[G]=e.current,e.current=t}var ae=h(null),ce=h(null),me=h(null),be=h(null);function qe(e,t){switch(Q(me,t),Q(ce,e),Q(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=wd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(ae),Q(ae,e)}function ze(){M(ae),M(ce),M(me)}function Kt(e){e.memoizedState!==null&&Q(be,e);var t=ae.current,a=wd(t,e.type);t!==a&&(Q(ce,e),Q(ae,a))}function la(e){ce.current===e&&(M(ae),M(ce)),be.current===e&&(M(be),ui._currentValue=V)}var na,al;function Jt(e){if(na===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);na=t&&t[1]||"",al=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+na+e+al}var ll=!1;function ia(e,t){if(!e||ll)return"";ll=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(z){var R=z}Reflect.construct(e,[],q)}else{try{q.call()}catch(z){R=z}e.call(q.prototype)}}else{try{throw Error()}catch(z){R=z}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(z){if(z&&R&&typeof z.stack=="string")return[z.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),c=i[0],r=i[1];if(c&&r){var g=c.split(`
4
+ `),A=r.split(`
5
+ `);for(n=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(l===g.length||n===A.length)for(l=g.length-1,n=A.length-1;1<=l&&0<=n&&g[l]!==A[n];)n--;for(;1<=l&&0<=n;l--,n--)if(g[l]!==A[n]){if(l!==1||n!==1)do if(l--,n--,0>n||g[l]!==A[n]){var U=`
6
+ `+g[l].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=l&&0<=n);break}}}finally{ll=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Jt(a):""}function hi(e,t){switch(e.tag){case 26:case 27:case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return e.child!==t&&t!==null?Jt("Suspense Fallback"):Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 15:return ia(e.type,!1);case 11:return ia(e.type.render,!1);case 1:return ia(e.type,!0);case 31:return Jt("Activity");default:return""}}function xn(e){try{var t="",a=null;do t+=hi(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var at=Object.prototype.hasOwnProperty,bn=u.unstable_scheduleCallback,nl=u.unstable_cancelCallback,sa=u.unstable_shouldYield,ua=u.unstable_requestPaint,rt=u.unstable_now,Ls=u.unstable_getCurrentPriorityLevel,il=u.unstable_ImmediatePriority,mi=u.unstable_UserBlockingPriority,Ma=u.unstable_NormalPriority,Rl=u.unstable_LowPriority,Ml=u.unstable_IdlePriority,oe=u.log,Bs=u.unstable_setDisableYieldValue,za=null,ft=null;function Wt(e){if(typeof oe=="function"&&Bs(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(za,e)}catch{}}var dt=Math.clz32?Math.clz32:qs,zl=Math.log,gi=Math.LN2;function qs(e){return e>>>=0,e===0?32:31-(zl(e)/gi|0)|0}var kl=256,ca=262144,zt=4194304;function ht(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function sl(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=l&134217727;return r!==0?(l=r&~i,l!==0?n=ht(l):(c&=r,c!==0?n=ht(c):a||(a=r&~e,a!==0&&(n=ht(a))))):(r=l&~i,r!==0?n=ht(r):c!==0?n=ht(c):a||(a=l&~e,a!==0&&(n=ht(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function Gt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function oa(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kt(){var e=zt;return zt<<=1,(zt&62914560)===0&&(zt=4194304),e}function ul(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function w(e,t,a,l,n,i){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var r=e.entanglements,g=e.expirationTimes,A=e.hiddenUpdates;for(a=c&~a;0<a;){var U=31-dt(a),q=1<<U;r[U]=0,g[U]=-1;var R=A[U];if(R!==null)for(A[U]=null,U=0;U<R.length;U++){var z=R[U];z!==null&&(z.lane&=-536870913)}a&=~q}l!==0&&de(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function de(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-dt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function pe(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-dt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function He(e,t){var a=t&-t;return a=(a&42)!==0?1:mt(a),(a&(e.suspendedLanes|t))!==0?0:a}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ka(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dl(){var e=v.p;return e!==0?e:(e=window.event,e===void 0?32:sh(e.type))}function Ys(e,t){var a=v.p;try{return v.p=e,t()}finally{v.p=a}}var Ft=Math.random().toString(36).slice(2),We="__reactFiber$"+Ft,ut="__reactProps$"+Ft,Xt="__reactContainer$"+Ft,ct="__reactEvents$"+Ft,ol="__reactListeners$"+Ft,It="__reactHandles$"+Ft,Sn="__reactResources$"+Ft,jn="__reactMarker$"+Ft;function Gs(e){delete e[We],delete e[ut],delete e[ct],delete e[ol],delete e[It]}function Ol(e){var t=e[We];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xt]||a[We]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Vd(e);e!==null;){if(a=e[We])return a;e=Vd(e)}return t}e=a,a=e.parentNode}return null}function _l(e){if(e=e[We]||e[Xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Ul(e){var t=e[Sn];return t||(t=e[Sn]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[jn]=!0}var No=new Set,To={};function rl(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(To[e]=t,e=0;e<t.length;e++)No.add(t[e])}var Vh=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]*$"),Ao={},Eo={};function Qh(e){return at.call(Eo,e)?!0:at.call(Ao,e)?!1:Vh.test(e)?Eo[e]=!0:(Ao[e]=!0,!1)}function pi(e,t,a){if(Qh(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function vi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ra(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Co(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zh(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){a=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){if(!e._valueTracker){var t=Co(e)?"checked":"value";e._valueTracker=Zh(e,t,""+e[t])}}function Ro(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Co(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var $h=/[\n"\\]/g;function Ot(e){return e.replace($h,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vs(e,t,a,l,n,i,c,r){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Qs(e,c,Dt(t)):a!=null?Qs(e,c,Dt(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Dt(r):e.removeAttribute("name")}function Mo(e,t,a,l,n,i,c,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Xs(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,r||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=r?e.checked:!!l,e.defaultChecked=!!l,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Xs(e)}function Qs(e,t,a){t==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function wl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function zo(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function ko(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(f(92));if(ue(l)){if(1<l.length)throw Error(f(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Xs(e)}function Ll(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Kh=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 Do(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Kh.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Oo(e,t,a){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&Do(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&Do(e,i,t[i])}function Zs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jh=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"]]),Wh=/^[\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 xi(e){return Wh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fa(){}var $s=null;function Ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,ql=null;function _o(e){var t=_l(e);if(t&&(e=t.stateNode)){var a=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ot(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ut]||null;if(!n)throw Error(f(90));Vs(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Ro(l)}break e;case"textarea":zo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&wl(e,!!a.multiple,t,!1)}}}var Js=!1;function Uo(e,t,a){if(Js)return e(t,a);Js=!0;try{var l=e(t);return l}finally{if(Js=!1,(Bl!==null||ql!==null)&&(ss(),Bl&&(t=Bl,e=ql,ql=Bl=null,_o(t),e)))for(t=0;t<e.length;t++)_o(e[t])}}function Tn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ut]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(f(231,t,typeof a));return a}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ws=!1;if(da)try{var An={};Object.defineProperty(An,"passive",{get:function(){Ws=!0}}),window.addEventListener("test",An,An),window.removeEventListener("test",An,An)}catch{Ws=!1}var Da=null,Fs=null,bi=null;function Ho(){if(bi)return bi;var e,t=Fs,a=t.length,l,n="value"in Da?Da.value:Da.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(l=1;l<=c&&t[a-l]===n[i-l];l++);return bi=n.slice(e,1<l?1-l:void 0)}function Si(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ji(){return!0}function wo(){return!1}function pt(e){function t(a,l,n,i,c){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(a=e[r],this[r]=a?a(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ji:wo,this.isPropagationStopped=wo,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ji)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=pt(fl),En=T({},fl,{view:0,detail:0}),Fh=pt(En),Is,Ps,Cn,Ti=T({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Cn&&(Cn&&e.type==="mousemove"?(Is=e.screenX-Cn.screenX,Ps=e.screenY-Cn.screenY):Ps=Is=0,Cn=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:Ps}}),Lo=pt(Ti),Ih=T({},Ti,{dataTransfer:0}),Ph=pt(Ih),em=T({},En,{relatedTarget:0}),eu=pt(em),tm=T({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),am=pt(tm),lm=T({},fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nm=pt(lm),im=T({},fl,{data:0}),Bo=pt(im),sm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},um={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"},cm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cm[e])?!!t[e]:!1}function tu(){return om}var rm=T({},En,{key:function(e){if(e.key){var t=sm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?um[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tu,charCode:function(e){return e.type==="keypress"?Si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=pt(rm),dm=T({},Ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qo=pt(dm),hm=T({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tu}),mm=pt(hm),gm=T({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),pm=pt(gm),vm=T({},Ti,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ym=pt(vm),xm=T({},fl,{newState:0,oldState:0}),bm=pt(xm),Sm=[9,13,27,32],au=da&&"CompositionEvent"in window,Rn=null;da&&"documentMode"in document&&(Rn=document.documentMode);var jm=da&&"TextEvent"in window&&!Rn,Yo=da&&(!au||Rn&&8<Rn&&11>=Rn),Go=" ",Xo=!1;function Vo(e,t){switch(e){case"keyup":return Sm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Nm(e,t){switch(e){case"compositionend":return Qo(t);case"keypress":return t.which!==32?null:(Xo=!0,Go);case"textInput":return e=t.data,e===Go&&Xo?null:e;default:return null}}function Tm(e,t){if(Yl)return e==="compositionend"||!au&&Vo(e,t)?(e=Ho(),bi=Fs=Da=null,Yl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yo&&t.locale!=="ko"?null:t.data;default:return null}}var Am={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 Zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Am[e.type]:t==="textarea"}function $o(e,t,a,l){Bl?ql?ql.push(l):ql=[l]:Bl=l,t=hs(t,"onChange"),0<t.length&&(a=new Ni("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Mn=null,zn=null;function Em(e){zd(e,0)}function Ai(e){var t=Nn(e);if(Ro(t))return e}function Ko(e,t){if(e==="change")return t}var Jo=!1;if(da){var lu;if(da){var nu="oninput"in document;if(!nu){var Wo=document.createElement("div");Wo.setAttribute("oninput","return;"),nu=typeof Wo.oninput=="function"}lu=nu}else lu=!1;Jo=lu&&(!document.documentMode||9<document.documentMode)}function Fo(){Mn&&(Mn.detachEvent("onpropertychange",Io),zn=Mn=null)}function Io(e){if(e.propertyName==="value"&&Ai(zn)){var t=[];$o(t,zn,e,Ks(e)),Uo(Em,t)}}function Cm(e,t,a){e==="focusin"?(Fo(),Mn=t,zn=a,Mn.attachEvent("onpropertychange",Io)):e==="focusout"&&Fo()}function Rm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(zn)}function Mm(e,t){if(e==="click")return Ai(t)}function zm(e,t){if(e==="input"||e==="change")return Ai(t)}function km(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:km;function kn(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!at.call(t,n)||!jt(e[n],t[n]))return!1}return!0}function Po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var a=Po(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Po(a)}}function tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=yi(e.document)}return t}function iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Dm=da&&"documentMode"in document&&11>=document.documentMode,Gl=null,su=null,Dn=null,uu=!1;function lr(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;uu||Gl==null||Gl!==yi(l)||(l=Gl,"selectionStart"in l&&iu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Dn&&kn(Dn,l)||(Dn=l,l=hs(su,"onSelect"),0<l.length&&(t=new Ni("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Gl)))}function dl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Xl={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionrun:dl("Transition","TransitionRun"),transitionstart:dl("Transition","TransitionStart"),transitioncancel:dl("Transition","TransitionCancel"),transitionend:dl("Transition","TransitionEnd")},cu={},nr={};da&&(nr=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function hl(e){if(cu[e])return cu[e];if(!Xl[e])return e;var t=Xl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in nr)return cu[e]=t[a];return e}var ir=hl("animationend"),sr=hl("animationiteration"),ur=hl("animationstart"),Om=hl("transitionrun"),_m=hl("transitionstart"),Um=hl("transitioncancel"),cr=hl("transitionend"),or=new Map,ou="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(" ");ou.push("scrollEnd");function Vt(e,t){or.set(e,t),rl(t,[e])}var Ei=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_t=[],Vl=0,ru=0;function Ci(){for(var e=Vl,t=ru=Vl=0;t<e;){var a=_t[t];_t[t++]=null;var l=_t[t];_t[t++]=null;var n=_t[t];_t[t++]=null;var i=_t[t];if(_t[t++]=null,l!==null&&n!==null){var c=l.pending;c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n}i!==0&&rr(a,n,i)}}function Ri(e,t,a,l){_t[Vl++]=e,_t[Vl++]=t,_t[Vl++]=a,_t[Vl++]=l,ru|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function fu(e,t,a,l){return Ri(e,t,a,l),Mi(e)}function ml(e,t){return Ri(e,null,null,t),Mi(e)}function rr(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-dt(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function Mi(e){if(50<ei)throw ei=0,bc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function Hm(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,a,l){return new Hm(e,t,a,l)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ha(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function fr(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,a,l,n,i){var c=0;if(l=e,typeof e=="function")du(e)&&(c=1);else if(typeof e=="string")c=Yg(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case B:return e=Nt(31,a,t,n),e.elementType=B,e.lanes=i,e;case I:return gl(a.children,n,i,t);case X:c=8,n|=24;break;case $:return e=Nt(12,a,t,n|2),e.elementType=$,e.lanes=i,e;case he:return e=Nt(13,a,t,n),e.elementType=he,e.lanes=i,e;case P:return e=Nt(19,a,t,n),e.elementType=P,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:c=10;break e;case te:c=9;break e;case ie:c=11;break e;case F:c=14;break e;case fe:c=16,l=null;break e}c=29,a=Error(f(130,e===null?"null":typeof e,"")),l=null}return t=Nt(c,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function gl(e,t,a,l){return e=Nt(7,e,l,t),e.lanes=a,e}function hu(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function dr(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function mu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hr=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var a=hr.get(e);return a!==void 0?a:(t={value:e,source:t,stack:xn(t)},hr.set(e,t),t)}return{value:e,source:t,stack:xn(t)}}var Zl=[],$l=0,ki=null,On=0,Ht=[],wt=0,Oa=null,Pt=1,ea="";function ma(e,t){Zl[$l++]=On,Zl[$l++]=ki,ki=e,On=t}function mr(e,t,a){Ht[wt++]=Pt,Ht[wt++]=ea,Ht[wt++]=Oa,Oa=e;var l=Pt;e=ea;var n=32-dt(l)-1;l&=~(1<<n),a+=1;var i=32-dt(t)+n;if(30<i){var c=n-n%5;i=(l&(1<<c)-1).toString(32),l>>=c,n-=c,Pt=1<<32-dt(t)+n|a<<n|l,ea=i+e}else Pt=1<<i|a<<n|l,ea=e}function gu(e){e.return!==null&&(ma(e,1),mr(e,1,0))}function pu(e){for(;e===ki;)ki=Zl[--$l],Zl[$l]=null,On=Zl[--$l],Zl[$l]=null;for(;e===Oa;)Oa=Ht[--wt],Ht[wt]=null,ea=Ht[--wt],Ht[wt]=null,Pt=Ht[--wt],Ht[wt]=null}function gr(e,t){Ht[wt++]=Pt,Ht[wt++]=ea,Ht[wt++]=Oa,Pt=t.id,ea=t.overflow,Oa=e}var lt=null,Le=null,Ae=!1,_a=null,Lt=!1,vu=Error(f(519));function Ua(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _n(Ut(t,e)),vu}function pr(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[We]=e,t[ut]=l,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<ai.length;a++)je(ai[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Mo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),ko(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||_d(t.textContent,a)?(l.popover!=null&&(je("beforetoggle",t),je("toggle",t)),l.onScroll!=null&&je("scroll",t),l.onScrollEnd!=null&&je("scrollend",t),l.onClick!=null&&(t.onclick=fa),t=!0):t=!1,t||Ua(e,!0)}function vr(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:lt=lt.return}}function Kl(e){if(e!==lt)return!1;if(!Ae)return vr(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Uc(e.type,e.memoizedProps)),a=!a),a&&Le&&Ua(e),vr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Le=Xd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));Le=Xd(e)}else t===27?(t=Le,Ja(e.type)?(e=qc,qc=null,Le=e):Le=t):Le=lt?qt(e.stateNode.nextSibling):null;return!0}function pl(){Le=lt=null,Ae=!1}function yu(){var e=_a;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),_a=null),e}function _n(e){_a===null?_a=[e]:_a.push(e)}var xu=h(null),vl=null,ga=null;function Ha(e,t,a){Q(xu,t._currentValue),t._currentValue=a}function pa(e){e._currentValue=xu.current,M(xu)}function bu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Su(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var r=i;i=n;for(var g=0;g<t.length;g++)if(r.context===t[g]){i.lanes|=a,r=i.alternate,r!==null&&(r.lanes|=a),bu(i.return,a,e),l||(c=null);break e}i=r.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(f(341));c.lanes|=a,i=c.alternate,i!==null&&(i.lanes|=a),bu(c,a,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Jl(e,t,a,l){e=null;for(var n=t,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 c=n.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=n.type;jt(n.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(n===be.current){if(c=n.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ui):e=[ui])}n=n.return}e!==null&&Su(t,e,a,l),t.flags|=262144}function Di(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yl(e){vl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return yr(vl,e)}function Oi(e,t){return vl===null&&yl(e),yr(e,t)}function yr(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ga===null){if(e===null)throw Error(f(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return a}var wm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Lm=u.unstable_scheduleCallback,Bm=u.unstable_NormalPriority,Ze={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ju(){return{controller:new wm,data:new Map,refCount:0}}function Un(e){e.refCount--,e.refCount===0&&Lm(Bm,function(){e.controller.abort()})}var Hn=null,Nu=0,Wl=0,Fl=null;function qm(e,t){if(Hn===null){var a=Hn=[];Nu=0,Wl=Ec(),Fl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Nu++,t.then(xr,xr),t}function xr(){if(--Nu===0&&Hn!==null){Fl!==null&&(Fl.status="fulfilled");var e=Hn;Hn=null,Wl=0,Fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ym(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var br=S.S;S.S=function(e,t){nd=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qm(e,t),br!==null&&br(e,t)};var xl=h(null);function Tu(){var e=xl.current;return e!==null?e:we.pooledCache}function _i(e,t){t===null?Q(xl,xl.current):Q(xl,t.pool)}function Sr(){var e=Tu();return e===null?null:{parent:Ze._currentValue,pool:e}}var Il=Error(f(460)),Au=Error(f(474)),Ui=Error(f(542)),Hi={then:function(){}};function jr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nr(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(fa,fa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ar(e),e;default:if(typeof t.status=="string")t.then(fa,fa);else{if(e=we,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ar(e),e}throw Sl=t,Il}}function bl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Sl=a,Il):a}}var Sl=null;function Tr(){if(Sl===null)throw Error(f(459));var e=Sl;return Sl=null,e}function Ar(e){if(e===Il||e===Ui)throw Error(f(483))}var Pl=null,wn=0;function wi(e){var t=wn;return wn+=1,Pl===null&&(Pl=[]),Nr(Pl,e,t)}function Ln(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Li(e,t){throw t.$$typeof===k?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Er(e){function t(x,p){if(e){var j=x.deletions;j===null?(x.deletions=[p],x.flags|=16):j.push(p)}}function a(x,p){if(!e)return null;for(;p!==null;)t(x,p),p=p.sibling;return null}function l(x){for(var p=new Map;x!==null;)x.key!==null?p.set(x.key,x):p.set(x.index,x),x=x.sibling;return p}function n(x,p){return x=ha(x,p),x.index=0,x.sibling=null,x}function i(x,p,j){return x.index=j,e?(j=x.alternate,j!==null?(j=j.index,j<p?(x.flags|=67108866,p):j):(x.flags|=67108866,p)):(x.flags|=1048576,p)}function c(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function r(x,p,j,L){return p===null||p.tag!==6?(p=hu(j,x.mode,L),p.return=x,p):(p=n(p,j),p.return=x,p)}function g(x,p,j,L){var re=j.type;return re===I?U(x,p,j.props.children,L,j.key):p!==null&&(p.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===fe&&bl(re)===p.type)?(p=n(p,j.props),Ln(p,j),p.return=x,p):(p=zi(j.type,j.key,j.props,null,x.mode,L),Ln(p,j),p.return=x,p)}function A(x,p,j,L){return p===null||p.tag!==4||p.stateNode.containerInfo!==j.containerInfo||p.stateNode.implementation!==j.implementation?(p=mu(j,x.mode,L),p.return=x,p):(p=n(p,j.children||[]),p.return=x,p)}function U(x,p,j,L,re){return p===null||p.tag!==7?(p=gl(j,x.mode,L,re),p.return=x,p):(p=n(p,j),p.return=x,p)}function q(x,p,j){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=hu(""+p,x.mode,j),p.return=x,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case J:return j=zi(p.type,p.key,p.props,null,x.mode,j),Ln(j,p),j.return=x,j;case _:return p=mu(p,x.mode,j),p.return=x,p;case fe:return p=bl(p),q(x,p,j)}if(ue(p)||Z(p))return p=gl(p,x.mode,j,null),p.return=x,p;if(typeof p.then=="function")return q(x,wi(p),j);if(p.$$typeof===O)return q(x,Oi(x,p),j);Li(x,p)}return null}function R(x,p,j,L){var re=p!==null?p.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return re!==null?null:r(x,p,""+j,L);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case J:return j.key===re?g(x,p,j,L):null;case _:return j.key===re?A(x,p,j,L):null;case fe:return j=bl(j),R(x,p,j,L)}if(ue(j)||Z(j))return re!==null?null:U(x,p,j,L,null);if(typeof j.then=="function")return R(x,p,wi(j),L);if(j.$$typeof===O)return R(x,p,Oi(x,j),L);Li(x,j)}return null}function z(x,p,j,L,re){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return x=x.get(j)||null,r(p,x,""+L,re);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case J:return x=x.get(L.key===null?j:L.key)||null,g(p,x,L,re);case _:return x=x.get(L.key===null?j:L.key)||null,A(p,x,L,re);case fe:return L=bl(L),z(x,p,j,L,re)}if(ue(L)||Z(L))return x=x.get(j)||null,U(p,x,L,re,null);if(typeof L.then=="function")return z(x,p,j,wi(L),re);if(L.$$typeof===O)return z(x,p,j,Oi(p,L),re);Li(p,L)}return null}function ne(x,p,j,L){for(var re=null,Ce=null,se=p,xe=p=0,Te=null;se!==null&&xe<j.length;xe++){se.index>xe?(Te=se,se=null):Te=se.sibling;var Re=R(x,se,j[xe],L);if(Re===null){se===null&&(se=Te);break}e&&se&&Re.alternate===null&&t(x,se),p=i(Re,p,xe),Ce===null?re=Re:Ce.sibling=Re,Ce=Re,se=Te}if(xe===j.length)return a(x,se),Ae&&ma(x,xe),re;if(se===null){for(;xe<j.length;xe++)se=q(x,j[xe],L),se!==null&&(p=i(se,p,xe),Ce===null?re=se:Ce.sibling=se,Ce=se);return Ae&&ma(x,xe),re}for(se=l(se);xe<j.length;xe++)Te=z(se,x,xe,j[xe],L),Te!==null&&(e&&Te.alternate!==null&&se.delete(Te.key===null?xe:Te.key),p=i(Te,p,xe),Ce===null?re=Te:Ce.sibling=Te,Ce=Te);return e&&se.forEach(function(el){return t(x,el)}),Ae&&ma(x,xe),re}function ge(x,p,j,L){if(j==null)throw Error(f(151));for(var re=null,Ce=null,se=p,xe=p=0,Te=null,Re=j.next();se!==null&&!Re.done;xe++,Re=j.next()){se.index>xe?(Te=se,se=null):Te=se.sibling;var el=R(x,se,Re.value,L);if(el===null){se===null&&(se=Te);break}e&&se&&el.alternate===null&&t(x,se),p=i(el,p,xe),Ce===null?re=el:Ce.sibling=el,Ce=el,se=Te}if(Re.done)return a(x,se),Ae&&ma(x,xe),re;if(se===null){for(;!Re.done;xe++,Re=j.next())Re=q(x,Re.value,L),Re!==null&&(p=i(Re,p,xe),Ce===null?re=Re:Ce.sibling=Re,Ce=Re);return Ae&&ma(x,xe),re}for(se=l(se);!Re.done;xe++,Re=j.next())Re=z(se,x,xe,Re.value,L),Re!==null&&(e&&Re.alternate!==null&&se.delete(Re.key===null?xe:Re.key),p=i(Re,p,xe),Ce===null?re=Re:Ce.sibling=Re,Ce=Re);return e&&se.forEach(function(Ig){return t(x,Ig)}),Ae&&ma(x,xe),re}function Ue(x,p,j,L){if(typeof j=="object"&&j!==null&&j.type===I&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case J:e:{for(var re=j.key;p!==null;){if(p.key===re){if(re=j.type,re===I){if(p.tag===7){a(x,p.sibling),L=n(p,j.props.children),L.return=x,x=L;break e}}else if(p.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===fe&&bl(re)===p.type){a(x,p.sibling),L=n(p,j.props),Ln(L,j),L.return=x,x=L;break e}a(x,p);break}else t(x,p);p=p.sibling}j.type===I?(L=gl(j.props.children,x.mode,L,j.key),L.return=x,x=L):(L=zi(j.type,j.key,j.props,null,x.mode,L),Ln(L,j),L.return=x,x=L)}return c(x);case _:e:{for(re=j.key;p!==null;){if(p.key===re)if(p.tag===4&&p.stateNode.containerInfo===j.containerInfo&&p.stateNode.implementation===j.implementation){a(x,p.sibling),L=n(p,j.children||[]),L.return=x,x=L;break e}else{a(x,p);break}else t(x,p);p=p.sibling}L=mu(j,x.mode,L),L.return=x,x=L}return c(x);case fe:return j=bl(j),Ue(x,p,j,L)}if(ue(j))return ne(x,p,j,L);if(Z(j)){if(re=Z(j),typeof re!="function")throw Error(f(150));return j=re.call(j),ge(x,p,j,L)}if(typeof j.then=="function")return Ue(x,p,wi(j),L);if(j.$$typeof===O)return Ue(x,p,Oi(x,j),L);Li(x,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,p!==null&&p.tag===6?(a(x,p.sibling),L=n(p,j),L.return=x,x=L):(a(x,p),L=hu(j,x.mode,L),L.return=x,x=L),c(x)):a(x,p)}return function(x,p,j,L){try{wn=0;var re=Ue(x,p,j,L);return Pl=null,re}catch(se){if(se===Il||se===Ui)throw se;var Ce=Nt(29,se,null,x.mode);return Ce.lanes=L,Ce.return=x,Ce}}}var jl=Er(!0),Cr=Er(!1),wa=!1;function Eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Me&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Mi(e),rr(e,null,a),t}return Ri(e,l,t,a),Mi(e)}function Bn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,pe(e,a)}}function Ru(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Mu=!1;function qn(){if(Mu){var e=Fl;if(e!==null)throw e}}function Yn(e,t,a,l){Mu=!1;var n=e.updateQueue;wa=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var g=r,A=g.next;g.next=null,c===null?i=A:c.next=A,c=g;var U=e.alternate;U!==null&&(U=U.updateQueue,r=U.lastBaseUpdate,r!==c&&(r===null?U.firstBaseUpdate=A:r.next=A,U.lastBaseUpdate=g))}if(i!==null){var q=n.baseState;c=0,U=A=g=null,r=i;do{var R=r.lane&-536870913,z=R!==r.lane;if(z?(Ne&R)===R:(l&R)===R){R!==0&&R===Wl&&(Mu=!0),U!==null&&(U=U.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var ne=e,ge=r;R=t;var Ue=a;switch(ge.tag){case 1:if(ne=ge.payload,typeof ne=="function"){q=ne.call(Ue,q,R);break e}q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ge.payload,R=typeof ne=="function"?ne.call(Ue,q,R):ne,R==null)break e;q=T({},q,R);break e;case 2:wa=!0}}R=r.callback,R!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[R]:z.push(R))}else z={lane:R,tag:r.tag,payload:r.payload,callback:r.callback,next:null},U===null?(A=U=z,g=q):U=U.next=z,c|=R;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;z=r,r=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);U===null&&(g=q),n.baseState=g,n.firstBaseUpdate=A,n.lastBaseUpdate=U,i===null&&(n.shared.lanes=0),Va|=c,e.lanes=c,e.memoizedState=q}}function Rr(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Mr(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Rr(a[e],t)}var en=h(null),Bi=h(0);function zr(e,t){e=Aa,Q(Bi,e),Q(en,t),Aa=e|t.baseLanes}function zu(){Q(Bi,Aa),Q(en,en.current)}function ku(){Aa=Bi.current,M(en),M(Bi)}var Tt=h(null),Bt=null;function qa(e){var t=e.alternate;Q(Ve,Ve.current&1),Q(Tt,e),Bt===null&&(t===null||en.current!==null||t.memoizedState!==null)&&(Bt=e)}function Du(e){Q(Ve,Ve.current),Q(Tt,e),Bt===null&&(Bt=e)}function kr(e){e.tag===22?(Q(Ve,Ve.current),Q(Tt,e),Bt===null&&(Bt=e)):Ya()}function Ya(){Q(Ve,Ve.current),Q(Tt,Tt.current)}function At(e){M(Tt),Bt===e&&(Bt=null),M(Ve)}var Ve=h(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Lc(a)||Bc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var va=0,ye=null,Oe=null,$e=null,Yi=!1,tn=!1,Nl=!1,Gi=0,Gn=0,an=null,Gm=0;function Ge(){throw Error(f(321))}function Ou(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!jt(e[a],t[a]))return!1;return!0}function _u(e,t,a,l,n,i){return va=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,S.H=e===null||e.memoizedState===null?gf:Ju,Nl=!1,i=a(l,n),Nl=!1,tn&&(i=Or(t,a,l,n)),Dr(e),i}function Dr(e){S.H=Qn;var t=Oe!==null&&Oe.next!==null;if(va=0,$e=Oe=ye=null,Yi=!1,Gn=0,an=null,t)throw Error(f(300));e===null||Ke||(e=e.dependencies,e!==null&&Di(e)&&(Ke=!0))}function Or(e,t,a,l){ye=e;var n=0;do{if(tn&&(an=null),Gn=0,tn=!1,25<=n)throw Error(f(301));if(n+=1,$e=Oe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}S.H=pf,i=t(a,l)}while(tn);return i}function Xm(){var e=S.H,t=e.useState()[0];return t=typeof t.then=="function"?Xn(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ye.flags|=1024),t}function Uu(){var e=Gi!==0;return Gi=0,e}function Hu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function wu(e){if(Yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yi=!1}va=0,$e=Oe=ye=null,tn=!1,Gn=Gi=0,an=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ye.memoizedState=$e=e:$e=$e.next=e,$e}function Qe(){if(Oe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=$e===null?ye.memoizedState:$e.next;if(t!==null)$e=t,Oe=e;else{if(e===null)throw ye.alternate===null?Error(f(467)):Error(f(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},$e===null?ye.memoizedState=$e=e:$e=$e.next=e}return $e}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xn(e){var t=Gn;return Gn+=1,an===null&&(an=[]),e=Nr(an,e,t),t=ye,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,S.H=t===null||t.memoizedState===null?gf:Ju),e}function Vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xn(e);if(e.$$typeof===O)return nt(e)}throw Error(f(438,String(e)))}function Lu(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xi(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=K;return t.index++,a}function ya(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Qe();return Bu(t,Oe,e)}function Bu(e,t,a){var l=e.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var r=c=null,g=null,A=t,U=!1;do{var q=A.lane&-536870913;if(q!==A.lane?(Ne&q)===q:(va&q)===q){var R=A.revertLane;if(R===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),q===Wl&&(U=!0);else if((va&R)===R){A=A.next,R===Wl&&(U=!0);continue}else q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},g===null?(r=g=q,c=i):g=g.next=q,ye.lanes|=R,Va|=R;q=A.action,Nl&&a(i,q),i=A.hasEagerState?A.eagerState:a(i,q)}else R={lane:q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},g===null?(r=g=R,c=i):g=g.next=R,ye.lanes|=q,Va|=q;A=A.next}while(A!==null&&A!==t);if(g===null?c=i:g.next=r,!jt(i,e.memoizedState)&&(Ke=!0,U&&(a=Fl,a!==null)))throw a;e.memoizedState=i,e.baseState=c,e.baseQueue=g,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function qu(e){var t=Qe(),a=t.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);jt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function _r(e,t,a){var l=ye,n=Qe(),i=Ae;if(i){if(a===void 0)throw Error(f(407));a=a()}else a=t();var c=!jt((Oe||n).memoizedState,a);if(c&&(n.memoizedState=a,Ke=!0),n=n.queue,Xu(wr.bind(null,l,n,e),[e]),n.getSnapshot!==t||c||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,ln(9,{destroy:void 0},Hr.bind(null,l,n,a,t),null),we===null)throw Error(f(349));i||(va&127)!==0||Ur(l,t,a)}return a}function Ur(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=Xi(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Hr(e,t,a,l){t.value=a,t.getSnapshot=l,Lr(t)&&Br(e)}function wr(e,t,a){return a(function(){Lr(t)&&Br(e)})}function Lr(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!jt(e,a)}catch{return!0}}function Br(e){var t=ml(e,2);t!==null&&St(t,e,2)}function Yu(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Nl){Wt(!0);try{a()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t}function qr(e,t,a,l){return e.baseState=a,Bu(e,Oe,typeof l=="function"?l:ya)}function Vm(e,t,a,l,n){if(Ki(e))throw Error(f(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};S.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Yr(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Yr(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=S.T,c={};S.T=c;try{var r=a(n,l),g=S.S;g!==null&&g(c,r),Gr(e,t,r)}catch(A){Gu(e,t,A)}finally{i!==null&&c.types!==null&&(i.types=c.types),S.T=i}}else try{i=a(n,l),Gr(e,t,i)}catch(A){Gu(e,t,A)}}function Gr(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Xr(e,t,l)},function(l){return Gu(e,t,l)}):Xr(e,t,a)}function Xr(e,t,a){t.status="fulfilled",t.value=a,Vr(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Yr(e,a)))}function Gu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Vr(t),t=t.next;while(t!==l)}e.action=null}function Vr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qr(e,t){return t}function Zr(e,t){if(Ae){var a=we.formState;if(a!==null){e:{var l=ye;if(Ae){if(Le){t:{for(var n=Le,i=Lt;n.nodeType!==8;){if(!i){n=null;break t}if(n=qt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Le=qt(n.nextSibling),l=n.data==="F!";break e}}Ua(l)}l=!1}l&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qr,lastRenderedState:t},a.queue=l,a=df.bind(null,ye,l),l.dispatch=a,l=Yu(!1),i=Ku.bind(null,ye,!1,l.queue),l=gt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Vm.bind(null,ye,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function $r(e){var t=Qe();return Kr(t,Oe,e)}function Kr(e,t,a){if(t=Bu(e,t,Qr)[0],e=Qi(ya)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Xn(t)}catch(c){throw c===Il?Ui:c}else l=t;t=Qe();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,ln(9,{destroy:void 0},Qm.bind(null,n,a),null)),[l,i,e]}function Qm(e,t){e.action=t}function Jr(e){var t=Qe(),a=Oe;if(a!==null)return Kr(t,a,e);Qe(),t=t.memoizedState,a=Qe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ln(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Xi(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Wr(){return Qe().memoizedState}function Zi(e,t,a,l){var n=gt();ye.flags|=e,n.memoizedState=ln(1|t,{destroy:void 0},a,l===void 0?null:l)}function $i(e,t,a,l){var n=Qe();l=l===void 0?null:l;var i=n.memoizedState.inst;Oe!==null&&l!==null&&Ou(l,Oe.memoizedState.deps)?n.memoizedState=ln(t,i,a,l):(ye.flags|=e,n.memoizedState=ln(1|t,i,a,l))}function Fr(e,t){Zi(8390656,8,e,t)}function Xu(e,t){$i(2048,8,e,t)}function Zm(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Xi(),ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ir(e){var t=Qe().memoizedState;return Zm({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function Pr(e,t){return $i(4,2,e,t)}function ef(e,t){return $i(4,4,e,t)}function tf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function af(e,t,a){a=a!=null?a.concat([e]):null,$i(4,4,tf.bind(null,t,e),a)}function Vu(){}function lf(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Ou(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function nf(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Ou(t,l[1]))return l[0];if(l=e(),Nl){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[l,t],l}function Qu(e,t,a){return a===void 0||(va&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=sd(),ye.lanes|=e,Va|=e,a)}function sf(e,t,a,l){return jt(a,t)?a:en.current!==null?(e=Qu(e,a,l),jt(e,t)||(Ke=!0),e):(va&42)===0||(va&1073741824)!==0&&(Ne&261930)===0?(Ke=!0,e.memoizedState=a):(e=sd(),ye.lanes|=e,Va|=e,t)}function uf(e,t,a,l,n){var i=v.p;v.p=i!==0&&8>i?i:8;var c=S.T,r={};S.T=r,Ku(e,!1,t,a);try{var g=n(),A=S.S;if(A!==null&&A(r,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var U=Ym(g,l);Vn(e,t,U,Rt(e))}else Vn(e,t,l,Rt(e))}catch(q){Vn(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{v.p=i,c!==null&&r.types!==null&&(c.types=r.types),S.T=c}}function $m(){}function Zu(e,t,a,l){if(e.tag!==5)throw Error(f(476));var n=cf(e).queue;uf(e,n,t,V,a===null?$m:function(){return of(e),a(l)})}function cf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:V},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function of(e){var t=cf(e);t.next===null&&(t=e.alternate.memoizedState),Vn(e,t.next.queue,{},Rt())}function $u(){return nt(ui)}function rf(){return Qe().memoizedState}function ff(){return Qe().memoizedState}function Km(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=La(a);var l=Ba(t,e,a);l!==null&&(St(l,t,a),Bn(l,t,a)),t={cache:ju()},e.payload=t;return}t=t.return}}function Jm(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?hf(t,a):(a=fu(e,t,a,l),a!==null&&(St(a,e,l),mf(a,t,l)))}function df(e,t,a){var l=Rt();Vn(e,t,a,l)}function Vn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))hf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,r=i(c,a);if(n.hasEagerState=!0,n.eagerState=r,jt(r,c))return Ri(e,t,n,0),we===null&&Ci(),!1}catch{}if(a=fu(e,t,n,l),a!==null)return St(a,e,l),mf(a,t,l),!0}return!1}function Ku(e,t,a,l){if(l={lane:2,revertLane:Ec(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(f(479))}else t=fu(e,a,l,2),t!==null&&St(t,e,2)}function Ki(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function hf(e,t){tn=Yi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function mf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,pe(e,a)}}var Qn={readContext:nt,use:Vi,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};Qn.useEffectEvent=Ge;var gf={readContext:nt,use:Vi,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Fr,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Zi(4194308,4,tf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var a=gt();t=t===void 0?null:t;var l=e();if(Nl){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=gt();if(a!==void 0){var n=a(t);if(Nl){Wt(!0);try{a(t)}finally{Wt(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Jm.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Yu(e);var t=e.queue,a=df.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vu,useDeferredValue:function(e,t){var a=gt();return Qu(a,e,t)},useTransition:function(){var e=Yu(!1);return e=uf.bind(null,ye,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ye,n=gt();if(Ae){if(a===void 0)throw Error(f(407));a=a()}else{if(a=t(),we===null)throw Error(f(349));(Ne&127)!==0||Ur(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,Fr(wr.bind(null,l,i,e),[e]),l.flags|=2048,ln(9,{destroy:void 0},Hr.bind(null,l,i,a,t),null),a},useId:function(){var e=gt(),t=we.identifierPrefix;if(Ae){var a=ea,l=Pt;a=(l&~(1<<32-dt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Gm++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$u,useFormState:Zr,useActionState:Zr,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ku.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Lu,useCacheRefresh:function(){return gt().memoizedState=Km.bind(null,ye)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((Me&2)!==0)throw Error(f(440));return a.impl.apply(void 0,arguments)}}},Ju={readContext:nt,use:Vi,useCallback:lf,useContext:nt,useEffect:Xu,useImperativeHandle:af,useInsertionEffect:Pr,useLayoutEffect:ef,useMemo:nf,useReducer:Qi,useRef:Wr,useState:function(){return Qi(ya)},useDebugValue:Vu,useDeferredValue:function(e,t){var a=Qe();return sf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Qi(ya)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:_r,useId:rf,useHostTransitionStatus:$u,useFormState:$r,useActionState:$r,useOptimistic:function(e,t){var a=Qe();return qr(a,Oe,e,t)},useMemoCache:Lu,useCacheRefresh:ff};Ju.useEffectEvent=Ir;var pf={readContext:nt,use:Vi,useCallback:lf,useContext:nt,useEffect:Xu,useImperativeHandle:af,useInsertionEffect:Pr,useLayoutEffect:ef,useMemo:nf,useReducer:qu,useRef:Wr,useState:function(){return qu(ya)},useDebugValue:Vu,useDeferredValue:function(e,t){var a=Qe();return Oe===null?Qu(a,e,t):sf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=qu(ya)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:_r,useId:rf,useHostTransitionStatus:$u,useFormState:Jr,useActionState:Jr,useOptimistic:function(e,t){var a=Qe();return Oe!==null?qr(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Lu,useCacheRefresh:ff};pf.useEffectEvent=Ir;function Wu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:T({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=La(l);n.payload=t,a!=null&&(n.callback=a),t=Ba(e,n,l),t!==null&&(St(t,e,l),Bn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=La(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ba(e,n,l),t!==null&&(St(t,e,l),Bn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=La(a);l.tag=2,t!=null&&(l.callback=t),t=Ba(e,l,a),t!==null&&(St(t,e,a),Bn(t,e,a))}};function vf(e,t,a,l,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,c):t.prototype&&t.prototype.isPureReactComponent?!kn(a,l)||!kn(n,i):!0}function yf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Fu.enqueueReplaceState(t,t.state,null)}function Tl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=T({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function xf(e){Ei(e)}function bf(e){console.error(e)}function Sf(e){Ei(e)}function Ji(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function jf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Iu(e,t,a){return a=La(a),a.tag=3,a.payload={element:null},a.callback=function(){Ji(e,t)},a}function Nf(e){return e=La(e),e.tag=3,e}function Tf(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){jf(t,a,l)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){jf(t,a,l),typeof n!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var r=l.stack;this.componentDidCatch(l.value,{componentStack:r!==null?r:""})})}function Wm(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Jl(t,a,n,!0),a=Tt.current,a!==null){switch(a.tag){case 31:case 13:return Bt===null?us():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Nc(e,l,n)),!1;case 22:return a.flags|=65536,l===Hi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Nc(e,l,n)),!1}throw Error(f(435,a.tag))}return Nc(e,l,n),us(),!1}if(Ae)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==vu&&(e=Error(f(422),{cause:l}),_n(Ut(e,a)))):(l!==vu&&(t=Error(f(423),{cause:l}),_n(Ut(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Ut(l,a),n=Iu(e.stateNode,l,n),Ru(e,n),Xe!==4&&(Xe=2)),!1;var i=Error(f(520),{cause:l});if(i=Ut(i,a),Pn===null?Pn=[i]:Pn.push(i),Xe!==4&&(Xe=2),t===null)return!0;l=Ut(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Iu(a.stateNode,l,e),Ru(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Qa===null||!Qa.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Nf(n),Tf(n,e,a,l),Ru(a,n),!1}a=a.return}while(a!==null);return!1}var Pu=Error(f(461)),Ke=!1;function it(e,t,a,l){t.child=e===null?Cr(t,null,a,l):jl(t,e.child,a,l)}function Af(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var c={};for(var r in l)r!=="ref"&&(c[r]=l[r])}else c=l;return yl(t),l=_u(e,t,a,c,i,n),r=Uu(),e!==null&&!Ke?(Hu(e,t,n),xa(e,t,n)):(Ae&&r&&gu(t),t.flags|=1,it(e,t,l,n),t.child)}function Ef(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!du(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Cf(e,t,i,l,n)):(e=zi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!uc(e,n)){var c=i.memoizedProps;if(a=a.compare,a=a!==null?a:kn,a(c,l)&&e.ref===t.ref)return xa(e,t,n)}return t.flags|=1,e=ha(i,l),e.ref=t.ref,e.return=t,t.child=e}function Cf(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(kn(i,l)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=l=i,uc(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,xa(e,t,n)}return ec(e,t,a,l,n)}function Rf(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return Mf(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_i(t,i!==null?i.cachePool:null),i!==null?zr(t,i):zu(),kr(t);else return l=t.lanes=536870912,Mf(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(_i(t,i.cachePool),zr(t,i),Ya(),t.memoizedState=null):(e!==null&&_i(t,null),zu(),Ya());return it(e,t,n,a),t.child}function Zn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mf(e,t,a,l,n){var i=Tu();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&_i(t,null),zu(),kr(t),e!==null&&Jl(e,t,l,!0),t.childLanes=n,null}function Wi(e,t){return t=Ii({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zf(e,t,a){return jl(t,e.child,null,a),e=Wi(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Fm(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(l.mode==="hidden")return e=Wi(t,l),t.lanes=536870912,Zn(null,e);if(Du(t),(e=Le)?(e=Gd(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=dr(e),a.return=t,t.child=a,lt=t,Le=null)):e=null,e===null)throw Ua(t);return t.lanes=536870912,null}return Wi(t,l)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Du(t),n)if(t.flags&256)t.flags&=-257,t=zf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Ke||Jl(e,t,a,!1),n=(a&e.childLanes)!==0,Ke||n){if(l=we,l!==null&&(c=He(l,a),c!==0&&c!==i.retryLane))throw i.retryLane=c,ml(e,c),St(l,e,c),Pu;us(),t=zf(e,t,a)}else e=i.treeContext,Le=qt(c.nextSibling),lt=t,Ae=!0,_a=null,Lt=!1,e!==null&&gr(t,e),t=Wi(t,l),t.flags|=4096;return t}return e=ha(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(f(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ec(e,t,a,l,n){return yl(t),a=_u(e,t,a,l,void 0,n),l=Uu(),e!==null&&!Ke?(Hu(e,t,n),xa(e,t,n)):(Ae&&l&&gu(t),t.flags|=1,it(e,t,a,n),t.child)}function kf(e,t,a,l,n,i){return yl(t),t.updateQueue=null,a=Or(t,l,a,n),Dr(e),l=Uu(),e!==null&&!Ke?(Hu(e,t,i),xa(e,t,i)):(Ae&&l&&gu(t),t.flags|=1,it(e,t,a,i),t.child)}function Df(e,t,a,l,n){if(yl(t),t.stateNode===null){var i=Ql,c=a.contextType;typeof c=="object"&&c!==null&&(i=nt(c)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Fu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Eu(t),c=a.contextType,i.context=typeof c=="object"&&c!==null?nt(c):Ql,i.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(Wu(t,a,c,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Fu.enqueueReplaceState(i,i.state,null),Yn(t,l,i,n),qn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var r=t.memoizedProps,g=Tl(a,r);i.props=g;var A=i.context,U=a.contextType;c=Ql,typeof U=="object"&&U!==null&&(c=nt(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,U||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||A!==c)&&yf(t,i,l,c),wa=!1;var R=t.memoizedState;i.state=R,Yn(t,l,i,n),qn(),A=t.memoizedState,r||R!==A||wa?(typeof q=="function"&&(Wu(t,a,q,l),A=t.memoizedState),(g=wa||vf(t,a,g,l,R,A,c))?(U||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"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=A),i.props=l,i.state=A,i.context=c,l=g):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,Cu(e,t),c=t.memoizedProps,U=Tl(a,c),i.props=U,q=t.pendingProps,R=i.context,A=a.contextType,g=Ql,typeof A=="object"&&A!==null&&(g=nt(A)),r=a.getDerivedStateFromProps,(A=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==q||R!==g)&&yf(t,i,l,g),wa=!1,R=t.memoizedState,i.state=R,Yn(t,l,i,n),qn();var z=t.memoizedState;c!==q||R!==z||wa||e!==null&&e.dependencies!==null&&Di(e.dependencies)?(typeof r=="function"&&(Wu(t,a,r,l),z=t.memoizedState),(U=wa||vf(t,a,U,l,R,z,g)||e!==null&&e.dependencies!==null&&Di(e.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,z,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,z,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),i.props=l,i.state=z,i.context=g,l=U):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,Fi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=jl(t,e.child,null,n),t.child=jl(t,null,a,n)):it(e,t,a,n),t.memoizedState=i.state,e=t.child):e=xa(e,t,n),e}function Of(e,t,a,l){return pl(),t.flags|=256,it(e,t,a,l),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(e){return{baseLanes:e,cachePool:Sr()}}function lc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ct),e}function _f(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(n?qa(t):Ya(),(e=Le)?(e=Gd(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=dr(e),a.return=t,t.child=a,lt=t,Le=null)):e=null,e===null)throw Ua(t);return Bc(e)?t.lanes=32:t.lanes=536870912,null}var r=l.children;return l=l.fallback,n?(Ya(),n=t.mode,r=Ii({mode:"hidden",children:r},n),l=gl(l,n,a,null),r.return=t,l.return=t,r.sibling=l,t.child=r,l=t.child,l.memoizedState=ac(a),l.childLanes=lc(e,c,a),t.memoizedState=tc,Zn(null,l)):(qa(t),nc(t,r))}var g=e.memoizedState;if(g!==null&&(r=g.dehydrated,r!==null)){if(i)t.flags&256?(qa(t),t.flags&=-257,t=ic(e,t,a)):t.memoizedState!==null?(Ya(),t.child=e.child,t.flags|=128,t=null):(Ya(),r=l.fallback,n=t.mode,l=Ii({mode:"visible",children:l.children},n),r=gl(r,n,a,null),r.flags|=2,l.return=t,r.return=t,l.sibling=r,t.child=l,jl(t,e.child,null,a),l=t.child,l.memoizedState=ac(a),l.childLanes=lc(e,c,a),t.memoizedState=tc,t=Zn(null,l));else if(qa(t),Bc(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var A=c.dgst;c=A,l=Error(f(419)),l.stack="",l.digest=c,_n({value:l,source:null,stack:null}),t=ic(e,t,a)}else if(Ke||Jl(e,t,a,!1),c=(a&e.childLanes)!==0,Ke||c){if(c=we,c!==null&&(l=He(c,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,ml(e,l),St(c,e,l),Pu;Lc(r)||us(),t=ic(e,t,a)}else Lc(r)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Le=qt(r.nextSibling),lt=t,Ae=!0,_a=null,Lt=!1,e!==null&&gr(t,e),t=nc(t,l.children),t.flags|=4096);return t}return n?(Ya(),r=l.fallback,n=t.mode,g=e.child,A=g.sibling,l=ha(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,A!==null?r=ha(A,r):(r=gl(r,n,a,null),r.flags|=2),r.return=t,l.return=t,l.sibling=r,t.child=l,Zn(null,l),l=t.child,r=e.child.memoizedState,r===null?r=ac(a):(n=r.cachePool,n!==null?(g=Ze._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=Sr(),r={baseLanes:r.baseLanes|a,cachePool:n}),l.memoizedState=r,l.childLanes=lc(e,c,a),t.memoizedState=tc,Zn(e.child,l)):(qa(t),a=e.child,e=a.sibling,a=ha(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function nc(e,t){return t=Ii({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ii(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function ic(e,t,a){return jl(t,e.child,null,a),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),bu(e.return,t,a)}function sc(e,t,a,l,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=n,c.treeForkCount=i)}function Hf(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var c=Ve.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,Q(Ve,c),it(e,t,l,a),l=Ae?On:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uf(e,a,t);else if(e.tag===19)Uf(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&qi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),sc(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}sc(t,!0,a,null,i,l);break;case"together":sc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function xa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Va|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Jl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,a=ha(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ha(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function uc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Di(e)))}function Im(e,t,a){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),Ha(t,Ze,e.memoizedState.cache),pl();break;case 27:case 5:Kt(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:Ha(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Du(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(qa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?_f(e,t,a):(qa(t),e=xa(e,t,a),e!==null?e.sibling:null);qa(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Jl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Hf(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Q(Ve,Ve.current),l)break;return null;case 22:return t.lanes=0,Rf(e,t,a,t.pendingProps);case 24:Ha(t,Ze,e.memoizedState.cache)}return xa(e,t,a)}function wf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!uc(e,a)&&(t.flags&128)===0)return Ke=!1,Im(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,Ae&&(t.flags&1048576)!==0&&mr(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bl(t.elementType),t.type=e,typeof e=="function")du(e)?(l=Tl(e,l),t.tag=1,t=Df(null,t,e,l,a)):(t.tag=0,t=ec(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===ie){t.tag=11,t=Af(null,t,e,l,a);break e}else if(n===F){t.tag=14,t=Ef(null,t,e,l,a);break e}}throw t=le(e)||e,Error(f(306,t,""))}}return t;case 0:return ec(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=Tl(l,t.pendingProps),Df(e,t,l,n,a);case 3:e:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(f(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,Cu(e,t),Yn(t,l,null,a);var c=t.memoizedState;if(l=c.cache,Ha(t,Ze,l),l!==i.cache&&Su(t,[Ze],a,!0),qn(),l=c.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Of(e,t,l,a);break e}else if(l!==n){n=Ut(Error(f(424)),t),_n(n),t=Of(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Le=qt(e.firstChild),lt=t,Ae=!0,_a=null,Lt=!0,a=Cr(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(pl(),l===n){t=xa(e,t,a);break e}it(e,t,l,a)}t=t.child}return t;case 26:return Fi(e,t),e===null?(a=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,l=ms(me.current).createElement(a),l[We]=t,l[ut]=e,st(l,a,e),Pe(l),t.stateNode=l):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kt(t),e===null&&Ae&&(l=t.stateNode=Qd(t.type,t.pendingProps,me.current),lt=t,Lt=!0,n=Le,Ja(t.type)?(qc=n,Le=qt(l.firstChild)):Le=n),it(e,t,t.pendingProps.children,a),Fi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((n=l=Le)&&(l=Rg(l,t.type,t.pendingProps,Lt),l!==null?(t.stateNode=l,lt=t,Le=qt(l.firstChild),Lt=!1,n=!0):n=!1),n||Ua(t)),Kt(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,l=i.children,Uc(n,i)?l=null:c!==null&&Uc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=_u(e,t,Xm,null,null,a),ui._currentValue=n),Fi(e,t),it(e,t,l,a),t.child;case 6:return e===null&&Ae&&((e=a=Le)&&(a=Mg(a,t.pendingProps,Lt),a!==null?(t.stateNode=a,lt=t,Le=null,e=!0):e=!1),e||Ua(t)),null;case 13:return _f(e,t,a);case 4:return qe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=jl(t,null,l,a):it(e,t,l,a),t.child;case 11:return Af(e,t,t.type,t.pendingProps,a);case 7:return it(e,t,t.pendingProps,a),t.child;case 8:return it(e,t,t.pendingProps.children,a),t.child;case 12:return it(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ha(t,t.type,l.value),it(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,yl(t),n=nt(n),l=l(n),t.flags|=1,it(e,t,l,a),t.child;case 14:return Ef(e,t,t.type,t.pendingProps,a);case 15:return Cf(e,t,t.type,t.pendingProps,a);case 19:return Hf(e,t,a);case 31:return Fm(e,t,a);case 22:return Rf(e,t,a,t.pendingProps);case 24:return yl(t),l=nt(Ze),e===null?(n=Tu(),n===null&&(n=we,i=ju(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},Eu(t),Ha(t,Ze,n)):((e.lanes&a)!==0&&(Cu(e,t),Yn(t,null,null,a),qn()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ha(t,Ze,l)):(l=i.cache,Ha(t,Ze,l),l!==n.cache&&Su(t,[Ze],a,!0))),it(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function ba(e){e.flags|=4}function cc(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(rd())e.flags|=8192;else throw Sl=Hi,Au}else e.flags&=-16777217}function Lf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pd(t))if(rd())e.flags|=8192;else throw Sl=Hi,Au}function Pi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kt():536870912,e.lanes|=t,cn|=t)}function $n(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Pm(e,t,a){var l=t.pendingProps;switch(pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pa(Ze),ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?ba(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yu())),Be(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(ba(t),i!==null?(Be(t),Lf(t,i)):(Be(t),cc(t,n,null,l,a))):i?i!==e.memoizedState?(ba(t),Be(t),Lf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ba(t),Be(t),cc(t,n,e,l,a)),null;case 27:if(la(t),a=me.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return Be(t),null}e=ae.current,Kl(t)?pr(t):(e=Qd(n,l,a),t.stateNode=e,ba(t))}return Be(t),null;case 5:if(la(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return Be(t),null}if(i=ae.current,Kl(t))pr(t);else{var c=ms(me.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?c.createElement(n,{is:l.is}):c.createElement(n)}}i[We]=t,i[ut]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(st(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ba(t)}}return Be(t),cc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ba(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(f(166));if(e=me.current,Kl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=lt,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[We]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||_d(e.nodeValue,a)),e||Ua(t,!0)}else e=ms(e).createTextNode(l),e[We]=t,t.stateNode=e}return Be(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Kl(t),a!==null){if(e===null){if(!l)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[We]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Kl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(f(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[We]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),n=!1}else n=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Pi(t,t.updateQueue),Be(t),null);case 4:return ze(),e===null&&zc(t.stateNode.containerInfo),Be(t),null;case 10:return pa(t.type),Be(t),null;case 19:if(M(Ve),l=t.memoizedState,l===null)return Be(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)$n(l,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=qi(e),i!==null){for(t.flags|=128,$n(l,!1),e=i.updateQueue,t.updateQueue=e,Pi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)fr(a,e),a=a.sibling;return Q(Ve,Ve.current&1|2),Ae&&ma(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&rt()>ns&&(t.flags|=128,n=!0,$n(l,!1),t.lanes=4194304)}else{if(!n)if(e=qi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Pi(t,e),$n(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Ae)return Be(t),null}else 2*rt()-l.renderingStartTime>ns&&a!==536870912&&(t.flags|=128,n=!0,$n(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=rt(),e.sibling=null,a=Ve.current,Q(Ve,n?a&1|2:a&1),Ae&&ma(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return At(t),ku(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&Pi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&M(xl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pa(Ze),Be(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function eg(e,t){switch(pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Ze),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return la(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(f(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(Ve),null;case 4:return ze(),null;case 10:return pa(t.type),null;case 22:case 23:return At(t),ku(),e!==null&&M(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Ze),null;case 25:return null;default:return null}}function Bf(e,t){switch(pu(t),t.tag){case 3:pa(Ze),ze();break;case 26:case 27:case 5:la(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:M(Ve);break;case 10:pa(t.type);break;case 22:case 23:At(t),ku(),e!==null&&M(xl);break;case 24:pa(Ze)}}function Kn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,c=a.inst;l=i(),c.destroy=l}a=a.next}while(a!==n)}}catch(r){De(t,t.return,r)}}function Ga(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var c=l.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,n=t;var g=a,A=r;try{A()}catch(U){De(n,g,U)}}}l=l.next}while(l!==i)}}catch(U){De(t,t.return,U)}}function qf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Mr(t,a)}catch(l){De(e,e.return,l)}}}function Yf(e,t,a){a.props=Tl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){De(e,t,l)}}function Jn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){De(e,t,n)}}function ta(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){De(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){De(e,t,n)}else a.current=null}function Gf(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){De(e,e.return,n)}}function oc(e,t,a){try{var l=e.stateNode;jg(l,e.type,a,t),l[ut]=t}catch(n){De(e,e.return,n)}}function Xf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ja(e.type)||e.tag===4}function rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ja(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=fa));else if(l!==4&&(l===27&&Ja(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(fc(e,t,a),e=e.sibling;e!==null;)fc(e,t,a),e=e.sibling}function es(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ja(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(es(e,t,a),e=e.sibling;e!==null;)es(e,t,a),e=e.sibling}function Vf(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);st(t,l,a),t[We]=e,t[ut]=a}catch(i){De(e,e.return,i)}}var Sa=!1,Je=!1,dc=!1,Qf=typeof WeakSet=="function"?WeakSet:Set,et=null;function tg(e,t){if(e=e.containerInfo,Oc=Ss,e=ar(e),iu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var c=0,r=-1,g=-1,A=0,U=0,q=e,R=null;t:for(;;){for(var z;q!==a||n!==0&&q.nodeType!==3||(r=c+n),q!==i||l!==0&&q.nodeType!==3||(g=c+l),q.nodeType===3&&(c+=q.nodeValue.length),(z=q.firstChild)!==null;)R=q,q=z;for(;;){if(q===e)break t;if(R===a&&++A===n&&(r=c),R===i&&++U===l&&(g=c),(z=q.nextSibling)!==null)break;q=R,R=q.parentNode}q=z}a=r===-1||g===-1?null:{start:r,end:g}}else a=null}a=a||{start:0,end:0}}else a=null;for(_c={focusedElem:e,selectionRange:a},Ss=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var ne=Tl(a.type,n);e=l.getSnapshotBeforeUpdate(ne,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ge){De(a,a.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)wc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Zf(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Na(e,a),l&4&&Kn(5,a);break;case 1:if(Na(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){De(a,a.return,c)}else{var n=Tl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){De(a,a.return,c)}}l&64&&qf(a),l&512&&Jn(a,a.return);break;case 3:if(Na(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Mr(e,t)}catch(c){De(a,a.return,c)}}break;case 27:t===null&&l&4&&Vf(a);case 26:case 5:Na(e,a),t===null&&l&4&&Gf(a),l&512&&Jn(a,a.return);break;case 12:Na(e,a);break;case 31:Na(e,a),l&4&&Jf(e,a);break;case 13:Na(e,a),l&4&&Wf(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=rg.bind(null,a),zg(e,a))));break;case 22:if(l=a.memoizedState!==null||Sa,!l){t=t!==null&&t.memoizedState!==null||Je,n=Sa;var i=Je;Sa=l,(Je=t)&&!i?Ta(e,a,(a.subtreeFlags&8772)!==0):Na(e,a),Sa=n,Je=i}break;case 30:break;default:Na(e,a)}}function $f(e){var t=e.alternate;t!==null&&(e.alternate=null,$f(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,vt=!1;function ja(e,t,a){for(a=a.child;a!==null;)Kf(e,t,a),a=a.sibling}function Kf(e,t,a){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(za,a)}catch{}switch(a.tag){case 26:Je||ta(a,t),ja(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Je||ta(a,t);var l=Ye,n=vt;Ja(a.type)&&(Ye=a.stateNode,vt=!1),ja(e,t,a),ni(a.stateNode),Ye=l,vt=n;break;case 5:Je||ta(a,t);case 6:if(l=Ye,n=vt,Ye=null,ja(e,t,a),Ye=l,vt=n,Ye!==null)if(vt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(i){De(a,t,i)}else try{Ye.removeChild(a.stateNode)}catch(i){De(a,t,i)}break;case 18:Ye!==null&&(vt?(e=Ye,qd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),pn(e)):qd(Ye,a.stateNode));break;case 4:l=Ye,n=vt,Ye=a.stateNode.containerInfo,vt=!0,ja(e,t,a),Ye=l,vt=n;break;case 0:case 11:case 14:case 15:Ga(2,a,t),Je||Ga(4,a,t),ja(e,t,a);break;case 1:Je||(ta(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Yf(a,t,l)),ja(e,t,a);break;case 21:ja(e,t,a);break;case 22:Je=(l=Je)||a.memoizedState!==null,ja(e,t,a),Je=l;break;default:ja(e,t,a)}}function Jf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pn(e)}catch(a){De(t,t.return,a)}}}function Wf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pn(e)}catch(a){De(t,t.return,a)}}function ag(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qf),t;default:throw Error(f(435,e.tag))}}function ts(e,t){var a=ag(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=fg.bind(null,e,l);l.then(n,n)}})}function yt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(Ja(r.type)){Ye=r.stateNode,vt=!1;break e}break;case 5:Ye=r.stateNode,vt=!1;break e;case 3:case 4:Ye=r.stateNode.containerInfo,vt=!0;break e}r=r.return}if(Ye===null)throw Error(f(160));Kf(i,c,n),Ye=null,vt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ff(t,e),t=t.sibling}var Qt=null;function Ff(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),xt(e),l&4&&(Ga(3,e,e.return),Kn(3,e),Ga(5,e,e.return));break;case 1:yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),l&64&&Sa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Qt;if(yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[jn]||i[We]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),st(i,l,a),i[We]=e,Pe(i),l=i;break e;case"link":var c=Fd("link","href",n).get(l+(a.href||""));if(c){for(var r=0;r<c.length;r++)if(i=c[r],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(r,1);break t}}i=n.createElement(l),st(i,l,a),n.head.appendChild(i);break;case"meta":if(c=Fd("meta","content",n).get(l+(a.content||""))){for(r=0;r<c.length;r++)if(i=c[r],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(r,1);break t}}i=n.createElement(l),st(i,l,a),n.head.appendChild(i);break;default:throw Error(f(468,l))}i[We]=e,Pe(i),l=i}e.stateNode=l}else Id(n,e.type,e.stateNode);else e.stateNode=Wd(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Id(n,e.type,e.stateNode):Wd(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&oc(e,e.memoizedProps,a.memoizedProps)}break;case 27:yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),a!==null&&l&4&&oc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(yt(t,e),xt(e),l&512&&(Je||a===null||ta(a,a.return)),e.flags&32){n=e.stateNode;try{Ll(n,"")}catch(ne){De(e,e.return,ne)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,oc(e,n,a!==null?a.memoizedProps:n)),l&1024&&(dc=!0);break;case 6:if(yt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(f(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ne){De(e,e.return,ne)}}break;case 3:if(vs=null,n=Qt,Qt=gs(t.containerInfo),yt(t,e),Qt=n,xt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{pn(t.containerInfo)}catch(ne){De(e,e.return,ne)}dc&&(dc=!1,If(e));break;case 4:l=Qt,Qt=gs(e.stateNode.containerInfo),yt(t,e),xt(e),Qt=l;break;case 12:yt(t,e),xt(e);break;case 31:yt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 13:yt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ls=rt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 22:n=e.memoizedState!==null;var g=a!==null&&a.memoizedState!==null,A=Sa,U=Je;if(Sa=A||n,Je=U||g,yt(t,e),Je=U,Sa=A,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||g||Sa||Je||Al(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){g=a=t;try{if(i=g.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=g.stateNode;var q=g.memoizedProps.style,R=q!=null&&q.hasOwnProperty("display")?q.display:null;r.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ne){De(g,g.return,ne)}}}else if(t.tag===6){if(a===null){g=t;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(ne){De(g,g.return,ne)}}}else if(t.tag===18){if(a===null){g=t;try{var z=g.stateNode;n?Yd(z,!0):Yd(g.stateNode,!1)}catch(ne){De(g,g.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,ts(e,a))));break;case 19:yt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 30:break;case 21:break;default:yt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Xf(l)){a=l;break}l=l.return}if(a==null)throw Error(f(160));switch(a.tag){case 27:var n=a.stateNode,i=rc(e);es(e,i,n);break;case 5:var c=a.stateNode;a.flags&32&&(Ll(c,""),a.flags&=-33);var r=rc(e);es(e,r,c);break;case 3:case 4:var g=a.stateNode.containerInfo,A=rc(e);fc(e,A,g);break;default:throw Error(f(161))}}catch(U){De(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function If(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;If(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zf(e,t.alternate,t),t=t.sibling}function Al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ga(4,t,t.return),Al(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Yf(t,t.return,a),Al(t);break;case 27:ni(t.stateNode);case 26:case 5:ta(t,t.return),Al(t);break;case 22:t.memoizedState===null&&Al(t);break;case 30:Al(t);break;default:Al(t)}e=e.sibling}}function Ta(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:Ta(n,i,a),Kn(4,i);break;case 1:if(Ta(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){De(l,l.return,A)}if(l=i,n=l.updateQueue,n!==null){var r=l.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)Rr(g[n],r)}catch(A){De(l,l.return,A)}}a&&c&64&&qf(i),Jn(i,i.return);break;case 27:Vf(i);case 26:case 5:Ta(n,i,a),a&&l===null&&c&4&&Gf(i),Jn(i,i.return);break;case 12:Ta(n,i,a);break;case 31:Ta(n,i,a),a&&c&4&&Jf(n,i);break;case 13:Ta(n,i,a),a&&c&4&&Wf(n,i);break;case 22:i.memoizedState===null&&Ta(n,i,a),Jn(i,i.return);break;case 30:break;default:Ta(n,i,a)}t=t.sibling}}function hc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Un(a))}function mc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Un(e))}function Zt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Pf(e,t,a,l),t=t.sibling}function Pf(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,a,l),n&2048&&Kn(9,t);break;case 1:Zt(e,t,a,l);break;case 3:Zt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Un(e)));break;case 12:if(n&2048){Zt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,r=i.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){De(t,t.return,g)}}else Zt(e,t,a,l);break;case 31:Zt(e,t,a,l);break;case 13:Zt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Zt(e,t,a,l):Wn(e,t):i._visibility&2?Zt(e,t,a,l):(i._visibility|=2,nn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&hc(c,t);break;case 24:Zt(e,t,a,l),n&2048&&mc(t.alternate,t);break;default:Zt(e,t,a,l)}}function nn(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,r=a,g=l,A=c.flags;switch(c.tag){case 0:case 11:case 15:nn(i,c,r,g,n),Kn(8,c);break;case 23:break;case 22:var U=c.stateNode;c.memoizedState!==null?U._visibility&2?nn(i,c,r,g,n):Wn(i,c):(U._visibility|=2,nn(i,c,r,g,n)),n&&A&2048&&hc(c.alternate,c);break;case 24:nn(i,c,r,g,n),n&&A&2048&&mc(c.alternate,c);break;default:nn(i,c,r,g,n)}t=t.sibling}}function Wn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Wn(a,l),n&2048&&hc(l.alternate,l);break;case 24:Wn(a,l),n&2048&&mc(l.alternate,l);break;default:Wn(a,l)}t=t.sibling}}var Fn=8192;function sn(e,t,a){if(e.subtreeFlags&Fn)for(e=e.child;e!==null;)ed(e,t,a),e=e.sibling}function ed(e,t,a){switch(e.tag){case 26:sn(e,t,a),e.flags&Fn&&e.memoizedState!==null&&Gg(a,Qt,e.memoizedState,e.memoizedProps);break;case 5:sn(e,t,a);break;case 3:case 4:var l=Qt;Qt=gs(e.stateNode.containerInfo),sn(e,t,a),Qt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Fn,Fn=16777216,sn(e,t,a),Fn=l):sn(e,t,a));break;default:sn(e,t,a)}}function td(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function In(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,ld(l,e)}td(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ad(e),e=e.sibling}function ad(e){switch(e.tag){case 0:case 11:case 15:In(e),e.flags&2048&&Ga(9,e,e.return);break;case 3:In(e);break;case 12:In(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):In(e);break;default:In(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,ld(l,e)}td(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ga(8,t,t.return),as(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function ld(e,t){for(;et!==null;){var a=et;switch(a.tag){case 0:case 11:case 15:Ga(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Un(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,et=l;else e:for(a=e;et!==null;){l=et;var n=l.sibling,i=l.return;if($f(l),l===a){et=null;break e}if(n!==null){n.return=i,et=n;break e}et=i}}}var lg={getCacheForType:function(e){var t=nt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Ze).controller.signal}},ng=typeof WeakMap=="function"?WeakMap:Map,Me=0,we=null,Se=null,Ne=0,ke=0,Et=null,Xa=!1,un=!1,gc=!1,Aa=0,Xe=0,Va=0,El=0,pc=0,Ct=0,cn=0,Pn=null,bt=null,vc=!1,ls=0,nd=0,ns=1/0,is=null,Qa=null,Fe=0,Za=null,on=null,Ea=0,yc=0,xc=null,id=null,ei=0,bc=null;function Rt(){return(Me&2)!==0&&Ne!==0?Ne&-Ne:S.T!==null?Ec():Dl()}function sd(){if(Ct===0)if((Ne&536870912)===0||Ae){var e=ca;ca<<=1,(ca&3932160)===0&&(ca=262144),Ct=e}else Ct=536870912;return e=Tt.current,e!==null&&(e.flags|=32),Ct}function St(e,t,a){(e===we&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(rn(e,0),$a(e,Ne,Ct,!1)),cl(e,a),((Me&2)===0||e!==we)&&(e===we&&((Me&2)===0&&(El|=a),Xe===4&&$a(e,Ne,Ct,!1)),aa(e))}function ud(e,t,a){if((Me&6)!==0)throw Error(f(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Gt(e,t),n=l?ug(e,t):jc(e,t,!0),i=l;do{if(n===0){un&&!l&&$a(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!ig(a)){n=jc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;n=Pn;var g=r.current.memoizedState.isDehydrated;if(g&&(rn(r,c).flags|=256),c=jc(r,c,!1),c!==2){if(gc&&!g){r.errorRecoveryDisabledLanes|=i,El|=i,n=4;break e}i=bt,bt=n,i!==null&&(bt===null?bt=i:bt.push.apply(bt,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){rn(e,0),$a(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:$a(l,t,Ct,!Xa);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(n=ls+300-rt(),10<n)){if($a(l,t,Ct,!Xa),sl(l,0,!0)!==0)break e;Ea=t,l.timeoutHandle=Ld(cd.bind(null,l,a,bt,is,vc,t,Ct,El,cn,Xa,i,"Throttled",-0,0),n);break e}cd(l,a,bt,is,vc,t,Ct,El,cn,Xa,i,null,-0,0)}}break}while(!0);aa(e)}function cd(e,t,a,l,n,i,c,r,g,A,U,q,R,z){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fa},ed(t,i,q);var ne=(i&62914560)===i?ls-rt():(i&4194048)===i?nd-rt():0;if(ne=Xg(q,ne),ne!==null){Ea=i,e.cancelPendingCommit=ne(pd.bind(null,e,t,i,a,l,n,c,r,g,U,q,null,R,z)),$a(e,i,c,!A);return}}pd(e,t,i,a,l,n,c,r,g)}function ig(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!jt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $a(e,t,a,l){t&=~pc,t&=~El,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-dt(n),c=1<<i;l[i]=-1,n&=~c}a!==0&&de(e,a,t)}function ss(){return(Me&6)===0?(ti(0),!1):!0}function Sc(){if(Se!==null){if(ke===0)var e=Se.return;else e=Se,ga=vl=null,wu(e),Pl=null,wn=0,e=Se;for(;e!==null;)Bf(e.alternate,e),e=e.return;Se=null}}function rn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ag(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ea=0,Sc(),we=e,Se=a=ha(e.current,null),Ne=t,ke=0,Et=null,Xa=!1,un=Gt(e,t),gc=!1,cn=Ct=pc=El=Va=Xe=0,bt=Pn=null,vc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-dt(l),i=1<<n;t|=e[n],l&=~i}return Aa=t,Ci(),a}function od(e,t){ye=null,S.H=Qn,t===Il||t===Ui?(t=Tr(),ke=3):t===Au?(t=Tr(),ke=4):ke=t===Pu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,Se===null&&(Xe=1,Ji(e,Ut(t,e.current)))}function rd(){var e=Tt.current;return e===null?!0:(Ne&4194048)===Ne?Bt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Bt:!1}function fd(){var e=S.H;return S.H=Qn,e===null?Qn:e}function dd(){var e=S.A;return S.A=lg,e}function us(){Xe=4,Xa||(Ne&4194048)!==Ne&&Tt.current!==null||(un=!0),(Va&134217727)===0&&(El&134217727)===0||we===null||$a(we,Ne,Ct,!1)}function jc(e,t,a){var l=Me;Me|=2;var n=fd(),i=dd();(we!==e||Ne!==t)&&(is=null,rn(e,t)),t=!1;var c=Xe;e:do try{if(ke!==0&&Se!==null){var r=Se,g=Et;switch(ke){case 8:Sc(),c=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var A=ke;if(ke=0,Et=null,fn(e,r,g,A),a&&un){c=0;break e}break;default:A=ke,ke=0,Et=null,fn(e,r,g,A)}}sg(),c=Xe;break}catch(U){od(e,U)}while(!0);return t&&e.shellSuspendCounter++,ga=vl=null,Me=l,S.H=n,S.A=i,Se===null&&(we=null,Ne=0,Ci()),c}function sg(){for(;Se!==null;)hd(Se)}function ug(e,t){var a=Me;Me|=2;var l=fd(),n=dd();we!==e||Ne!==t?(is=null,ns=rt()+500,rn(e,t)):un=Gt(e,t);e:do try{if(ke!==0&&Se!==null){t=Se;var i=Et;t:switch(ke){case 1:ke=0,Et=null,fn(e,t,i,1);break;case 2:case 9:if(jr(i)){ke=0,Et=null,md(t);break}t=function(){ke!==2&&ke!==9||we!==e||(ke=7),aa(e)},i.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:jr(i)?(ke=0,Et=null,md(t)):(ke=0,Et=null,fn(e,t,i,7));break;case 5:var c=null;switch(Se.tag){case 26:c=Se.memoizedState;case 5:case 27:var r=Se;if(c?Pd(c):r.stateNode.complete){ke=0,Et=null;var g=r.sibling;if(g!==null)Se=g;else{var A=r.return;A!==null?(Se=A,cs(A)):Se=null}break t}}ke=0,Et=null,fn(e,t,i,5);break;case 6:ke=0,Et=null,fn(e,t,i,6);break;case 8:Sc(),Xe=6;break e;default:throw Error(f(462))}}cg();break}catch(U){od(e,U)}while(!0);return ga=vl=null,S.H=l,S.A=n,Me=a,Se!==null?0:(we=null,Ne=0,Ci(),Xe)}function cg(){for(;Se!==null&&!sa();)hd(Se)}function hd(e){var t=wf(e.alternate,e,Aa);e.memoizedProps=e.pendingProps,t===null?cs(e):Se=t}function md(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=kf(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=kf(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:wu(t);default:Bf(a,t),t=Se=fr(t,Aa),t=wf(a,t,Aa)}e.memoizedProps=e.pendingProps,t===null?cs(e):Se=t}function fn(e,t,a,l){ga=vl=null,wu(t),Pl=null,wn=0;var n=t.return;try{if(Wm(e,n,t,a,Ne)){Xe=1,Ji(e,Ut(a,e.current)),Se=null;return}}catch(i){if(n!==null)throw Se=n,i;Xe=1,Ji(e,Ut(a,e.current)),Se=null;return}t.flags&32768?(Ae||l===1?e=!0:un||(Ne&536870912)!==0?e=!1:(Xa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Tt.current,l!==null&&l.tag===13&&(l.flags|=16384))),gd(t,e)):cs(t)}function cs(e){var t=e;do{if((t.flags&32768)!==0){gd(t,Xa);return}e=t.return;var a=Pm(t.alternate,t,Aa);if(a!==null){Se=a;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Xe===0&&(Xe=5)}function gd(e,t){do{var a=eg(e.alternate,e);if(a!==null){a.flags&=32767,Se=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=a}while(e!==null);Xe=6,Se=null}function pd(e,t,a,l,n,i,c,r,g){e.cancelPendingCommit=null;do os();while(Fe!==0);if((Me&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(i=t.lanes|t.childLanes,i|=ru,w(e,a,i,c,r,g),e===we&&(Se=we=null,Ne=0),on=t,Za=e,Ea=a,yc=i,xc=n,id=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dg(Ma,function(){return Sd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=S.T,S.T=null,n=v.p,v.p=2,c=Me,Me|=4;try{tg(e,t,a)}finally{Me=c,v.p=n,S.T=l}}Fe=1,vd(),yd(),xd()}}function vd(){if(Fe===1){Fe=0;var e=Za,t=on,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=S.T,S.T=null;var l=v.p;v.p=2;var n=Me;Me|=4;try{Ff(t,e);var i=_c,c=ar(e.containerInfo),r=i.focusedElem,g=i.selectionRange;if(c!==r&&r&&r.ownerDocument&&tr(r.ownerDocument.documentElement,r)){if(g!==null&&iu(r)){var A=g.start,U=g.end;if(U===void 0&&(U=A),"selectionStart"in r)r.selectionStart=A,r.selectionEnd=Math.min(U,r.value.length);else{var q=r.ownerDocument||document,R=q&&q.defaultView||window;if(R.getSelection){var z=R.getSelection(),ne=r.textContent.length,ge=Math.min(g.start,ne),Ue=g.end===void 0?ge:Math.min(g.end,ne);!z.extend&&ge>Ue&&(c=Ue,Ue=ge,ge=c);var x=er(r,ge),p=er(r,Ue);if(x&&p&&(z.rangeCount!==1||z.anchorNode!==x.node||z.anchorOffset!==x.offset||z.focusNode!==p.node||z.focusOffset!==p.offset)){var j=q.createRange();j.setStart(x.node,x.offset),z.removeAllRanges(),ge>Ue?(z.addRange(j),z.extend(p.node,p.offset)):(j.setEnd(p.node,p.offset),z.addRange(j))}}}}for(q=[],z=r;z=z.parentNode;)z.nodeType===1&&q.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<q.length;r++){var L=q[r];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Ss=!!Oc,_c=Oc=null}finally{Me=n,v.p=l,S.T=a}}e.current=t,Fe=2}}function yd(){if(Fe===2){Fe=0;var e=Za,t=on,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=S.T,S.T=null;var l=v.p;v.p=2;var n=Me;Me|=4;try{Zf(e,t.alternate,t)}finally{Me=n,v.p=l,S.T=a}}Fe=3}}function xd(){if(Fe===4||Fe===3){Fe=0,ua();var e=Za,t=on,a=Ea,l=id;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,on=Za=null,bd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Qa=null),ka(a),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(za,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=S.T,n=v.p,v.p=2,S.T=null;try{for(var i=e.onRecoverableError,c=0;c<l.length;c++){var r=l[c];i(r.value,{componentStack:r.stack})}}finally{S.T=t,v.p=n}}(Ea&3)!==0&&os(),aa(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===bc?ei++:(ei=0,bc=e):ei=0,ti(0)}}function bd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Un(t)))}function os(){return vd(),yd(),xd(),Sd()}function Sd(){if(Fe!==5)return!1;var e=Za,t=yc;yc=0;var a=ka(Ea),l=S.T,n=v.p;try{v.p=32>a?32:a,S.T=null,a=xc,xc=null;var i=Za,c=Ea;if(Fe=0,on=Za=null,Ea=0,(Me&6)!==0)throw Error(f(331));var r=Me;if(Me|=4,ad(i.current),Pf(i,i.current,c,a),Me=r,ti(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(za,i)}catch{}return!0}finally{v.p=n,S.T=l,bd(e,t)}}function jd(e,t,a){t=Ut(a,t),t=Iu(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(cl(e,2),aa(e))}function De(e,t,a){if(e.tag===3)jd(e,e,a);else for(;t!==null;){if(t.tag===3){jd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qa===null||!Qa.has(l))){e=Ut(a,e),a=Nf(2),l=Ba(t,a,2),l!==null&&(Tf(a,l,t,e),cl(l,2),aa(l));break}}t=t.return}}function Nc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new ng;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(gc=!0,n.add(a),e=og.bind(null,e,t,a),t.then(e,e))}function og(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,we===e&&(Ne&a)===a&&(Xe===4||Xe===3&&(Ne&62914560)===Ne&&300>rt()-ls?(Me&2)===0&&rn(e,0):pc|=a,cn===Ne&&(cn=0)),aa(e)}function Nd(e,t){t===0&&(t=kt()),e=ml(e,t),e!==null&&(cl(e,t),aa(e))}function rg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Nd(e,a)}function fg(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(f(314))}l!==null&&l.delete(t),Nd(e,a)}function dg(e,t){return bn(e,t)}var rs=null,dn=null,Tc=!1,fs=!1,Ac=!1,Ka=0;function aa(e){e!==dn&&e.next===null&&(dn===null?rs=dn=e:dn=dn.next=e),fs=!0,Tc||(Tc=!0,mg())}function ti(e,t){if(!Ac&&fs){Ac=!0;do for(var a=!1,l=rs;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var c=l.suspendedLanes,r=l.pingedLanes;i=(1<<31-dt(42|e)+1)-1,i&=n&~(c&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Cd(l,i))}else i=Ne,i=sl(l,l===we?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Gt(l,i)||(a=!0,Cd(l,i));l=l.next}while(a);Ac=!1}}function hg(){Td()}function Td(){fs=Tc=!1;var e=0;Ka!==0&&Tg()&&(e=Ka);for(var t=rt(),a=null,l=rs;l!==null;){var n=l.next,i=Ad(l,t);i===0?(l.next=null,a===null?rs=n:a.next=n,n===null&&(dn=a)):(a=l,(e!==0||(i&3)!==0)&&(fs=!0)),l=n}Fe!==0&&Fe!==5||ti(e),Ka!==0&&(Ka=0)}function Ad(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-dt(i),r=1<<c,g=n[c];g===-1?((r&a)===0||(r&l)!==0)&&(n[c]=oa(r,t)):g<=t&&(e.expiredLanes|=r),i&=~r}if(t=we,a=Ne,a=sl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&nl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Gt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&nl(l),ka(a)){case 2:case 8:a=mi;break;case 32:a=Ma;break;case 268435456:a=Ml;break;default:a=Ma}return l=Ed.bind(null,e),a=bn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&nl(l),e.callbackPriority=2,e.callbackNode=null,2}function Ed(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(os()&&e.callbackNode!==a)return null;var l=Ne;return l=sl(e,e===we?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(ud(e,l,t),Ad(e,rt()),e.callbackNode!=null&&e.callbackNode===a?Ed.bind(null,e):null)}function Cd(e,t){if(os())return null;ud(e,t,!0)}function mg(){Eg(function(){(Me&6)!==0?bn(il,hg):Td()})}function Ec(){if(Ka===0){var e=Wl;e===0&&(e=kl,kl<<=1,(kl&261888)===0&&(kl=256)),Ka=e}return Ka}function Rd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function Md(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function gg(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=Rd((n[ut]||null).action),c=l.submitter;c&&(t=(t=c[ut]||null)?Rd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var r=new Ni("action","action",null,l,n);e.push({event:r,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ka!==0){var g=c?Md(n,c):new FormData(n);Zu(a,{pending:!0,data:g,method:n.method,action:i},null,g)}}else typeof i=="function"&&(r.preventDefault(),g=c?Md(n,c):new FormData(n),Zu(a,{pending:!0,data:g,method:n.method,action:i},i,g))},currentTarget:n}]})}}for(var Cc=0;Cc<ou.length;Cc++){var Rc=ou[Cc],pg=Rc.toLowerCase(),vg=Rc[0].toUpperCase()+Rc.slice(1);Vt(pg,"on"+vg)}Vt(ir,"onAnimationEnd"),Vt(sr,"onAnimationIteration"),Vt(ur,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(Om,"onTransitionRun"),Vt(_m,"onTransitionStart"),Vt(Um,"onTransitionCancel"),Vt(cr,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ai));function zd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var c=l.length-1;0<=c;c--){var r=l[c],g=r.instance,A=r.currentTarget;if(r=r.listener,g!==i&&n.isPropagationStopped())break e;i=r,n.currentTarget=A;try{i(n)}catch(U){Ei(U)}n.currentTarget=null,i=g}else for(c=0;c<l.length;c++){if(r=l[c],g=r.instance,A=r.currentTarget,r=r.listener,g!==i&&n.isPropagationStopped())break e;i=r,n.currentTarget=A;try{i(n)}catch(U){Ei(U)}n.currentTarget=null,i=g}}}}function je(e,t){var a=t[ct];a===void 0&&(a=t[ct]=new Set);var l=e+"__bubble";a.has(l)||(kd(t,e,2,!1),a.add(l))}function Mc(e,t,a){var l=0;t&&(l|=4),kd(a,e,l,t)}var ds="_reactListening"+Math.random().toString(36).slice(2);function zc(e){if(!e[ds]){e[ds]=!0,No.forEach(function(a){a!=="selectionchange"&&(yg.has(a)||Mc(a,!1,e),Mc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ds]||(t[ds]=!0,Mc("selectionchange",!1,t))}}function kd(e,t,a,l){switch(sh(t)){case 2:var n=Zg;break;case 8:n=$g;break;default:n=Qc}a=n.bind(null,t,a,e),n=void 0,!Ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function kc(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var r=l.stateNode.containerInfo;if(r===n)break;if(c===4)for(c=l.return;c!==null;){var g=c.tag;if((g===3||g===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;r!==null;){if(c=Ol(r),c===null)return;if(g=c.tag,g===5||g===6||g===26||g===27){l=i=c;continue e}r=r.parentNode}}l=l.return}Uo(function(){var A=i,U=Ks(a),q=[];e:{var R=or.get(e);if(R!==void 0){var z=Ni,ne=e;switch(e){case"keypress":if(Si(a)===0)break e;case"keydown":case"keyup":z=fm;break;case"focusin":ne="focus",z=eu;break;case"focusout":ne="blur",z=eu;break;case"beforeblur":case"afterblur":z=eu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Lo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Ph;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=mm;break;case ir:case sr:case ur:z=am;break;case cr:z=pm;break;case"scroll":case"scrollend":z=Fh;break;case"wheel":z=ym;break;case"copy":case"cut":case"paste":z=nm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=qo;break;case"toggle":case"beforetoggle":z=bm}var ge=(t&4)!==0,Ue=!ge&&(e==="scroll"||e==="scrollend"),x=ge?R!==null?R+"Capture":null:R;ge=[];for(var p=A,j;p!==null;){var L=p;if(j=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||j===null||x===null||(L=Tn(p,x),L!=null&&ge.push(li(p,L,j))),Ue)break;p=p.return}0<ge.length&&(R=new z(R,ne,null,a,U),q.push({event:R,listeners:ge}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",R&&a!==$s&&(ne=a.relatedTarget||a.fromElement)&&(Ol(ne)||ne[Xt]))break e;if((z||R)&&(R=U.window===U?U:(R=U.ownerDocument)?R.defaultView||R.parentWindow:window,z?(ne=a.relatedTarget||a.toElement,z=A,ne=ne?Ol(ne):null,ne!==null&&(Ue=C(ne),ge=ne.tag,ne!==Ue||ge!==5&&ge!==27&&ge!==6)&&(ne=null)):(z=null,ne=A),z!==ne)){if(ge=Lo,L="onMouseLeave",x="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(ge=qo,L="onPointerLeave",x="onPointerEnter",p="pointer"),Ue=z==null?R:Nn(z),j=ne==null?R:Nn(ne),R=new ge(L,p+"leave",z,a,U),R.target=Ue,R.relatedTarget=j,L=null,Ol(U)===A&&(ge=new ge(x,p+"enter",ne,a,U),ge.target=j,ge.relatedTarget=Ue,L=ge),Ue=L,z&&ne)t:{for(ge=xg,x=z,p=ne,j=0,L=x;L;L=ge(L))j++;L=0;for(var re=p;re;re=ge(re))L++;for(;0<j-L;)x=ge(x),j--;for(;0<L-j;)p=ge(p),L--;for(;j--;){if(x===p||p!==null&&x===p.alternate){ge=x;break t}x=ge(x),p=ge(p)}ge=null}else ge=null;z!==null&&Dd(q,R,z,ge,!1),ne!==null&&Ue!==null&&Dd(q,Ue,ne,ge,!0)}}e:{if(R=A?Nn(A):window,z=R.nodeName&&R.nodeName.toLowerCase(),z==="select"||z==="input"&&R.type==="file")var Ce=Ko;else if(Zo(R))if(Jo)Ce=zm;else{Ce=Rm;var se=Cm}else z=R.nodeName,!z||z.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?A&&Zs(A.elementType)&&(Ce=Ko):Ce=Mm;if(Ce&&(Ce=Ce(e,A))){$o(q,Ce,a,U);break e}se&&se(e,R,A),e==="focusout"&&A&&R.type==="number"&&A.memoizedProps.value!=null&&Qs(R,"number",R.value)}switch(se=A?Nn(A):window,e){case"focusin":(Zo(se)||se.contentEditable==="true")&&(Gl=se,su=A,Dn=null);break;case"focusout":Dn=su=Gl=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,lr(q,a,U);break;case"selectionchange":if(Dm)break;case"keydown":case"keyup":lr(q,a,U)}var xe;if(au)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Yl?Vo(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Te="onCompositionStart");Te&&(Yo&&a.locale!=="ko"&&(Yl||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Yl&&(xe=Ho()):(Da=U,Fs="value"in Da?Da.value:Da.textContent,Yl=!0)),se=hs(A,Te),0<se.length&&(Te=new Bo(Te,e,null,a,U),q.push({event:Te,listeners:se}),xe?Te.data=xe:(xe=Qo(a),xe!==null&&(Te.data=xe)))),(xe=jm?Nm(e,a):Tm(e,a))&&(Te=hs(A,"onBeforeInput"),0<Te.length&&(se=new Bo("onBeforeInput","beforeinput",null,a,U),q.push({event:se,listeners:Te}),se.data=xe)),gg(q,e,A,a,U)}zd(q,t)})}function li(e,t,a){return{instance:e,listener:t,currentTarget:a}}function hs(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Tn(e,a),n!=null&&l.unshift(li(e,n,i)),n=Tn(e,t),n!=null&&l.push(li(e,n,i))),e.tag===3)return l;e=e.return}return[]}function xg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,a,l,n){for(var i=t._reactName,c=[];a!==null&&a!==l;){var r=a,g=r.alternate,A=r.stateNode;if(r=r.tag,g!==null&&g===l)break;r!==5&&r!==26&&r!==27||A===null||(g=A,n?(A=Tn(a,i),A!=null&&c.unshift(li(a,A,g))):n||(A=Tn(a,i),A!=null&&c.push(li(a,A,g)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var bg=/\r\n?/g,Sg=/\u0000|\uFFFD/g;function Od(e){return(typeof e=="string"?e:""+e).replace(bg,`
9
+ `).replace(Sg,"")}function _d(e,t){return t=Od(t),Od(e)===t}function _e(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ll(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ll(e,""+l);break;case"className":vi(e,"class",l);break;case"tabIndex":vi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,a,l);break;case"style":Oo(e,l,i);break;case"data":if(t!=="object"){vi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",n.name,n,null),_e(e,t,"formEncType",n.formEncType,n,null),_e(e,t,"formMethod",n.formMethod,n,null),_e(e,t,"formTarget",n.formTarget,n,null)):(_e(e,t,"encType",n.encType,n,null),_e(e,t,"method",n.method,n,null),_e(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=xi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=fa);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=xi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":je("beforetoggle",e),je("toggle",e),pi(e,"popover",l);break;case"xlinkActuate":ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ra(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ra(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ra(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ra(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":pi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Jh.get(a)||a,pi(e,a,l))}}function Dc(e,t,a,l,n,i){switch(a){case"style":Oo(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Ll(e,l):(typeof l=="number"||typeof l=="bigint")&&Ll(e,""+l);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"onClick":l!=null&&(e.onclick=fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!To.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[ut]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):pi(e,a,l)}}}function st(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];if(c!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:_e(e,t,i,c,a,null)}}n&&_e(e,t,"srcSet",a.srcSet,a,null),l&&_e(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var r=i=c=n=null,g=null,A=null;for(l in a)if(a.hasOwnProperty(l)){var U=a[l];if(U!=null)switch(l){case"name":n=U;break;case"type":c=U;break;case"checked":g=U;break;case"defaultChecked":A=U;break;case"value":i=U;break;case"defaultValue":r=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(f(137,t));break;default:_e(e,t,l,U,a,null)}}Mo(e,i,r,g,A,c,n,!1);return;case"select":je("invalid",e),l=c=i=null;for(n in a)if(a.hasOwnProperty(n)&&(r=a[n],r!=null))switch(n){case"value":i=r;break;case"defaultValue":c=r;break;case"multiple":l=r;default:_e(e,t,n,r,a,null)}t=i,a=c,e.multiple=!!l,t!=null?wl(e,!!l,t,!1):a!=null&&wl(e,!!l,a,!0);return;case"textarea":je("invalid",e),i=n=l=null;for(c in a)if(a.hasOwnProperty(c)&&(r=a[c],r!=null))switch(c){case"value":l=r;break;case"defaultValue":n=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:_e(e,t,c,r,a,null)}ko(e,l,n,i);return;case"option":for(g in a)a.hasOwnProperty(g)&&(l=a[g],l!=null)&&(g==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":_e(e,t,g,l,a,null));return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<ai.length;l++)je(ai[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:_e(e,t,A,l,a,null)}return;default:if(Zs(t)){for(U in a)a.hasOwnProperty(U)&&(l=a[U],l!==void 0&&Dc(e,t,U,l,a,void 0));return}}for(r in a)a.hasOwnProperty(r)&&(l=a[r],l!=null&&_e(e,t,r,l,a,null))}function jg(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,r=null,g=null,A=null,U=null;for(z in a){var q=a[z];if(a.hasOwnProperty(z)&&q!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":g=q;default:l.hasOwnProperty(z)||_e(e,t,z,null,l,q)}}for(var R in l){var z=l[R];if(q=a[R],l.hasOwnProperty(R)&&(z!=null||q!=null))switch(R){case"type":i=z;break;case"name":n=z;break;case"checked":A=z;break;case"defaultChecked":U=z;break;case"value":c=z;break;case"defaultValue":r=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,t));break;default:z!==q&&_e(e,t,R,z,l,q)}}Vs(e,c,r,g,A,U,i,n);return;case"select":z=c=r=R=null;for(i in a)if(g=a[i],a.hasOwnProperty(i)&&g!=null)switch(i){case"value":break;case"multiple":z=g;default:l.hasOwnProperty(i)||_e(e,t,i,null,l,g)}for(n in l)if(i=l[n],g=a[n],l.hasOwnProperty(n)&&(i!=null||g!=null))switch(n){case"value":R=i;break;case"defaultValue":r=i;break;case"multiple":c=i;default:i!==g&&_e(e,t,n,i,l,g)}t=r,a=c,l=z,R!=null?wl(e,!!a,R,!1):!!l!=!!a&&(t!=null?wl(e,!!a,t,!0):wl(e,!!a,a?[]:"",!1));return;case"textarea":z=R=null;for(r in a)if(n=a[r],a.hasOwnProperty(r)&&n!=null&&!l.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:_e(e,t,r,null,l,n)}for(c in l)if(n=l[c],i=a[c],l.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":R=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==i&&_e(e,t,c,n,l,i)}zo(e,R,z);return;case"option":for(var ne in a)R=a[ne],a.hasOwnProperty(ne)&&R!=null&&!l.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:_e(e,t,ne,null,l,R));for(g in l)R=l[g],z=a[g],l.hasOwnProperty(g)&&R!==z&&(R!=null||z!=null)&&(g==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":_e(e,t,g,R,l,z));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in a)R=a[ge],a.hasOwnProperty(ge)&&R!=null&&!l.hasOwnProperty(ge)&&_e(e,t,ge,null,l,R);for(A in l)if(R=l[A],z=a[A],l.hasOwnProperty(A)&&R!==z&&(R!=null||z!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(f(137,t));break;default:_e(e,t,A,R,l,z)}return;default:if(Zs(t)){for(var Ue in a)R=a[Ue],a.hasOwnProperty(Ue)&&R!==void 0&&!l.hasOwnProperty(Ue)&&Dc(e,t,Ue,void 0,l,R);for(U in l)R=l[U],z=a[U],!l.hasOwnProperty(U)||R===z||R===void 0&&z===void 0||Dc(e,t,U,R,l,z);return}}for(var x in a)R=a[x],a.hasOwnProperty(x)&&R!=null&&!l.hasOwnProperty(x)&&_e(e,t,x,null,l,R);for(q in l)R=l[q],z=a[q],!l.hasOwnProperty(q)||R===z||R==null&&z==null||_e(e,t,q,R,l,z)}function Ud(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ng(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,c=n.initiatorType,r=n.duration;if(i&&r&&Ud(c)){for(c=0,r=n.responseEnd,l+=1;l<a.length;l++){var g=a[l],A=g.startTime;if(A>r)break;var U=g.transferSize,q=g.initiatorType;U&&Ud(q)&&(g=g.responseEnd,c+=U*(g<r?1:(r-A)/(g-A)))}if(--l,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Oc=null,_c=null;function ms(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Uc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hc=null;function Tg(){var e=window.event;return e&&e.type==="popstate"?e===Hc?!1:(Hc=e,!0):(Hc=null,!1)}var Ld=typeof setTimeout=="function"?setTimeout:void 0,Ag=typeof clearTimeout=="function"?clearTimeout:void 0,Bd=typeof Promise=="function"?Promise:void 0,Eg=typeof queueMicrotask=="function"?queueMicrotask:typeof Bd<"u"?function(e){return Bd.resolve(null).then(e).catch(Cg)}:Ld;function Cg(e){setTimeout(function(){throw e})}function Ja(e){return e==="head"}function qd(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),pn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ni(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ni(a);for(var i=a.firstChild;i;){var c=i.nextSibling,r=i.nodeName;i[jn]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=c}}else a==="body"&&ni(e.ownerDocument.body);a=n}while(a);pn(t)}function Yd(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":wc(a),Gs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Rg(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[jn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=qt(e.nextSibling),e===null)break}return null}function Mg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=qt(e.nextSibling),e===null))return null;return e}function Gd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function Lc(e){return e.data==="$?"||e.data==="$~"}function Bc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function zg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var qc=null;function Xd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return qt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Qd(e,t,a){switch(t=ms(a),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function ni(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gs(e)}var Yt=new Map,Zd=new Set;function gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ca=v.d;v.d={f:kg,r:Dg,D:Og,C:_g,L:Ug,m:Hg,X:Lg,S:wg,M:Bg};function kg(){var e=Ca.f(),t=ss();return e||t}function Dg(e){var t=_l(e);t!==null&&t.tag===5&&t.type==="form"?of(t):Ca.r(e)}var hn=typeof document>"u"?null:document;function $d(e,t,a){var l=hn;if(l&&typeof t=="string"&&t){var n=Ot(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Zd.has(n)||(Zd.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),st(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Og(e){Ca.D(e),$d("dns-prefetch",e,null)}function _g(e,t){Ca.C(e,t),$d("preconnect",e,t)}function Ug(e,t,a){Ca.L(e,t,a);var l=hn;if(l&&e&&t){var n='link[rel="preload"][as="'+Ot(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Ot(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Ot(a.imageSizes)+'"]')):n+='[href="'+Ot(e)+'"]';var i=n;switch(t){case"style":i=mn(e);break;case"script":i=gn(e)}Yt.has(i)||(e=T({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(ii(i))||t==="script"&&l.querySelector(si(i))||(t=l.createElement("link"),st(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Hg(e,t){Ca.m(e,t);var a=hn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ot(l)+'"][href="'+Ot(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=gn(e)}if(!Yt.has(i)&&(e=T({rel:"modulepreload",href:e},t),Yt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(si(i)))return}l=a.createElement("link"),st(l,"link",e),Pe(l),a.head.appendChild(l)}}}function wg(e,t,a){Ca.S(e,t,a);var l=hn;if(l&&e){var n=Ul(l).hoistableStyles,i=mn(e);t=t||"default";var c=n.get(i);if(!c){var r={loading:0,preload:null};if(c=l.querySelector(ii(i)))r.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(i))&&Yc(e,a);var g=c=l.createElement("link");Pe(g),st(g,"link",e),g._p=new Promise(function(A,U){g.onload=A,g.onerror=U}),g.addEventListener("load",function(){r.loading|=1}),g.addEventListener("error",function(){r.loading|=2}),r.loading|=4,ps(c,t,l)}c={type:"stylesheet",instance:c,count:1,state:r},n.set(i,c)}}}function Lg(e,t){Ca.X(e,t);var a=hn;if(a&&e){var l=Ul(a).hoistableScripts,n=gn(e),i=l.get(n);i||(i=a.querySelector(si(n)),i||(e=T({src:e,async:!0},t),(t=Yt.get(n))&&Gc(e,t),i=a.createElement("script"),Pe(i),st(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Bg(e,t){Ca.M(e,t);var a=hn;if(a&&e){var l=Ul(a).hoistableScripts,n=gn(e),i=l.get(n);i||(i=a.querySelector(si(n)),i||(e=T({src:e,async:!0,type:"module"},t),(t=Yt.get(n))&&Gc(e,t),i=a.createElement("script"),Pe(i),st(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Kd(e,t,a,l){var n=(n=me.current)?gs(n):null;if(!n)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=mn(a.href),a=Ul(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=mn(a.href);var i=Ul(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(ii(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),i||qg(n,e,a,c.state))),t&&l===null)throw Error(f(528,""));return c}if(t&&l!==null)throw Error(f(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gn(a),a=Ul(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function mn(e){return'href="'+Ot(e)+'"'}function ii(e){return'link[rel="stylesheet"]['+e+"]"}function Jd(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function qg(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),st(t,"link",a),Pe(t),e.head.appendChild(t))}function gn(e){return'[src="'+Ot(e)+'"]'}function si(e){return"script[async]"+e}function Wd(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ot(a.href)+'"]');if(l)return t.instance=l,Pe(l),l;var n=T({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),st(l,"style",n),ps(l,a.precedence,e),t.instance=l;case"stylesheet":n=mn(a.href);var i=e.querySelector(ii(n));if(i)return t.state.loading|=4,t.instance=i,Pe(i),i;l=Jd(a),(n=Yt.get(n))&&Yc(l,n),i=(e.ownerDocument||e).createElement("link"),Pe(i);var c=i;return c._p=new Promise(function(r,g){c.onload=r,c.onerror=g}),st(i,"link",l),t.state.loading|=4,ps(i,a.precedence,e),t.instance=i;case"script":return i=gn(a.src),(n=e.querySelector(si(i)))?(t.instance=n,Pe(n),n):(l=a,(n=Yt.get(i))&&(l=T({},a),Gc(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Pe(n),st(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ps(l,a.precedence,e));return t.instance}function ps(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,c=0;c<l.length;c++){var r=l[c];if(r.dataset.precedence===t)i=r;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vs=null;function Fd(e,t,a){if(vs===null){var l=new Map,n=vs=new Map;n.set(a,l)}else n=vs,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[jn]||i[We]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var r=l.get(c);r?r.push(i):l.set(c,[i])}}return l}function Id(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Yg(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Gg(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=mn(l.href),i=t.querySelector(ii(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Pe(i);return}i=t.ownerDocument||t,l=Jd(l),(n=Yt.get(n))&&Yc(l,n),i=i.createElement("link"),Pe(i);var c=i;c._p=new Promise(function(r,g){c.onload=r,c.onerror=g}),st(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ys.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Xc=0;function Xg(e,t){return e.stylesheets&&e.count===0&&bs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&bs(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Xc===0&&(Xc=62500*Ng());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bs(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Xc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xs=null;function bs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xs=new Map,t.forEach(Vg,e),xs=null,ys.call(e))}function Vg(e,t){if(!(t.state.loading&4)){var a=xs.get(e);if(a)var l=a.get(null);else{a=new Map,xs.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),l=c)}l&&a.set(null,l)}n=t.instance,c=n.getAttribute("data-precedence"),i=a.get(c)||l,i===l&&a.set(null,n),a.set(c,n),this.count++,l=ys.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ui={$$typeof:O,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Qg(e,t,a,l,n,i,c,r,g){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ul(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.hiddenUpdates=ul(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function eh(e,t,a,l,n,i,c,r,g,A,U,q){return e=new Qg(e,t,a,c,g,A,U,q,r),t=1,i===!0&&(t|=24),i=Nt(3,null,null,t),e.current=i,i.stateNode=e,t=ju(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Eu(i),e}function th(e){return e?(e=Ql,e):Ql}function ah(e,t,a,l,n,i){n=th(n),l.context===null?l.context=n:l.pendingContext=n,l=La(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Ba(e,l,t),a!==null&&(St(a,e,t),Bn(a,e,t))}function lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vc(e,t){lh(e,t),(e=e.alternate)&&lh(e,t)}function nh(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&St(t,e,67108864),Vc(e,67108864)}}function ih(e){if(e.tag===13||e.tag===31){var t=Rt();t=mt(t);var a=ml(e,t);a!==null&&St(a,e,t),Vc(e,t)}}var Ss=!0;function Zg(e,t,a,l){var n=S.T;S.T=null;var i=v.p;try{v.p=2,Qc(e,t,a,l)}finally{v.p=i,S.T=n}}function $g(e,t,a,l){var n=S.T;S.T=null;var i=v.p;try{v.p=8,Qc(e,t,a,l)}finally{v.p=i,S.T=n}}function Qc(e,t,a,l){if(Ss){var n=Zc(l);if(n===null)kc(e,t,l,js,a),uh(e,l);else if(Jg(n,e,t,a,l))l.stopPropagation();else if(uh(e,l),t&4&&-1<Kg.indexOf(e)){for(;n!==null;){var i=_l(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=ht(i.pendingLanes);if(c!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var g=1<<31-dt(c);r.entanglements[1]|=g,c&=~g}aa(i),(Me&6)===0&&(ns=rt()+500,ti(0))}}break;case 31:case 13:r=ml(i,2),r!==null&&St(r,i,2),ss(),Vc(i,2)}if(i=Zc(l),i===null&&kc(e,t,l,js,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else kc(e,t,l,null,a)}}function Zc(e){return e=Ks(e),$c(e)}var js=null;function $c(e){if(js=null,e=Ol(e),e!==null){var t=C(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=b(t),e!==null)return e;e=null}else if(a===31){if(e=H(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return js=e,null}function sh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ls()){case il:return 2;case mi:return 8;case Ma:case Rl:return 32;case Ml:return 268435456;default:return 32}default:return 32}}var Kc=!1,Wa=null,Fa=null,Ia=null,ci=new Map,oi=new Map,Pa=[],Kg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function uh(e,t){switch(e){case"focusin":case"focusout":Wa=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(t.pointerId)}}function ri(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=_l(t),t!==null&&nh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Jg(e,t,a,l,n){switch(t){case"focusin":return Wa=ri(Wa,e,t,a,l,n),!0;case"dragenter":return Fa=ri(Fa,e,t,a,l,n),!0;case"mouseover":return Ia=ri(Ia,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return ci.set(i,ri(ci.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,oi.set(i,ri(oi.get(i)||null,e,t,a,l,n)),!0}return!1}function ch(e){var t=Ol(e.target);if(t!==null){var a=C(t);if(a!==null){if(t=a.tag,t===13){if(t=b(a),t!==null){e.blockedOn=t,Ys(e.priority,function(){ih(a)});return}}else if(t===31){if(t=H(a),t!==null){e.blockedOn=t,Ys(e.priority,function(){ih(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);$s=l,a.target.dispatchEvent(l),$s=null}else return t=_l(a),t!==null&&nh(t),e.blockedOn=a,!1;t.shift()}return!0}function oh(e,t,a){Ns(e)&&a.delete(t)}function Wg(){Kc=!1,Wa!==null&&Ns(Wa)&&(Wa=null),Fa!==null&&Ns(Fa)&&(Fa=null),Ia!==null&&Ns(Ia)&&(Ia=null),ci.forEach(oh),oi.forEach(oh)}function Ts(e,t){e.blockedOn===t&&(e.blockedOn=null,Kc||(Kc=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Wg)))}var As=null;function rh(e){As!==e&&(As=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if($c(l||a)===null)continue;break}var i=_l(a);i!==null&&(e.splice(t,3),t-=3,Zu(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function pn(e){function t(g){return Ts(g,e)}Wa!==null&&Ts(Wa,e),Fa!==null&&Ts(Fa,e),Ia!==null&&Ts(Ia,e),ci.forEach(t),oi.forEach(t);for(var a=0;a<Pa.length;a++){var l=Pa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Pa.length&&(a=Pa[0],a.blockedOn===null);)ch(a),a.blockedOn===null&&Pa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],c=n[ut]||null;if(typeof i=="function")c||rh(a);else if(c){var r=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ut]||null)r=c.formAction;else if($c(n)!==null)continue}else r=c.action;typeof r=="function"?a[l+1]=r:(a.splice(l,3),l-=3),rh(a)}}}function fh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!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 l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Jc(e){this._internalRoot=e}Es.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var a=t.current,l=Rt();ah(a,l,e,t,null,null)},Es.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ah(e.current,2,null,e,null,null),ss(),t[Xt]=null}};function Es(e){this._internalRoot=e}Es.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dl();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Pa.length&&t!==0&&t<Pa[a].priority;a++);Pa.splice(a,0,e),a===0&&ch(e)}};var dh=o.version;if(dh!=="19.2.6")throw Error(f(527,dh,"19.2.6"));v.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=m(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Fg={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:S,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cs.isDisabled&&Cs.supportsFiber)try{za=Cs.inject(Fg),ft=Cs}catch{}}return di.createRoot=function(e,t){if(!y(e))throw Error(f(299));var a=!1,l="",n=xf,i=bf,c=Sf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=eh(e,1,!1,null,null,a,l,null,n,i,c,fh),e[Xt]=t.current,zc(e),new Jc(t)},di.hydrateRoot=function(e,t,a){if(!y(e))throw Error(f(299));var l=!1,n="",i=xf,c=bf,r=Sf,g=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(r=a.onRecoverableError),a.formState!==void 0&&(g=a.formState)),t=eh(e,1,!0,t,a??null,l,n,g,i,c,r,fh),t.context=th(null),a=t.current,l=Rt(),l=mt(l),n=La(l),n.callback=null,Ba(a,n,l),a=l,t.current.lanes=a,cl(t,a),aa(t),e[Xt]=t.current,zc(e),new Es(t)},di.version="19.2.6",di}var jh;function cp(){if(jh)return Ic.exports;jh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),Ic.exports=up(),Ic.exports}var op=cp();const rp=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fp=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,d,f)=>f?f.toUpperCase():d.toLowerCase()),Nh=u=>{const o=fp(u);return o.charAt(0).toUpperCase()+o.slice(1)},Uh=(...u)=>u.filter((o,d,f)=>!!o&&o.trim()!==""&&f.indexOf(o)===d).join(" ").trim(),dp=u=>{for(const o in u)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};var hp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const mp=D.forwardRef(({color:u="currentColor",size:o=24,strokeWidth:d=2,absoluteStrokeWidth:f,className:y="",children:C,iconNode:b,...H},N)=>D.createElement("svg",{ref:N,...hp,width:o,height:o,stroke:u,strokeWidth:f?Number(d)*24/Number(o):d,className:Uh("lucide",y),...!C&&!dp(H)&&{"aria-hidden":"true"},...H},[...b.map(([m,E])=>D.createElement(m,E)),...Array.isArray(C)?C:[C]]));const tt=(u,o)=>{const d=D.forwardRef(({className:f,...y},C)=>D.createElement(mp,{ref:C,iconNode:o,className:Uh(`lucide-${rp(Nh(u))}`,`lucide-${u}`,f),...y}));return d.displayName=Nh(u),d};const gp=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"m9.5 17 5-5",key:"nakeu6"}],["path",{d:"m9.5 12 5 5",key:"1hccrj"}]],pp=tt("archive-x",gp);const vp=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],yp=tt("ban",vp);const xp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],bp=tt("chart-column",xp);const Sp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Th=tt("chevron-down",Sp);const jp=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hh=tt("clock",jp);const Np=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Tp=tt("file-text",Np);const Ap=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Ep=tt("languages",Ap);const Cp=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Rp=tt("leaf",Cp);const Mp=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],zp=tt("map",Mp);const kp=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Dp=tt("moon",kp);const Op=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],_p=tt("pause",Op);const Up=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Hp=tt("play",Up);const wp=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Ah=tt("rotate-cw",wp);const Lp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Bp=tt("search",Lp);const qp=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Yp=tt("share-2",qp);const Gp=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Xp=tt("sparkles",Gp);const Vp=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Qp=tt("sun",Vp);const Zp=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wh=tt("triangle-alert",Zp);var Lh=_h();async function ao(){const u=await fetch("/api/projects");if(!u.ok)throw new Error("Failed to load projects");return(await u.json()).projects}async function lo(u={}){const o=await fetch("/api/ingest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)});if(!o.ok)throw new Error("Failed to start ingest");return(await o.json()).jobId}async function Rs(u){const o=await fetch(`/api/ingest/jobs/${u}`);if(!o.ok)throw new Error("Failed to load ingest job");return await o.json()}async function no(u,o={}){const d=new URLSearchParams;o.limit!==void 0&&d.set("limit",String(o.limit)),o.offset!==void 0&&d.set("offset",String(o.offset));const f=d.toString()?`?${d.toString()}`:"",y=await fetch(`/api/projects/${u}/timeline${f}`);if(!y.ok)throw new Error("Failed to load timeline");return await y.json()}async function Ms(u){const o=await fetch(`/api/projects/${u}/token-usage/daily`);if(!o.ok)throw new Error("Failed to load daily token usage");return await o.json()}async function $p(u,o){const d=new URLSearchParams;o&&d.set("projectId",o);const f=d.toString()?`?${d.toString()}`:"",y=await fetch(`/api/task-journeys/${u}${f}`);if(!y.ok)throw new Error("Failed to load task journey detail");return await y.json()}async function Kp(u,o){const d=new URLSearchParams;o&&d.set("projectId",o);const f=d.toString()?`?${d.toString()}`:"",y=await fetch(`/api/task-journeys/${u}/context-replay${f}`);if(!y.ok)throw new Error("Failed to load context replay");return await y.json()}async function Jp(){await fetch("/api/reset",{method:"POST"})}const Wp=1e6;function Ee(u){return`${((Number.isFinite(u)&&u>0?u:0)/Wp).toFixed(3)}M`}const Os=200,go=360,po=22,Ie={top:20,right:24,bottom:44,left:58},Fp=new Intl.NumberFormat(void 0,{maximumFractionDigits:1,style:"percent"});function Ip({data:u,loading:o=!1,initiallyExpanded:d=!1,title:f="Daily Token Usage",subtitle:y,showHeaderToggle:C=!0,expanded:b,onExpandedChange:H,maxVisiblePoints:N,className:m,copy:E,variant:T="bar"}){const k=E,J=f??k?.defaultTitle??"Daily Token Usage",[_,I]=D.useState(d),X=b??_,$=D.useId(),te=D.useId(),O=D.useId(),ie=D.useMemo(()=>e0(u,N),[u,N]),he=D.useMemo(()=>t0(ie),[ie]),P=D.useMemo(()=>a0(ie,T),[ie,T]),F=ie.length>0,fe=m?`token-chart-panel ${m}`:"token-chart-panel",B=y??(o?k?.loading??"Loading daily usage":F?k?.visibleDays(ie.length)??`${ie.length} visible day${ie.length===1?"":"s"}`:k?.noVisibleDays??"No visible days");function K(Y){H?.(Y),b===void 0&&I(Y)}return s.jsxs("section",{className:fe,"aria-labelledby":$,children:[s.jsxs("div",{className:"token-chart-header",children:[s.jsxs("div",{className:"token-chart-title-block",children:[s.jsx("p",{className:"token-chart-eyebrow",children:k?.eyebrow??"Tokens"}),s.jsx("h2",{id:$,className:"token-chart-title",children:J}),s.jsx("p",{className:"token-chart-subtitle",children:B})]}),C?s.jsxs("dl",{className:"token-chart-summary","aria-label":k?.summaryAria??"Daily token usage summary",children:[s.jsxs("div",{className:"token-chart-summary-item",children:[s.jsx("dt",{children:k?.totalTokens??"Total tokens"}),s.jsx("dd",{children:vn(he.total)})]}),s.jsxs("div",{className:"token-chart-summary-item",children:[s.jsx("dt",{children:k?.kvHit??"KV hit"}),s.jsx("dd",{children:r0(he.kvHit)})]})]}):null,C?s.jsxs("button",{className:"token-chart-toggle",type:"button","aria-controls":te,"aria-expanded":X,onClick:()=>K(!X),children:[s.jsx("span",{children:X?k?.hideChart??"Hide daily token usage chart":k?.showChart??"Show daily token usage chart"}),s.jsx("span",{className:"token-chart-toggle-icon","aria-hidden":"true",children:X?"-":"+"})]}):null]}),X?s.jsx("div",{id:te,className:"token-chart-body",children:F?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"token-chart-kpis","aria-label":k?.breakdownAria??"Visible token usage breakdown",children:[s.jsx(zs,{label:k?.input??"Input",value:he.input}),s.jsx(zs,{label:k?.cachedInput??"Cached input",value:he.cachedInput}),s.jsx(zs,{label:k?.output??"Output",value:he.output}),s.jsx(zs,{label:k?.reasoning??"Reasoning",value:he.reasoning})]}),s.jsx("div",{className:"token-chart-scroll",role:"group","aria-label":k?.chartAria??"Daily token usage chart",children:T==="horizon"?Pp(P,k,O):s.jsxs("svg",{className:"token-chart-svg",role:"img","aria-labelledby":O,viewBox:`0 0 ${P.width} ${Os}`,width:P.width,height:Os,children:[s.jsx("title",{id:O,children:k?.chartTitle??"Daily token usage by date"}),P.gridLines.map(Y=>s.jsxs("g",{className:"token-chart-grid-line",children:[s.jsx("line",{x1:Ie.left,x2:P.width-Ie.right,y1:Y.y,y2:Y.y}),s.jsx("text",{x:Ie.left-10,y:Y.y+4,children:o0(Y.value)})]},Y.value)),s.jsx("line",{className:"token-chart-axis",x1:Ie.left,x2:P.width-Ie.right,y1:P.bottom,y2:P.bottom}),T==="area"?s.jsxs(s.Fragment,{children:[P.layers.map(Y=>s.jsx("path",{className:`token-chart-area ${Y.className}`,d:Y.path,children:s.jsx("title",{children:Y.label})},Y.key)),P.dateLabels.map(Y=>s.jsx("text",{className:"token-chart-date-label",x:Y.x,y:P.bottom+24,children:Y.label},Y.label))]}):P.bars.map(Y=>s.jsxs("g",{className:"token-chart-bar-group",children:[s.jsx("title",{children:`${Y.label}: ${vn(Y.total)} ${k?.totalSuffix??"total tokens"}`}),Y.segments.map(Z=>Z.height>0?s.jsx("rect",{className:`token-chart-segment ${Z.className}`,x:Y.x,y:Z.y,width:Y.width,height:Z.height,rx:4,children:s.jsx("title",{children:`${Y.label} ${Z.label}: ${vn(Z.value)} ${k?.tokenSuffix??"tokens"}`})},Z.key):null),s.jsx("text",{className:"token-chart-date-label",x:Y.centerX,y:P.bottom+24,children:Y.label})]},Y.key)),"trendPath"in P&&P.trendPath?s.jsx("path",{className:"token-chart-trend",d:P.trendPath}):null,T==="bar"?P.bars.map(Y=>s.jsx("circle",{className:"token-chart-trend-point",cx:Y.centerX,cy:Y.trendY,r:3.5,children:s.jsx("title",{children:`${Y.label} ${k?.trendLabel??"trend"}: ${vn(Y.total)} ${k?.tokenSuffix??"tokens"}`})},`${Y.key}-trend`)):null,T==="area"?P.centerXs.map((Y,Z)=>s.jsx("circle",{className:"token-chart-trend-point",cx:Y,cy:P.trendYs[Z],r:3.5,children:s.jsx("title",{children:`${P.dateLabels[Z].label} ${k?.trendLabel??"trend"}: ${vn(P.maxTotal)} ${k?.tokenSuffix??"tokens"}`})},`trend-${Z}`)):null]})}),T==="horizon"?s.jsxs("div",{className:"token-chart-horizon-legend","aria-label":k?.legendAria??"Token usage legend",children:[s.jsx(Ra,{className:"token-chart-swatch-cached",label:k?.cachedInput??"Cached input"}),s.jsx(Ra,{className:"token-chart-swatch-input",label:k?.input??"Input"}),s.jsx(Ra,{className:"token-chart-swatch-output",label:k?.output??"Output"}),s.jsx(Ra,{className:"token-chart-swatch-reasoning",label:k?.reasoning??"Reasoning"})]}):s.jsxs("ul",{className:"token-chart-legend","aria-label":k?.legendAria??"Token usage legend",children:[s.jsx(Ra,{className:"token-chart-swatch-cached",label:k?.cachedInput??"Cached input"}),s.jsx(Ra,{className:"token-chart-swatch-input",label:k?.input??"Input"}),s.jsx(Ra,{className:"token-chart-swatch-output",label:k?.output??"Output"}),s.jsx(Ra,{className:"token-chart-swatch-reasoning",label:k?.reasoning??"Reasoning"}),s.jsx(Ra,{className:"token-chart-swatch-trend",label:k?.totalTrend??"Total trend"})]})]}):s.jsx("div",{className:"token-chart-empty","aria-live":"polite",children:o?k?.emptyLoading??"Loading daily token usage...":k?.empty??"No daily token usage yet."})}):null]})}function Pp(u,o,d){return s.jsxs("svg",{className:"token-chart-svg",role:"img","aria-labelledby":d,viewBox:`0 0 ${u.width} ${u.height}`,width:u.width,height:u.height,children:[s.jsx("title",{id:d,children:o?.chartTitle??"Daily token usage by date"}),u.rows.map((C,b)=>{const H=8+b*28;return s.jsxs("g",{className:"token-chart-horizon-row",transform:`translate(0, ${H})`,children:[s.jsx("text",{className:"token-chart-horizon-label",x:6,y:28/2+4,children:C.label}),C.bands.map((N,m)=>s.jsx("path",{className:`token-chart-horizon-band ${N.className}`,d:N.path,children:s.jsx("title",{children:`${C.label} band ${m+1}`})},m))]},C.key)}),s.jsx("line",{className:"token-chart-axis",x1:72,x2:u.width-24,y1:u.bottom,y2:u.bottom}),u.dateLabels.map(C=>s.jsx("text",{className:"token-chart-date-label",x:C.x,y:u.bottom+22,children:C.label},C.label))]})}function zs({label:u,value:o}){return s.jsxs("div",{className:"token-chart-kpi",children:[s.jsx("span",{children:u}),s.jsx("strong",{children:vn(o)})]})}function Ra({className:u,label:o}){return s.jsxs("li",{className:"token-chart-legend-item",children:[s.jsx("span",{className:`token-chart-swatch ${u}`,"aria-hidden":"true"}),s.jsx("span",{children:o})]})}function e0(u,o){const f=(Array.isArray(u)?u:u?.points??[]).map(y=>({date:y.date,input:Mt(y.input),output:Mt(y.output),reasoning:Mt(y.reasoning),cachedInput:Mt(y.cachedInput),total:Mt(y.total)})).filter(y=>y.date.trim().length>0).sort(c0);return o===void 0||o<=0?f:f.slice(-o)}function t0(u){const o=u.reduce((d,f)=>{const y=Us(f);return d.total+=y.total,d.input+=f.input,d.output+=f.output,d.reasoning+=f.reasoning,d.cachedInput+=f.cachedInput,d},{total:0,input:0,output:0,reasoning:0,cachedInput:0,kvHit:null});return o.kvHit=o.input>0?u0(o.cachedInput/o.input,0,1):null,o}function a0(u,o){return o==="area"?n0(u):o==="horizon"?i0(u):l0(u)}function l0(u){const o=Math.max(go,Ie.left+Ie.right+u.length*po),d=Os-Ie.bottom,f=d-Ie.top,y=o-Ie.left-Ie.right,C=u.map(Us),b=xo(Math.max(1,...C.map(k=>k.total))),H=u.length>0?y/u.length:y,N=Math.min(30,Math.max(12,H*.54)),m=u.map((k,J)=>{const _=C[J],I=Ie.left+H*J+H/2,X=I-N/2,$=_s(_.total,b,f,d);let te=d;const O=s0(_).map(ie=>{const he=vo(ie.value,b,f);return te-=he,{...ie,y:te,height:he}});return{key:`${k.date}-${J}`,label:yo(k.date),total:_.total,centerX:I,trendY:$,x:X,y:$,width:N,segments:O}}),E=yn(m.map(k=>({x:k.centerX,y:k.trendY}))),T=[0,.25,.5,.75,1].map(k=>{const J=b*k;return{value:J,y:_s(J,b,f,d)}});return{width:o,bottom:d,bars:m,trendPath:E,gridLines:T}}function n0(u){const o=Math.max(go,Ie.left+Ie.right+u.length*po),d=Os-Ie.bottom,f=d-Ie.top,y=o-Ie.left-Ie.right,C=u.map(Us),b=xo(Math.max(1,...C.map($=>$.total))),H=u.length>0?y/u.length:y,N=u.map(($,te)=>Ie.left+H*te+H/2),m=u.map(($,te)=>({x:N[te],label:yo($.date)})),E=["cached","input","output","reasoning"],T={cached:"token-chart-segment-cached",input:"token-chart-segment-input",output:"token-chart-segment-output",reasoning:"token-chart-segment-reasoning"},k=E.map(()=>[]);for(let $=0;$<u.length;$++){const te=C[$];let O=d;for(const ie of E){const he=vo(Bh(te,ie),b,f);O-=he,k[E.indexOf(ie)][$]=O}}const J=E.map(($,te)=>{const O=k[te],ie=te===0?Array(u.length).fill(d):k[te-1],he=N.map((K,Y)=>({x:K,y:O[Y]})),P=N.map((K,Y)=>({x:K,y:ie[Y]})),F=yn(he),fe=yn([...P].reverse()),B=`M ${N[0]} ${ie[0]} ${F.slice(1)} L ${N[N.length-1]} ${ie[ie.length-1]} ${fe.slice(1)} Z`;return{key:$,label:$==="cached"?"cached input":$,className:T[$],path:B}}),_=C.map($=>_s($.total,b,f,d)),I=yn(N.map(($,te)=>({x:$,y:_[te]}))),X=[0,.25,.5,.75,1].map($=>({value:b*$,y:_s(b*$,b,f,d)}));return{width:o,bottom:d,layers:J,trendPath:I,gridLines:X,centerXs:N,trendYs:_,dateLabels:m,maxTotal:b}}function i0(u){const f={top:8,right:24,bottom:36,left:72},y=Math.max(go,f.left+f.right+u.length*po),C=y-f.left-f.right,b=u.map(Us),H=u.length>0?C/u.length:C,N=[{key:"cachedInput",label:"Cached input",className:"token-chart-horizon-cached"},{key:"input",label:"Input",className:"token-chart-horizon-input"},{key:"output",label:"Output",className:"token-chart-horizon-output"},{key:"reasoning",label:"Reasoning",className:"token-chart-horizon-reasoning"}],m=N.map(J=>{const _=b.map(te=>Bh(te,J.key)??0),X=xo(Math.max(1,..._))/3,$=[];for(let te=0;te<3;te++){const O=te*X,ie=(te+1)*X,he=28/3,F=_.map(le=>Math.max(0,Math.min(le,ie)-O)).map(le=>le/X*he),fe=u.map((le,ue)=>f.left+H*ue+H/2),B=he,K=F.map(le=>B-le),Y=fe.map((le,ue)=>({x:le,y:K[ue]})),Z=yn(Y);yn(fe.map(le=>({x:le,y:B})).reverse());const W=`M ${fe[0]} ${B} ${Z.slice(1)} L ${fe[fe.length-1]} ${B}`;$.push({className:`token-chart-horizon-band-${te+1} token-chart-horizon-${J.key}`,path:W})}return{key:J.key,label:J.label,bands:$}}),E=f.top+f.bottom+N.length*28,T=E-f.bottom,k=u.map((J,_)=>({x:f.left+H*_+H/2,label:yo(J.date)}));return{width:y,height:E,bottom:T,rows:m,dateLabels:k}}function Bh(u,o){switch(o){case"cached":return u.cachedInput;case"cachedInput":return u.cachedInput;case"input":return u.input;case"output":return u.output;case"reasoning":return u.reasoning;case"other":return u.other;case"total":return u.total;default:return 0}}function Us(u){const o=Mt(u.input),d=Math.min(Mt(u.cachedInput),o),f=Math.max(0,o-d),y=Mt(u.output),C=Mt(u.reasoning),b=o+y+C,H=Math.max(Mt(u.total),b),N=Math.max(0,H-b);return{cachedInput:d,input:f,output:y,reasoning:C,other:N,total:H}}function s0(u){return[{key:"cached",label:"cached input",value:u.cachedInput,className:"token-chart-segment-cached"},{key:"input",label:"input",value:u.input,className:"token-chart-segment-input"},{key:"output",label:"output",value:u.output,className:"token-chart-segment-output"},{key:"reasoning",label:"reasoning",value:u.reasoning,className:"token-chart-segment-reasoning"},{key:"other",label:"other",value:u.other,className:"token-chart-segment-other"}]}function yn(u){if(u.length===0)return"";if(u.length===1)return`M ${u[0].x} ${u[0].y}`;if(u.length===2)return`M ${u[0].x} ${u[0].y} L ${u[1].x} ${u[1].y}`;const o=[`M ${u[0].x} ${u[0].y}`];for(let y=1;y<u.length-1;y+=1){const C=u[y],b=u[y+1],H=(C.x+b.x)/2,N=(C.y+b.y)/2;o.push(`Q ${C.x} ${C.y} ${H} ${N}`)}const d=u[u.length-2],f=u[u.length-1];return o.push(`Q ${d.x} ${d.y} ${f.x} ${f.y}`),o.join(" ")}function vo(u,o,d){return Mt(u)/o*d}function _s(u,o,d,f){return f-vo(u,o,d)}function Mt(u){return Number.isFinite(u)&&u>0?u:0}function u0(u,o,d){return Math.min(d,Math.max(o,u))}function c0(u,o){const d=oo(u.date),f=oo(o.date);return d!==null&&f!==null?d-f:d!==null?-1:f!==null?1:u.date.localeCompare(o.date)}function oo(u){const o=Date.parse(u.length===10?`${u}T00:00:00Z`:u);return Number.isNaN(o)?null:o}function yo(u){const o=oo(u);return o===null?u:new Intl.DateTimeFormat(void 0,{month:"numeric",day:"numeric",timeZone:"UTC"}).format(o)}function vn(u){return Ee(Mt(u))}function o0(u){return Ee(Mt(u))}function r0(u){return u===null?"n/a":Fp.format(u)}function xo(u){if(u<=0)return 1;const o=10**Math.floor(Math.log10(u)),d=u/o;return(d<=2?2:d<=5?5:10)*o}function f0(u){return u==="zh-CN"?"zh-CN":"en"}const d0={en:{brandSubtitle:"The black box of your coding agents",language:{short:"中",aria:"Switch language to Simplified Chinese",title:"Switch language to Simplified Chinese"},theme:{aria:"Toggle theme",names:{light:"Bright Command Center",dark:"Dark Command Center",forest:"Forest Lab",plasma:"Plasma Violet"}},topbar:{agentLogRoot:"Agent log root",agentLogRootAria:"Agent log root path",agentLogRootPlaceholder:"Blank scans default Codex logs",source:"Source",sourceAria:"Agent log source",scan:"Scan Agent Logs"},title:{eyebrow:"Project Black Box",emptyProject:"No project indexed yet",lead:""},projectControls:{provider:"Provider",providerAria:"Project provider",project:"Project",projectAria:"Project",all:"All",noProvider:"No provider"},metrics:{projects:"Projects",events:"Events",tasks:"Tasks",tokens:"Tokens",kvHit:"KV hit",cost:"Est. cost",showDailyTokens:"Show daily token usage chart",hideDailyTokens:"Hide daily token usage chart",dailyUsageByDay:"Daily usage by day"},empty:{loadingTitle:"Loading SuperView index",loadingDetail:"Checking local SQLite state.",noRunsTitle:"No agent runs indexed",noRunsDetail:"Scan local Codex, Claude Code, or OpenCode logs to build the first timeline.",noProviderTitle:"No projects for this provider",noProviderDetail:"Switch the project filter to All, or scan logs for the selected provider.",source:"Agent log source",sourceAria:"Empty agent log source",root:"Agent log root path",rootAria:"Empty agent log root path"},loading:{scanningLogs:"Scanning agent logs",loadingTimeline:"Loading timeline page",loadingIndex:"Loading SuperView index",loadingDailyTokens:"Loading daily token usage",steady:"Keeping the workspace steady while SuperView updates.",aria:"Blocking operation"},timeline:{heading:"CLI Conversation",rangeOf:"of",loaded:(u,o)=>`${u} task journeys loaded from ${o} events`,prevPage:"Prev page",nextPage:"Next page",emptyPage:"No user-input task journeys are visible on this page.",aria:"Task conversation thread",masterAria:"User input index",detailsAria:"Conversation details",masterTitle:"User inputs",detailsTitle:"Conversation details",statusLegendAria:"Run status legend",statusLegendRunning:"Running",statusLegendSuccess:"Success",statusLegendFailed:"Failed",detailTabsAria:"Thread detail tabs",conversationTab:"Conversation",contextReplayTab:"Context Replay",contextReplayLedgerAria:"Context Replay ledger",contextReplayLoading:"Loading observable context...",contextReplayEmpty:"Open this task after details are indexed to inspect observable context.",contextReplayObserved:"Observable log evidence only: prompt, tool I/O, file references, verification, warnings, and final response.",contextReplayBlocks:"blocks",contextReplaySnapshotRail:"Context snapshot rail",contextReplayWarnings:"Context warnings",contextReplayNoWarnings:"No warnings for this snapshot",contextReplayWarningJump:"Jump to the related context block",contextReplayActiveContext:"Carried forward context",contextReplayAdded:"Newly added",contextReplayChanged:"Changed or contradicted",contextReplayDropped:"Dropped or stale",contextReplayLaneActive:"Carried forward context",contextReplayLaneRetired:"Retired blocks",contextReplayLaneWarnings:"Warning signals",contextReplayMiniSceneAria:"Context flow swim lanes",contextReplaySource:"Source",contextReplayReason:"Why",contextReplayTokens:"Est. tokens",contextReplayInput:"Input",contextReplayOutput:"Output",contextReplayTokenUsage:"Tokens",contextReplayStep:"Step",contextReplayFromStep:u=>`from step ${u}`,contextReplayAutoReplay:"Auto replay",contextReplayAutoStop:"Stop",contextReplayInspector:"Context evidence",contextReplaySelectedBlock:"Selected block",contextReplayEvent:"Event",contextReplayConfidence:"Confidence",contextReplayNoSelection:"Select a context block to inspect its source, state, and reason.",emptySelection:"Select a user input",nextInput:"Next input",sessionEnd:"Session end",eventCount:u=>`${u} events`,loadingDetails:"Loading details",tokens:"tokens",kvHit:"KV hit",agentWork:"Agent work",viewProcess:"View process...",hideProcess:"Hide process...",backgroundWork:"Background Work",log:"Log",entries:"entries",noBackground:"No background work captured for this task.",noLog:"No tool or verification log entries captured.",user:"User",expand:"Expand",collapse:"Collapse",skills:"Skills",hotkeyHint:"↑↓ switch journey · ←→ switch step · W S A D switch block",resetDatabase:"Reset database",resetDatabaseConfirm:"This will permanently delete all indexed data. Scan again to rebuild. Continue?",share:"Share",shareCopied:"Copied to clipboard!",shareCardTitle:"Context Replay Summary",shareClose:"Close",shareCopy:"Copy summary",shareCopyMarkdown:"Copy as Markdown",shareProject:"Project",shareProvider:"Provider",shareSteps:"Steps",shareTokenUsage:"Token usage",shareInput:"Input",shareOutput:"Output",shareTotal:"Total",shareContextBlocks:"Context blocks",shareActive:"Active",shareRetired:"Retired",shareSnapshotOf:(u,o)=>`Snapshot ${u} / ${o}`,shareTimestamp:"Shared at",shareHeroCacheHit:u=>`${u} cache hit`,shareHeroBigTokens:u=>`${u} tokens`,shareHeroLongRun:u=>`${u} on one task`,shareHeroRiskSignals:u=>`${u} risk signal${u===1?"":"s"}`,shareHeroFailedStep:u=>`Failed at step ${u}`,shareHeroStepReplay:u=>`${u} step replay`,shareCaptionCacheHit:(u,o)=>`Agent reused ${u} cached tokens across ${o} steps.`,shareCaptionBigTokens:u=>`Spent across ${u} reasoning steps.`,shareCaptionLongRun:u=>`${u} steps of agent work in one task journey.`,shareCaptionRiskSignals:"Anomalies detected in the agent's reasoning chain.",shareCaptionFailed:"Agent could not reach a verified finish.",shareCaptionStepReplay:u=>`A traceable agent journey, ${u} end to end.`,shareStoryTemplate:(u,o,d)=>`${u} ran ${o} steps to ${d}`,shareSkillsUsed:u=>`Skills used: ${u}`,shareVerdictCleared:"Cleared",shareVerdictFailed:"Failed",shareVerdictRunning:"In progress",shareVerdictNoteCleared:"Reached final response with proof.",shareVerdictNoteFailed:u=>`Stopped at ${u}`,shareVerdictNoteRunning:"Agent still running this task.",shareVerdictRisks:u=>`${u} risk signal${u===1?"":"s"} along the way`,shareTimelineAria:"Snapshot timeline by phase",shareStatsCompact:(u,o,d)=>`${u} · ${o} · KV ${d}`,shareProviderUnknown:"Coding agent",readoutSessions:"Sessions",readoutEstCost:"Est. Cost",readoutTotalTokens:"Total Tokens",readoutToolCalls:"Tool Calls",readoutErrors:"Errors",pricingHeading:"Token Rates & Cost Assumptions",pricingNote:"Standard API rates, USD per 1M tokens. Anthropic: input + output + cached reads (×0.1) + cache writes (×1.25). Edit any field to recompute costs.",pricingInputRate:"Input $/M",pricingOutputRate:"Output $/M",toolUsageHeading:"Tool Usage",toolUsageErrors:"errors",toolUsageEmpty:"No tool calls recorded for this user input.",searchPlaceholder:"Search by title...",sortLabel:"Sort",sortNewest:"Newest first",sortCost:"Highest cost",sortDuration:"Longest duration",sortTools:"Most tools",sortErrors:"Most errors",dropzoneHint:"Drop JSONL files here",dropzoneActive:"Drop to import",modelSpendHeading:"Spend by Model",modelSpendEmpty:"No model usage data available.",modelSpendModel:"Model",modelSpendMsgs:"Msgs",modelSpendInput:"Input",modelSpendOutput:"Output",modelSpendCached:"Cached",modelSpendCost:"Cost",modelSpendTotal:"Total",recapToggle:"Session Recap",recapRhythmHeading:"Rhythm",recapDailyActivity:"daily activity",recapWhenYouShip:"when you ship",recapEfficiencyHeading:"Efficiency",recapCacheHit:"Cache Hit Rate",recapErrorRate:"Error Rate",recapTokensPerSession:"Tokens / Session",recapCostPerSession:"Cost / Session",recapEmpty:"No session data to recap."},evidence:{heading:"Evidence",loading:"Loading",kind:"Kind",time:"Time",tool:"Tool",call:"Call",noDetail:"No detail captured.",artifacts:"Artifacts",inlineEvidence:"Inline evidence",noArtifacts:"No artifacts attached to this event.",rawEvent:"Raw Event",noRawEvent:"No raw event reference available.",empty:"Select an episode, timeline event, or replay node to inspect redacted evidence."},ingest:{kicker:"Ingest level",completed:"Castle clear",failed:"Level failed",running:"Running level",files:"files",phase:"Phase",current:"Current",waitingFile:"Waiting for next file",coins:"Coins",clearedBlocks:"Cleared blocks",hazards:"Hazards",events:"Events",aria:(u,o,d,f,y)=>`Ingest ${u}, ${o}, ${d} of ${f} files processed, ${y} percent`},tokenChart:{defaultTitle:"Daily Token Usage",eyebrow:"Tokens",loading:"Loading daily usage",visibleDays:u=>`${u} visible day${u===1?"":"s"}`,noVisibleDays:"No visible days",summaryAria:"Daily token usage summary",totalTokens:"Total tokens",kvHit:"KV hit",hideChart:"Hide daily token usage chart",showChart:"Show daily token usage chart",breakdownAria:"Visible token usage breakdown",chartAria:"Daily token usage chart",chartTitle:"Daily token usage by date",totalSuffix:"total tokens",trendLabel:"trend",tokenSuffix:"tokens",input:"Input",cachedInput:"Cached input",output:"Output",reasoning:"Reasoning",totalTrend:"Total trend",legendAria:"Token usage legend",emptyLoading:"Loading daily token usage...",empty:"No daily token usage yet."},tour:{restart:"Restart tour",skip:"Skip tour",next:"Next",prev:"Back",done:"Done",stepLabel:(u,o)=>`Step ${u} of ${o}`,steps:[{title:"Scan Agent Logs",detail:"Point SuperView at your Codex, Claude Code, or OpenCode log directory to begin indexing agent runs."},{title:"Switch Projects",detail:"Browse all indexed projects. Filter by provider and select a project to inspect its timeline."},{title:"Session Recap",detail:"A collapsible analytics dashboard: sessions, tokens, cost, daily activity calendar, when-you-ship heatmap, efficiency gauges, tool usage, and spend by model."},{title:"Daily Token Usage",detail:"Horizon chart showing daily token consumption in compact layered bands — cached input, input, output, and reasoning tokens — stacked side by side with the rhythm panels."},{title:"User Input",detail:"Every user message spawns a task journey. Click any journey to expand its tool calls, evidence, and context replay."},{title:"Context Replay",detail:"Step through the agent's context window snapshot-by-snapshot. Watch context blocks added, modified, and dropped over time."},{title:"Context Replay Summary",detail:"A quick readout of the current context replay session: total snapshots, block counts, hazards, and event counts."},{title:"Context Timeline",detail:"A full-width factory belt view of every snapshot and its active context blocks. See the entire context flow at a glance."},{title:"Token Timeline",detail:"Click the chart button in the conversation header to open the token timeline panel. See how token usage evolved across all steps."},{title:"Theme & Language",detail:"Switch between 4 themes (light, dark, forest, plasma), toggle English / 中文, or click the Map button in the topbar to restart this tour anytime."}]}},"zh-CN":{brandSubtitle:"Coding Agent 黑匣子",language:{short:"EN",aria:"切换语言到英文",title:"切换语言到英文"},theme:{aria:"切换主题",names:{light:"明亮指挥中心",dark:"暗色指挥中心",forest:"森林实验室",plasma:"等离子紫"}},topbar:{agentLogRoot:"Agent 日志根目录",agentLogRootAria:"Agent 日志根目录路径",agentLogRootPlaceholder:"留空则扫描默认 Codex 日志",source:"来源",sourceAria:"Agent 日志来源",scan:"扫描 Agent 日志"},title:{eyebrow:"Project Black Box",emptyProject:"还没有索引项目",lead:""},projectControls:{provider:"来源",providerAria:"项目来源",project:"项目",projectAria:"项目",all:"全部",noProvider:"无来源"},metrics:{projects:"项目",events:"事件",tasks:"任务",tokens:"Tokens",kvHit:"KV 命中",cost:"估算费用",showDailyTokens:"显示按天 token 用量图",hideDailyTokens:"隐藏按天 token 用量图",dailyUsageByDay:"按天用量"},empty:{loadingTitle:"正在加载 SuperView 索引",loadingDetail:"正在检查本地 SQLite 状态。",noRunsTitle:"还没有索引 Agent Runs",noRunsDetail:"扫描本地 Codex、Claude Code 或 OpenCode 日志,生成第一条时间线。",noProviderTitle:"这个来源下还没有项目",noProviderDetail:"把项目过滤切到全部,或者扫描当前来源的日志。",source:"Agent 日志来源",sourceAria:"空状态 Agent 日志来源",root:"Agent 日志根目录路径",rootAria:"空状态 Agent 日志根目录路径"},loading:{scanningLogs:"正在扫描 agent 日志",loadingTimeline:"正在加载时间线分页",loadingIndex:"正在加载 SuperView 索引",loadingDailyTokens:"正在加载按天 token 用量",steady:"SuperView 更新中,暂时锁定工作区。",aria:"阻塞操作"},timeline:{heading:"CLI 对话",rangeOf:"/",loaded:(u,o)=>`已从 ${o} 个事件加载 ${u} 轮任务旅程`,prevPage:"上一页",nextPage:"下一页",emptyPage:"当前页没有可见的用户输入任务旅程。",aria:"任务对话 thread",masterAria:"用户输入索引",detailsAria:"对话详情",masterTitle:"用户输入",detailsTitle:"对话详情",statusLegendAria:"运行状态图例",statusLegendRunning:"进行中",statusLegendSuccess:"成功",statusLegendFailed:"失败",detailTabsAria:"Thread 详情标签",conversationTab:"Conversation",contextReplayTab:"Context Replay",contextReplayLedgerAria:"Context Replay ledger",contextReplayLoading:"正在加载可观察上下文...",contextReplayEmpty:"打开这轮任务后,可查看日志中可观察到的上下文。",contextReplayObserved:"仅展示日志中可观察证据:prompt、tool I/O、文件引用、验证、warning 和最终回复。",contextReplayBlocks:"blocks",contextReplaySnapshotRail:"Context snapshot rail",contextReplayWarnings:"Context warnings",contextReplayNoWarnings:"这个快照没有 warning",contextReplayWarningJump:"跳转到相关上下文块",contextReplayActiveContext:"Carried forward context",contextReplayAdded:"新增上下文",contextReplayChanged:"变化或冲突",contextReplayDropped:"丢失或过期",contextReplayLaneActive:"延续上下文",contextReplayLaneRetired:"已退出",contextReplayLaneWarnings:"风险信号",contextReplayMiniSceneAria:"上下文流泳道",contextReplaySource:"来源",contextReplayReason:"原因",contextReplayTokens:"估算 tokens",contextReplayInput:"输入",contextReplayOutput:"输出",contextReplayTokenUsage:"Token 用量",contextReplayStep:"Step",contextReplayFromStep:u=>`来自步骤 ${u}`,contextReplayAutoReplay:"自动回放",contextReplayAutoStop:"停止",contextReplayInspector:"上下文证据",contextReplaySelectedBlock:"选中 block",contextReplayEvent:"事件",contextReplayConfidence:"置信度",contextReplayNoSelection:"选择一个 context block,查看来源、状态和保留原因。",emptySelection:"选择一条用户输入",nextInput:"下一次输入",sessionEnd:"Session 结束",eventCount:u=>`${u} 个事件`,loadingDetails:"正在加载细节",tokens:"tokens",kvHit:"KV 命中",agentWork:"Agent 工作过程",viewProcess:"查看过程...",hideProcess:"收起过程...",backgroundWork:"后台工作",log:"日志",entries:"条",noBackground:"这轮任务没有捕获到后台工作过程。",noLog:"没有捕获到 tool 或 verification 日志。",user:"用户",expand:"展开",collapse:"收起",skills:"Skills",hotkeyHint:"↑↓ 切换对话 · ←→ 切换步骤 · W S A D 切换上下文块",resetDatabase:"重置数据库",resetDatabaseConfirm:"此操作将永久删除所有已索引数据。重新扫描后可重建。继续?",share:"分享",shareCopied:"已复制到剪贴板!",shareCardTitle:"Context Replay 摘要",shareClose:"关闭",shareCopy:"复制摘要",shareCopyMarkdown:"复制为 Markdown",shareProject:"项目",shareProvider:"来源",shareSteps:"步骤",shareTokenUsage:"Token 用量",shareInput:"输入",shareOutput:"输出",shareTotal:"总计",shareContextBlocks:"Context Block",shareActive:"活跃",shareRetired:"已退出",shareSnapshotOf:(u,o)=>`快照 ${u} / ${o}`,shareTimestamp:"分享时间",shareHeroCacheHit:u=>`缓存命中 ${u}`,shareHeroBigTokens:u=>`${u} tokens`,shareHeroLongRun:u=>`单任务用了 ${u}`,shareHeroRiskSignals:u=>`${u} 条风险信号`,shareHeroFailedStep:u=>`在第 ${u} 步失败`,shareHeroStepReplay:u=>`${u} 步可回放`,shareCaptionCacheHit:(u,o)=>`Agent 在 ${o} 步中复用了 ${u} 缓存 tokens。`,shareCaptionBigTokens:u=>`在 ${u} 个推理步骤里全部消耗。`,shareCaptionLongRun:u=>`一次任务旅程,包含 ${u} 个 Agent 步骤。`,shareCaptionRiskSignals:"Agent 推理链路中出现可观测异常。",shareCaptionFailed:"Agent 未能到达一个可验证的终点。",shareCaptionStepReplay:u=>`一段可追溯的 Agent 旅程,总时长 ${u}。`,shareStoryTemplate:(u,o,d)=>`${u} 用 ${o} 步处理:${d}`,shareSkillsUsed:u=>`用到的能力:${u}`,shareVerdictCleared:"通关",shareVerdictFailed:"失败",shareVerdictRunning:"进行中",shareVerdictNoteCleared:"已抵达最终回复并附带证据。",shareVerdictNoteFailed:u=>`停在:${u}`,shareVerdictNoteRunning:"Agent 仍在处理这个任务。",shareVerdictRisks:u=>`沿途出现 ${u} 条风险信号`,shareTimelineAria:"按阶段排列的快照时间线",shareStatsCompact:(u,o,d)=>`${u} · ${o} · KV ${d}`,shareProviderUnknown:"编码 Agent",readoutSessions:"会话数",readoutEstCost:"估算费用",readoutTotalTokens:"总 Tokens",readoutToolCalls:"工具调用",readoutErrors:"错误数",pricingHeading:"Token 费率与费用假设",pricingNote:"标准 API 费率,USD / 1M tokens。Anthropic:输入 + 输出 + 缓存读取 (×0.1) + 缓存写入 (×1.25)。编辑任意字段重新计算费用。",pricingInputRate:"输入 $/M",pricingOutputRate:"输出 $/M",toolUsageHeading:"工具用量",toolUsageErrors:"错误",toolUsageEmpty:"该用户输入未记录工具调用。",searchPlaceholder:"按标题搜索...",sortLabel:"排序",sortNewest:"最新优先",sortCost:"费用最高",sortDuration:"时长最长",sortTools:"工具最多",sortErrors:"错误最多",dropzoneHint:"拖拽 JSONL 文件到此处",dropzoneActive:"松手导入",modelSpendHeading:"按模型费用",modelSpendEmpty:"无模型用量数据。",modelSpendModel:"模型",modelSpendMsgs:"消息数",modelSpendInput:"输入",modelSpendOutput:"输出",modelSpendCached:"缓存",modelSpendCost:"费用",modelSpendTotal:"合计",recapToggle:"会话概览",recapRhythmHeading:"节奏",recapDailyActivity:"日常活动",recapWhenYouShip:"编码时段",recapEfficiencyHeading:"效率",recapCacheHit:"缓存命中率",recapErrorRate:"错误率",recapTokensPerSession:"Token / 会话",recapCostPerSession:"费用 / 会话",recapEmpty:"暂无会话数据。"},evidence:{heading:"证据",loading:"加载中",kind:"类型",time:"时间",tool:"工具",call:"调用",noDetail:"没有捕获到详情。",artifacts:"Artifacts",inlineEvidence:"Inline evidence",noArtifacts:"这个事件没有附加 artifacts。",rawEvent:"原始事件",noRawEvent:"没有可用的原始事件引用。",empty:"选择一个 episode、timeline event 或 replay node,查看 redacted evidence。"},ingest:{kicker:"Ingest 关卡",completed:"城堡通关",failed:"关卡失败",running:"关卡运行中",files:"文件",phase:"阶段",current:"当前",waitingFile:"等待下一个文件",coins:"金币",clearedBlocks:"已清理砖块",hazards:"障碍",events:"事件",aria:(u,o,d,f,y)=>`Ingest ${u},${o},已处理 ${d}/${f} 个文件,进度 ${y}%`},tokenChart:{defaultTitle:"按天 Token 用量",eyebrow:"Tokens",loading:"正在加载按天用量",visibleDays:u=>`${u} 个可见日期`,noVisibleDays:"没有可见日期",summaryAria:"按天 token 用量摘要",totalTokens:"总 tokens",kvHit:"KV 命中",hideChart:"隐藏按天 token 用量图",showChart:"显示按天 token 用量图",breakdownAria:"可见 token 用量拆分",chartAria:"按天 token 用量图",chartTitle:"按日期统计的 token 用量",totalSuffix:"总 tokens",trendLabel:"趋势",tokenSuffix:"tokens",input:"Input",cachedInput:"Cached input",output:"Output",reasoning:"Reasoning",totalTrend:"总趋势",legendAria:"Token 用量图例",emptyLoading:"正在加载按天 token 用量...",empty:"还没有按天 token 用量。"},tour:{restart:"重新引导",skip:"跳过引导",next:"下一步",prev:"上一步",done:"完成",stepLabel:(u,o)=>`第 ${u} / ${o} 步`,steps:[{title:"扫描 Agent 日志",detail:"将 SuperView 指向您的 Codex、Claude Code 或 OpenCode 日志目录,开始索引 Agent 运行记录。"},{title:"切换项目",detail:"浏览所有已索引的项目。按 provider 筛选,选择一个项目查看其时间线。"},{title:"会话概览",detail:"可折叠的分析仪表盘:会话数、Token 消耗、成本、每日活动日历、按时段热力图、效率指标、工具用量和按模型支出。"},{title:"每日 Token 用量",detail:"Horizon 图以紧凑分层色带展示每日 Token 消耗:缓存输入、输入、输出和推理 Token,与节奏面板并排陈列。"},{title:"用户输入",detail:"每条用户消息生成一个任务旅程。点击任意旅程展开工具调用、证据和上下文回放。"},{title:"上下文回放",detail:"逐快照步进浏览 Agent 上下文窗口。观察上下文块的添加、修改和移除过程。"},{title:"上下文回放摘要",detail:"当前回放会话的快速概览:快照总数、上下文块数量、风险点和事件计数。"},{title:"上下文时间线",detail:"全宽工厂流水线视图,展示每个快照及其活跃上下文块随时间流动。一目了然。"},{title:"Token 时间线",detail:"点击对话头部图表按钮,打开 Token 时间线面板,查看各步骤的 Token 用量变化。"},{title:"主题与语言",detail:"4 种主题(明亮/暗色/森林/等离子紫)切换,中英文切换,或点击顶栏 Map 按钮随时重新开始此引导。"}]}}},Hs=[{id:"sonnet",provider:"Anthropic",label:"Sonnet",test:/sonnet/i,inRate:3,outRate:15},{id:"haiku45",provider:"Anthropic",label:"Haiku 4.5",test:/haiku-?4-?5/i,inRate:1,outRate:5},{id:"haiku",provider:"Anthropic",label:"Haiku (3.x)",test:/haiku/i,inRate:.8,outRate:4},{id:"opus4x",provider:"Anthropic",label:"Opus 4.5–4.8",test:/opus-?4-?(5|6|7|8)/i,inRate:5,outRate:25},{id:"opus",provider:"Anthropic",label:"Opus",test:/opus/i,inRate:5,outRate:25},{id:"oMini",provider:"OpenAI",label:"GPT mini",test:/mini/i,inRate:.45,outRate:3.6},{id:"oGpt5",provider:"OpenAI",label:"GPT-5",test:/(gpt-?5|o3|o4)/i,inRate:2.5,outRate:15},{id:"o55",provider:"OpenAI",label:"GPT-5.5",test:/gpt-?5\.?5/i,inRate:5,outRate:30},{id:"anthropic",provider:"Anthropic",label:"Claude (unspecified)",test:/anthropic/i,inRate:3,outRate:15},{id:"openai",provider:"OpenAI",label:"GPT (unspecified)",test:/openai/i,inRate:2.5,outRate:15},{id:"unknown",provider:"Other",label:"Unknown",test:/.*/,inRate:3,outRate:15}],h0=.1;function bo(u,o=Hs){const d=u??"";for(const f of o)if(f.test.test(d))return f;return o[o.length-1]}function qh(u,o,d=Hs){if(!u)return 0;const f=bo(o,d),y=(u.input??0)*f.inRate/1e6,C=(u.output??0)*f.outRate/1e6,b=(u.cachedInput??0)*f.inRate*h0/1e6;return y+C+b}function tl(u,o,d){return qh(u,"sonnet",d)}function Yh(u,o,d=Hs){const f=new Map;for(const y of u){const b=o.get(y.sessionId)?.modelProvider??null,H=bo(b,d),N=H.id,m=f.get(N)??{label:H.label,provider:H.provider,input:0,output:0,cachedInput:0,messages:0,cost:0};m.input+=y.tokenUsage?.input??0,m.output+=y.tokenUsage?.output??0,m.cachedInput+=y.tokenUsage?.cachedInput??0,m.messages+=1,m.cost+=qh(y.tokenUsage,b,d),f.set(N,m)}return[...f.entries()].map(([y,C])=>({model:y,...C})).sort((y,C)=>C.cost-y.cost)}function $t(u){return u>=100?`$${Math.round(u)}`:u>=1?`$${u.toFixed(2)}`:u>=.01?`$${u.toFixed(4)}`:`$${u.toFixed(6)}`}const io=1e5,Gh=["light","dark","forest","plasma"];function m0(){const u=localStorage.getItem("superview-theme");return u&&Gh.includes(u)?u:"light"}function Eh({theme:u,size:o=17}){return u==="light"?s.jsx(Qp,{size:o}):u==="dark"?s.jsx(Dp,{size:o}):u==="forest"?s.jsx(Rp,{size:o}):s.jsx(Xp,{size:o})}function g0(){const[u,o]=D.useState(m0),[d,f]=D.useState(!1),y=D.useRef(null),C=D.useRef(null),[b,H]=D.useState(()=>f0(localStorage.getItem("superview-language"))),[N,m]=D.useState([]),[E,T]=D.useState(null),[k,J]=D.useState(null),[_,I]=D.useState(!1),[X,$]=D.useState(null),[te,O]=D.useState(!1),[ie,he]=D.useState(!1),[P,F]=D.useState(!1),[fe,B]=D.useState(null),[K,Y]=D.useState({}),[Z,W]=D.useState({}),le=D.useRef(new Set),[ue,S]=D.useState({}),[v,V]=D.useState({}),ee=D.useRef(new Set),[G,h]=D.useState({}),[M,Q]=D.useState(null),ae=D.useRef(M);ae.current=M;const ce=D.useRef(null),[me,be]=D.useState("codex"),[qe,ze]=D.useState("all"),[Kt,la]=D.useState(!1),[na,al]=D.useState(""),[Jt,ll]=D.useState(!1),[ia,hi]=D.useState(!0),[xn,at]=D.useState(null),[bn,nl]=D.useState(!1),sa=D.useRef(null),[ua,rt]=D.useState(()=>Hs.map(w=>({...w,test:w.test}))),[Ls,il]=D.useState(!1),[mi,Ma]=D.useState(0),[Rl,Ml]=D.useState(()=>localStorage.getItem("superview-tour-completed")==="true"),oe=d0[b];D.useEffect(()=>{document.documentElement.dataset.theme=u,localStorage.setItem("superview-theme",u)},[u]),D.useEffect(()=>{if(!d)return;function w(pe){y.current&&(y.current.contains(pe.target)||f(!1))}function de(pe){pe.key==="Escape"&&f(!1)}return document.addEventListener("mousedown",w),document.addEventListener("keydown",de),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",de)}},[d]),D.useEffect(()=>{if(!Kt)return;function w(pe){C.current&&(C.current.contains(pe.target)||la(!1))}function de(pe){pe.key==="Escape"&&la(!1)}return document.addEventListener("mousedown",w),document.addEventListener("keydown",de),()=>{document.removeEventListener("mousedown",w),document.removeEventListener("keydown",de)}},[Kt]),D.useEffect(()=>{document.documentElement.lang=b,localStorage.setItem("superview-language",b)},[b]),D.useEffect(()=>{if(!Rl&&!ia){const w=setTimeout(()=>il(!0),600);return()=>clearTimeout(w)}},[Rl,ia]),D.useEffect(()=>{localStorage.setItem("superview-tour-completed",String(Rl))},[Rl]),D.useEffect(()=>{za()},[]),D.useEffect(()=>{E&&ft(E)},[E]),D.useEffect(()=>{if(!E){$(null);return}Wt(E)},[E]),D.useEffect(()=>{const w=kh(N,qe);if(w.length===0){T(null),J(null),B(null);return}(!E||!w.some(de=>de.id===E))&&T(w[0].id)},[N,qe,E]),D.useEffect(()=>{if(!M||M.status==="completed"||M.status==="failed")return;ce.current&&clearTimeout(ce.current);const w=window.setInterval(async()=>{const de=await Rs(M.id);if(Q(de),de.status==="completed"||de.status==="failed"){try{const pe=await ao();if(m(pe),E){const[He,mt]=await Promise.all([no(E,{limit:io,offset:0}),Ms(E)]);J(He),$(mt)}}catch{}ce.current=setTimeout(()=>Q(null),2500)}},700);return()=>{window.clearInterval(w),ce.current&&clearTimeout(ce.current)}},[M,E]),D.useEffect(()=>{if(!E)return;const w=window.setInterval(async()=>{try{const[pe,He]=await Promise.all([no(E,{limit:io,offset:0}),Ms(E)]);J(pe),$(He)}catch{}},15e3),de=window.setInterval(async()=>{if(!uo(ae.current))try{const pe=await lo({sources:[{provider:me}]});Q(await Rs(pe))}catch{}},6e4);return()=>{window.clearInterval(w),window.clearInterval(de)}},[E,me]),D.useEffect(()=>{function w(He){He.dataTransfer?.types.includes("Files")&&(He.preventDefault(),sa.current&&clearTimeout(sa.current),nl(!0))}function de(He){!He.currentTarget||He.relatedTarget&&He.currentTarget.contains(He.relatedTarget)||(sa.current=setTimeout(()=>nl(!1),150))}function pe(He){He.preventDefault(),nl(!1),sa.current&&clearTimeout(sa.current);const mt=He.dataTransfer?.files;!mt||mt.length===0||Bs(mt)}return window.addEventListener("dragover",w),window.addEventListener("dragleave",de),window.addEventListener("drop",pe),()=>{window.removeEventListener("dragover",w),window.removeEventListener("dragleave",de),window.removeEventListener("drop",pe),sa.current&&clearTimeout(sa.current)}},[]);async function Bs(w){for(const de of Array.from(w))if(de.name.endsWith(".jsonl"))try{const He=(await de.text()).trim().split(`
10
+ `).filter(Boolean),mt=await lo({sources:[{provider:"codex",path:de.name}]});Q(await Rs(mt)),setTimeout(async()=>{try{const ka=await ao();m(ka),E&&$(await Ms(E))}catch{}},3e3)}catch{}}async function za(){hi(!0);try{const w=await ao();m(w),T(de=>de??w[0]?.id??null),at(null)}catch(w){at(w instanceof Error?w.message:String(w))}finally{hi(!1)}}async function ft(w){I(!0);try{const de=await no(w,{limit:io,offset:0});J(de),B(de.events[0]??null),h({}),at(null)}catch(de){at(de instanceof Error?de.message:String(de))}finally{I(!1)}}async function Wt(w){O(!0);try{const de=await Ms(w);$(de),at(null)}catch(de){$(null),at(de instanceof Error?de.message:String(de))}finally{O(!1)}}async function dt(){if(confirm(oe.timeline.resetDatabaseConfirm)){ll(!1);try{await Jp(),Q(null),J(null),B(null),m([]),T(null),$(null),O(!1),I(!1),he(!1),h({}),Y({}),S({}),at(null),await za()}catch{}}}async function zl(){if(!uo(M)){ll(!1),at(null);try{const w=na.trim(),de=await lo(w?{sources:[{provider:me,root:w,path:w}]}:{sources:[{provider:me}]});Q(await Rs(de))}catch(w){at(w instanceof Error?w.message:String(w))}}}async function gi(w,de=E??void 0){if(!(K[w]||le.current.has(w))){le.current.add(w),W(pe=>({...pe,[w]:!0}));try{const pe=await $p(w,de);Y(He=>({...He,[w]:pe})),at(null)}catch(pe){at(pe instanceof Error?pe.message:String(pe))}finally{le.current.delete(w),W(pe=>({...pe,[w]:!1}))}}}async function qs(w,de=E??void 0){if(!(ue[w]||ee.current.has(w))){ee.current.add(w),V(pe=>({...pe,[w]:!0}));try{const pe=await Kp(w,de);S(He=>({...He,[w]:pe})),at(null)}catch(pe){at(pe instanceof Error?pe.message:String(pe))}finally{ee.current.delete(w),V(pe=>({...pe,[w]:!1}))}}}function kl(w){h(de=>{const pe=!de[w];return pe||gi(w),{...de,[w]:pe}})}const ca=D.useMemo(()=>kh(N,qe),[N,qe]),zt=ca.find(w=>w.id===E)??null,ht=k?.taskJourneys??[],sl=D.useMemo(()=>new Map((k?.events??[]).map(w=>[w.id,w])),[k]),Gt=D.useMemo(()=>{const w=new Map;for(const de of zt?.sessions??[])w.set(de.id,de);return w},[zt?.sessions]);k?.totalEvents??k?.events.length,zt?.tokenUsage??k?.tokenUsage;const oa=D.useMemo(()=>{if(ht.length===0)return null;let w=0,de=0,pe=1/0,He=-1/0,mt=0,ka="";const Dl={},Ft=Yh(ht,Gt,ua)[0]?.label??"—";for(const ct of ht){if(w+=tl(ct.tokenUsage,void 0,ua),de+=ct.durationMs??0,ct.startedAt){const It=Date.parse(ct.startedAt);It<pe&&(pe=It),It>He&&(He=It);const Sn=new Date(new Date(ct.startedAt).getFullYear(),new Date(ct.startedAt).getMonth(),new Date(ct.startedAt).getDate()).toDateString();Dl[Sn]=(Dl[Sn]??0)+tl(ct.tokenUsage,void 0,ua)}const ol=tl(ct.tokenUsage,void 0,ua);if(ol>mt){mt=ol;const It=Gt.get(ct.sessionId)?.cwd;ka=It?It.replace(/\\/g,"/").split("/").filter(Boolean).slice(-2).join("/")||It:"(unknown)"}}const We=de/36e5,ut=isFinite(pe)&&isFinite(He)?Math.max(1,Math.round((He-pe)/864e5)+1):1;let Xt=null;for(const[ct,ol]of Object.entries(Dl))(!Xt||ol>Xt.cost)&&(Xt={date:new Date(ct),cost:ol});return{spanDays:ut,sessions:ht.length,cost:w,hours:We,favModel:Ft,busyDay:Xt,priciestName:ka,priciestCost:mt}},[ht,ua,Gt]),kt=uo(M),ul=L0({copy:oe,loading:ia,timelineLoading:_,dailyTokenUsageLoading:te}),cl=B0({job:M,message:ul,ingestBusy:kt,loading:ia,timelineLoading:_,dailyTokenUsageLoading:te});return s.jsxs("div",{className:"app-shell",children:[s.jsxs("header",{className:"topbar",children:[s.jsxs("div",{className:"brand",children:[s.jsx("strong",{children:"SuperView"}),s.jsx("span",{children:oe.brandSubtitle})]}),s.jsxs("div",{className:"topbar-actions",children:[s.jsxs("div",{className:"scan-dropdown",children:[s.jsxs("button",{className:"shell-button scan-dropdown-trigger",onClick:()=>ll(w=>!w),disabled:kt,"aria-expanded":Jt,"aria-controls":"scan-agent-log-panel",children:[s.jsx(Ah,{size:16}),oe.topbar.scan,s.jsx(Th,{size:15,"aria-hidden":"true"})]}),Jt?s.jsxs("div",{className:"scan-dropdown-panel",id:"scan-agent-log-panel",role:"region","aria-label":oe.topbar.scan,children:[s.jsxs("label",{className:"agent-provider-control",children:[s.jsx("span",{children:oe.topbar.source}),s.jsxs("select",{"aria-label":oe.topbar.sourceAria,value:me,onChange:w=>be(w.target.value),disabled:kt,children:[s.jsx("option",{value:"codex",children:"Codex"}),s.jsx("option",{value:"claude-code",children:"Claude Code"}),s.jsx("option",{value:"opencode",children:"OpenCode"})]})]}),s.jsxs("label",{className:"agent-root-control",children:[s.jsx("span",{children:oe.topbar.agentLogRoot}),s.jsx("input",{"aria-label":oe.topbar.agentLogRootAria,value:na,onChange:w=>al(w.target.value),placeholder:oe.topbar.agentLogRootPlaceholder,disabled:kt})]}),s.jsxs("button",{className:"shell-button scan-dropdown-submit",onClick:zl,disabled:kt,children:[s.jsx(Ah,{size:16}),oe.topbar.scan]}),s.jsx("button",{className:"shell-button",onClick:dt,style:{marginTop:4,fontSize:11,color:"rgba(255,120,120,.8)"},children:oe.timeline.resetDatabase})]}):null]}),s.jsxs("div",{className:"project-dropdown",ref:C,children:[s.jsxs("button",{className:"shell-button project-dropdown-trigger",onClick:()=>la(w=>!w),"aria-expanded":Kt,disabled:_||kt,children:[s.jsx(Tp,{size:16}),zt?.name??oe.projectControls.project,s.jsx(Th,{size:15,"aria-hidden":"true"})]}),Kt?s.jsxs("div",{className:"project-dropdown-panel",children:[s.jsx("div",{className:"project-dropdown-chips",role:"group","aria-label":oe.projectControls.provider,children:["all","codex","claude-code","opencode"].map(w=>s.jsx("button",{type:"button",className:`project-dropdown-chip${qe===w?" active":""}`,onClick:()=>ze(w),children:w==="all"?oe.projectControls.all:w==="codex"?"Codex":w==="claude-code"?"Claude Code":"OpenCode"},w))}),s.jsx("div",{className:"project-dropdown-list",role:"listbox","aria-label":oe.projectControls.project,children:ca.length===0?s.jsx("div",{className:"project-dropdown-empty",children:oe.empty.noProviderTitle}):ca.map(w=>s.jsxs("button",{type:"button",role:"option","aria-selected":w.id===E,className:`project-dropdown-item${w.id===E?" active":""}`,onClick:()=>{T(w.id),la(!1)},children:[s.jsx("span",{className:"project-dropdown-item-name",children:w.name}),s.jsxs("span",{className:"project-dropdown-item-meta",children:[Ee(w.tokenUsage.total)," / KV"," ",ws(w.tokenUsage)]})]},w.id))})]}):null]}),s.jsxs("div",{className:"theme-dropdown",ref:y,children:[s.jsx("button",{className:"icon-button","aria-label":oe.theme.aria,title:oe.theme.names[u],"aria-haspopup":"menu","aria-expanded":d,onClick:()=>f(w=>!w),children:s.jsx(Eh,{theme:u})}),d?s.jsx("div",{className:"theme-dropdown-panel",role:"menu","aria-label":oe.theme.aria,children:Gh.map(w=>s.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":u===w,className:`theme-dropdown-option${u===w?" active":""}`,onClick:()=>{o(w),f(!1)},children:[s.jsx(Eh,{theme:w,size:15}),s.jsx("span",{children:oe.theme.names[w]}),u===w?s.jsx("i",{className:"theme-dropdown-check","aria-hidden":"true",children:"✓"}):s.jsx("span",{"aria-hidden":"true"})]},w))}):null]}),s.jsx("button",{className:"icon-button tour-restart-button","aria-label":oe.tour.restart,title:oe.tour.restart,onClick:()=>{Ma(0),Ml(!1),il(!0)},children:s.jsx(zp,{size:16})}),s.jsxs("button",{className:"shell-button language-toggle-button","aria-label":oe.language.aria,title:oe.language.title,onClick:()=>H(w=>w==="en"?"zh-CN":"en"),children:[s.jsx(Ep,{size:16}),oe.language.short]})]})]}),s.jsxs("main",{className:"workspace",children:[s.jsxs("section",{className:"title-row",children:[s.jsxs("div",{children:[s.jsx("p",{className:"eyebrow",children:oe.title.eyebrow}),s.jsx("h1",{children:zt?.name??oe.title.emptyProject}),s.jsx("p",{className:"lead",children:oe.title.lead})]}),oa?s.jsx("div",{className:"recap-title-block",children:s.jsxs("h2",{className:"recap-title-summary",children:["Across ",s.jsx("em",{children:oa.spanDays})," day",oa.spanDays!==1?"s":"",", you ran"," ",s.jsx("em",{children:oa.sessions})," agent session",oa.sessions!==1?"s":"",", spent"," ",s.jsx("em",{children:$t(oa.cost)}),", and kept them working for ",s.jsxs("em",{children:[oa.hours.toFixed(1),"h"]}),"."]})}):null]}),zt?s.jsx(Z0,{copy:oe.timeline,metricsCopy:oe.metrics,tokenChartCopy:oe.tokenChart,journeys:ht,timelineEventsById:sl,dailyTokenUsage:X,dailyTokenUsageLoading:te,sessionMap:Gt,pricing:ua,onPricingChange:rt}):null,xn?s.jsxs("div",{className:"alert",children:[s.jsx(wh,{size:16}),xn]}):null,ul?s.jsx(_0,{copy:oe.loading,ingestCopy:oe.ingest,message:ul,job:cl}):null,ia?s.jsx(so,{copy:oe.empty,title:oe.empty.loadingTitle,detail:oe.empty.loadingDetail,agentProvider:me,onAgentProviderChange:be,agentLogRoot:na,onAgentLogRootChange:al,onScan:zl,disabled:kt,scanLabel:oe.topbar.scan,placeholder:oe.topbar.agentLogRootPlaceholder}):N.length===0?s.jsx(so,{copy:oe.empty,title:oe.empty.noRunsTitle,detail:oe.empty.noRunsDetail,agentProvider:me,onAgentProviderChange:be,agentLogRoot:na,onAgentLogRootChange:al,onScan:zl,disabled:kt,scanLabel:oe.topbar.scan,placeholder:oe.topbar.agentLogRootPlaceholder}):ca.length===0?s.jsx(so,{copy:oe.empty,title:oe.empty.noProviderTitle,detail:oe.empty.noProviderDetail,agentProvider:me,onAgentProviderChange:be,agentLogRoot:na,onAgentLogRootChange:al,onScan:zl,disabled:kt,scanLabel:oe.topbar.scan,placeholder:oe.topbar.agentLogRootPlaceholder}):s.jsx("div",{className:"dashboard-grid conversation-dashboard-grid",children:s.jsx("section",{className:"timeline-panel",children:s.jsx(y0,{copy:oe.timeline,journeys:ht,pricing:ua,detailsByJourneyId:K,contextReplaysByJourneyId:ue,timelineEventsById:sl,collapsedJourneyIds:G,loadingJourneyIds:Z,loadingContextReplayIds:v,selectedEventId:fe?.id??null,selectedProjectName:zt?.name??"",onToggleDetails:kl,onLoadJourneyDetail:w=>gi(w),onLoadContextReplay:w=>qs(w),onSelectEvent:w=>B(w),tokenTimelineOpen:P,setTokenTimelineOpen:F,sessionMap:Gt})})})]}),bn?s.jsx("div",{className:"dropzone-overlay","aria-hidden":"true",children:s.jsx("div",{className:"dropzone-message",children:oe.timeline.dropzoneActive})}):null,Ls?s.jsx(O0,{step:mi,totalSteps:oe.tour.steps.length,copy:oe.tour,onPrev:()=>Ma(w=>Math.max(0,w-1)),onNext:()=>Ma(w=>Math.min(oe.tour.steps.length-1,w+1)),onDone:()=>{il(!1),Ml(!0)},onSkip:()=>{il(!1),Ml(!0)}}):null]})}function Ch(u,o){const d=["log-entry",u.status];return u.id===o&&d.push("selected"),d.join(" ")}function p0(u){return{added:u.filter(o=>o.state==="new"),active:u.filter(o=>o.state==="retained"||o.state==="cited"),changed:u.filter(o=>o.state==="changed"||o.state==="contradicted"),dropped:u.filter(o=>o.state==="dropped"||o.state==="stale")}}function v0(u){const o=new Map;return u.forEach((d,f)=>{for(const y of d.blocks)o.has(y.id)||o.set(y.id,f+1)}),o}function y0({copy:u,journeys:o,pricing:d,detailsByJourneyId:f,contextReplaysByJourneyId:y,timelineEventsById:C,collapsedJourneyIds:b,loadingJourneyIds:H,loadingContextReplayIds:N,selectedEventId:m,selectedProjectName:E,onToggleDetails:T,onLoadJourneyDetail:k,onLoadContextReplay:J,onSelectEvent:_,tokenTimelineOpen:I,setTokenTimelineOpen:X,sessionMap:$}){const[te,O]=D.useState(""),[ie,he]=D.useState("newest"),P=D.useMemo(()=>$0(o,te,ie,d),[o,te,ie,d]),[F,fe]=D.useState(null),B=D.useRef(null),[K,Y]=D.useState("context"),Z=P.find(W=>W.id===F)??P[0]??null;return D.useEffect(()=>{if(P.length===0){fe(null);return}fe(W=>W&&P.some(le=>le.id===W)?W:P[0].id)},[P]),D.useEffect(()=>{if(!F||!B.current)return;B.current.querySelector(`[data-journey-id="${F}"]`)?.scrollIntoView({behavior:"smooth",block:"nearest"})},[F]),D.useEffect(()=>{K==="context"&&Z&&J(Z.id)},[K,J,Z]),D.useEffect(()=>{K!=="context"&&Z&&!b[Z.id]&&k(Z.id)},[K,k,Z,b]),D.useEffect(()=>{function W(ue){const S=ue.target,v=S?.tagName.toLowerCase();return ue.altKey||ue.ctrlKey||ue.metaKey||v==="input"||v==="textarea"||v==="select"||!!S?.isContentEditable}function le(ue){if(ue.key!=="ArrowUp"&&ue.key!=="ArrowDown"||W(ue)||P.length===0)return;const S=P.findIndex(G=>G.id===Z?.id),v=S<0?0:S,V=P.length-1,ee=ue.key==="ArrowDown"?Math.min(V,v+1):Math.max(0,v-1);if(ee===S){ue.preventDefault();return}ue.preventDefault(),fe(P[ee].id)}return document.addEventListener("keydown",le),()=>document.removeEventListener("keydown",le)},[P,Z]),o.length===0?s.jsx("p",{className:"muted",children:u.emptyPage}):s.jsxs("div",{className:"conversation-thread conversation-master-detail","aria-label":u.aria,children:[s.jsxs("aside",{className:"conversation-master","aria-label":u.masterAria,children:[s.jsxs("div",{className:"conversation-master-heading",children:[s.jsx("span",{children:u.masterTitle}),s.jsxs("ul",{className:"conversation-status-legend","aria-label":u.statusLegendAria,children:[s.jsxs("li",{className:"running",children:[s.jsx("i",{"aria-hidden":"true"}),u.statusLegendRunning]}),s.jsxs("li",{className:"success",children:[s.jsx("i",{"aria-hidden":"true"}),u.statusLegendSuccess]}),s.jsxs("li",{className:"failed",children:[s.jsx("i",{"aria-hidden":"true"}),u.statusLegendFailed]})]}),s.jsx("strong",{children:P.length}),s.jsx("button",{type:"button",className:"timeline-chart-btn","aria-label":"Token Timeline",title:"Token Timeline",onClick:()=>X(W=>!W),children:s.jsx(bp,{size:13})})]}),s.jsxs("div",{className:"conversation-master-search",children:[s.jsx("input",{type:"search",className:"master-search-input",placeholder:u.searchPlaceholder,value:te,onChange:W=>O(W.target.value),"aria-label":u.searchPlaceholder}),s.jsxs("select",{className:"master-sort-select",value:ie,onChange:W=>he(W.target.value),"aria-label":u.sortLabel,children:[s.jsx("option",{value:"newest",children:u.sortNewest}),s.jsx("option",{value:"cost",children:u.sortCost}),s.jsx("option",{value:"duration",children:u.sortDuration}),s.jsx("option",{value:"tools",children:u.sortTools}),s.jsx("option",{value:"errors",children:u.sortErrors})]})]}),s.jsx("div",{className:"conversation-master-list",ref:B,children:P.map(W=>s.jsx(x0,{copy:u,journey:W,fallbackPrompt:C.get(W.promptEventId)??null,active:W.id===Z?.id,loading:!!H[W.id],timelineEventsById:C,onSelect:()=>fe(W.id)},W.id))})]}),s.jsxs("section",{className:"conversation-detail-pane","aria-label":u.detailsAria,children:[s.jsxs("div",{className:"conversation-detail-heading",children:[s.jsx("span",{children:u.detailsTitle}),s.jsx("strong",{children:Z?.title??u.emptySelection})]}),s.jsx(Y0,{tools:q0(Z,C),copy:u}),s.jsxs("div",{className:"thread-detail-tabs",role:"tablist","aria-label":u.detailTabsAria,children:[s.jsx("button",{type:"button",role:"tab","aria-selected":K==="context",className:K==="context"?"active":"",onClick:()=>Y("context"),children:u.contextReplayTab}),s.jsx("button",{type:"button",role:"tab","aria-selected":K==="conversation",className:K==="conversation"?"active":"",onClick:()=>Y("conversation"),children:u.conversationTab})]}),Z?K==="context"?s.jsx(b0,{copy:u,replay:y[Z.id]??null,loading:!!N[Z.id],selectedProjectName:E}):s.jsx(k0,{copy:u,journey:Z,detail:f[Z.id]??null,fallbackPrompt:C.get(Z.promptEventId)??null,expanded:!b[Z.id],loading:!!H[Z.id],selectedEventId:m,onToggleDetails:()=>T(Z.id),onSelectEvent:_},Z.id):s.jsx("p",{className:"muted",children:u.emptySelection})]}),I?s.jsx("div",{className:"factory-overlay",onClick:()=>X(!1),children:s.jsxs("div",{className:"factory-overlay-panel",onClick:W=>W.stopPropagation(),children:[s.jsxs("div",{className:"factory-overlay-header",children:[s.jsx("span",{children:"Token Timeline"}),s.jsx("button",{type:"button",className:"factory-overlay-close",onClick:()=>X(!1),children:"✕"})]}),s.jsx(R0,{copy:u,journeys:P,selectedProjectName:E,selectedJourneyId:F,onSelectJourney:fe,onClose:()=>X(!1)})]})}):null]})}function x0({copy:u,journey:o,fallbackPrompt:d,active:f,loading:y,timelineEventsById:C,onSelect:b}){const H=d?.detail??o.title;return s.jsxs("button",{type:"button","data-journey-id":o.id,className:`conversation-master-item ${o.status} ${f?"active":""}`,"aria-current":f?"true":void 0,onClick:b,children:[s.jsx("span",{children:ho(o.startedAt)}),s.jsx("strong",{children:H}),f?s.jsx(Q0,{eventIds:o.eventIds,timelineEventsById:C}):null,s.jsxs("em",{children:[Cl(o.durationMs)," ·"," ",Ee(o.tokenUsage.total)," ",u.tokens," ·"," ",u.kvHit," ",ws(o.tokenUsage)]}),y?s.jsx("small",{children:u.loadingDetails}):null]})}function b0({copy:u,replay:o,loading:d,selectedProjectName:f}){const[y,C]=D.useState(null),[b,H]=D.useState(null),N=D.useRef({}),m=D.useRef(null),E=D.useRef(null),T=D.useRef(null),[k,J]=D.useState(!1),[_,I]=D.useState(null),X=D.useRef(null);function $(v){clearTimeout(X.current??void 0),I(v),X.current=setTimeout(()=>I(null),2500)}D.useEffect(()=>()=>{clearTimeout(X.current??void 0)},[]),D.useEffect(()=>{const v=E.current,V=T.current;if(!v||!V)return;const ee=()=>{V.style.setProperty("--replay-header-height",`${v.offsetHeight}px`)};ee();const G=new ResizeObserver(ee);return G.observe(v),()=>G.disconnect()},[o]);function te(v){H(v),requestAnimationFrame(()=>{m.current?.querySelector(`[data-block-id="${v}"]`)?.scrollIntoView({behavior:"smooth",block:"center"})})}D.useEffect(()=>{C(o?.snapshots[0]?.id??null),H(null)},[o?.journey.id]);const O=o?.snapshots.find(v=>v.id===y)??o?.snapshots[0]??null,ie=o&&O?Math.max(0,o.snapshots.findIndex(v=>v.id===O.id)):-1,he=D.useMemo(()=>p0(O?.blocks??[]),[O]),P=D.useMemo(()=>v0(o?.snapshots??[]),[o]),F=O?.blocks.find(v=>v.id===b)??O?.blocks[0]??null,[fe,B]=D.useState(!1),[K,Y]=D.useState(!1);function Z(v,V=!1){if(!o?.snapshots.length)return;const ee=o.snapshots[v];ee&&(C(ee.id),H(null),V&&requestAnimationFrame(()=>{const G=N.current[ee.id];G?.focus(),G?.scrollIntoView({block:"nearest",inline:"nearest"})}))}D.useEffect(()=>{if(!fe||!o)return;if(ie>=o.snapshots.length-1){B(!1);return}const v=setTimeout(()=>Z(ie+1),2e3);return()=>clearTimeout(v)},[fe,ie,o]);function W(v){B(!1),te(v)}function le(v,V=!1){B(!1),Z(v,V)}function ue(v){if(!o?.snapshots.length||ie<0)return null;const V=o.snapshots.length-1;return v==="ArrowRight"?Math.min(V,ie+1):v==="ArrowLeft"?Math.max(0,ie-1):v==="Home"?0:v==="End"?V:null}function S(v){if(K)return;const V=ue(v.key);V!==null&&(v.preventDefault(),v.stopPropagation(),le(V,!0))}return D.useEffect(()=>{C(v=>o?.snapshots.length?v&&o.snapshots.some(V=>V.id===v)?v:o.snapshots.at(-1)?.id??null:null)},[o]),D.useEffect(()=>{H(v=>O?.blocks.length?v&&O.blocks.some(V=>V.id===v)?v:O.blocks[0].id:null)},[O]),D.useEffect(()=>{function v(ee){const G=ee.target,h=G?.tagName.toLowerCase();return ee.altKey||ee.ctrlKey||ee.metaKey||h==="input"||h==="textarea"||h==="select"||!!G?.isContentEditable}function V(ee){if(v(ee))return;if(K){const ze=ue(ee.key);ze!==null&&ze!==ie&&(ee.preventDefault(),le(ze,!0));return}const G=ue(ee.key);if(G!==null){if(G===ie)return;ee.preventDefault(),le(G,!0);return}const h=O?.blocks??[];if(h.length===0)return;const M=ee.key.toLowerCase(),Q=M==="a"||M==="w",ae=M==="d"||M==="s";if(!Q&&!ae)return;const ce=h.findIndex(ze=>ze.id===b),me=ce<0?0:ce,be=h.length-1,qe=ae?Math.min(be,me+1):Math.max(0,me-1);ee.preventDefault(),qe!==ce&&te(h[qe].id)}return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[ie,o,O,b,K]),d&&!o?s.jsx("section",{className:"context-replay-panel","aria-label":u.contextReplayLedgerAria,children:s.jsx("div",{className:"context-replay-loading",children:u.contextReplayLoading})}):!o||!O?s.jsx("section",{className:"context-replay-panel","aria-label":u.contextReplayLedgerAria,children:s.jsx("p",{className:"muted",children:u.contextReplayEmpty})}):s.jsxs("section",{ref:T,className:"context-replay-panel","aria-label":u.contextReplayLedgerAria,children:[s.jsxs("div",{ref:E,className:"context-replay-header",children:[s.jsxs("div",{className:"context-replay-summary",children:[s.jsxs("div",{children:[s.jsx("span",{children:u.contextReplayTab}),o&&o.snapshots.length>1?s.jsx("button",{type:"button",className:"replay-play-btn","aria-label":fe?u.contextReplayAutoStop:u.contextReplayAutoReplay,onClick:()=>{if(fe){B(!1);return}ie>=o.snapshots.length-1&&Z(0),B(!0)},children:fe?s.jsx(_p,{size:12}):s.jsx(Hp,{size:12})}):null,o?s.jsx("button",{type:"button",className:"share-btn","aria-label":u.share,title:u.share,onClick:()=>J(!0),children:s.jsx(Yp,{size:12})}):null,s.jsx("strong",{children:o.journey.title}),s.jsx("p",{children:u.contextReplayObserved})]}),s.jsxs("div",{className:"context-replay-metrics",role:"group","aria-label":u.contextReplayLedgerAria,children:[s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayInput}),s.jsx("strong",{children:O.tokenUsage?Ee(O.tokenUsage.input):"—"})]}),s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayOutput}),s.jsx("strong",{children:O.tokenUsage?Ee(O.tokenUsage.output):"—"})]}),s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayTokenUsage}),s.jsx("strong",{children:O.tokenUsage?Ee(O.tokenUsage.total):"—"})]}),s.jsxs("div",{className:"context-replay-metric",children:[s.jsx("span",{children:u.contextReplayBlocks}),s.jsx("strong",{children:o.blocks.length})]})]})]}),s.jsx("div",{className:"context-snapshot-rail","aria-label":u.contextReplaySnapshotRail,children:o.snapshots.map((v,V)=>s.jsx(So,{text:`${u.contextReplayStep} ${V+1}: ${v.title}`,children:s.jsxs("button",{ref:ee=>{N.current[v.id]=ee},type:"button",className:v.id===O.id?"active":"","aria-current":v.id===O.id?"step":void 0,"aria-label":`${u.contextReplayStep} ${V+1}: ${v.title}`,tabIndex:v.id===O.id?0:-1,onClick:()=>le(V),onKeyDown:S,children:[s.jsx("b",{className:"context-snapshot-index",children:V+1}),s.jsx("span",{children:v.phase}),s.jsx("strong",{children:v.title}),s.jsxs("em",{children:["+",v.addedBlockIds.length," / -",v.droppedBlockIds.length]})]})},v.id))}),s.jsx("span",{className:"hotkey-hint","aria-hidden":"true",children:u.hotkeyHint})]}),s.jsxs("div",{className:"context-replay-body",children:[s.jsxs("div",{className:"context-replay-workspace",children:[s.jsxs("div",{className:"context-ledger-groups",ref:m,children:[O.warnings.length>0||o.warnings.length>0?s.jsx("div",{className:"context-warning-strip","aria-label":u.contextReplayWarnings,children:(O.warnings.length>0?O.warnings:o.warnings).map(v=>s.jsxs("button",{type:"button",className:`context-warning ${v.severity}`,disabled:v.blockIds.length===0,onClick:()=>v.blockIds[0]&&te(v.blockIds[0]),title:v.blockIds.length>0?u.contextReplayWarningJump:void 0,children:[s.jsx("span",{children:v.severity}),s.jsx("strong",{children:v.title}),s.jsx("p",{children:v.detail})]},v.id))}):null,s.jsx(ks,{copy:u,title:u.contextReplayActiveContext,blocks:he.active,blockOriginSteps:P,selectedBlockId:F?.id??null,onSelectBlock:W}),s.jsx(ks,{copy:u,title:u.contextReplayAdded,blocks:he.added,blockOriginSteps:P,selectedBlockId:F?.id??null,onSelectBlock:W}),s.jsx(ks,{copy:u,title:u.contextReplayChanged,blocks:he.changed,blockOriginSteps:P,selectedBlockId:F?.id??null,onSelectBlock:W}),s.jsx(ks,{copy:u,title:u.contextReplayDropped,blocks:he.dropped,blockOriginSteps:P,selectedBlockId:F?.id??null,onSelectBlock:W})]}),K?s.jsx("div",{className:"factory-overlay",onClick:()=>Y(!1),children:s.jsxs("div",{className:"factory-overlay-panel",onClick:v=>v.stopPropagation(),children:[s.jsxs("div",{className:"factory-overlay-header",children:[s.jsx("span",{children:"Context Timeline"}),s.jsx("button",{type:"button",className:"factory-overlay-close",onClick:()=>Y(!1),children:"✕"})]}),s.jsx(M0,{copy:u,snapshots:o.snapshots,activeSnapshotId:O.id,activeSnapshotIndex:ie,blockOriginSteps:P,selectedBlockId:F?.id??null,onSelectBlock:W,onActivateSnapshot:v=>{le(v)}})]})}):null,k?s.jsx(N0,{copy:u,replay:o,activeSnapshot:O,activeSnapshotIndex:ie,projectName:f,onClose:()=>J(!1),onCopy:$}):null,_?s.jsx("div",{className:"share-toast",role:"status","aria-live":"polite",children:_}):null]}),s.jsxs("div",{className:"context-mini-scene","aria-label":u.contextReplayMiniSceneAria,children:[s.jsx(E0,{copy:u,blocks:O.blocks,warnings:O.warnings,blockOriginSteps:P,selectedBlockId:F?.id??null,onSelectBlock:W}),s.jsx("button",{type:"button",className:"factory-expand-btn","aria-label":"Context Timeline",onClick:()=>Y(v=>!v),children:s.jsx(Hh,{size:13})})]})]})]})}function Rh(u){if(!u)return null;const o=u.replace(/['"`]/g,"").replace(/\s+/g," ").trim(),d=o.replace(/[^a-zA-Z0-9一-鿿\s]/g,"").length;return o.length>0&&d/o.length<.4?null:o.length>80?`${o.slice(0,78)}...`:o}function S0(u,o,d,f){const y=o.journey,C=y.tokenUsage,b=o.snapshots.length,H=C?.total??0,N=C?.input??0,m=C?.cachedInput??0,E=N>0?m/N:0,T=`${Math.max(0,Math.min(100,E*100)).toFixed(0)}%`;return y.status==="failed"&&d>=0?{kind:"failed",stat:u.shareHeroFailedStep(d+1),caption:u.shareCaptionFailed,tone:"danger"}:f>=2?{kind:"risk",stat:u.shareHeroRiskSignals(f),caption:u.shareCaptionRiskSignals,tone:"danger"}:E>=.7&&N>0?{kind:"cache",stat:u.shareHeroCacheHit(T),caption:u.shareCaptionCacheHit(Ee(m),b),tone:"success"}:H>=1e6?{kind:"tokens",stat:u.shareHeroBigTokens(Ee(H)),caption:u.shareCaptionBigTokens(b),tone:"orange"}:y.durationMs>=600*1e3?{kind:"duration",stat:u.shareHeroLongRun(Cl(y.durationMs)),caption:u.shareCaptionLongRun(b),tone:"orange"}:{kind:"default",stat:u.shareHeroStepReplay(b),caption:u.shareCaptionStepReplay(Cl(y.durationMs)),tone:"orange"}}const j0={prompt:"var(--blue, var(--orange))",history:"var(--muted)",planning:"var(--orange)",tool_call:"var(--orange)",tool_result:"var(--success)",file_change:"var(--orange)",verification:"var(--success)",response:"var(--success)"};function N0({copy:u,replay:o,activeSnapshot:d,activeSnapshotIndex:f,projectName:y,onClose:C,onCopy:b}){const H=o.snapshots,N=H.length,m=o.journey,E=m.tokenUsage,T=fo(m.sessionId),k=Xh(T)||u.shareProviderUnknown,J=new Map;for(const G of o.warnings)J.set(G.id,!0);for(const G of H)for(const h of G.warnings)J.set(h.id,!0);const _=J.size,I=m.status==="failed"?Math.max(0,H.length-1):-1,X=S0(u,o,I,_),te=(m.title??"").trim().replace(/\s+/g," ")||d.title,O=u.shareStoryTemplate(k,N,te),ie=new Set,he=[];for(const G of m.skills)if(!(!G.name||ie.has(G.name))&&(ie.add(G.name),he.push(G.name),he.length>=3))break;const P=he.length>0?u.shareSkillsUsed(he.join(", ")):null;let F,fe,B;if(m.status==="success"){F=u.shareVerdictCleared,B="success";const G=[...H].reverse().find(M=>M.phase==="verification"),h=Rh(G?.title);fe=h?`${u.shareVerdictNoteCleared} (${h})`:u.shareVerdictNoteCleared}else if(m.status==="failed"){F=u.shareVerdictFailed,B="danger";const G=H[H.length-1],h=Rh(G?.title);fe=h?u.shareVerdictNoteFailed(h):u.shareCaptionFailed}else F=u.shareVerdictRunning,B="orange",fe=u.shareVerdictNoteRunning;const K=ws(E),Y=u.shareStatsCompact(`${Ee(E?.total??0)} ${u.tokens}`,Cl(m.durationMs),K),Z=H.map(G=>G.tokenUsage?.total??0),W=Math.max(1,...Z),le=new Date,ue=B==="success"?"+":B==="danger"?"x":"~";function S(){const G=[];return G.push(`${X.stat}`),G.push(X.caption),G.push(""),G.push(O),P&&G.push(P),G.push(""),G.push(`${ue} ${F} — ${fe}`),_>0&&X.kind!=="risk"&&X.kind!=="failed"&&G.push(u.shareVerdictRisks(_)),G.push(""),G.push(`${N} ${u.contextReplayStep.toLowerCase()}s · ${Y}`),G.push(`${y||m.projectId} · ${le.toLocaleDateString()}`),G.join(`
11
+ `)}function v(){const G=[];return G.push(`## ${X.stat}`),G.push(""),G.push(X.caption),G.push(""),G.push(`> ${O}`),P&&(G.push(""),G.push(`_${P}_`)),G.push(""),G.push(`**${F}** — ${fe}`),_>0&&X.kind!=="risk"&&X.kind!=="failed"&&(G.push(""),G.push(`> ${u.shareVerdictRisks(_)}`)),G.push(""),G.push(`\`${N} ${u.contextReplayStep.toLowerCase()}s · ${Y}\``),G.push(""),G.push(`_${y||m.projectId} · ${le.toLocaleDateString()} · SuperView_`),G.join(`
12
+ `)}async function V(){try{await navigator.clipboard.writeText(S()),b(u.shareCopied)}catch{b("Failed to copy")}}async function ee(){try{await navigator.clipboard.writeText(v()),b(u.shareCopied)}catch{b("Failed to copy")}}return s.jsx("div",{className:"share-overlay",onClick:C,children:s.jsxs("div",{className:"share-card",onClick:G=>G.stopPropagation(),children:[s.jsxs("div",{className:"share-card-header",children:[s.jsxs("div",{className:"share-card-header-brand",children:[s.jsx("strong",{children:"SuperView"}),s.jsx("span",{children:u.shareCardTitle})]}),s.jsx("button",{type:"button",className:"share-card-close",onClick:C,"aria-label":u.shareClose,children:"✕"})]}),s.jsxs("div",{className:"share-card-body",children:[s.jsxs("div",{className:`share-card-hero share-card-hero--${X.tone}`,children:[s.jsx("div",{className:"share-card-hero-stat",children:X.stat}),s.jsx("div",{className:"share-card-hero-caption",children:X.caption})]}),s.jsxs("div",{className:"share-card-story",children:[s.jsx("p",{className:"share-card-story-line",children:O}),P?s.jsx("p",{className:"share-card-story-skills",children:P}):null]}),s.jsxs("div",{className:`share-card-verdict share-card-verdict--${B}`,children:[s.jsx("span",{className:"share-card-verdict-mark","aria-hidden":"true",children:ue}),s.jsx("span",{className:"share-card-verdict-label",children:F}),s.jsx("span",{className:"share-card-verdict-note",children:fe})]}),_>0&&X.kind!=="risk"&&X.kind!=="failed"?s.jsxs("div",{className:"share-card-risks",children:[s.jsx(wh,{size:12,"aria-hidden":"true"}),s.jsx("span",{children:u.shareVerdictRisks(_)})]}):null,s.jsx("div",{className:"share-card-visual",role:"img","aria-label":u.shareTimelineAria,children:s.jsx("div",{className:"share-card-spark",children:H.map((G,h)=>{const M=Z[h],Q=Math.max(8,Math.round(M/W*100)),ae=j0[G.phase]??"var(--orange)",ce=h===f;return s.jsx("span",{className:`share-card-spark-bar${ce?" active":""}`,style:{height:`${Q}%`,background:ae},title:`${G.phase} · step ${h+1}`},G.id)})})}),s.jsxs("div",{className:"share-card-stats-footer",children:[s.jsxs("span",{className:"share-card-stats-compact",children:[N," ",u.contextReplayStep.toLowerCase(),"s ·"," ",Y]}),s.jsxs("span",{className:"share-card-stats-project",children:[y||m.projectId," · ",le.toLocaleDateString()]})]})]}),s.jsxs("div",{className:"share-card-actions",children:[s.jsx("button",{type:"button",className:"share-card-btn",onClick:V,children:u.shareCopy}),s.jsx("button",{type:"button",className:"share-card-btn",onClick:ee,children:u.shareCopyMarkdown})]})]})})}function ks({copy:u,title:o,blocks:d,blockOriginSteps:f,selectedBlockId:y,onSelectBlock:C}){return d.length===0?null:s.jsxs("section",{className:"context-block-group",children:[s.jsxs("div",{className:"context-block-group-heading",children:[s.jsx("span",{children:o}),s.jsx("em",{children:d.length})]}),s.jsx("div",{className:"context-block-list",children:d.map(b=>s.jsxs("button",{type:"button","data-block-id":b.id,className:`context-block-card ${b.state} ${b.id===y?"active":""}`,"aria-pressed":b.id===y,onClick:()=>C(b.id),title:`${b.title}${b.excerpt?` — ${b.excerpt}`:""}`,children:[s.jsxs("div",{className:"context-block-card-heading",children:[s.jsx("b",{children:f.get(b.id)??1}),s.jsx(A0,{state:b.state}),s.jsx("span",{children:b.state}),s.jsx("em",{children:b.type}),s.jsx("em",{children:u.contextReplayFromStep(f.get(b.id)??1)})]}),s.jsx("strong",{children:b.title}),s.jsx("p",{children:b.excerpt}),s.jsxs("div",{className:"context-block-meta",children:[s.jsxs("span",{children:[u.contextReplaySource,":"," ",b.sourcePath??b.sourceEventId??"inferred"]}),s.jsxs("span",{children:[u.contextReplayTokens,": ",b.tokenEstimate]})]}),s.jsxs("small",{children:[u.contextReplayReason,": ",b.reason]})]},b.id))})]})}function T0(u){return u==="dropped"||u==="stale"||u==="contradicted"}function A0({state:u}){return u==="dropped"?s.jsx(pp,{size:12,"aria-hidden":"true"}):u==="stale"?s.jsx(Hh,{size:12,"aria-hidden":"true"}):u==="contradicted"?s.jsx(yp,{size:12,"aria-hidden":"true"}):null}function E0({copy:u,blocks:o,warnings:d,blockOriginSteps:f,selectedBlockId:y,onSelectBlock:C}){const b=D.useRef(null),H=D.useRef(new Map),N=D.useRef(o),{active:m,retired:E}=D.useMemo(()=>{const T=[],k=[];for(const J of o)T0(J.state)?k.push(J):T.push(J);return{active:T,retired:k}},[o]);if(N.current!==o){const T=b.current;if(T){const k=new Map,J=T.getBoundingClientRect();for(const _ of T.querySelectorAll(".context-flow-dot")){const I=_.dataset.blockId;if(!I)continue;const X=_.getBoundingClientRect();k.set(I,{x:X.left-J.left,y:X.top-J.top})}H.current=k}N.current=o}return D.useLayoutEffect(()=>{const T=b.current;if(!T||H.current.size===0)return;const k=T.getBoundingClientRect(),J=new Set(H.current.keys()),_=new Set,I=[];for(const X of T.querySelectorAll(".context-flow-dot")){const $=X.dataset.blockId;_.add($);const te=H.current.get($);if(!te)continue;const O=X.getBoundingClientRect(),ie=O.left-k.left,he=O.top-k.top,P=te.x-ie,F=te.y-he;Math.abs(P)<1&&Math.abs(F)<1||(X.classList.add("moving"),X.style.transition="none",X.style.transform=`translate(${P}px, ${F}px)`,I.push(X))}I.length>0&&T.offsetHeight,requestAnimationFrame(()=>{for(const X of I)X.style.transition="";I.length>0&&T.offsetHeight;for(const X of I)X.style.transform=""});for(const X of J){if(_.has(X))continue;const $=H.current.get(X);if(!$)continue;const te=document.createElement("button");te.type="button",te.className="context-flow-dot exiting",te.dataset.blockId=X,te.style.position="absolute",te.style.left=`${$.x}px`,te.style.top=`${$.y}px`,te.innerHTML="<span>×</span>",T.appendChild(te),te.offsetHeight,te.style.transition="",te.style.transform="translateY(28px)",setTimeout(()=>te.remove(),520)}},[o]),s.jsxs("div",{ref:b,className:"context-mini-scene-inner","aria-label":u.contextReplayMiniSceneAria,children:[s.jsx(Mh,{kind:"active",label:u.contextReplayLaneActive,blocks:m,blockOriginSteps:f,selectedBlockId:y,onSelectBlock:C,copy:u}),s.jsx(Mh,{kind:"retired",label:u.contextReplayLaneRetired,blocks:E,blockOriginSteps:f,selectedBlockId:y,onSelectBlock:C,copy:u}),s.jsxs("div",{className:"context-mini-scene-section warnings",children:[s.jsxs("div",{className:"context-mini-scene-lane",children:[s.jsx("span",{children:u.contextReplayLaneWarnings}),s.jsx("em",{children:d.length})]}),d.length>0?s.jsx("div",{className:"context-mini-scene-warnings",children:d.map(T=>s.jsx("span",{className:`context-mini-scene-warning ${T.severity}`,title:`${T.title} — ${T.detail}`,children:T.severity},T.id))}):s.jsx("p",{className:"context-mini-scene-empty",children:"—"})]})]})}function Mh({kind:u,label:o,blocks:d,blockOriginSteps:f,selectedBlockId:y,onSelectBlock:C,copy:b}){return s.jsxs("div",{className:`context-mini-scene-section ${u}`,children:[s.jsxs("div",{className:"context-mini-scene-lane",children:[s.jsx("span",{children:o}),s.jsx("em",{children:d.length})]}),d.length>0?s.jsx("div",{className:"context-mini-scene-dots",children:d.map((H,N)=>s.jsx(C0,{block:H,active:H.id===y,originStep:f.get(H.id)??1,onSelect:()=>C(H.id),copy:b,index:N},H.id))}):s.jsx("p",{className:"context-mini-scene-empty",children:"—"})]})}function C0({block:u,active:o,originStep:d,onSelect:f,copy:y,index:C}){return s.jsx("button",{type:"button","data-block-id":u.id,className:`context-flow-dot state-${u.state}${o?" active":""}`,style:{"--dot-index":C},onClick:f,title:`${u.title} · ${u.state} · ${y.contextReplayFromStep(d)}`,"aria-pressed":o,"aria-label":`${u.title} (${u.state}, ${y.contextReplayFromStep(d)})`,children:s.jsx("span",{children:d})})}function R0({copy:u,journeys:o,selectedProjectName:d,selectedJourneyId:f,onSelectJourney:y,onClose:C}){const b=D.useMemo(()=>{let m=0,E=0,T=0,k=0,J=null,_=0;for(const I of o){const X=I.tokenUsage?.total??0;m+=X,E+=I.tokenUsage?.input??0,T+=I.tokenUsage?.output??0,k+=I.tokenUsage?.cachedInput??0,X>_&&(_=X,J=I)}return{totalTokens:m,totalInput:E,totalOutput:T,totalCached:k,peakJourney:J,peakTotal:_,count:o.length}},[o]),H=Math.max(b.peakTotal,1),N=D.useMemo(()=>[...o].sort((m,E)=>Date.parse(m.startedAt)-Date.parse(E.startedAt)),[o]);return s.jsxs("div",{className:"token-timeline",children:[s.jsxs("div",{className:"token-timeline-summary",children:[s.jsx("div",{className:"token-timeline-summary-project",children:d}),s.jsxs("div",{className:"token-timeline-summary-stats",children:[s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:u.statusLegendSuccess&&"Conversations"||"Conversations"}),s.jsx("strong",{children:b.count})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Total"}),s.jsx("strong",{children:Ee(b.totalTokens)})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Input"}),s.jsx("strong",{style:{color:"var(--blue)"},children:Ee(b.totalInput)})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Output"}),s.jsx("strong",{style:{color:"var(--orange)"},children:Ee(b.totalOutput)})]}),s.jsxs("div",{className:"token-timeline-stat",children:[s.jsx("span",{children:"Cached"}),s.jsx("strong",{style:{color:"var(--success)"},children:Ee(b.totalCached)})]})]})]}),s.jsxs("div",{className:"token-timeline-legend",children:[s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg input"}),"Input"]}),s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg output"}),"Output"]}),s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg cached"}),"Cached"]}),s.jsxs("span",{className:"token-timeline-legend-item",children:[s.jsx("i",{className:"seg reasoning"}),"Reasoning"]})]}),s.jsx("div",{className:"token-timeline-bars",children:N.map((m,E)=>{const T=m.tokenUsage??{input:0,output:0,reasoning:0,cachedInput:0,total:0},k=T.total,J=Math.max(8,k/H*160),_=m.id===f,I=k>0?T.input/k*100:0,X=k>0?T.output/k*100:0,$=k>0?T.cachedInput/k*100:0,te=k>0?T.reasoning/k*100:0,O=`${m.title}
13
+
14
+ ${Ee(k)} tokens · ${Cl(m.durationMs)} · ${m.status}
15
+ Input: ${Ee(T.input)} · Output: ${Ee(T.output)}
16
+ Cached: ${Ee(T.cachedInput)} · Reasoning: ${Ee(T.reasoning)}`;return s.jsx(So,{text:O,children:s.jsxs("button",{type:"button",className:`token-timeline-bar ${m.status}${_?" selected":""}`,onClick:()=>{y(m.id),C()},children:[s.jsx("div",{className:"token-timeline-step",children:s.jsx("b",{children:E+1})}),s.jsxs("div",{className:"token-timeline-stack",style:{height:`${J}px`},children:[te>0?s.jsx("div",{className:"token-timeline-segment reasoning",style:{height:`${te}%`}}):null,X>0?s.jsx("div",{className:"token-timeline-segment output",style:{height:`${X}%`}}):null,$>0?s.jsx("div",{className:"token-timeline-segment cached",style:{height:`${$}%`}}):null,I>0?s.jsx("div",{className:"token-timeline-segment input",style:{height:`${I}%`}}):null]}),s.jsx("span",{className:"token-timeline-label",children:Ee(k)}),s.jsx("span",{className:"token-timeline-title",children:m.title})]})},m.id)})})]})}function M0({copy:u,snapshots:o,activeSnapshotId:d,activeSnapshotIndex:f,blockOriginSteps:y,selectedBlockId:C,onSelectBlock:b,onActivateSnapshot:H}){const N=D.useRef(null);return D.useEffect(()=>{const m=N.current;if(!m)return;m.querySelector(`[data-station-index="${f}"]`)?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[f]),s.jsx("div",{ref:N,className:"context-factory-strip","aria-label":u.contextReplayMiniSceneAria,children:o.map((m,E)=>{const T=m.blocks.filter($=>$.state!=="dropped"&&$.state!=="stale"),k=m.blocks.filter($=>$.state==="dropped"||$.state==="stale"),J=m.id===d,_=E===0,I=m.addedBlockIds.length,X=m.droppedBlockIds.length;return s.jsx(z0,{snapshot:m,index:E,active:J,added:I,removed:X,activeBlocks:T,droppedBlocks:k,blockOriginSteps:y,selectedBlockId:C,onSelectBlock:b,onActivate:H,copy:u,isFirst:_},m.id)})})}function z0({snapshot:u,index:o,active:d,added:f,removed:y,activeBlocks:C,droppedBlocks:b,blockOriginSteps:H,selectedBlockId:N,onSelectBlock:m,onActivate:E,copy:T,isFirst:k}){const J=d?"div":"button";return s.jsxs(s.Fragment,{children:[k?null:s.jsx("div",{className:"factory-station-connector",children:s.jsx("span",{children:"→"})}),s.jsxs(J,{type:d?void 0:"button","data-station-index":o,className:`factory-station${d?" active":""}`,onClick:d?void 0:()=>E(o),"aria-current":d?"step":void 0,"aria-label":`${T.contextReplayStep} ${o+1}: ${u.title}`,title:`${T.contextReplayStep} ${o+1}: ${u.title}`,children:[s.jsx("div",{className:"factory-station-prompt",title:u.title,children:u.title}),s.jsxs("div",{className:"factory-station-header",children:[s.jsx("span",{className:"factory-station-phase",children:u.phase}),s.jsx("b",{className:"factory-station-index",children:o+1}),f>0||y>0?s.jsxs("span",{className:"factory-station-delta",children:[f>0?s.jsxs("em",{className:"added",children:["+",f]}):null,y>0?s.jsxs("em",{className:"removed",children:["-",y]}):null]}):null]}),s.jsx("div",{className:"factory-station-blocks",children:C.length>0?C.map(_=>s.jsx("button",{type:"button","data-block-id":_.id,className:`factory-block-pill state-${_.state}${_.id===N?" active":""}`,title:`${_.title} · ${_.state} · ${T.contextReplayFromStep(H.get(_.id)??1)}`,"aria-pressed":_.id===N,onClick:I=>{I.stopPropagation(),m(_.id)},children:H.get(_.id)??1},_.id)):s.jsx("span",{className:"factory-station-empty",children:"—"})}),b.length>0?s.jsx("div",{className:"factory-station-drops",children:b.map(_=>s.jsx("button",{type:"button","data-block-id":_.id,className:`factory-block-pill dropped state-${_.state}`,title:`${_.title} · ${_.state}`,onClick:I=>{I.stopPropagation(),m(_.id)},children:H.get(_.id)??1},_.id))}):null]})]})}function k0({copy:u,journey:o,detail:d,fallbackPrompt:f,expanded:y,loading:C,selectedEventId:b,onToggleDetails:H,onSelectEvent:N}){const m=d?.events??[],E=f??m.find(O=>O.id===o.promptEventId||O.kind==="user_prompt"),T=m.find(O=>O.kind==="assistant_message"),k=m.filter(O=>O.kind!=="user_prompt"&&O.id!==T?.id),J=m.filter(O=>O.kind==="tool_call"||O.kind==="tool_result"||O.kind==="file_change"||O.kind==="verification"||O.kind==="error"),_=U0(o.skills,m),I=T?.detail??T?.title??o.summary,X=fo(E?E.sessionId:o.sessionId),$=Xh(X),te=E?.detail??o.title;return s.jsxs("article",{className:`conversation-turn ${o.status}`,children:[s.jsx("div",{className:"conversation-summary",children:s.jsxs("div",{children:[s.jsx("span",{children:u.eventCount(o.eventIds.length)}),s.jsx("span",{children:H0(o.exitType,u)}),s.jsx("span",{children:Cl(o.durationMs)}),s.jsxs("span",{children:[Ee(o.tokenUsage.total)," ",u.tokens]}),s.jsxs("span",{children:[u.kvHit," ",ws(o.tokenUsage)]}),C?s.jsx("span",{children:u.loadingDetails}):null]})}),s.jsx(zh,{copy:u,variant:"user",label:u.user,text:te,skills:_,selected:E?.id===b,disabled:!E,onSelect:()=>E?N(E):void 0}),s.jsxs("div",{className:"message-row codex detail-message-row",children:[s.jsx("span",{className:"message-avatar","aria-hidden":"true",children:w0(X)}),s.jsx("div",{className:"message-stack",children:s.jsxs("button",{className:"conversation-message codex detail-toggle",onClick:H,children:[s.jsx("span",{className:"message-meta",children:u.agentWork}),s.jsx("span",{children:y?u.hideProcess:u.viewProcess})]})})]}),y?s.jsxs("div",{className:"background-details",children:[s.jsxs("section",{children:[s.jsxs("div",{className:"detail-section-heading",children:[s.jsx("span",{children:u.backgroundWork}),s.jsxs("em",{children:[k.length," ",u.entries]})]}),s.jsx("div",{className:"log-list",children:k.length>0?k.map(O=>s.jsxs("button",{className:Ch(O,b),"data-event-id":O.id,onClick:()=>N(O),children:[s.jsx("span",{children:O.kind}),s.jsx("strong",{children:O.title}),O.skills&&O.skills.length>0?s.jsxs("small",{children:[u.skills,": ",ro(O.skills)]}):null,s.jsx("small",{children:O.detail??ho(O.timestamp)})]},O.id)):s.jsx("p",{className:"muted",children:u.noBackground})})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"detail-section-heading",children:[s.jsx("span",{children:u.log}),s.jsxs("em",{children:[J.length," ",u.entries]})]}),s.jsx("div",{className:"log-list compact",children:J.length>0?J.map(O=>s.jsxs("button",{className:Ch(O,b),"data-event-id":O.id,onClick:()=>N(O),children:[s.jsx("span",{children:O.toolName??O.kind}),s.jsx("strong",{children:O.title}),O.skills&&O.skills.length>0?s.jsxs("small",{children:[u.skills,": ",ro(O.skills)]}):null,s.jsx("small",{children:O.detail??O.callId??ho(O.timestamp)})]},O.id)):s.jsx("p",{className:"muted",children:u.noLog})})]})]}):null,s.jsx(zh,{copy:u,variant:"codex",label:$,text:I,skills:_,selected:T?.id===b,disabled:!T,onSelect:()=>T?N(T):void 0})]})}function zh({copy:u,variant:o,label:d,title:f,text:y,skills:C=[],selected:b,disabled:H,onSelect:N}){const[m,E]=D.useState(!1),[T,k]=D.useState(!1),J=D.useRef(null);return D.useEffect(()=>{const _=J.current;if(!_)return;const I=()=>{k(_.scrollHeight>250)};I();const X=new ResizeObserver(I);return X.observe(_),()=>X.disconnect()},[y,f]),D.useEffect(()=>{T||E(!1)},[T]),s.jsxs("div",{className:`message-row ${o}`,children:[s.jsx("span",{className:"message-avatar","aria-hidden":"true",children:o==="user"?"U":"C"}),s.jsxs("div",{className:"message-stack",children:[s.jsxs("button",{className:`conversation-message ${o} ${b?"selected":""}`,disabled:H,onClick:N,children:[s.jsx("span",{className:"message-meta",children:d}),s.jsxs("div",{ref:J,className:"message-body","data-expanded":m?"true":"false",children:[f?s.jsx("strong",{children:f}):null,s.jsx("p",{children:y})]}),C.length>0?s.jsx(D0,{copy:u,skills:C}):null,T&&!m?s.jsx("span",{className:"message-fade","aria-hidden":"true"}):null]}),T?s.jsx("button",{className:"message-expand-toggle",onClick:()=>E(_=>!_),children:m?u.collapse:u.expand}):null]})]})}function D0({copy:u,skills:o}){const d=jo(o),f=d.slice(0,4),y=Math.max(0,d.length-f.length);return s.jsxs("div",{className:"skill-chip-row","aria-label":`${u.skills}: ${ro(o)}`,children:[s.jsx("span",{className:"skill-chip-label",children:u.skills}),f.map(C=>s.jsx("span",{className:"skill-chip",title:C.excerpt||C.path||C.source,children:C.name},`${C.name}-${C.source}-${C.path??""}`)),y>0?s.jsxs("span",{className:"skill-chip more",children:["+",y]}):null]})}function So({text:u,children:o}){const[d,f]=D.useState(!1),[y,C]=D.useState({top:0,left:0}),b=D.useRef(null);function H(){const m=b.current?.getBoundingClientRect();if(!m)return;const E=m.bottom+8,T=Math.max(8,Math.min(m.left,window.innerWidth-500));C({top:E,left:T}),f(!0)}function N(m){let T=m.clientX+14,k=m.clientY+14;T+260>window.innerWidth&&(T=m.clientX-260-14),k+120>window.innerHeight&&(k=m.clientY-120-14),C({top:k,left:T})}return s.jsxs("span",{ref:b,onMouseEnter:H,onMouseMove:N,onMouseLeave:()=>f(!1),onFocus:H,onBlur:()=>f(!1),style:{display:"contents"},children:[o,d&&u?Lh.createPortal(s.jsx("div",{className:"app-tooltip",style:{top:y.top,left:y.left},role:"tooltip",children:u}),document.body):null]})}function O0({step:u,totalSteps:o,copy:d,onPrev:f,onNext:y,onDone:C,onSkip:b}){const H=[".scan-dropdown-trigger",".project-dropdown-trigger",".session-recap",".token-chart-panel",".conversation-master-item",".context-replay-panel",".context-replay-summary",".factory-expand-btn",".timeline-chart-btn",".theme-dropdown"],N=[10,10,12,12,10,12,8,6,6,12],m=["bottom","bottom","top","top","left","top","bottom","bottom","bottom","bottom"],[E,T]=D.useState(null),[k,J]=D.useState(!1),[_,I]=D.useState(!1),X=H[u]??null,$=N[u]??10,te=m[u]??"bottom",O=[".context-replay-panel",".context-replay-summary",".factory-expand-btn",".timeline-chart-btn"];D.useLayoutEffect(()=>{if(window.innerWidth<760)return;function W(S){let v=S;for(;v;)v instanceof HTMLDetailsElement&&!v.open&&(v.open=!0),v=v.parentElement}let le=X?document.querySelector(X):null;if(!le&&X&&O.includes(X)){const S=document.querySelector(".conversation-master-item");S&&S.click(),setTimeout(()=>{const v=X?document.querySelector(X):null;v&&(W(v),v.scrollIntoView({behavior:"smooth",block:"center"}))},300),T(null);return}if(!le){T(null);return}W(le),le.scrollIntoView({behavior:"smooth",block:"center"});function ue(){const S=X?document.querySelector(X):null;if(!S){T(null);return}const v=S.getBoundingClientRect();T(new DOMRect(v.left-$,v.top-$,v.width+$*2,v.height+$*2))}return ue(),window.addEventListener("resize",ue),window.addEventListener("scroll",ue,{passive:!0}),()=>{window.removeEventListener("resize",ue),window.removeEventListener("scroll",ue)}},[u,X,$]),D.useEffect(()=>{function W(le){le.key==="Escape"&&I(!0)}return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[]),D.useEffect(()=>{if(_){J(!0);const W=setTimeout(()=>{b()},160);return()=>clearTimeout(W)}},[_,b]);function ie(){k||(J(!0),setTimeout(()=>{u<o-1?y():C(),J(!1)},100))}function he(){k||(J(!0),setTimeout(()=>{f(),J(!1)},100))}function P(){J(!0),setTimeout(()=>{C()},160)}if(window.innerWidth<760)return null;const F=Math.min(400,window.innerWidth-32),fe=200,B=12;function K(){if(!E)return{top:Math.max(16,(window.innerHeight-fe)/2),left:Math.max(16,(window.innerWidth-F)/2)};const W=[te,"bottom","top","right","left"],le=[...new Set(W)];for(const ue of le){let S=0,v=0;switch(ue){case"bottom":S=E.bottom+B,v=E.left;break;case"top":S=E.top-B-fe,v=E.left;break;case"right":S=E.top,v=E.right+B;break;case"left":S=E.top,v=E.left-B-F;break}S=Math.max(16,Math.min(S,window.innerHeight-fe-16)),v=Math.max(16,Math.min(v,window.innerWidth-F-16));const V={top:S,left:v,right:v+F,bottom:S+fe};if(!!(V.right<E.left||V.left>E.right||V.bottom<E.top||V.top>E.bottom))return{top:S,left:v}}return{top:Math.max(16,(window.innerHeight-fe)/2),left:Math.max(16,(window.innerWidth-F)/2)}}const Y=K(),Z=d.steps[u]??{title:"",detail:""};return Lh.createPortal(s.jsxs("div",{className:"tour-root",children:[s.jsx("div",{className:"tour-backplate"}),E&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"tour-spotlight",style:{left:E.left,top:E.top,width:E.width,height:E.height,borderRadius:8}}),s.jsx("div",{className:"tour-spotlight-border",style:{left:E.left,top:E.top,width:E.width,height:E.height,borderRadius:8}})]}),s.jsxs("div",{className:"tour-card",style:{top:Y.top,left:Y.left,opacity:k?0:1},children:[s.jsx("div",{className:"tour-card-step-label",children:d.stepLabel(u+1,o)}),s.jsx("h3",{className:"tour-card-title",children:Z.title}),s.jsx("p",{className:"tour-card-detail",children:Z.detail}),s.jsx("div",{className:"tour-card-progress",children:Array.from({length:o},(W,le)=>s.jsx("span",{className:`tour-step-dot${le===u?" active":""}`},le))}),s.jsxs("div",{className:"tour-card-actions",children:[s.jsx("button",{type:"button",className:"tour-skip-btn",onClick:b,children:d.skip}),s.jsxs("div",{className:"tour-nav-group",children:[u>0&&s.jsx("button",{type:"button",className:"tour-nav-btn",onClick:he,children:d.prev}),u<o-1?s.jsx("button",{type:"button",className:"tour-nav-btn tour-next-btn",onClick:ie,children:d.next}):s.jsx("button",{type:"button",className:"tour-nav-btn tour-done-btn",onClick:P,children:d.done})]})]})]})]}),document.body)}function _0({copy:u,ingestCopy:o,message:d,job:f}){const y=f&&f.totalFiles>0?Math.round(f.processedFiles/f.totalFiles*100):0;return s.jsx("div",{className:"blocking-loader",role:"status","aria-live":"polite","aria-label":u.aria,children:s.jsxs("div",{className:"blocking-loader-card",children:[s.jsxs("div",{className:"blocking-loader-message",children:[s.jsx("span",{className:"blocking-loader-icon","aria-hidden":"true"}),s.jsxs("div",{children:[s.jsx("strong",{children:d}),s.jsx("span",{children:u.steady})]})]}),f?s.jsxs("div",{className:"blocking-loader-progress",children:[s.jsx("div",{className:"blocking-loader-progress-bar",children:s.jsx("i",{style:{width:`${y}%`}})}),s.jsxs("div",{className:"blocking-loader-progress-meta",children:[s.jsxs("span",{children:[o.phase,": ",f.phase]}),s.jsxs("span",{children:[f.processedFiles,"/",f.totalFiles," ",o.files]}),s.jsxs("span",{children:[o.events,": ",f.totalEvents]})]})]}):null]})})}function so({copy:u,title:o,detail:d,agentProvider:f,onAgentProviderChange:y,agentLogRoot:C,onAgentLogRootChange:b,onScan:H,scanLabel:N,placeholder:m,disabled:E=!1}){return s.jsxs("section",{className:"empty-state",children:[s.jsx(Bp,{size:34}),s.jsx("h2",{children:o}),s.jsx("p",{children:d}),s.jsxs("label",{className:"empty-agent-provider",children:[s.jsx("span",{children:u.source}),s.jsxs("select",{"aria-label":u.sourceAria,value:f,onChange:T=>y(T.target.value),disabled:E,children:[s.jsx("option",{value:"codex",children:"Codex"}),s.jsx("option",{value:"claude-code",children:"Claude Code"}),s.jsx("option",{value:"opencode",children:"OpenCode"})]})]}),s.jsxs("label",{className:"empty-agent-root",children:[s.jsx("span",{children:u.root}),s.jsx("input",{"aria-label":u.rootAria,value:C,onChange:T=>b(T.target.value),placeholder:m,disabled:E})]}),s.jsx("button",{className:"primary-button",onClick:H,disabled:E,children:N})]})}function U0(u,o){return jo([...u??[],...o.flatMap(d=>d.skills??[])])}function kh(u,o){return o==="all"?u:u.filter(d=>d.sessions.some(f=>f.provider===o||f.id.startsWith(`${o}:`)))}function jo(u){const o=new Map;for(const d of u)o.has(d.name)||o.set(d.name,d);return[...o.values()].sort((d,f)=>d.name.localeCompare(f.name))}function ro(u){return jo(u).map(o=>o.name).join(", ")}function H0(u,o){return u==="next_prompt"?o.nextInput:o.sessionEnd}function fo(u){return u.startsWith("claude-code:")?"claude-code":u.startsWith("opencode:")?"opencode":"codex"}function Xh(u){return u==="claude-code"?"Claude Code":u==="opencode"?"OpenCode":"Codex CLI"}function w0(u){return u==="claude-code"?"CC":u==="opencode"?"OC":"C"}function ho(u,o){const d=new Date(u);return Number.isNaN(d.getTime())?u:d.toLocaleString()}function Cl(u){if(u<1e3)return`${u}ms`;const o=u/1e3;if(o<60)return`${o.toFixed(o<10?1:0)}s`;const d=Math.floor(o/60),f=Math.round(o%60);return f>0?`${d}m ${f}s`:`${d}m`}function ws(u){if(u.input<=0)return"0.0%";const o=u.cachedInput/u.input*100;return`${Math.max(0,Math.min(100,o)).toFixed(1)}%`}function uo(u){return u?.status==="queued"||u?.status==="running"}function L0({copy:u,loading:o,timelineLoading:d,dailyTokenUsageLoading:f}){return d?u.loading.loadingTimeline:o?u.loading.loadingIndex:f?u.loading.loadingDailyTokens:null}function B0({job:u,message:o,ingestBusy:d,loading:f,timelineLoading:y,dailyTokenUsageLoading:C}){return o?d&&u?u:f?Ds("loading-projects","scanning",3,12,o):y?Ds("loading-timeline","normalizing",7,12,o):C?Ds("loading-token-usage","parsing",5,12,o):Ds("loading-superview","scanning",4,12,o):null}function Ds(u,o,d,f,y){return{id:u,status:"running",phase:o,startedAt:new Date(0).toISOString(),finishedAt:null,totalFiles:f,processedFiles:d,totalEvents:d*10,errors:[],skippedFiles:Math.max(0,d-2),candidateFiles:f,changedFiles:d,processedBytes:0,totalBytes:0,currentFile:y}}function q0(u,o){if(!u)return[];const d=new Map;for(const f of u.eventIds){const y=o.get(f);if(!y)continue;const C=y.toolName||(y.kind==="tool_call"?y.title:null);if(!C)continue;const b=d.get(C)??{count:0,errors:0};b.count++,y.status==="failed"&&b.errors++,d.set(C,b)}return[...d.entries()].map(([f,{count:y,errors:C}])=>({name:f,count:y,errors:C})).sort((f,y)=>y.count-f.count)}function Y0({tools:u,copy:o}){const[d,f]=D.useState(!1);if(u.length===0)return s.jsx("section",{className:"tool-usage-bars",children:s.jsx("p",{className:"muted",children:o.toolUsageEmpty})});const y=Math.max(...u.map(b=>b.count)),C=d?u:u.slice(0,5);return s.jsxs("section",{className:"tool-usage-bars","aria-label":o.toolUsageHeading,children:[s.jsxs("div",{className:"detail-section-heading",children:[s.jsx("span",{children:o.toolUsageHeading}),s.jsx("span",{style:{color:"var(--muted)",fontSize:10,fontWeight:800},children:u.length})]}),s.jsx("div",{className:"tool-usage-list",children:C.map(b=>s.jsxs("div",{className:"tool-usage-row",children:[s.jsx("span",{className:"tool-usage-name",children:b.name}),s.jsx("span",{className:"tool-usage-track",children:s.jsx("span",{className:"tool-usage-fill",style:{width:`${b.count/y*100}%`}})}),s.jsx("span",{className:"tool-usage-count",children:b.count}),b.errors>0?s.jsxs("span",{className:"tool-usage-errors",children:[b.errors," ",o.toolUsageErrors]}):null]},b.name))}),u.length>5?s.jsx("button",{type:"button",className:"tool-usage-toggle",onClick:()=>f(b=>!b),children:d?`▲ ${u.length-5} less`:`▼ ${u.length-5} more`}):null]})}function G0(u){return u.kind==="user_prompt"?"user":u.kind==="assistant_message"?"assistant":u.kind==="tool_call"?"tool":u.kind==="reasoning_marker"?"thinking":u.kind==="error"||u.status==="failed"?"error":"meta"}const X0={user:"User message",assistant:"Assistant reply",tool:"Tool call",thinking:"Thinking",error:"Error",compact:"Compaction",meta:"Meta"};function V0(u){const o=new Date(u);return isNaN(o.getTime())?"":o.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function Dh(u){const o=new Date(u);return isNaN(o.getTime())?"":new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(o)}function Q0({eventIds:u,timelineEventsById:o}){const d=u.map(m=>o.get(m)).filter(m=>m!==void 0);if(d.length===0)return null;const f=d.map(m=>Date.parse(m.timestamp)),y=f[0],b=f[f.length-1]-y,H=!isFinite(b)||b<=0||f.some(m=>isNaN(m)),N=d.length;return s.jsxs("div",{children:[s.jsxs("div",{className:"event-tape","aria-hidden":"true",children:[s.jsx("div",{className:"event-tape-mid"}),d.map((m,E)=>{const T=G0(m),k=T==="error"||T==="compact",J=H?`${N>1?E/(N-1)*100:50}%`:`${(f[E]-y)/b*100}%`,_=T==="meta"?.4:.85,I=[];I.push(X0[T]??m.kind),m.toolName&&I.push(` · ${m.toolName}`),m.tokenUsage?.total!=null&&I.push(`
17
+ ${m.tokenUsage.total.toLocaleString()} tokens`);const X=V0(m.timestamp);return X&&I.push(`
18
+ ${X}`),s.jsx(So,{text:I.join(""),children:s.jsx("div",{className:`event-tape-tick${k?" tall":""} cat-${T}`,style:{left:J,opacity:_}})},m.id)})]}),N>0?s.jsxs("div",{className:"event-tape-axis",children:[s.jsx("span",{children:Dh(d[0].timestamp)}),s.jsx("span",{children:N>1?Cl(b):"1 event"}),s.jsx("span",{children:Dh(d[N-1].timestamp)})]}):null]})}const co=["var(--surface-soft)","color-mix(in srgb, var(--orange) 25%, var(--surface-soft))","color-mix(in srgb, var(--orange) 50%, var(--surface-soft))","color-mix(in srgb, var(--orange) 72%, var(--surface-soft))","var(--orange)"];function Oh(u,o){if(u<=0||o<=0)return 0;const d=u/o;return d>=.66?4:d>=.33?3:d>=.12?2:1}function Z0({copy:u,metricsCopy:o,tokenChartCopy:d,journeys:f,timelineEventsById:y,dailyTokenUsage:C,dailyTokenUsageLoading:b,sessionMap:H,pricing:N,onPricingChange:m}){const[E,T]=D.useState("cost"),[k,J]=D.useState(()=>{const B=localStorage.getItem("superview-recap-open");return B!==null?B==="true":!0}),_=D.useMemo(()=>{let B=f.length,K=0,Y=0,Z=0,W=0,le=0,ue=0,S=0,v=0;const V={};for(const ee of f){K+=ee.tokenUsage?.total??0,Y+=ee.tokenUsage?.input??0,Z+=ee.tokenUsage?.output??0,W+=ee.tokenUsage?.cachedInput??0,le+=tl(ee.tokenUsage,void 0,N),v+=ee.durationMs??0,ee.status==="failed"&&S++;for(const G of ee.eventIds){const h=y.get(G);if(h?.toolName){ue++;const M=V[h.toolName]??{count:0,errors:0};M.count++,h.status==="failed"&&M.errors++,V[h.toolName]=M}}}return{sessions:B,totalTokens:K,totalInput:Y,totalOutput:Z,totalCached:W,estCost:le,toolCalls:ue,errors:S,totalDurationMs:v,toolAgg:V}},[f,y,N]),I=D.useMemo(()=>Yh(f,H,N),[f,H,N]),X=D.useMemo(()=>{const B=new Map;for(const K of f){if(!K.startedAt)continue;const Y=new Date(K.startedAt),Z=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate()).getTime(),W=B.get(Z)??{date:new Date(Y.getFullYear(),Y.getMonth(),Y.getDate()),cost:0,tokens:0,sessions:0};W.cost+=tl(K.tokenUsage,void 0,N),W.tokens+=K.tokenUsage?.total??0,W.sessions++,B.set(Z,W)}return B},[f,N]),$=D.useMemo(()=>{const B=[...X.values()];if(B.length===0)return{weeks:[],months:[],max:0};B.sort((h,M)=>h.date.getTime()-M.date.getTime());const K=B[0].date,Y=B[B.length-1].date,Z=371*864e5,W=new Date(Math.max(K.getTime(),Y.getTime()-Z)),le=new Date(W);le.setDate(le.getDate()-le.getDay());const ue=h=>E==="cost"?h.cost:E==="tokens"?h.tokens:h.sessions;let S=0;for(const h of B)if(h.date>=le){const M=ue(h);M>S&&(S=M)}const v=[],V=[];let ee=new Date(le),G=-1;for(;ee<=Y;){const h=[];for(let M=0;M<7;M++){const Q=new Date(ee),ae=new Date(Q.getFullYear(),Q.getMonth(),Q.getDate()).getTime(),ce=X.get(ae)??null,me=Q<W||Q>Y;h.push({date:Q,rec:ce,out:me});const be=Q.getMonth();M===0&&be!==G&&(V.push({col:v.length,label:Q.toLocaleDateString(void 0,{month:"short"})}),G=be),ee.setDate(ee.getDate()+1)}v.push(h)}return{weeks:v,months:V,max:S}},[X,E]),te=D.useMemo(()=>{const B=Array.from({length:7},()=>new Array(24).fill(0));let K=0;for(const Y of y.values()){if(!Y.timestamp)continue;const Z=new Date(Y.timestamp);isNaN(Z.getTime())||(B[Z.getDay()][Z.getHours()]++,B[Z.getDay()][Z.getHours()]>K&&(K=B[Z.getDay()][Z.getHours()]))}return{grid:B,max:K}},[y]),O=D.useMemo(()=>{const B=_.totalInput+_.totalCached,K=B>0?_.totalCached/B*100:0,Y=_.toolCalls,Z=Object.values(_.toolAgg).reduce((V,ee)=>V+ee.errors,0),W=Y>0?Z/Y*100:0,le=100-W,ue=_.sessions>0?_.totalTokens/_.sessions:0,S=_.sessions>0?_.estCost/_.sessions:0;let v=0;for(const V of f){const G=H.get(V.sessionId)?.modelProvider??null,h=bo(G,N);v+=(V.tokenUsage?.cachedInput??0)*h.inRate*.9/1e6}return{cacheHitRate:K,successRate:le,failRate:W,toolErrors:Z,tokensPerSession:ue,costPerSession:S,cacheSaved:v}},[_,f,H,N]),ie=D.useRef([]),he=D.useMemo(()=>{const B=I[0]?.label??"—";let K=null;for(const W of X.values())(!K||W.cost>K.cost)&&(K={date:W.date,cost:W.cost});let Y=0,Z="";for(const W of f){const le=tl(W.tokenUsage,void 0,N);if(le>Y){Y=le;const ue=H.get(W.sessionId)?.cwd;Z=ue?ue.replace(/\\/g,"/").split("/").filter(Boolean).slice(-2).join("/")||ue:"(unknown)"}}return{favModel:B,busyDay:K,priciestName:Z,priciestCost:Y}},[I,X,f,N,H]);if(f.length===0)return s.jsxs("details",{className:"session-recap",open:k,onToggle:B=>{const K=B.target.open;J(K),localStorage.setItem("superview-recap-open",String(K))},children:[s.jsxs("summary",{children:[s.jsx("span",{className:"caret",children:"▸"}),u.recapToggle]}),s.jsx("div",{className:"recap-body",children:s.jsx("p",{className:"recap-empty",children:u.recapEmpty})})]});const P=B=>E==="cost"?$t(B):E==="tokens"?Ee(B):`${B} sess`,F=Object.entries(_.toolAgg).sort((B,K)=>K[1].count-B[1].count),fe=F.length>0?F[0][1].count:1;return s.jsxs("details",{className:"session-recap",open:k,onToggle:B=>{const K=B.target.open;J(K),localStorage.setItem("superview-recap-open",String(K))},children:[s.jsxs("summary",{children:[s.jsx("span",{className:"caret",children:"▸"}),u.recapToggle,s.jsxs("span",{className:"recap-summary-stats",children:[s.jsxs("span",{children:[_.sessions," ",s.jsx("b",{children:u.readoutSessions.toLowerCase()})]}),s.jsx("span",{children:s.jsx("b",{children:$t(_.estCost)})}),s.jsxs("span",{children:[s.jsx("b",{children:Ee(_.totalTokens)})," tokens"]}),s.jsxs("span",{className:"recap-summary-footnotes",children:[s.jsxs("span",{children:["most-used ",s.jsx("b",{children:he.favModel})]}),he.busyDay?s.jsxs("span",{children:["busiest"," ",s.jsx("b",{children:he.busyDay.date.toLocaleDateString(void 0,{month:"short",day:"numeric"})})," ",s.jsx("em",{children:$t(he.busyDay.cost)})]}):null,s.jsxs("span",{children:["priciest ",s.jsx("b",{children:he.priciestName})," ",s.jsx("em",{children:$t(he.priciestCost)})]})]})]})]}),s.jsxs("div",{className:"recap-body",children:[s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"01"})," readout"]}),s.jsxs("div",{className:"recap-readout",children:[s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutSessions}),s.jsx("div",{className:"rv",children:_.sessions})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutEstCost}),s.jsx("div",{className:"rv cost",children:$t(_.estCost)})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutTotalTokens}),s.jsx("div",{className:"rv",children:Ee(_.totalTokens)}),s.jsxs("div",{className:"rn",children:[Ee(_.totalInput)," in ·"," ",Ee(_.totalOutput)," out"]})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutToolCalls}),s.jsx("div",{className:"rv",children:_.toolCalls.toLocaleString()}),s.jsxs("div",{className:"rn",children:[O.toolErrors," failed"]})]}),s.jsxs("div",{className:"r-cell",children:[s.jsx("div",{className:"rk",children:u.readoutErrors}),s.jsx("div",{className:`rv${_.errors>0?" err":""}`,children:_.errors}),s.jsxs("div",{className:"rn",children:[_.sessions-_.errors," succeeded"]})]})]}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"02"})," ",u.recapRhythmHeading]}),s.jsxs("div",{className:"recap-rhythm-grid",children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[s.jsxs("div",{className:"recap-rhythm-panel",children:[s.jsxs("div",{className:"recap-rhythm-head",children:[s.jsx("span",{className:"recap-rhythm-title",children:u.recapDailyActivity}),s.jsxs("div",{className:"recap-metric-toggle",children:[s.jsx("button",{className:E==="cost"?"on":"",onClick:()=>T("cost"),children:"cost"}),s.jsx("button",{className:E==="tokens"?"on":"",onClick:()=>T("tokens"),children:"tokens"}),s.jsx("button",{className:E==="sessions"?"on":"",onClick:()=>T("sessions"),children:"sessions"})]})]}),$.weeks.length===0?s.jsx("p",{className:"recap-empty",children:"no dated sessions"}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"recap-cal-scroll",children:[s.jsx("div",{className:"recap-cal-months",children:$.months.map((B,K)=>s.jsx("span",{style:K>0?{marginLeft:(B.col-($.months[K-1]?.col??B.col)-1)*16}:void 0,children:B.label},K))}),s.jsxs("div",{className:"recap-cal-body",children:[s.jsx("div",{className:"recap-cal-wdays",children:["","M","","W","","F",""].map((B,K)=>s.jsx("span",{children:B},K))}),s.jsx("div",{className:"recap-cal",children:$.weeks.map((B,K)=>s.jsx("div",{className:"recap-cal-week",children:B.map((Y,Z)=>{const W=Y.rec?E==="cost"?Y.rec.cost:E==="tokens"?Y.rec.tokens:Y.rec.sessions:0;return s.jsx("div",{className:"recap-cal-day",style:Y.rec&&!Y.out?{background:co[Oh(W,$.max)],borderColor:"transparent"}:void 0,title:Y.rec?`${Y.date.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})} · ${P(W)} · ${Y.rec.sessions} session${Y.rec.sessions!==1?"s":""}`:void 0},Z)})},K))})]})]}),s.jsxs("div",{className:"recap-cal-legend",children:["less"," ",co.map((B,K)=>s.jsx("i",{style:{background:B}},K))," ","more"]})]})]}),s.jsxs("div",{className:"recap-rhythm-panel",children:[s.jsxs("div",{className:"recap-rhythm-head",children:[s.jsx("span",{className:"recap-rhythm-title",children:u.recapWhenYouShip}),s.jsx("span",{className:"recap-rhythm-sub",children:"events · hour × weekday"})]}),te.max===0?s.jsx("p",{className:"recap-empty",children:"no timestamped events"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"recap-clock",children:[1,2,3,4,5,6,0].map(B=>{const K=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Y=[1,2,3,4,5,6,0].indexOf(B);return s.jsxs(D.Fragment,{children:[s.jsx("div",{className:"cl-lbl",children:K[Y]}),Array.from({length:24},(Z,W)=>{const le=te.grid[B][W];return s.jsx("div",{className:"cl-cell",style:le>0?{background:co[Oh(le,te.max)]}:void 0,title:le>0?`${K[Y]} ${String(W).padStart(2,"0")}:00 · ${le} event${le!==1?"s":""}`:void 0},`${B}-${W}`)})]},B)})}),s.jsxs("div",{className:"recap-clock-axis",children:[s.jsx("span",{className:"pad"}),s.jsx("b",{children:"0"}),s.jsx("b",{children:"6"}),s.jsx("b",{children:"12"}),s.jsx("b",{children:"18"})]})]})]})]}),C&&C.points.length>0?s.jsxs("div",{className:"recap-rhythm-panel",children:[s.jsx("div",{className:"recap-rhythm-head",children:s.jsx("span",{className:"recap-rhythm-title",children:o.dailyUsageByDay})}),s.jsx(Ip,{copy:d,data:C,loading:b,title:o.tokens,subtitle:o.dailyUsageByDay,maxVisiblePoints:30,className:"",showHeaderToggle:!1,expanded:!0,onExpandedChange:()=>{},variant:"horizon"})]}):null]}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"03"})," ",u.recapEfficiencyHeading]}),s.jsxs("div",{className:"recap-eff-grid",children:[s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapCacheHit}),s.jsxs("div",{className:`ev${O.cacheHitRate>=50?" good":O.cacheHitRate<15?" warn":""}`,children:[O.cacheHitRate.toFixed(0),"%"]}),s.jsxs("div",{className:"es",children:["saved ~",$t(O.cacheSaved)," vs uncached input"]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[0]=B},style:{width:`${Math.max(2,Math.min(100,O.cacheHitRate))}%`},className:""})})]}),s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapErrorRate}),s.jsxs("div",{className:`ev${O.failRate>10?" warn":" good"}`,children:[O.successRate.toFixed(0),"%"]}),s.jsxs("div",{className:"es",children:[O.toolErrors," failed of"," ",_.toolCalls.toLocaleString()," calls"]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[1]=B},style:{width:`${Math.max(2,Math.min(100,O.successRate))}%`},className:O.failRate>10?"warn":""})})]}),s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapTokensPerSession}),s.jsx("div",{className:"ev",children:Ee(O.tokensPerSession)}),s.jsxs("div",{className:"es",children:["avg across ",_.sessions," session",_.sessions!==1?"s":""]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[2]=B},style:{width:`${Math.max(2,Math.min(100,O.tokensPerSession/1e6*100))}%`},className:"clay"})})]}),s.jsxs("div",{className:"recap-eff-card",children:[s.jsx("div",{className:"et",children:u.recapCostPerSession}),s.jsx("div",{className:"ev cost",children:$t(O.costPerSession)}),s.jsxs("div",{className:"es",children:["avg ",$t(O.costPerSession)," / session"]}),s.jsx("div",{className:"recap-gauge",children:s.jsx("i",{ref:B=>{ie.current[3]=B},style:{width:`${Math.max(2,Math.min(100,O.costPerSession*100))}%`},className:"clay"})})]})]}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"04"})," ",u.modelSpendHeading]}),I.length===0?s.jsx("p",{className:"recap-empty",children:u.modelSpendEmpty}):s.jsx("div",{className:"recap-model-table",children:s.jsxs("table",{children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:u.modelSpendModel}),s.jsx("th",{children:u.modelSpendMsgs}),s.jsx("th",{children:u.modelSpendInput}),s.jsx("th",{children:u.modelSpendOutput}),s.jsx("th",{children:u.modelSpendCached}),s.jsx("th",{children:u.modelSpendCost})]})}),s.jsx("tbody",{children:I.map(B=>s.jsxs("tr",{children:[s.jsx("td",{children:B.label}),s.jsx("td",{children:B.messages}),s.jsx("td",{children:Ee(B.input)}),s.jsx("td",{children:Ee(B.output)}),s.jsx("td",{children:Ee(B.cachedInput)}),s.jsx("td",{className:"cost",children:$t(B.cost)})]},B.model))}),s.jsx("tfoot",{children:s.jsxs("tr",{children:[s.jsx("td",{children:u.modelSpendTotal}),s.jsx("td",{children:I.reduce((B,K)=>B+K.messages,0)}),s.jsx("td",{children:Ee(_.totalInput)}),s.jsx("td",{children:Ee(_.totalOutput)}),s.jsx("td",{children:Ee(_.totalCached)}),s.jsx("td",{className:"cost",children:$t(_.estCost)})]})})]})}),s.jsxs("div",{className:"recap-eyebrow",children:[s.jsx("span",{className:"tag",children:"05"})," ",u.toolUsageHeading]}),F.length===0?s.jsx("p",{className:"recap-empty",children:u.toolUsageEmpty}):s.jsx("div",{className:"recap-tools",children:F.map(([B,K])=>s.jsxs("div",{className:"recap-tool-row",children:[s.jsx("span",{className:"name",children:B}),s.jsx("span",{className:"track",children:s.jsx("span",{className:"fill",style:{width:`${K.count/fe*100}%`}})}),s.jsxs("span",{className:"figs",children:[K.count,K.errors>0?s.jsxs(s.Fragment,{children:[" ","· ",s.jsxs("span",{className:"e",children:[K.errors," err"]})]}):null]})]},B))}),s.jsx(K0,{pricing:N,onPricingChange:m,copy:u})]})]})}function $0(u,o,d,f){const y=o.trim().toLowerCase();return[...y?u.filter(b=>b.title.toLowerCase().includes(y)):u].sort((b,H)=>{switch(d){case"cost":return tl(H.tokenUsage,void 0,f)-tl(b.tokenUsage,void 0,f);case"duration":return H.durationMs-b.durationMs;case"tools":return H.skills.length-b.skills.length;case"errors":return(H.status==="failed"?1:0)-(b.status==="failed"?1:0);default:return Date.parse(H.startedAt)-Date.parse(b.startedAt)}})}function K0({pricing:u,onPricingChange:o,copy:d}){const f=["Anthropic","OpenAI","Other"];function y(b,H,N){const m=parseFloat(N);if(isNaN(m)||m<0)return;const E=u.map(T=>T.id===b?{...T,[H]:m}:T);o(E)}const C=D.useMemo(()=>{const b={};for(const H of u)b[H.provider]||(b[H.provider]=[]),b[H.provider].push(H);return b},[u]);return s.jsxs("details",{className:"pricing-editor",children:[s.jsxs("summary",{children:[s.jsx("span",{className:"caret",children:"▶"}),d.pricingHeading]}),s.jsxs("div",{className:"pricing-editor-body",children:[s.jsx("p",{className:"pricing-note",children:d.pricingNote}),s.jsxs("div",{className:"pricing-headers",children:[s.jsx("span",{children:"Model"}),s.jsx("span",{children:d.pricingInputRate}),s.jsx("span",{children:d.pricingOutputRate})]}),f.map(b=>{const H=C[b]??[];return H.length===0?null:s.jsxs("div",{children:[s.jsx("div",{className:"pricing-provider-group",children:b}),H.map(N=>s.jsxs("div",{className:"pricing-row",children:[s.jsx("span",{className:"pricing-row-label",children:N.label}),s.jsx("input",{type:"number",step:"0.1",min:"0",value:N.inRate,onChange:m=>y(N.id,"inRate",m.target.value),"aria-label":`${N.label} input rate`}),s.jsx("input",{type:"number",step:"0.1",min:"0",value:N.outRate,onChange:m=>y(N.id,"outRate",m.target.value),"aria-label":`${N.label} output rate`})]},N.id))]},b)})]})]})}const J0={};op.createRoot(document.getElementById("root")).render(s.jsx(lp.StrictMode,{children:s.jsx(g0,{})}));